From: wchen <wchen@tnsoft.com.cn>
To: Gregory Farnum <gregf@hq.newdream.net>
Cc: Sage Weil <sage@newdream.net>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: what's the exact meaning of cap?
Date: Thu, 2 Dec 2010 09:41:57 +0800 [thread overview]
Message-ID: <1291254117.2397.17.camel@node1> (raw)
In-Reply-To: <AANLkTim=08MJ_0tcasrJZuqrrSVwB9tB5MPHLJOjx5_W@mail.gmail.com>
hi, Farnum,
Thank you very much! :-)
On Thu, 2010-12-02 at 00:11 +0800, Gregory Farnum wrote:
> On Tue, Nov 30, 2010 at 7:50 PM, wchen <wchen@tnsoft.com.cn> wrote:
> > hi, Sage,
> >
> > I'm reading the source code of ceph. Recently I'm very confused with
> > struct InodeCap's issued, implemented, wanted fields. I just have a
> > preliminary understanding of them, but what's the exact difference
> > between them? there are lots of code to reflect the relation between
> > them. Can you explain it for me? or any documents about it?
> Unfortunately we don't have a lot of documentation about the source
> code itself. Sage's thesis (which is available on the website) is the
> best resource, and does describe caps some.
>
> Briefly, caps are short for capabilities. They are issued by the MDS
> to clients to describe what the client is allowed to do with an inode
> and its associated file. There are capabilities to, for instance, let
> the client buffer writes, cache reads, and adjust certain kinds of
> metadata (mtime, et al).
> The wanted capabilities are caps the client wants but doesn't have.
> Issued caps are ones the client has been granted, and (IIRC)
> implemented caps are a subset of the issued caps describing which caps
> the client has actually made use of. It's useful for determining
> whether the client has dirty metadata and whatnot. :)
> -Greg
--
best regards,
Kevin Chen (陈巍)
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-12-02 1:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 6:33 [PATCH] Expose Ceph data location information to Hadoop Noah Watkins
2010-11-30 16:59 ` Sage Weil
2010-11-30 17:17 ` Noah Watkins
2010-11-30 17:28 ` Gregory Farnum
2010-11-30 17:31 ` Noah Watkins
2010-12-01 3:50 ` what's the exact meaning of cap? wchen
2010-12-01 16:11 ` Gregory Farnum
2010-12-02 1:41 ` wchen [this message]
2010-11-30 17:38 ` [PATCH] Expose Ceph data location information to Hadoop Alex Nelson
2010-11-30 17:50 ` Noah Watkins
2010-11-30 18:10 ` Sage Weil
2010-11-30 18:32 ` Noah Watkins
2010-11-30 19:01 ` Sage Weil
2010-11-30 19:04 ` Noah Watkins
2010-11-30 19:41 ` Alex Nelson
[not found] ` <9DEABEC1-48A1-466D-9942-C0D8A199EF96@soe.ucsc.edu>
2010-11-30 20:25 ` Joe Buck
2010-11-30 21:39 ` Noah Watkins
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=1291254117.2397.17.camel@node1 \
--to=wchen@tnsoft.com.cn \
--cc=ceph-devel@vger.kernel.org \
--cc=gregf@hq.newdream.net \
--cc=sage@newdream.net \
/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