Module Name: src
Committed By: haad
Date: Sat Dec 5 01:21:41 UTC 2009
Modified Files:
src/sys/dev/dm: dm_ioctl.c
Log Message:
Fix bug in dm_table_resume_ioctl where dmv->flags was sent back to libdevmapper
except flags variable. This fixes weird behaviour, when worng links to
devices in /dev/mapper were created after lvrename/lvresize.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_ioctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dm/dm_ioctl.c
diff -u src/sys/dev/dm/dm_ioctl.c:1.15 src/sys/dev/dm/dm_ioctl.c:1.16
--- src/sys/dev/dm/dm_ioctl.c:1.15 Tue Dec 1 23:12:10 2009
+++ src/sys/dev/dm/dm_ioctl.c Sat Dec 5 01:21:41 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.15 2009/12/01 23:12:10 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.16 2009/12/05 01:21:41 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -544,7 +544,7 @@
dmgetproperties(dmv->diskp, &dmv->table_head);
prop_dictionary_set_uint32(dm_dict, DM_IOCTL_OPEN, dmv->table_head.io_cnt);
- prop_dictionary_set_uint32(dm_dict, DM_IOCTL_FLAGS, dmv->flags);
+ prop_dictionary_set_uint32(dm_dict, DM_IOCTL_FLAGS, flags);
prop_dictionary_set_uint32(dm_dict, DM_IOCTL_MINOR, dmv->minor);
dm_dev_unbusy(dmv);