]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: add ceph_ll_sync_inode 20913/head
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Mar 2018 16:25:36 +0000 (12:25 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 15 Mar 2018 12:22:45 +0000 (08:22 -0400)
commit78628a5fde277927126d4d6e5d2957e7e6d42fb1
treeea9d5027fb3e593e29222e26de4b72dd125ff388
parent78022e13e7f1c786929a2aa74f45ed1dddb9134c
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>
src/client/Client.cc
src/client/Client.h
src/include/cephfs/libcephfs.h
src/libcephfs.cc