]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fixes fallback to stat in is_device and is_partition 53798/head
authorTeoman ONAY <tonay@ibm.com>
Tue, 3 Oct 2023 19:47:16 +0000 (21:47 +0200)
committerTeoman ONAY <tonay@ibm.com>
Mon, 20 Nov 2023 08:50:05 +0000 (09:50 +0100)
commit52ca4a61d5d69ccfadeef8408a4711c820b98959
treeb8f5ebaea7ae14214af75228b87a70bd5b46542d
parent39fea8f71ca7418ef8736dcd0323877060f6aa3b
ceph-volume: fixes fallback to stat in is_device and is_partition

os.stat (or lstat) cannot distinguish a block device from
a partition.

Fixes: https://tracker.ceph.com/issues/58812
Signed-off-by: Teoman ONAY <tonay@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py