]> sourceware.org Git - lvm2.git/commitdiff
Also suppress error if device doesn't exist with DM_DEVICE_STATUS.
authorAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 17:51:10 +0000 (17:51 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 17:51:10 +0000 (17:51 +0000)
WHATS_NEW_DM
libdm/ioctl/libdm-iface.c

index 3ee22beeb9b8d199a23d33e8b5648df75220ee9a..4501e34c83896b6de8009e3f7ee494335e8d8f2d 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.00 - 
 =============================
+  Also suppress error if device doesn't exist with DM_DEVICE_STATUS.
   Export dm_set_selinux_context().
   Add dm_driver_version().
   Added dependency tree functions to library.
index ea43d01e52741f89ee2c0b1c8c3ece8dcbeb04e0..f94ceca5ef0716a0eecd5d4688d13ac49f1562ca 100644 (file)
@@ -1377,7 +1377,8 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
 #ifdef DM_IOCTLS
        if (ioctl(_control_fd, command, dmi) < 0) {
                if (errno == ENXIO && ((dmt->type == DM_DEVICE_INFO) ||
-                                      (dmt->type == DM_DEVICE_MKNODES)))
+                                      (dmt->type == DM_DEVICE_MKNODES) ||
+                                      (dmt->type == DM_DEVICE_STATUS)))
                        dmi->flags &= ~DM_EXISTS_FLAG;  /* FIXME */
                else {
                        if (_log_suppress)
This page took 0.038935 seconds and 5 git commands to generate.