From: Alasdair Kergon Date: Wed, 26 Oct 2005 17:51:10 +0000 (+0000) Subject: Also suppress error if device doesn't exist with DM_DEVICE_STATUS. X-Git-Tag: v2_02_91~4715 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=19f792df43ca1379914cd771d907c8f518bd7f08;p=lvm2.git Also suppress error if device doesn't exist with DM_DEVICE_STATUS. --- 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)