summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdiskmgt/common/libdiskmgt.h
diff options
context:
space:
mode:
authoreschrock <none@none>2006-01-30 18:23:00 -0800
committereschrock <none@none>2006-01-30 18:23:00 -0800
commit46a2abf27af40eda17a3f97e79eda1aef4e3c3c8 (patch)
treeb740312752619df7c8e7a2e88b920b39097674fc /usr/src/lib/libdiskmgt/common/libdiskmgt.h
parent830363f48daa3fd97860418f205ea3097972757d (diff)
downloadillumos-joyent-46a2abf27af40eda17a3f97e79eda1aef4e3c3c8.tar.gz
6343802 zpool(1M) should make better use of libdiskmgt
6354197 setting env variable NOINUSE_CHECK causes zpool to core dump 6364275 internal error: disk configuration error 19 at line 518 of file zpool_vdev.c
Diffstat (limited to 'usr/src/lib/libdiskmgt/common/libdiskmgt.h')
-rw-r--r--usr/src/lib/libdiskmgt/common/libdiskmgt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/lib/libdiskmgt/common/libdiskmgt.h b/usr/src/lib/libdiskmgt/common/libdiskmgt.h
index 93998899c1..aa6df0967e 100644
--- a/usr/src/lib/libdiskmgt/common/libdiskmgt.h
+++ b/usr/src/lib/libdiskmgt/common/libdiskmgt.h
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -46,6 +46,7 @@ typedef uint64_t dm_descriptor_t;
typedef enum {
DM_WHO_MKFS = 0,
DM_WHO_ZPOOL,
+ DM_WHO_ZPOOL_FORCE,
DM_WHO_FORMAT,
DM_WHO_SWAP,
DM_WHO_DUMP
@@ -212,7 +213,8 @@ typedef enum {
#define DM_USE_VXVM "vxvm"
#define DM_USE_FS "fs"
#define DM_USE_VFSTAB "vfstab"
-#define DM_USE_ZPOOL "zpool"
+#define DM_USE_EXPORTED_ZPOOL "exported_zpool"
+#define DM_USE_ACTIVE_ZPOOL "active_zpool"
/* event */
#define DM_EV_NAME "name"
@@ -255,6 +257,7 @@ void dm_get_slice_stats(char *slice, nvlist_t **dev_stats,
void dm_get_usage_string(char *who, char *data, char **msg);
int dm_inuse(char *dev_name, char **msg, dm_who_type_t who,
int *errp);
+int dm_isoverlapping(char *dev_name, char **msg, int *errp);
#ifdef __cplusplus
}