summaryrefslogtreecommitdiff
path: root/usr/src/lib/lvm/libmeta/common/meta_devadm.c
diff options
context:
space:
mode:
authorJames Hall <James.Hall@Sun.COM>2010-06-23 10:37:46 +0100
committerJames Hall <James.Hall@Sun.COM>2010-06-23 10:37:46 +0100
commit32c22d57860198538fb6b8f261cb76ab26318d34 (patch)
treead634452f7d5849ffdfb3028f6751d3ddfb959c5 /usr/src/lib/lvm/libmeta/common/meta_devadm.c
parentbbbbacb4bedf3d3959b4c3ec8ba1e07c8c10251d (diff)
downloadillumos-gate-32c22d57860198538fb6b8f261cb76ab26318d34.tar.gz
6569362 metaimport can corrupt shared namespace
6865676 SDS metaimport fail for 3rd Party LUNs 6861151 Recreate soft partition on >1TB stripe fails with "overlapping extent specificed" 6883934 Host added to imported metaset panics accessing soft partition
Diffstat (limited to 'usr/src/lib/lvm/libmeta/common/meta_devadm.c')
-rw-r--r--usr/src/lib/lvm/libmeta/common/meta_devadm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/lvm/libmeta/common/meta_devadm.c b/usr/src/lib/lvm/libmeta/common/meta_devadm.c
index 411da72b60..0d90d2f802 100644
--- a/usr/src/lib/lvm/libmeta/common/meta_devadm.c
+++ b/usr/src/lib/lvm/libmeta/common/meta_devadm.c
@@ -19,12 +19,9 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
@@ -292,6 +289,7 @@ meta_update_namespace(
nm.devname = (uintptr_t)devname;
nm.devname_len = strlen(devname);
nm.mnum = meta_getminor(dev);
+ nm.major = meta_getmajor(dev);
nm.key = key;
nm.pathname = (uintptr_t)pname;
nm.pathname_len = strlen(pname);