diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 14:45:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-25 14:45:40 -0400 |
| commit | cf2ec150fc5f59dbf2260863225c79aa0cfc46af (patch) | |
| tree | bd55070b0bc2f8597c35b575374bd0cd2f2d14d6 /fs/nfsd/nfs4xdr.c | |
| parent | 9f4def9ae4772ea3da5e2359de698742ebae53b5 (diff) | |
| parent | e36cd4a2873c398ba188f16e4087cce7f00a1506 (diff) | |
Merge branch 'for-linus' of git://linux-nfs.org/~bfields/linux
* 'for-linus' of git://linux-nfs.org/~bfields/linux:
nfsd: don't allow setting ctime over v4
Update to NFS/RDMA documentation
locks: don't call ->copy_lock methods on return of conflicting locks
lockd: unlock lockd locks held for a certain filesystem
lockd: unlock lockd locks associated with a given server ip
leases: remove unneeded variable from fcntl_setlease().
leases: move lock allocation earlier in generic_setlease()
leases: when unlocking, skip locking-related steps
leases: fix a return-value mixup
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
| -rw-r--r-- | fs/nfsd/nfs4xdr.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 1ba7ad981935..c513bbdf2d36 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
| @@ -376,20 +376,6 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval, struct iattr *ia | |||
| 376 | goto xdr_error; | 376 | goto xdr_error; |
| 377 | } | 377 | } |
| 378 | } | 378 | } |
| 379 | if (bmval[1] & FATTR4_WORD1_TIME_METADATA) { | ||
| 380 | /* We require the high 32 bits of 'seconds' to be 0, and we ignore | ||
| 381 | all 32 bits of 'nseconds'. */ | ||
| 382 | READ_BUF(12); | ||
| 383 | len += 12; | ||
| 384 | READ32(dummy32); | ||
| 385 | if (dummy32) | ||
| 386 | return nfserr_inval; | ||
| 387 | READ32(iattr->ia_ctime.tv_sec); | ||
| 388 | READ32(iattr->ia_ctime.tv_nsec); | ||
| 389 | if (iattr->ia_ctime.tv_nsec >= (u32)1000000000) | ||
| 390 | return nfserr_inval; | ||
| 391 | iattr->ia_valid |= ATTR_CTIME; | ||
| 392 | } | ||
| 393 | if (bmval[1] & FATTR4_WORD1_TIME_MODIFY_SET) { | 379 | if (bmval[1] & FATTR4_WORD1_TIME_MODIFY_SET) { |
| 394 | READ_BUF(4); | 380 | READ_BUF(4); |
| 395 | len += 4; | 381 | len += 4; |
