bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

'bcachefs format --data_allowed' isn't documented

Open cehteh opened this issue 1 year ago • 1 comments

As the title say there is no documentation for the possible '--data_allowed' flags. Also missing in the 'set-options' subcommand.

This isn't mentioned in the 'principle-of-operations' document either.

What are the possible values? from 'show-super' Data allowed: journal,btree,user Has data: journal,btree,user,parity

Is parity always implied? anything missing?

cehteh avatar Jan 16 '24 08:01 cehteh

Briefly mentioned here: https://bcachefs.org/Caching/ but no details that I can find otherwise.

Mentions in code;

https://github.com/koverstreet/bcachefs/blob/c79cf4111930c22487840d1332ee1d44e1c31707/fs/bcachefs/opts.h#L514-L518

https://github.com/koverstreet/bcachefs/blob/c79cf4111930c22487840d1332ee1d44e1c31707/fs/bcachefs/alloc_background.c#L276-L317

There are more results when searching GitHub, and likely more still that GitHub isn't showing in it's results.

Looks like the allowed values (when configuring) are journal, btree and user. Other values likely come from internals in one way or another.

oddstr13 avatar Apr 07 '25 10:04 oddstr13