* Defragmenting directories, compression
@ 2012-08-13 17:22 Lluís Batlle i Rossell
0 siblings, 0 replies; only message in thread
From: Lluís Batlle i Rossell @ 2012-08-13 17:22 UTC (permalink / raw)
To: linux-btrfs
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-13 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-13 17:22 Defragmenting directories, compression Lluís Batlle i Rossell
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).