ceph: message versioning fixes
authorJohn Spray <john.spray@redhat.com>
Thu, 30 Oct 2014 17:15:26 +0000 (17:15 +0000)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:09:51 +0000 (20:09 +0300)
commit7cfa0313d0dc52e4da9f196f8ad5bfdf266fc1fb
tree528faa6aa740a07deb3e0ecabc8202dc7a9c815d
parentd4e1a4e0db439209672f9803f9f23b0123fb09aa
ceph: message versioning fixes

There were two places we were assigning version in host byte order
instead of network byte order.

Also in MSG_CLIENT_SESSION we weren't setting compat_version in the
header to reflect continued compatability with older MDSs.

Fixes: http://tracker.ceph.com/issues/9945
Signed-off-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
fs/ceph/mds_client.c