flags:
- runtime
with_legacy: true
-- name: bluefs_check_volume_selector_on_umount
+- name: bluefs_check_volume_selector_on_mount
type: bool
level: dev
- desc: Check validity of volume selector on umount
+ desc: Check validity of volume selector on mount/umount
long_desc: Checks if volume selector did not diverge from the state it should be in.
Reference is constructed from bluefs inode table. Asserts on inconsistency.
default: false
Reference is constructed from bluefs inode table. Asserts on inconsistency. This is debug feature.
default: false
see_also:
- - bluefs_check_volume_selector_on_umount
+ - bluefs_check_volume_selector_on_mount
flags:
- startup
with_legacy: true
_stop_alloc();
goto out;
}
+ if (cct->_conf->bluefs_check_volume_selector_on_mount) {
+ _check_vselector_LNF();
+ }
conf_wal_envelope_mode = cct->_conf.get_val<bool>("bluefs_wal_envelope_mode");
log.uses_envelope_mode = conf_wal_envelope_mode;
dout(1) << __func__ << dendl;
sync_metadata(avoid_compact);
- if (cct->_conf->bluefs_check_volume_selector_on_umount) {
+ if (cct->_conf->bluefs_check_volume_selector_on_mount) {
_check_vselector_LNF();
}
_close_writer(log.writer);
g_ceph_context->_conf.set_val_or_die("bluestore_debug_randomize_serial_transaction",
"10");
- g_ceph_context->_conf.set_val_or_die("bluefs_check_volume_selector_on_umount", "true");
+ g_ceph_context->_conf.set_val_or_die("bluefs_check_volume_selector_on_mount", "true");
g_ceph_context->_conf.set_val_or_die("bdev_debug_aio", "true");
g_ceph_context->_conf.set_val_or_die("log_max_recent", "10000");