svn commit: r343624 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Sean Eric Fagan sef at FreeBSD.org
Thu Jan 31 22:08:03 UTC 2019


Author: sef
Date: Thu Jan 31 22:08:02 2019
New Revision: 343624
URL: https://svnweb.freebsd.org/changeset/base/343624

Log:
  MFC r342928:
     Change ZFS quotas to return EINVAL when not present (matches man page).
  
  Approved by:	mav
  Reviewed by:	markj
  PR:	234413
  Sponsored by:	iXsystems Inc
  Reported by:	Emrion <kmachine at free.fr>

Modified:
  stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Thu Jan 31 22:06:46 2019	(r343623)
+++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Thu Jan 31 22:08:02 2019	(r343624)
@@ -140,7 +140,7 @@ zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, 
 	quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj;
 
 	if (quotaobj == 0 || zfsvfs->z_replay) {
-		error = ENOENT;
+		error = EINVAL;
 		goto done;
 	}
 	(void)sprintf(buf, "%llx", (longlong_t)id);


More information about the svn-src-stable-11 mailing list