From: Loic Dachary Date: Thu, 21 Nov 2013 12:21:22 +0000 (+0100) Subject: ceph-disk: blacklist /dev/fd0 X-Git-Tag: v0.74~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65701978715237ff5a4c68573c0696fd9d438e4f;p=ceph.git 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 --- diff --git a/src/ceph-disk b/src/ceph-disk index 64d944d9db0b..f771a68c2f9d 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)