]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: allow user to unset pool compression_mode[algorithm] properly 15968/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 28 Jun 2017 10:10:32 +0000 (18:10 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 28 Jun 2017 12:15:17 +0000 (20:15 +0800)
commitdb42eef59d687a6a6d3ef578e5bce9ea56314af8
tree27b365b717970b8d83f645cb13273ec39cd5867e
parent820b12f448fa0fbc5657f129b0a67413bbae616e
os/bluestore: allow user to unset pool compression_mode[algorithm] properly

A string-typed pool option requires user pass in a empty string to do a valid cancellation,
but the "osd pool set " command won't allow it. E.g.:
./bin/ceph osd pool set rbd compression_mode
Invalid command:  missing required parameter val(<string>)

Since we already use the "unset" keyword to cancel the csum_type setting,
we could simply extends the above mechanism for compression_mode
and compression_algorithm too.

E.g.:
./bin/ceph osd pool set rbd compression_algorithm zlib
set pool 0 compression_algorithm to zlib

 ./bin/ceph osd pool set rbd compression_algorithm unset
unset pool 0 compression_algorithm

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc