]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: add ceph_ll_sync_inode 21109/head
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Mar 2018 16:25:36 +0000 (12:25 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 28 Mar 2018 22:40:35 +0000 (18:40 -0400)
commitdb08d0f820edcf6466ca312a8d5796f29578a638
treecd7a8eb9858f314995a2fd09794110c4030fb89f
parent9de584ee2bad0cae9696e4367510ca7de186f137
client: add ceph_ll_sync_inode

Ganesha's NFS SETATTR requests are expected to be synchronous, but
libcephfs can cache attribute changes if the client has the right caps.
An fsync after changing the attributes would flush the caps back to the
MDS, but we may not have an Fh in the context of a SETATTR request.

Add a way to sync a specific Inode, even when we don't have easy access
to a Fh.

Tracker: http://tracker.ceph.com/issues/23291
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 78628a5fde277927126d4d6e5d2957e7e6d42fb1)
src/client/Client.cc
src/client/Client.h
src/include/cephfs/libcephfs.h
src/libcephfs.cc