summaryrefslogtreecommitdiff
path: root/usr/src/lib/libzfs/common/libzfs_util.c
diff options
context:
space:
mode:
authorEric Schrock <Eric.Schrock@Sun.COM>2009-10-20 09:30:12 -0700
committerEric Schrock <Eric.Schrock@Sun.COM>2009-10-20 09:30:12 -0700
commit069f55e237020c4a4907b235fc38fafc6442ce94 (patch)
tree950064f3e890e9e00d47747c94ca43a77e03231f /usr/src/lib/libzfs/common/libzfs_util.c
parent4aed9999406f759bcff27cbee0f04d1893a5ca3d (diff)
downloadillumos-joyent-069f55e237020c4a4907b235fc38fafc6442ce94.tar.gz
6889826 ZFS retire agent should be able to repair pools
6889827 ZFS retire agent needs to do a better job of staying in sync 6889824 infrastructure for ZFS notification of external faults 6889808 ZFS DE infrastructure to handle FRUs 6889814 ZFS DE should clear cases when vdevs and pools are removed 6889828 libzfs changes to allow spare offline/online 6889830 zpool_iter() should be tolerant of recursive invocation 6891150 want versions of topo_fmri_str{cmp,hash} that ignore auth info
Diffstat (limited to 'usr/src/lib/libzfs/common/libzfs_util.c')
-rw-r--r--usr/src/lib/libzfs/common/libzfs_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_util.c b/usr/src/lib/libzfs/common/libzfs_util.c
index 52cd8c8fea..fd07a7e20f 100644
--- a/usr/src/lib/libzfs/common/libzfs_util.c
+++ b/usr/src/lib/libzfs/common/libzfs_util.c
@@ -608,6 +608,7 @@ libzfs_fini(libzfs_handle_t *hdl)
if (hdl->libzfs_log_str)
(void) free(hdl->libzfs_log_str);
zpool_free_handles(hdl);
+ libzfs_fru_clear(hdl, B_TRUE);
namespace_clear(hdl);
libzfs_mnttab_fini(hdl);
free(hdl);
@@ -1035,7 +1036,7 @@ zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num)
return (-1);
}
- /* Rely on stroull() to process the numeric portion. */
+ /* Rely on strtoull() to process the numeric portion. */
errno = 0;
*num = strtoull(value, &end, 10);