]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/client: bump the change_attr at the appropriate time for files
authorJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 11:16:40 +0000 (07:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 14:33:46 +0000 (10:33 -0400)
commitb77605f9d0b4ab7de92523cefeefae91c971baea
tree2072b23d18536e84c9582151d9e26907c16594be
parent902566840bedba0b3115e704291a3f1131b1904f
mds/client: bump the change_attr at the appropriate time for files

The semantics for a change_attr are that it should be incremented
whenever there is a change to the ctime in the inode. Add those
increments for the simple case of regular files. Directories however can
be fragmented so we'll need to do something more elaborate there.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/mds/Server.cc