{
zfs_cmd_t zc = {"\0"};
char msg[1024];
- char *pathname;
nvlist_t *tgt;
boolean_t avail_spare, l2cache, islog;
libzfs_handle_t *hdl = zhp->zpool_hdl;
- int error;
if (flags & ZFS_ONLINE_EXPAND) {
(void) snprintf(msg, sizeof (msg),
if (avail_spare)
return (zfs_error(hdl, EZFS_ISSPARE, msg));
+#ifndef __FreeBSD__
+ char *pathname;
if ((flags & ZFS_ONLINE_EXPAND ||
zpool_get_prop_int(zhp, ZPOOL_PROP_AUTOEXPAND, NULL)) &&
nvlist_lookup_string(tgt, ZPOOL_CONFIG_PATH, &pathname) == 0) {
if (wholedisk) {
const char *fullpath = path;
char buf[MAXPATHLEN];
+ int error;
if (path[0] != '/') {
error = zfs_resolve_shortname(path, buf,
return (error);
}
}
+#endif
zc.zc_cookie = VDEV_STATE_ONLINE;
zc.zc_obj = flags;