]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
afs: Populate and use client modification time
authorMarc Dionne <marc.dionne@auristor.com>
Thu, 16 Mar 2017 16:27:47 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:47 +0000 (16:27 +0000)
commitab94f5d0dd6fd82e7eeca5e7c8096eaea0a0261f
tree790e12f0dff3e1ca370e0245b810eacf0558b6b1
parent70af0e3bd65142f9e674961c975451638a7ce1d5
afs: Populate and use client modification time

The inode timestamps should be set from the client time
in the status received from the server, rather than the
server time which is meant for internal server use.

Set AFS_SET_MTIME and populate the mtime for operations
that take an input status, such as file/dir creation
and StoreData.  If an input time is not provided the
server will set the vnode times based on the current server
time.

In a situation where the server has some skew with the
client, this could lead to the client seeing a timestamp
in the future for a file that it just created or wrote.

Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c
fs/afs/inode.c