]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: blacklist /dev/fd0 860/head
authorLoic Dachary <loic@dachary.org>
Thu, 21 Nov 2013 12:21:22 +0000 (13:21 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 3 Dec 2013 08:31:05 +0000 (09:31 +0100)
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 <loic@dachary.org>
src/ceph-disk

index 64d944d9db0b4e3a3d917a5d026008454f149bfa..f771a68c2f9d873710cbe380d702fd0baa725da9 100755 (executable)
@@ -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)