bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

no way to unset-file-option

Open alfrenovsky opened this issue 10 months ago • 1 comments

I had changed some data_replicas using set-file-options --data_replicas Those options have prioprity over the filesystem replica option in /sys/fs/bcachefs/*/options/data_replicas I can change any file data replicas but there is no (documented) way to unset it and make it inherit the global one.

alfrenovsky avatar Feb 12 '25 11:02 alfrenovsky

You can unset them via raw xattr cli tools: sudo setfattr -x bcachefs.data_replicas <file or directory name>.

I'm not sure if it's still necessary - but on earlier kernels you'd then have to run sudo bcachefs set-file-option <file or directory name> to make sure they're propagated recursively the way you'd expect.

reedriley avatar Feb 21 '25 04:02 reedriley

the tool now supports this

koverstreet avatar Aug 02 '25 00:08 koverstreet