diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 3ee22beeb..4501e34c8 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -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. diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index ea43d01e5..f94ceca5e 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/ioctl/libdm-iface.c @@ -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)