From bb963f1cfd0c29d3203584c421c00a566367047c Mon Sep 17 00:00:00 2001 From: maybee Date: Wed, 8 Mar 2006 07:42:20 -0800 Subject: 6355162 'zfs restore -d' should not succeed upon a volume 6368561 zfs panic at zfs:zfsctl_snapdir_inactive() 6374110 ZFS Panic in zfs_lookup() during snapshot creation --- usr/src/lib/libzfs/common/libzfs_dataset.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/src/lib/libzfs/common') diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c index 1e6e1d79ab..ee78f30610 100644 --- a/usr/src/lib/libzfs/common/libzfs_dataset.c +++ b/usr/src/lib/libzfs/common/libzfs_dataset.c @@ -2494,12 +2494,11 @@ zfs_restore(const char *tosnap, int isprefix, int verbose, int dryrun) zfs_handle_t *h; /* make sure prefix exists */ - h = zfs_open(tosnap, ZFS_TYPE_FILESYSTEM | - ZFS_TYPE_VOLUME); + h = zfs_open(tosnap, ZFS_TYPE_FILESYSTEM); if (h == NULL) { zfs_error(dgettext(TEXT_DOMAIN, "cannot restore: " - "filesystem %s does not exist"), + "%s is an invalid destination"), tosnap); return (-1); } -- cgit v1.2.3