]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fixes fallback to stat in is_device and is_partition
authorTeoman ONAY <tonay@ibm.com>
Tue, 3 Oct 2023 19:47:16 +0000 (21:47 +0200)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 23 Jan 2024 18:28:39 +0000 (01:28 +0700)
commit6cada601b9aa7ebdf48328c47dd3665cfad68a80
treef16480650b47a4aa303f7a2bc8fbf2a760a5f4f3
parent0ee0084ace3d5ef6196a8cde3fb02ca7245a997d
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>
(cherry picked from commit 52ca4a61d5d69ccfadeef8408a4711c820b98959)
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