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. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
