]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: always check zap is applied on a full device 4818/head
authorLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 17:42:45 +0000 (19:42 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 17:42:45 +0000 (19:42 +0200)
commit8e1bcf21f090fc98ac9b495d76614e3012f5872a
treedc491ca342de375fd8a0baf34f9a174c4cc62e20
parent830054b419be7f2a8097ae2856e9a09add4b58ee
ceph-disk: always check zap is applied on a full device

zap only makes sense on a full device and this is verified for

    ceph-disk prepare --zap-disk

but not for

    ceph-disk zap

Unify the two and add a test to check that it fails as expected when
trying to zap a directory.

http://tracker.ceph.com/issues/11272 Fixes: #11272

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk
src/test/ceph-disk.sh