]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: blacklist /dev/fd0
authorLoic Dachary <loic@dachary.org>
Thu, 21 Nov 2013 12:21:22 +0000 (13:21 +0100)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:05:40 +0000 (16:05 -0500)
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>
(cherry picked from commit 65701978715237ff5a4c68573c0696fd9d438e4f)

src/ceph-disk

index 961a027cd4832e26c15a02faa13dd245c36f1034..ab54ced69143c773724d9ebc36cca7282b813a00 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)