]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fixes fallback to stat in is_device and is_partition 54630/head
authorTeoman ONAY <tonay@ibm.com>
Tue, 3 Oct 2023 19:47:16 +0000 (21:47 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 23 Nov 2023 08:33:08 +0000 (09:33 +0100)
commitf167ec24e7c0918d745addd33b6fd1b91229e017
treeebbd38950b7fe89a5ce00a64ad9f0b95fe3804c9
parente2b51aefb56cebaa9c2ad15863e399e9226b0df1
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