Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2017 08:59:11 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r323751 - stable/11/cddl/contrib/opensolaris/lib/libzfs/common
Message-ID:  <201709190859.v8J8xBs4047690@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Sep 19 08:59:11 2017
New Revision: 323751
URL: https://svnweb.freebsd.org/changeset/base/323751

Log:
  MFC r322218: MFV r322217: 8418 zfs_prop_get_table() call in zfs_validate_name() is a no-op
  
  illumos/illumos-gate@e09ba01dcda5e24964b8632718777b39166d86e4
  https://github.com/illumos/illumos-gate/commit/e09ba01dcda5e24964b8632718777b39166d86e4
  
  https://www.illumos.org/issues/8418
    The following line in zfs_validate_name() is just a no-op and it
    should be removed:
        108    (void) zfs_prop_get_table();
  
  Reviewed by: Vitaliy Gusev <gusev.vitaliy@icloud.com>
  Approved by: Matthew Ahrens <mahrens@delphix.com>
  Author: Marcel Telka <marcel@telka.sk>

Modified:
  stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
==============================================================================
--- stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Tue Sep 19 08:57:19 2017	(r323750)
+++ stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Tue Sep 19 08:59:11 2017	(r323751)
@@ -103,7 +103,6 @@ zfs_validate_name(libzfs_handle_t *hdl, const char *pa
 	namecheck_err_t why;
 	char what;
 
-	(void) zfs_prop_get_table();
 	if (entity_namecheck(path, &why, &what) != 0) {
 		if (hdl != NULL) {
 			switch (why) {



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