From 3942a93fae3331b2d08f93181eb2c9cf90b50440 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 21 Nov 2013 13:21:22 +0100 Subject: [PATCH] ceph-disk: blacklist /dev/fd0 blkid -s TYPE /dev/fd0 has been verified to hang forever on a H8DMR-82 supermicro motherboard running 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 UTC 2013 x86_64 It is unlikely that ceph will ever be used on floppy disks, they can be blacklisted. http://tracker.ceph.com/issues/6827 fixes: #6827 Signed-off-by: Loic Dachary (cherry picked from commit 65701978715237ff5a4c68573c0696fd9d438e4f) --- src/ceph-disk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph-disk b/src/ceph-disk index 961a027cd4832..ab54ced69143c 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -253,6 +253,9 @@ def list_all_partitions(): """ dev_part_list = {} for name in os.listdir('/sys/block'): + # /dev/fd0 may hang http://tracker.ceph.com/issues/6827 + if re.match(r'^fd\d$', name): + continue if not os.path.exists(os.path.join('/sys/block', name, 'device')): continue dev_part_list[name] = list_partitions(name) -- 2.39.5