Project

General

Profile

Bug #8814 ยป ceph-disk.patch

Ricardo Rocha, 07/10/2014 08:06 PM

View differences:

src/ceph-disk
Check whether a given device path is a partition or a full disk.
"""
dev = os.path.realpath(dev)
if not os.path.exists(dev):
return False
if not stat.S_ISBLK(os.lstat(dev).st_mode):
raise Error('not a block device', dev)
    (1-1/1)