We can't disable using global snaprealm without enabling
referent inodes feature and we can't disable referent inodes
without disabling global snaprealm. The patch adds this dependency.
Fixes: https://tracker.ceph.com/issues/54205
Signed-off-by: Kotresh HR <khiremat@redhat.com>
return r;
}
+ if (!allow_referent_inodes && !fsp->get_mds_map().use_global_snaprealm()) {
+ ss << "Error! Can't disable referent inodes, the dependant feature use_global_snaprealm is disabled.";
+ return -EOPNOTSUPP;
+ }
+
if (!allow_referent_inodes) {
modify_filesystem(fsmap, fsv,
[](auto&& fs)
return r;
}
+ if (!use_global_snaprealm && !fsp->get_mds_map().allow_referent_inodes()) {
+ ss << "Error! Can't disable global snaprealm, the dependant feature allow_referent_inodes is disabled";
+ return -EOPNOTSUPP;
+ }
+
if (!use_global_snaprealm) {
modify_filesystem(fsmap, fsv,
[](auto&& fs)