svn commit: r249100 - stable/8/cddl/contrib/opensolaris/cmd/zpool

Xin LI delphij at FreeBSD.org
Thu Apr 4 17:10:37 UTC 2013


Author: delphij
Date: Thu Apr  4 17:10:36 2013
New Revision: 249100
URL: http://svnweb.freebsd.org/changeset/base/249100

Log:
  Per Matthew Ahrens, version 5000 should not be exposed to user and there is
  a problem with my first revision, namely, specifying -d -o feature at ...=enable
  will still bail out with:
  
      'feature@' and 'version' properties cannot be specified together.
  
  Because zpool create -o version=5000 will not likely be supported by other
  ZFS implementations (including ours on -CURRENT and 9-STABLE), remove the
  hack that make that work.  Users who want feature flags support can still
  do an explicit 'zpool upgrade' after creating a pool.

Modified:
  stable/8/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c

Modified: stable/8/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
==============================================================================
--- stable/8/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Thu Apr  4 17:08:49 2013	(r249099)
+++ stable/8/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Thu Apr  4 17:10:36 2013	(r249100)
@@ -865,8 +865,7 @@ zpool_do_create(int argc, char **argv)
 		    ZPOOL_PROP_VERSION), "28", &props, B_TRUE))
 			goto errout;
 		enable_all_pool_feat = B_FALSE;
-	} else if (enable_all_pool_feat)
-		nvlist_remove_all(props, zpool_prop_to_name(ZPOOL_PROP_VERSION));
+	}
 #endif /* __FreeBSD__ */
 
 	argc -= optind;


More information about the svn-src-stable mailing list