]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd,OSDMonitor: try to protect against ec overwrites with filestore
authorJosh Durgin <jdurgin@redhat.com>
Thu, 6 Apr 2017 18:40:41 +0000 (11:40 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 20 Apr 2017 00:45:43 +0000 (17:45 -0700)
commit4315221179a557f9acd7527cc8be92716b15b332
tree30db452ab4df520e4979f1d106f46830832d359b
parent3ca750d41dfe33c6efea4abc96d2bd426a9742b9
osd,OSDMonitor: try to protect against ec overwrites with filestore

This isn't perfect, but it's better than nothing. Prevent enabling the
allow_ec_overwrites flag if any of a sample of pgs in the pool map to
osds using filestore. This mainly protects filestore-only clusters
from enabling it.

If a filestore osd is started later, warn in the cluster log when it
gets a pg with ec overwrites enabled.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/osd/OSD.cc