From: "J. Bruce Fields" Subject: Re: [PATCH 16/17] NFSD: Server implementation of MAC Labeling Date: Wed, 24 Apr 2013 19:04:28 -0400 Message-ID: <20130424230428.GT20275@fieldses.org> References: <1366834683-29075-1-git-send-email-SteveD@redhat.com> <1366834683-29075-17-git-send-email-SteveD@redhat.com> <20130424212827.GK20275@fieldses.org> <51785962.7080008@RedHat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Trond Myklebust , "J. Bruce Fields" , "David P. Quigley" , Linux NFS list , Linux FS devel list , Linux Security List , SELinux List To: Steve Dickson Return-path: Content-Disposition: inline In-Reply-To: <51785962.7080008-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Apr 24, 2013 at 06:14:58PM -0400, Steve Dickson wrote: > On 24/04/13 17:28, J. Bruce Fields wrote: > >> @@ -3231,11 +3340,13 @@ nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4 > >> > WRITE32(2); > >> > WRITE32(0); > >> > WRITE32(0); > >> > + WRITE32(0); > > Note that "2" above is the length of the bitmap field that follows. > > > >> > } > >> > else { > >> > WRITE32(2); > >> > WRITE32(setattr->sa_bmval[0]); > >> > WRITE32(setattr->sa_bmval[1]); > >> > + WRITE32(setattr->sa_bmval[2]); > > Ditto. > Right... I did miss that.... With that change the pynfs tests all pass this time. --b. diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 75b5b6d..7bbc698 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3310,13 +3310,13 @@ nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4 RESERVE_SPACE(12); if (nfserr) { - WRITE32(2); + WRITE32(3); WRITE32(0); WRITE32(0); WRITE32(0); } else { - WRITE32(2); + WRITE32(3); WRITE32(setattr->sa_bmval[0]); WRITE32(setattr->sa_bmval[1]); WRITE32(setattr->sa_bmval[2]); -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html