diff options
author | John Sonnenschein <johns@joyent.com> | 2012-05-07 05:04:04 +0000 |
---|---|---|
committer | John Sonnenschein <johns@joyent.com> | 2012-05-07 05:04:04 +0000 |
commit | 99ab767f0b40b10adde1dc9ceaf6bb39d2be5d69 (patch) | |
tree | 2a7de5a6e401f09e065ff1efd5ac558e05536295 /usr/src/lib | |
parent | 7660e73f5b1e781050d87237f1123324e01f467b (diff) | |
download | illumos-joyent-99ab767f0b40b10adde1dc9ceaf6bb39d2be5d69.tar.gz |
Revert "1948 zpool list should show more detailed pool information"
This reverts commit 4263d13f00c9691fa14620eff82abef795be0693.
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/libzfs/common/libzfs.h | 3 | ||||
-rw-r--r-- | usr/src/lib/libzfs/common/libzfs_pool.c | 33 | ||||
-rw-r--r-- | usr/src/lib/libzfs/common/mapfile-vers | 5 |
3 files changed, 8 insertions, 33 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs.h b/usr/src/lib/libzfs/common/libzfs.h index ccdbf9b4e2..919b753897 100644 --- a/usr/src/lib/libzfs/common/libzfs.h +++ b/usr/src/lib/libzfs/common/libzfs.h @@ -22,7 +22,7 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2012 by Delphix. All rights reserved. + * Copyright (c) 2011 by Delphix. All rights reserved. */ #ifndef _LIBZFS_H @@ -232,7 +232,6 @@ typedef struct splitflags { extern int zpool_scan(zpool_handle_t *, pool_scan_func_t); extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *); extern int zpool_reguid(zpool_handle_t *); -extern int zpool_reopen(zpool_handle_t *); extern int zpool_vdev_online(zpool_handle_t *, const char *, int, vdev_state_t *); diff --git a/usr/src/lib/libzfs/common/libzfs_pool.c b/usr/src/lib/libzfs/common/libzfs_pool.c index 4a42e2a680..080249b246 100644 --- a/usr/src/lib/libzfs/common/libzfs_pool.c +++ b/usr/src/lib/libzfs/common/libzfs_pool.c @@ -22,7 +22,7 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2011 Nexenta Systems, Inc. All rights reserved. - * Copyright (c) 2012 by Delphix. All rights reserved. + * Copyright (c) 2011 by Delphix. All rights reserved. */ #include <ctype.h> @@ -273,7 +273,6 @@ zpool_get_prop(zpool_handle_t *zhp, zpool_prop_t prop, char *buf, size_t len, case ZPOOL_PROP_SIZE: case ZPOOL_PROP_ALLOCATED: case ZPOOL_PROP_FREE: - case ZPOOL_PROP_EXPANDSZ: (void) zfs_nicenum(intval, buf, len); break; @@ -361,8 +360,8 @@ pool_uses_efi(nvlist_t *config) return (B_FALSE); } -boolean_t -zpool_is_bootable(zpool_handle_t *zhp) +static boolean_t +pool_is_bootable(zpool_handle_t *zhp) { char bootfs[ZPOOL_MAXNAMELEN]; @@ -1095,7 +1094,7 @@ zpool_add(zpool_handle_t *zhp, nvlist_t *nvroot) return (zfs_error(hdl, EZFS_BADVERSION, msg)); } - if (zpool_is_bootable(zhp) && nvlist_lookup_nvlist_array(nvroot, + if (pool_is_bootable(zhp) && nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_SPARES, &spares, &nspares) == 0) { uint64_t s; @@ -2379,7 +2378,7 @@ zpool_vdev_attach(zpool_handle_t *zhp, uint_t children; nvlist_t *config_root; libzfs_handle_t *hdl = zhp->zpool_hdl; - boolean_t rootpool = zpool_is_bootable(zhp); + boolean_t rootpool = pool_is_bootable(zhp); if (replacing) (void) snprintf(msg, sizeof (msg), dgettext(TEXT_DOMAIN, @@ -3011,26 +3010,6 @@ zpool_reguid(zpool_handle_t *zhp) } /* - * Reopen the pool. - */ -int -zpool_reopen(zpool_handle_t *zhp) -{ - zfs_cmd_t zc = { 0 }; - char msg[1024]; - libzfs_handle_t *hdl = zhp->zpool_hdl; - - (void) snprintf(msg, sizeof (msg), - dgettext(TEXT_DOMAIN, "cannot reopen '%s'"), - zhp->zpool_name); - - (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name)); - if (zfs_ioctl(hdl, ZFS_IOC_POOL_REOPEN, &zc) == 0) - return (0); - return (zpool_standard_error(hdl, errno, msg)); -} - -/* * Convert from a devid string to a path. */ static char * @@ -3663,7 +3642,7 @@ zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, char *name) if (zhp) { nvlist_t *nvroot; - if (zpool_is_bootable(zhp)) { + if (pool_is_bootable(zhp)) { zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "EFI labeled devices are not supported on root " "pools.")); diff --git a/usr/src/lib/libzfs/common/mapfile-vers b/usr/src/lib/libzfs/common/mapfile-vers index e913b50e64..e4a45d3ecb 100644 --- a/usr/src/lib/libzfs/common/mapfile-vers +++ b/usr/src/lib/libzfs/common/mapfile-vers @@ -20,7 +20,7 @@ # # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2011 Nexenta Systems, Inc. All rights reserved. -# Copyright (c) 2012 by Delphix. All rights reserved. +# Copyright (c) 2011 by Delphix. All rights reserved. # # MAPFILE HEADER START # @@ -193,7 +193,6 @@ SYMBOL_VERSION SUNWprivate_1.1 { zpool_import_props; zpool_import_status; zpool_in_use; - zpool_is_bootable; zpool_iter; zpool_label_disk; zpool_mount_datasets; @@ -209,7 +208,6 @@ SYMBOL_VERSION SUNWprivate_1.1 { zpool_read_label; zpool_refresh_stats; zpool_reguid; - zpool_reopen; zpool_scan; zpool_search_import; zpool_set_history_str; @@ -232,7 +230,6 @@ SYMBOL_VERSION SUNWprivate_1.1 { zprop_get_list; zprop_iter; zprop_print_one_property; - zprop_width; zvol_check_dump_config; zvol_volsize_to_reservation; local: |