koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
124 stars 91 forks source link

Shrink filesystem #268

Open hockdudu opened 6 months ago

hockdudu commented 6 months ago

I've seen the documentation states that shrinking isn't supported^1, but I couldn't find any issue tracking this feature (is it planned?), so I'm creating this issue here.

Is this a limitation on bcachefs itself, or only on the userspace tools?

phedders commented 6 months ago

+1 very much looking forward to this being possible. (Sign of a grown up FS for me, looking at you XFS... )

matthiasgoergens commented 4 months ago

The problem is that shrinking needs to move data around on disk, while extending just needs a change to the metadata.

From what I can tell, shrinking is definitely possible, it's just a lot of work to implement.