Only prompt for --yes-i-really-mean-it if there
is an existing FS.
Signed-off-by: John Spray <john.spray@inktank.com>
string sure;
cmd_getval(g_ceph_context, cmdmap, "sure", sure);
- if (sure != "--yes-i-really-mean-it") {
+ if (pending_mdsmap.enabled && sure != "--yes-i-really-mean-it") {
ss << "this is DANGEROUS and will wipe out the mdsmap's fs, and may clobber data in the new pools you specify. add --yes-i-really-mean-it if you do.";
r = -EPERM;
} else {