Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libdm Fix problem where DM_IOCTL_NAME was used in libdm_...



details:   https://anonhg.NetBSD.org/src/rev/b8282931eeca
branches:  trunk
changeset: 765536:b8282931eeca
user:      haad <haad%NetBSD.org@localhost>
date:      Mon May 30 01:10:57 2011 +0000

description:
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:

 lib/libdm/libdm_ioctl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 67186f4079fe -r b8282931eeca lib/libdm/libdm_ioctl.c
--- a/lib/libdm/libdm_ioctl.c   Sun May 29 23:35:50 2011 +0000
+++ b/lib/libdm/libdm_ioctl.c   Mon May 30 01:10:57 2011 +0000
@@ -262,7 +262,7 @@
        if ((prop_dictionary_set_cstring(libdm_task->ldm_task,
                    DM_IOCTL_NAME, name)) == false)
                return ENOENT;
-
+ 
        return 0;
 }
 
@@ -285,7 +285,7 @@
 {
 
        if ((prop_dictionary_set_cstring(libdm_task->ldm_task,
-           DM_IOCTL_NAME, uuid)) == false)
+           DM_IOCTL_UUID, uuid)) == false)
                return ENOENT;
 
        return 0;



Home | Main Index | Thread Index | Old Index