]> sourceware.org Git - lvm2.git/commitdiff
remove unused flag DEV_UDEV_INFO_MISSING
authorDavid Teigland <teigland@redhat.com>
Fri, 16 Apr 2021 21:01:19 +0000 (16:01 -0500)
committerDavid Teigland <teigland@redhat.com>
Fri, 16 Apr 2021 21:01:19 +0000 (16:01 -0500)
lib/device/dev-md.c
lib/device/dev-type.c
lib/device/device.h

index 3049b81b726f94cc876676d9e5d749654b006e89..78a77a9680fa9c78038589dd2b44c5eff53231e5 100644 (file)
@@ -166,17 +166,14 @@ static int _udev_dev_is_md_component(struct device *dev)
        if (!(ext = dev_ext_get(dev)))
                return_0;
 
-       if (!(value = udev_device_get_property_value((struct udev_device *)ext->handle, DEV_EXT_UDEV_BLKID_TYPE))) {
-               dev->flags |= DEV_UDEV_INFO_MISSING;
+       if (!(value = udev_device_get_property_value((struct udev_device *)ext->handle, DEV_EXT_UDEV_BLKID_TYPE)))
                return 0;
-       }
 
        return !strcmp(value, DEV_EXT_UDEV_BLKID_TYPE_SW_RAID);
 }
 #else
 static int _udev_dev_is_md_component(struct device *dev)
 {
-       dev->flags |= DEV_UDEV_INFO_MISSING;
        return 0;
 }
 #endif
index 7cbb7fbedd601b11258a02b52089f548258897ca..1b335722d122c205d5b7bbf8032147a148b04477 100644 (file)
@@ -1261,10 +1261,8 @@ int udev_dev_is_md_component(struct device *dev)
        const char *value;
        int ret = 0;
 
-       if (!obtain_device_list_from_udev()) {
-               dev->flags |= DEV_UDEV_INFO_MISSING;
+       if (!obtain_device_list_from_udev())
                return 0;
-       }
 
        if (!(udev_device = _udev_get_dev(dev)))
                return 0;
@@ -1291,7 +1289,6 @@ int udev_dev_is_mpath_component(struct device *dev)
 
 int udev_dev_is_md_component(struct device *dev)
 {
-       dev->flags |= DEV_UDEV_INFO_MISSING;
        return 0;
 }
 
index aed1a03421771c27330e5e3359cda80b973896e8..ca8b3cdd82a63450f7d211e14a58b07645939f85 100644 (file)
@@ -37,9 +37,8 @@
 #define DEV_BCACHE_WRITE       0x00008000      /* bcache_fd is open with RDWR */
 #define DEV_SCAN_FOUND_LABEL   0x00010000      /* label scan read dev and found label */
 #define DEV_IS_MD_COMPONENT    0x00020000      /* device is an md component */
-#define DEV_UDEV_INFO_MISSING   0x00040000     /* we have no udev info for this device */
-#define DEV_IS_NVME            0x00080000      /* set if dev is nvme */
-#define DEV_MATCHED_USE_ID     0x00100000      /* matched an entry from cmd->use_devices */
+#define DEV_IS_NVME            0x00040000      /* set if dev is nvme */
+#define DEV_MATCHED_USE_ID     0x00080000      /* matched an entry from cmd->use_devices */
 
 /*
  * Support for external device info.
This page took 0.042903 seconds and 5 git commands to generate.