koverstreet / bcachefs-tools

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

Shrink filesystem #268

Open hockdudu opened 3 months ago

hockdudu commented 3 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 3 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 3 weeks 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.