diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-03 01:29:14 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-03 20:41:23 -0400 |
commit | 8c18f2052e756e7d5dea712fc6e7ed70c00e8a39 (patch) | |
tree | 66762e98af4caa4774b8229fb6fd007fccaab74e /fs/nfsd/nfs4xdr.c | |
parent | 7e70570647827345352cf6c17461c9fa166f570a (diff) |
nfsd41: SUPPATTR_EXCLCREAT attribute
Return bitmask for supported EXCLUSIVE4_1 create attributes.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 70296fedee41..533d14fec99e 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -2148,7 +2148,12 @@ out_acl: | |||
2148 | } | 2148 | } |
2149 | WRITE64(stat.ino); | 2149 | WRITE64(stat.ino); |
2150 | } | 2150 | } |
2151 | BUG_ON(bmval2); /* FIXME: not implemented yet */ | 2151 | if (bmval2 & FATTR4_WORD2_SUPPATTR_EXCLCREAT) { |
2152 | WRITE32(3); | ||
2153 | WRITE32(NFSD_SUPPATTR_EXCLCREAT_WORD0); | ||
2154 | WRITE32(NFSD_SUPPATTR_EXCLCREAT_WORD1); | ||
2155 | WRITE32(NFSD_SUPPATTR_EXCLCREAT_WORD2); | ||
2156 | } | ||
2152 | 2157 | ||
2153 | *attrlenp = htonl((char *)p - (char *)attrlenp - 4); | 2158 | *attrlenp = htonl((char *)p - (char *)attrlenp - 4); |
2154 | *countp = p - buffer; | 2159 | *countp = p - buffer; |