diff options
| author | haad <haad@NetBSD.org> | 2011-05-30 01:10:57 +0000 |
|---|---|---|
| committer | haad <haad@NetBSD.org> | 2011-05-30 01:10:57 +0000 |
| commit | 6213854fdeb38a4f0ae2efe4ba70526126d5b237 (patch) | |
| tree | a1cbd1703b3641de0701939fe0412864cdab0825 /lib/libdm/libdm_ioctl.c | |
| parent | 78a9e1ff5fedc94ebbbb258ab138b1990c82976f (diff) | |
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.
Diffstat (limited to 'lib/libdm/libdm_ioctl.c')
| -rw-r--r-- | lib/libdm/libdm_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdm/libdm_ioctl.c b/lib/libdm/libdm_ioctl.c index 5528844a6b5..976e90c8a19 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; |
