adam900710 / btrfs-fuse

A read-only, license friendly, FUSE based btrfs implementation
Other
26 stars 4 forks source link

Possibility of read/write with transparent compression #8

Closed ruanformigoni closed 1 year ago

ruanformigoni commented 1 year ago

Hey there,

I want to modify the project to support writing with the transparent compression aspect, do you think that it would be feasible?

Thanks.

adam900710 commented 1 year ago

For write, compression is the least thing you need to bother.

The write path needs a lot of things like delayed-ref infrastructure.

My current objective is to make the code base small and mostly for bootloader port.

Thus write is not a high priority.

If you really want to implement the write support, I'd say you can go porting the btree COW code first, then delayed-refs, and the extent reservation part first. But overall my estimation is, the write path would be 3x the number of lines, thus not really worthy.

ruanformigoni commented 1 year ago

Thanks for the pointers. I'll give it a shot :)