bees icon indicating copy to clipboard operation
bees copied to clipboard

How exactly is the compression method set and how might one go about changing it?

Open dcflachs opened this issue 2 years ago • 1 comments
trafficstars

https://github.com/Zygo/bees/blob/717bdf5eb5e22d3ade0e6a5cf489a46d2a52e9f5/docs/missing.md?plain=1#L39-L41 My sleuthing around the codebase found this. https://github.com/Zygo/bees/blob/717bdf5eb5e22d3ade0e6a5cf489a46d2a52e9f5/src/bees.cc?plain=1#L398-L404 Is compression enabled by applying the compress attribute to this tmp file? If so would not explicitly applying the attribute let the file have the compression specified by BTRFS mount in which it resides (assuming forced compression is set on the mount)?

dcflachs avatar May 07 '23 19:05 dcflachs

This sets the fsattribute but does not specify compression method. btrfs takes the method from the compress mount option (force-compress is not necessary). If compress isn't set in the mount options, zlib is the unfortunate default method.

Zygo avatar May 08 '23 01:05 Zygo