Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Apr 2013 17:10:36 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r249100 - stable/8/cddl/contrib/opensolaris/cmd/zpool
Message-ID:  <201304041710.r34HAa9w031182@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@...=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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304041710.r34HAa9w031182>