From 4f4a4faddea0fe45bf508e723c3a810c5190ed62 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Fri, 1 Feb 2013 15:13:04 -0500 Subject: nfsd: handle vfs_getattr errors in acl protocol We're currently ignoring errors from vfs_getattr. The correct thing to do is to do the stat in the main service procedure not in the response encoding. Reported-by: Al Viro Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro --- fs/nfsd/xdr3.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/nfsd/xdr3.h') diff --git a/fs/nfsd/xdr3.h b/fs/nfsd/xdr3.h index 7df980eb056..b6d5542a4ac 100644 --- a/fs/nfsd/xdr3.h +++ b/fs/nfsd/xdr3.h @@ -136,6 +136,7 @@ struct nfsd3_accessres { __be32 status; struct svc_fh fh; __u32 access; + struct kstat stat; }; struct nfsd3_readlinkres { @@ -225,6 +226,7 @@ struct nfsd3_getaclres { int mask; struct posix_acl *acl_access; struct posix_acl *acl_default; + struct kstat stat; }; /* dummy type for release */ -- cgit v1.2.3-70-g09d2