usr/src/cmd/zoneadm/zfs.c
changeset 14222 c3f8a4690b1f
parent 13727 a0cbef703c12
--- a/usr/src/cmd/zoneadm/zfs.c	Thu Nov 10 09:09:20 2011 +0000
+++ b/usr/src/cmd/zoneadm/zfs.c	Mon Jun 11 18:23:37 2012 +0000
@@ -22,6 +22,7 @@
 /*
  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  */
 
 /*
@@ -71,34 +72,6 @@
 } clone_data_t;
 
 /*
- * A ZFS file system iterator call-back function which is used to validate
- * datasets imported into the zone.
- */
-/* ARGSUSED */
-static int
-check_zvol(zfs_handle_t *zhp, void *unused)
-{
-	int ret;
-
-	if (zfs_get_type(zhp) == ZFS_TYPE_VOLUME) {
-		/*
-		 * TRANSLATION_NOTE
-		 * zfs and dataset are literals that should not be translated.
-		 */
-		(void) fprintf(stderr, gettext("cannot verify zfs dataset %s: "
-		    "volumes cannot be specified as a zone dataset resource\n"),
-		    zfs_get_name(zhp));
-		ret = -1;
-	} else {
-		ret = zfs_iter_children(zhp, check_zvol, NULL);
-	}
-
-	zfs_close(zhp);
-
-	return (ret);
-}
-
-/*
  * A ZFS file system iterator call-back function which returns the
  * zfs_handle_t for a ZFS file system on the specified mount point.
  */
@@ -1259,17 +1232,6 @@
 			continue;
 		}
 
-		if (zfs_get_type(zhp) == ZFS_TYPE_VOLUME) {
-			(void) fprintf(stderr, gettext("cannot verify zfs "
-			    "dataset %s: volumes cannot be specified as a "
-			    "zone dataset resource\n"),
-			    dstab.zone_dataset_name);
-			return_code = Z_ERR;
-		}
-
-		if (zfs_iter_children(zhp, check_zvol, NULL) != 0)
-			return_code = Z_ERR;
-
 		zfs_close(zhp);
 	}
 	(void) zonecfg_enddsent(handle);