The corresponding pg_num, pgp_num, and pgp_num_actual cases already have
this guard.
Signed-off-by: Samuel Just <sjust@redhat.com>
}
p.min_size = n;
} else if (var == "pg_num_actual") {
+ if (p.has_flag(pg_pool_t::FLAG_NOPGCHANGE)) {
+ ss << "pool pg_num change is disabled; you must unset nopgchange flag for the pool first";
+ return -EPERM;
+ }
if (interr.length()) {
ss << "error parsing integer value '" << val << "': " << interr;
return -EINVAL;