From: Li Zefan <lizf@cn.fujitsu.com>
To: Stephane Chazelas <stephane_chazelas@yahoo.fr>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs fi defrag -c
Date: Fri, 28 Oct 2011 11:02:29 +0800 [thread overview]
Message-ID: <4EAA1B45.7050700@cn.fujitsu.com> (raw)
In-Reply-To: <20111027192022.GD4389@yahoo.fr>
> When the FS is mounted with compress:
>
> ~# mkfs.btrfs ./a
> nodesize 4096 leafsize 4096 sectorsize 4096 size 2.00GB
> ~# mount -o compress ./a /mnt/1
> ~# cd /mnt/1
> /mnt/1# yes | head -c400M > a
> /mnt/1# sync
> /mnt/1# df -h .
> Filesystem Size Used Avail Use% Mounted on
> /dev/loop1 2.0G 14M 1.8G 1% /mnt/1
> /mnt/1# btrfs fi defrag -c ./a
> (20)/mnt/1# sync
> /mnt/1# df -h .
> Filesystem Size Used Avail Use% Mounted on
> /dev/loop1 2.0G 21M 1.4G 2% /mnt/1
>
> Lost 400M?
>
> /mnt/1# btrfs fi defrag ./a
> (20)/mnt/1# sync
> /mnt/1# df -h .
> Filesystem Size Used Avail Use% Mounted on
> /dev/loop1 2.0G 21M 1.4G 2% /mnt/1
>
> I take it it doesn't uncompress?
>
> I'm a bit confused here.
>
Yes, it won't be uncompressed if you mount with compress option.
prev parent reply other threads:[~2011-10-28 3:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 19:20 btrfs fi defrag -c Stephane Chazelas
2011-10-28 2:25 ` Li Zefan
2011-10-28 10:23 ` Stephane CHAZELAS
2011-10-28 3:02 ` Li Zefan [this message]
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=4EAA1B45.7050700@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=stephane_chazelas@yahoo.fr \
/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