public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Kazantsev <mk.fraggod@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Sparse files and df
Date: Sun, 24 May 2009 12:42:07 +0600	[thread overview]
Message-ID: <20090524124207.2bc0bf86@coercion> (raw)

[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]

Hi,

Here's a bit of a puzzle for me...

I've got an 40G LVM partition with empty reiserfs on it.
Then I've started rtorrent using this fs as a storage and added two 50G
torrents to it.
Rtorrent had no problems with the fact that partition is smaller than
either of them and created all the downloaded files as sparse, so that
"du -s --apparent-size" showed 100G.
df reported that fs is still empty.

Few days passed and some data actually hit the file system.
Knowing that it can't handle that much of data I've downloaded files
selectively, pushing completed ones to another fs, leaving a symlink in
their place.

df now shows that only 5G is free but "du -s" says that files occupy
15G and apparent size is 65G.
I've moved 5G worth of them and du now reports 10G/60G, while df still
shows that only 5G left (and decreasing).

Now I know that df can actually show weird results sometimes but I
wonder why (re)moving files from a file system doesn't affect it's
output at all.
Do I really have 5G there which will be depleted soon and there's
nothing I can do to help it?
If not, how come anyone trusts df output at all when it can report
almost-empty fs to be almost-full?

Wonder if anyone can make things a bit more clear for me here.
Thanks.

-- 
Mike Kazantsev // fraggod.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2009-05-24  6:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24  6:42 Mike Kazantsev [this message]
2009-05-24  7:06 ` [gentoo-user] Sparse files and df Mike Kazantsev
2009-05-24  7:13 ` [gentoo-user] " Nikos Chantziaras
2009-05-24  8:13   ` Mike Kazantsev
2009-05-24  8:24 ` [gentoo-user] " Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090524124207.2bc0bf86@coercion \
    --to=mk.fraggod@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox