bcachefs: make durability a read-write sysfs option
authorDaniel Hill <daniel@gluo.nz>
Wed, 25 May 2022 04:11:56 +0000 (16:11 +1200)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commit597c6d17b18e2d53e7ab30c5626f38422fe4848b
treef2cf1a4eb8dae51b52c265c8ce39988e482e9f31
parentb5ac23c465c4ef8e94f6f2c9f2333193dccf9fc3
bcachefs: make durability a read-write sysfs option

Sometimes the user may need to change durability after formatting to
match current hardware setup, this option provides a quick and flexible
alternative to removing then adding the device.
It is HIGHLY ADVISED TO RUN REREPLICATE after changing this value so the
system doesn't remain degraded.

Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sysfs.c