summaryrefslogtreecommitdiffstats
path: root/libblkid/src/verify.c
diff options
context:
space:
mode:
authorKarel Zak2017-07-12 14:35:53 +0200
committerKarel Zak2017-07-12 14:35:53 +0200
commit884659b32a8c632658e00700264570fb027a44d9 (patch)
treef6e4609617ae2a2d0c2bb29117105c50166c0d58 /libblkid/src/verify.c
parenttests: don't use errno in output (diff)
downloadkernel-qcow2-util-linux-884659b32a8c632658e00700264570fb027a44d9.tar.gz
kernel-qcow2-util-linux-884659b32a8c632658e00700264570fb027a44d9.tar.xz
kernel-qcow2-util-linux-884659b32a8c632658e00700264570fb027a44d9.zip
libblkid: don't use CDROM_GET_CAPABILITY ioctl for DM devices
For some reason kernel commit e980f62353c697cbf0c4325e43df6e44399aeb64 add extra warning when the ioctl is used for DM devices. It seems we can avoid this ioctl when the device has dm/uuid. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1469532 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/verify.c')
-rw-r--r--libblkid/src/verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/verify.c b/libblkid/src/verify.c
index 412eb66ba..d84894b10 100644
--- a/libblkid/src/verify.c
+++ b/libblkid/src/verify.c
@@ -114,7 +114,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev)
(unsigned long)diff));
#endif
- if (sysfs_devno_is_lvm_private(st.st_rdev)) {
+ if (sysfs_devno_is_lvm_private(st.st_rdev, NULL)) {
blkid_free_dev(dev);
return NULL;
}