6847686 NFSv4 named attribute file handle bug onnv_126
authorJeff A. Smith <Jeff.A.Smith@Sun.Com>
Mon, 12 Oct 2009 22:37:07 -0500
changeset 10778 48cb25c7b1aa
parent 10777 66a375946c31
child 10779 784626727024
6847686 NFSv4 named attribute file handle bug
usr/src/uts/common/fs/nfs/nfs4_srv_readdir.c
--- a/usr/src/uts/common/fs/nfs/nfs4_srv_readdir.c	Tue Oct 13 11:35:11 2009 +0800
+++ b/usr/src/uts/common/fs/nfs/nfs4_srv_readdir.c	Mon Oct 12 22:37:07 2009 -0500
@@ -1035,6 +1035,10 @@
 					(void) makefh4((nfs_fh4 *)&fh, vp,
 					    (newexi ? newexi : cs->exi));
 
+					if (dvp->v_flag & V_XATTRDIR)
+						set_fh4_flag((nfs_fh4 *)&fh,
+						    FH4_NAMEDATTR);
+
 					if (!xdr_inline_encode_nfs_fh4(
 					    &ptr, ptr_redzone,
 					    (nfs_fh4_fmt_t *)fh.val)) {