svn commit: r297087 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Alexander Motin mav at FreeBSD.org
Sun Mar 20 23:20:17 UTC 2016


Author: mav
Date: Sun Mar 20 23:20:16 2016
New Revision: 297087
URL: https://svnweb.freebsd.org/changeset/base/297087

Log:
  MFC r290266 (by avg):
  zfs: allow the lookup of extended attributes of an unlinked file
  
  That's required for extattr_get_fd(2) and the like to work properly.
  
  PR:		203201

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

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c	Sun Mar 20 21:48:26 2016	(r297086)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c	Sun Mar 20 23:20:16 2016	(r297087)
@@ -222,7 +222,7 @@ zfs_dirent_lock(zfs_dirlock_t **dlpp, zn
 
 	mutex_enter(&dzp->z_lock);
 	for (;;) {
-		if (dzp->z_unlinked) {
+		if (dzp->z_unlinked && !(flag & ZXATTR)) {
 			mutex_exit(&dzp->z_lock);
 			if (!(flag & ZHAVELOCK))
 				rw_exit(&dzp->z_name_lock);


More information about the svn-src-all mailing list