bcachefs: version_upgrade is now an enum
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 28 Jun 2023 03:34:02 +0000 (23:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:06 +0000 (17:10 -0400)
commit3045bb958acf5d3bc799c791d14e40676477bd16
tree96b0cb3ac2b3c92ef2179b0e74e32906aef252d7
parent24964e1c5c89e00ca55909ab24ce8d28e2b46406
bcachefs: version_upgrade is now an enum

The version_upgrade parameter is now an enum, not a bool, and it's
persistent in the superblock:
 - compatible (default): upgrade to the latest compatible version
 - incompatible: upgrade to latest incompatible version
 - none

Currently all upgrades are incompatible upgrades, but the next release
will introduce major:minor versions.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/opts.c
fs/bcachefs/opts.h
fs/bcachefs/recovery.c
fs/bcachefs/super-io.c