diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-27 13:48:18 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-01 15:42:43 -0400 |
commit | 3a1556e8662cc425c433b463fcdae138908ca467 (patch) | |
tree | c4c16f7e33612c3ce3b504e9eedbf336d0c4bf20 /fs/nfs/nfs2xdr.c | |
parent | 6a4506c0b56889aaa15bcf50b3c75f46a8d0a3bd (diff) |
NFSv2/v3: Simulate the change attribute
Use the ctime to simulate a change attribute for NFSv2 and NFSv3.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
-rw-r--r-- | fs/nfs/nfs2xdr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c index 1f56000fabbd..c99008e9d8a4 100644 --- a/fs/nfs/nfs2xdr.c +++ b/fs/nfs/nfs2xdr.c | |||
@@ -313,6 +313,8 @@ static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr) | |||
313 | p = xdr_decode_time(p, &fattr->atime); | 313 | p = xdr_decode_time(p, &fattr->atime); |
314 | p = xdr_decode_time(p, &fattr->mtime); | 314 | p = xdr_decode_time(p, &fattr->mtime); |
315 | xdr_decode_time(p, &fattr->ctime); | 315 | xdr_decode_time(p, &fattr->ctime); |
316 | fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); | ||
317 | |||
316 | return 0; | 318 | return 0; |
317 | out_overflow: | 319 | out_overflow: |
318 | print_overflow_msg(__func__, xdr); | 320 | print_overflow_msg(__func__, xdr); |