On 04/08/2016 01:50 AM, Yan, Zheng wrote: > When accessing non-default filesystem, cephfs client subscribes to > "mdsmap.<id>". To support this, we can't use number to stand for > map name. Instead, we need to pass map name to ceph_monc_want_map(). > Map name caller provided is saved in monc->subs[] and later encoded > in MON_SUBSCRIBE message. > > Signed-off-by: "Yan, Zheng" <zyan@xxxxxxxxxx> > --- > include/linux/ceph/mon_client.h | 23 +++++------ > net/ceph/debugfs.c | 2 +- > net/ceph/mon_client.c | 87 +++++++++++++++++++++++++---------------- > 3 files changed, 67 insertions(+), 45 deletions(-) > > diff --git a/include/linux/ceph/mon_client.h b/include/linux/ceph/mon_client.h > index e230e7e..4aa8b3c 100644 > --- a/include/linux/ceph/mon_client.h > +++ b/include/linux/ceph/mon_client.h > @@ -55,6 +55,13 @@ struct ceph_mon_generic_request { > struct ceph_msg *reply; /* and reply */ > }; > > +/* may subscribe to mdsmap.<int> */ > +#define CEPH_SUB_MAP_MAXLEN 32 > + > +#define CEPH_SUB_MONMAP "mommap" s/mom/mon/ That's all; this isn't a "real" review. -Alex -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html