btrfs and per-file COW and compression

Hi folks, IIRC some people on luv-main have had issues using VM's with btrfs due to poor performance with its COW behaviour. Now COW is something you can disable either per mount or per-file but there wasn't really a good utility to do it per-file (a patch has been sent for chattr/lsattr but not yet merged apparently). However, a program called fileflags has been posted to linux-btrfs that lets you enable/disable both COW and compression on a per-file basis: http://permalink.gmane.org/gmane.comp.file-systems.btrfs/15737 Be interesting to know if it does help people! cheers, Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC This email may come with a PGP signature as a file. Do not panic. For more info see: http://en.wikipedia.org/wiki/OpenPGP

Chris Samuel wrote:
However, a program called fileflags has been posted to linux-btrfs that lets you enable/disable both COW and compression on a per-file basis:
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/15737
Be interesting to know if it does help people!
I think this will also help syslinux, which (last time I tried) could boot off btrfs *iff* the syslinux.cfg, vmlinuz and initrd.img files were not written to compressed blocks. ICBF testing ATM, if anybody else bothers, please let me/us know.
participants (2)
-
Chris Samuel
-
Trent W. Buck