]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: guard set-device-class
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 25 Jul 2017 07:18:44 +0000 (15:18 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 26 Jul 2017 14:34:08 +0000 (22:34 +0800)
commit32fb548797df16dbe09252c6ceadee21a2bc8552
treeedf2d79ec79e168d737ed5cde681038c4f9cf973
parente4e83a0dd74d25eefd5e12c70d9ab247d9f70703
crush: guard set-device-class

If a device has already been bounded to a class,
do not allow to change its class silently.
Require user call rm-device-class first.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/standalone/crush/crush-classes.sh
src/crush/CrushWrapper.cc