]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: more precise error message when a disk is specified 18018/head
authorKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 09:44:09 +0000 (17:44 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 10:03:14 +0000 (18:03 +0800)
commitf2a86506adb95428ad4dc85901df7580d155c2e4
tree2e202ff1d0f1896fc8bec79ed77f7ab708594ecc
parentcda8d1df205287d4a8dc6cbfb34c58ff2bb988b0
ceph-disk: more precise error message when a disk is specified

we raise an exception if the path is not a block device, e.g. /dev/tty,
or it's disk, e.g, /dev/sda.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/ceph_disk/main.py