]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
MDS: allow the MDS to accept requests to set the btime
authorJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 11:16:41 +0000 (07:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 14:33:46 +0000 (10:33 -0400)
commit2bdc8727f6179d4c940a7ddd5dba92665405e612
treea498b1ecefdf172e489df7c7b7bf2c04f82ffe2c
parent3148b67bd77732ce66fc7f0f9c80c44f25c08466
MDS: allow the MDS to accept requests to set the btime

Unfortunately, the only option here is to rev the MClientRequest
version as the ceph_mds_request_head is not currently versioned. Add a
new ceph_mds_request_head, which contains a new ceph_mds_request_args
structure.

The new ceph_mds_request_head is now versioned via a __le16
at the beginning of it, and then the args structure is expanded to hold
the btime. When we get a legacy ceph_mds_request_head, we just set the
new fields to zero. When encoding a reply to a legacy client, we simply
don't encode the version in the head, or the btime in the setattr union
member.

Reluctantly-Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/MetaRequest.h
src/include/ceph_fs.h
src/include/types.h
src/mds/Server.cc
src/messages/MClientRequest.h