From 884659b32a8c632658e00700264570fb027a44d9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Jul 2017 14:35:53 +0200 Subject: 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 --- include/sysfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sysfs.h') 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, -- cgit v1.2.3-55-g7522