Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm Fix bug in dm_table_resume_ioctl where dmv->flags...
details: https://anonhg.NetBSD.org/src/rev/6ffaec8de596
branches: trunk
changeset: 749636:6ffaec8de596
user: haad <haad%NetBSD.org@localhost>
date: Sat Dec 05 01:21:41 2009 +0000
description:
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.
diffstat:
sys/dev/dm/dm_ioctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ffc569a8cd86 -r 6ffaec8de596 sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c Sat Dec 05 01:11:18 2009 +0000
+++ b/sys/dev/dm/dm_ioctl.c Sat Dec 05 01:21:41 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index