We were just setting return code to -EINVAL, while allowing the logic to
continue regardless. If we are to return error, then we should abort
the operation as well and let the user know it went wrong instead of
continuing as if nothing had happened.
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
/* We currently only support one filesystem, so cannot create a second */
ss << "A filesystem already exists, use `ceph fs rm` if you wish to delete it";
r = -EINVAL;
+ return true;
}
pg_pool_t const *data_pool = mon->osdmon()->osdmap.get_pg_pool(data);