diff options
| author | haad <haad@NetBSD.org> | 2009-12-05 01:21:41 +0000 |
|---|---|---|
| committer | haad <haad@NetBSD.org> | 2009-12-05 01:21:41 +0000 |
| commit | 8f50b1a274edc4e158107e985509770c4824c94c (patch) | |
| tree | 44148a0a79535edcbf542d3ebdabfe502989c33b /sys/dev/dm/dm_ioctl.c | |
| parent | 9197e8f7e0b83dd754e5c92d11a92e17522dcc23 (diff) | |
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 (limited to 'sys/dev/dm/dm_ioctl.c')
| -rw-r--r-- | sys/dev/dm/dm_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c index 0e70b30c95d..7078d9460dd 100644 --- a/sys/dev/dm/dm_ioctl.c +++ b/sys/dev/dm/dm_ioctl.c @@ -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 @@ dm_dev_resume_ioctl(prop_dictionary_t dm_dict) 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); |
