LKML Archive on
help / color / mirror / Atom feed
From: Greg KH <>
To: Mark Fasheh <>,
	Linus Torvalds <>,
	Andrew Morton <>,,
Subject: Re: [git pull] Fix recent Ocfs2 breakage
Date: Tue, 29 Jan 2008 10:54:48 -0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Mon, Jan 28, 2008 at 11:44:02PM -0800, Joel Becker wrote:
> On Mon, Jan 28, 2008 at 09:08:04PM -0800, Greg KH wrote:
> > And please please please please document stuff like this, and all of the
> > different files you have in this subdirectory in Documentation/ABI/ so
> 	Huh, I didn't know Documentation/ABI existed.  That would
> certainly help in the future.

Yeah, not many people know about it, despite being present for over a
year now :(

So I'm starting to poke people to fix this.  I'd like to see all new
sysfs attributes (and syscalls and other stuff that is an ABI) be
documented here.  As well as creating the information for the ABI we
currently have, but I know that will take longer.

> > those of us who are trying to figure out the code (and there's still
> > parts of the kobject usage I'm pretty sure is not correct) can have a
> 	ocfs2 kobject usage, or other folks'?  If there's anything in
> the ocfs2 usage that you are unsure of, feel free to ask!

Ok, great.  Here's a few questions:

  - ocfs2/cluster/sys.c creates a single kset, o2cb, that is in
    /sys/o2cb (and I had moved it to /sys/fs/o2cb/)  In that directory
    it seems there is only 1 file, O2NM_API_VERSION.  Is that really all
    that goes into that directory?  If so, this can be cleaned up even
    further and only a single kobject is needed, a kset is overkill.

  - that kset is then passed to the mlog_sys_init() file to chain
    another subdirectory off of this.  Here's where the meat of the
    sysfs files are.  You use a custom kset and show/store operations to
    describe some bit fields?  You never use the kobject here, but only
    go off of the name of the attribute file, which is fine.  But again,
    using a ktype/kset is way overkill for this.  It can be all
    simplified to only have 1 kobject for the directory, and then the
    individual attributes can be a kobj_attribute.

Actually that wasn't too bad.  It was gfs2 that I was thinking about
with regard to totally strange kobject abuse, I'll go poke those
developers about it while I'm remembering :)


greg k-h

  reply	other threads:[~2008-01-29 18:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29  3:33 Mark Fasheh
2008-01-29  5:08 ` Greg KH
2008-01-29  5:58   ` Mark Fasheh
2008-01-29 17:50     ` Greg KH
2008-01-29  7:44   ` Joel Becker
2008-01-29 18:54     ` Greg KH [this message]
2008-01-29 22:18       ` Joel Becker
2008-01-29 22:22         ` Joel Becker

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [git pull] Fix recent Ocfs2 breakage' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).