From: "Lluís Batlle i Rossell" <viric@viric.name>
To: linux-btrfs@vger.kernel.org
Subject: Defragmenting directories, compression
Date: Mon, 13 Aug 2012 19:22:05 +0200 [thread overview]
Message-ID: <20120813172205.GE25996@vicerveza.homeunix.net> (raw)
Hello,
I've run "btrfs fi defrag /nix", a directory with only three subdirectories.
One of them, "/nix/store" has lots of contents. I expected the operation to last
very short, because I thought it was not recursive. But for what I see in
btrfs_root_defrag, it looks like it's recursive. And it takes long.
Additionally, defragmenting on a directory ignores the '-clzo' kind of
compression settings. And I wonder... as it works recursively, will it
*uncompress* all that big amount of data I have there in lots of files? All that
data has been filled with a "compress=lzo" mount option from long ago.
Additionally, 'btrfs fi defrag <directory>' seems to require root permisions,
while 'btrfs fi defrag <file>' does not, only file ownership (or writing
permision). Is this on purpose?
Regards,
Lluís.
reply other threads:[~2012-08-13 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120813172205.GE25996@vicerveza.homeunix.net \
--to=viric@viric.name \
--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).