All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joao Eduardo Luis <joao.luis@inktank.com>
To: Roald van Loon <roaldvanloon@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: Hi + question
Date: Sun, 25 Nov 2012 20:14:36 +0000	[thread overview]
Message-ID: <50B27C2C.9070002@inktank.com> (raw)
In-Reply-To: <CAN04cT5E3YCojDFGYa2xKMbUEbf2dvNnFdr322dCCaxcb-LPSA@mail.gmail.com>

On 11/25/2012 07:02 PM, Roald van Loon wrote:
> Like I said I'm toying away with ceph since an hour or two, and one of
> the things I noticed was that setting up my test env and getting to
> know ceph wasn't all that easy to do (gentoo btw). Things like ceph -h
> not showing the setcrushmap option, the 'ceph osd crush set' only
> returning '(22) Invalid argument' etc etc... So, I decided to take a
> real good look at the sources - any dev's number one source for
> documentation :-) There I... well.. kind of got lost. Cpp files,
> devops tools (python tools, shell scripts, perl scripts), fooclass,
> barclass ofcourse, valgrind supps, ... all in ~/src :-)
> 
> So I was curious if I was the only one finding this a bit confusing.
> If not, I was wondering if you have some clean-up subproject running
> somewhere. Might be a nice way for me to really familiarize myself
> with the code base.
> 
> Let me know,
> 
> Roald

Welcome Roald!

I must say I can relate to that feeling, from back when I started
working with ceph. But I guess that most of my early confusion was
basically due to not being aware where the stuff I wanted was located.

Nowadays I find the sources division fairly consistent with their
purpose. See, in src/ you will mostly find the daemons and the tools; on
mon/ you will find the files that are mostly mon-related, and same goes
for most of the other subdirectories (osd/, mds/, crush/,...). There are
a couple of exceptions, such as global/ or common/, but those by
themselves are pretty self-explanatory ;-)

To be honest, the only thing that keeps annoying me is that the build
process will end up leaving all the objects, libraries and binaries in
src/ after the build, but that's one of the things I've learned to live
with without trying to find an alternative (shame!).

If you need pointers on how to get familiarized with the code base, or
any doubts arise, just let us know and we'd be pleased to point you in
the right direction. You might also find it useful to join us on #ceph
at OFTC.

And, fwiw, the 'ceph' tool itself (which is on tools/, btw), won't
provide you the insight you're looking for. It mostly sends commands
directly to the monitor, and the monitor will send replies the tool will
output. What you are looking for, in this case, can be found on
mon/OSDMonitor.cc


Cheers,
  -Joao




      reply	other threads:[~2012-11-25 20:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-25 19:02 Hi + question Roald van Loon
2012-11-25 20:14 ` Joao Eduardo Luis [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=50B27C2C.9070002@inktank.com \
    --to=joao.luis@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=roaldvanloon@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.