From 19f792df43ca1379914cd771d907c8f518bd7f08 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 26 Oct 2005 17:51:10 +0000 Subject: [PATCH] Also suppress error if device doesn't exist with DM_DEVICE_STATUS. --- WHATS_NEW_DM | 1 + libdm/ioctl/libdm-iface.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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)