From 0c1ba949b7b69cfa419253f61bb8787014f9ca8b Mon Sep 17 00:00:00 2001 From: haad Date: Mon, 30 May 2011 01:10:57 +0000 Subject: [PATCH] Fix problem where DM_IOCTL_NAME was used in libdm_task_set_uuid except of DM_IOCTL_UUID. This makes lvremove to work properly. Thanks To hugo Silva and Toby Karyadi for reporting this issue. --- lib/libdm/libdm_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdm/libdm_ioctl.c b/lib/libdm/libdm_ioctl.c index 5528844a6b5c..976e90c8a194 100644 --- a/lib/libdm/libdm_ioctl.c +++ b/lib/libdm/libdm_ioctl.c @@ -262,7 +262,7 @@ libdm_task_set_name(const char *name, libdm_task_t libdm_task) if ((prop_dictionary_set_cstring(libdm_task->ldm_task, DM_IOCTL_NAME, name)) == false) return ENOENT; - + return 0; } @@ -285,7 +285,7 @@ libdm_task_set_uuid(const char *uuid, libdm_task_t libdm_task) { if ((prop_dictionary_set_cstring(libdm_task->ldm_task, - DM_IOCTL_NAME, uuid)) == false) + DM_IOCTL_UUID, uuid)) == false) return ENOENT; return 0;