]> err.no Git - util-linux/commit
libblkid: avoid probing CDs for RAID
authorM.S.Colclough <m.s.colclough@bham.ac.uk>
Wed, 31 Mar 2010 16:11:00 +0000 (18:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Mar 2010 16:12:47 +0000 (18:12 +0200)
commit55113b15afe5f61fc917c22a9d8d47f89b37c757
tree404f473df0b1b4d9150ced667334c1b0d9c19360
parenteaa7716fae98be329db877bf137ad98b4335760f
libblkid: avoid probing CDs for RAID

RAID probing of CD/DVD can yield errors because of well-known problem
in reading the end of the disk with some disk/drive combinations.
Borrow CD detection method from udev and skip the RAID tests for
these devices.

[kzak@redhat.com: - check for linux/cdrom.h in ./configure
                  - add #ifdef around the ioctl call
                  - call the ioctl for block devices only]

Signed-off-by: Mark Colclough <m.s.colclough@bham.ac.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
shlibs/blkid/src/blkidP.h
shlibs/blkid/src/probe.c
shlibs/blkid/src/superblocks/superblocks.c