From: Alex Elder <elder@ieee.org>
To: "Yan, Zheng" <zyan@redhat.com>, ceph-devel@vger.kernel.org
Cc: idryomov@gmail.com
Subject: Re: [PATCH 1/2] libceph: multiple filesystem support
Date: Fri, 8 Apr 2016 08:11:33 -0500 [thread overview]
Message-ID: <5707AE05.2020407@ieee.org> (raw)
In-Reply-To: <1460098226-69141-1-git-send-email-zyan@redhat.com>
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@redhat.com>
> ---
> 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
prev parent reply other threads:[~2016-04-08 13:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 6:50 [PATCH 1/2] libceph: multiple filesystem support Yan, Zheng
2016-04-08 6:50 ` [PATCH 2/2] ceph: " Yan, Zheng
2016-04-08 13:11 ` Alex Elder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5707AE05.2020407@ieee.org \
--to=elder@ieee.org \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=zyan@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox