summaryrefslogtreecommitdiffstats
path: root/include/sysfs.h
diff options
context:
space:
mode:
authorKarel Zak2017-07-12 14:35:53 +0200
committerKarel Zak2017-07-12 14:35:53 +0200
commit884659b32a8c632658e00700264570fb027a44d9 (patch)
treef6e4609617ae2a2d0c2bb29117105c50166c0d58 /include/sysfs.h
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 'include/sysfs.h')
-rw-r--r--include/sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysfs.h b/include/sysfs.h
index 36d3cbd4f..7e715ee85 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -81,7 +81,7 @@ extern int sysfs_is_partition_dirent(DIR *dir, struct dirent *d,
extern int sysfs_devno_to_wholedisk(dev_t dev, char *diskname,
size_t len, dev_t *diskdevno);
-extern int sysfs_devno_is_lvm_private(dev_t devno);
+extern int sysfs_devno_is_lvm_private(dev_t devno, char **uuid);
extern int sysfs_devno_is_wholedisk(dev_t devno);
extern int sysfs_scsi_get_hctl(struct sysfs_cxt *cxt, int *h,