changeset 10778:48cb25c7b1aa onnv_126

6847686 NFSv4 named attribute file handle bug
author Jeff A. Smith <Jeff.A.Smith@Sun.Com>
date Mon, 12 Oct 2009 22:37:07 -0500
parents 66a375946c31
children 784626727024
files usr/src/uts/common/fs/nfs/nfs4_srv_readdir.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)) {