]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: do not add non-empty tier pool unless forced 1335/head
authorSage Weil <sage@inktank.com>
Tue, 4 Mar 2014 05:11:17 +0000 (21:11 -0800)
committerSage Weil <sage@inktank.com>
Tue, 4 Mar 2014 05:11:17 +0000 (21:11 -0800)
commit08efb45889a5d91d105678bf10724aee1851d8f9
tree65ddff74df5e3c5b44a3af82de38ab2fec7c6a30
parent84decc119feacdcfa81bcb2c404e4a82605063c8
OSDMonitor: do not add non-empty tier pool unless forced

In general, users should not use non-empty pools as new tiers or else
things can behave strangely:

 - the data sets are unrelated behavior will be... strange.
 - if the cache pool is not "new" and does not do the OMAP flag, the OSD
   will not know not to flush omap objects to an EC base tier
 - probably other random stuff I'm forgetting

Allow a user to shoot themselves in the foot with --force-nonempty.

Implements: #7457
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc
src/mon/PGMap.h