diff options
author | Karel Zak | 2017-07-12 14:35:53 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-12 14:35:53 +0200 |
commit | 884659b32a8c632658e00700264570fb027a44d9 (patch) | |
tree | f6e4609617ae2a2d0c2bb29117105c50166c0d58 /disk-utils | |
parent | tests: don't use errno in output (diff) | |
download | kernel-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 'disk-utils')
-rw-r--r-- | disk-utils/fdisk-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdisk-list.c b/disk-utils/fdisk-list.c index 08732e95a..a46883d18 100644 --- a/disk-utils/fdisk-list.c +++ b/disk-utils/fdisk-list.c @@ -334,7 +334,7 @@ char *next_proc_partition(FILE **f) if (devno <= 0) continue; - if (sysfs_devno_is_lvm_private(devno) || + if (sysfs_devno_is_lvm_private(devno, NULL) || sysfs_devno_is_wholedisk(devno) <= 0) continue; |