]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
client/mds: add flags field to MClientCaps
authorJeff Layton <jlayton@redhat.com>
Wed, 9 Nov 2016 14:36:06 +0000 (09:36 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 9 Nov 2016 14:36:06 +0000 (09:36 -0500)
commit8588768075d63aa3ba5c3a49b945581db66003cd
tree2c53cd56fe9794e740c047a38d7997b0161a340f
parentf785f55b68ac121fcaddc93471432197a1a0dd3d
client/mds: add flags field to MClientCaps

...and encode/decode it appropriately.

The idea of this field is to be advisory, to allow the MDS to handle
things differently if it so chooses. We deliberately do _not_ offer
any firm policy here.

We start with a flag that tells the MDS when an application may end up
blocking on the result of this cap request.

A new "sync" arg is added to send_cap, and we set the new flag in the
cap request based on its value. For now, the callers all set the sync
boolean to false everywhere to preserve the existing behavior.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h
src/messages/MClientCaps.h