From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1M87S6-0002cK-1A for garchives@archives.gentoo.org; Sun, 24 May 2009 06:44:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D6DAE02FD; Sun, 24 May 2009 06:44:56 +0000 (UTC) Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by pigeon.gentoo.org (Postfix) with ESMTP id 2BC77E02FD for ; Sun, 24 May 2009 06:44:56 +0000 (UTC) Received: by fxm19 with SMTP id 19so2263476fxm.34 for ; Sat, 23 May 2009 23:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type; bh=1bmNymk3AsRQ3/igUBNqgIhW5HHDaAolzwpTAt2phvI=; b=LBshHCHMdvltwNZm/ruQAdo+3Ct01aZb1ig74nxAvV6Fq8gM8p8MIzZVTHbVgVfbt9 0cL7wMBO/4d2qHinDUPkyRbK6Sm/G/cnCjLGrGLBwKQWg2qnqDdOdiOCl2ymdo8qmXhu q29OnoUJareVLgAXT/xIT7jCkNDVnsYa6UP88= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=CNNZ8RlzKrkn5MgIkgtS+3zJN7Liagy2HT3nRJNvNpeHa4e0af5AlRddVT9j6xhMQt sRbOLG3WG5eJTkOA9kKXw6Mbd075fKG0pF1RokN9P1ADnzhQ/6g7sDjSDe7vXEjkuhGz DhUTKZ82GEVa5wK71HXk/IXtcuIKRT57TTXsQ= Received: by 10.103.213.19 with SMTP id p19mr2910712muq.9.1243147495513; Sat, 23 May 2009 23:44:55 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id b9sm5659113mug.39.2009.05.23.23.44.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 23 May 2009 23:44:55 -0700 (PDT) Date: Sun, 24 May 2009 12:42:07 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Sparse files and df Message-ID: <20090524124207.2bc0bf86@coercion> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/VBc4y2u+dQ7ddvqVaWSUkZV"; protocol="application/pgp-signature" X-Archives-Salt: 225e8a89-ae18-4afa-a615-6ce732eb234a X-Archives-Hash: e8f15f7f8004107ce634ea5ed6ccef2f --Sig_/VBc4y2u+dQ7ddvqVaWSUkZV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. --=20 Mike Kazantsev // fraggod.net --Sig_/VBc4y2u+dQ7ddvqVaWSUkZV Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkoY7EMACgkQASbOZpzyXnEh+wCgwUywVpaHjU/HhES2RnGUB/Ug ZqQAoIz0bT0fDxkbkRzgDowD6jHPDWMO =q/r5 -----END PGP SIGNATURE----- --Sig_/VBc4y2u+dQ7ddvqVaWSUkZV--