linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leen Besselink <leen@consolejunkie.net>
To: linux-btrfs@vger.kernel.org
Subject: df output wrong ?
Date: Mon, 05 Sep 2011 11:50:43 +0200	[thread overview]
Message-ID: <4E649B73.6060802@consolejunkie.net> (raw)

Hi,

Just noticed something about df -h output I didn't expect.

I'm sorry if this has already been answered or is a know problem.

Just see the test-part below to see what I did.

____ setup ____

- installed Fedora 16 Alpha on a KVM-VM with one 8GB HD-image.
- did a yum update
( - got a kernel update, which broke grub setup, worked around it:
kernel I use is: 3.0.0-1.fc16.x86_64)
- installed btrfs-progs
- created a directory /test
- created 2 files with dd from /dev/zero with the size of 2GB in /test
- created 2 loopback devices of the files
- created a btrfs filesystem with RAID 1 data and RAID1 meta-data
- created directory /test/mnt

____ test _____

- mounted the btrfs filesystem on /test/mnt
- created a file of 256MB with dd from /dev/zero in /test/mnt
- created a snapshot of /test/mnt in /test/mnt/snap1
- deleted 256MB file in /test/mnt
- deleted snapshot /test/mnt/snap1
- checked df -h, 256MB wasn't released. The filesystem does not look empty
- unmounted /test/mnt
- mounted /test/mnt
- checked df -h, 256MB was released. The filesystem does look empty

Hope this is helpful.

Have a nice day,
    Leen.


             reply	other threads:[~2011-09-05  9:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05  9:50 Leen Besselink [this message]
2011-09-05 10:19 ` df output wrong ? Hugo Mills
2011-09-05 10:58   ` Leen Besselink

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=4E649B73.6060802@consolejunkie.net \
    --to=leen@consolejunkie.net \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).