All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 11/16] GFS: mount and tuning options
Date: Mon, 10 Oct 2005 16:14:29 -0500	[thread overview]
Message-ID: <20051010211429.GA25691@redhat.com> (raw)
In-Reply-To: <20051010210108.GA13457@kroah.com>

On Mon, Oct 10, 2005 at 02:01:08PM -0700, Greg KH wrote:
> On Mon, Oct 10, 2005 at 12:10:52PM -0500, David Teigland wrote:
> > +static ssize_t statfs_show(struct gfs2_sbd *sdp, char *buf)
> > +{
> > +	struct gfs2_statfs_change sc;
> > +	int rv;
> > +
> > +	if (gfs2_tune_get(sdp, gt_statfs_slow))
> > +		rv = gfs2_statfs_slow(sdp, &sc);
> > +	else
> > +		rv = gfs2_statfs_i(sdp, &sc);
> > +
> > +	if (rv)
> > +		goto out;
> > +
> > +	rv += sprintf(buf + rv, "bsize %u\n", sdp->sd_sb.sb_bsize);
> > +	rv += sprintf(buf + rv, "total %lld\n", sc.sc_total);
> > +	rv += sprintf(buf + rv, "free %lld\n", sc.sc_free);
> > +	rv += sprintf(buf + rv, "dinodes %lld\n", sc.sc_dinodes);
> 
> No, 1 value per sysfs file please.

I'm aware of that rule and have followed it everywhere else.  This is a
special case where the one statfs produces three results.

> > +/* FIXME: this should go under fs_subsys, /sys/fs/ */
> 
> Then put it there, there is a patch floating around that creates
> /sys/fs/ but I haven't applied it as I need a user for it before I do.
> Feel free to add that patch to your patch series.

OK, in the meantime, here it is:
  http://marc.theaimsgroup.com/?l=linux-fsdevel&m=112548673418028&w=2

Dave


  reply	other threads:[~2005-10-10 21:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-10 17:10 [PATCH 11/16] GFS: mount and tuning options David Teigland
2005-10-10 21:01 ` Greg KH
2005-10-10 21:14   ` David Teigland [this message]
2005-10-10 21:19     ` Greg KH
2005-10-10 21:30       ` Al Viro
2005-10-10 22:22         ` David Teigland
2005-10-10 21:37 ` Al Viro
2005-10-11 21:38   ` David Teigland
2005-10-12  8:43     ` Jan Hudec
2005-10-12 16:12       ` David Teigland

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=20051010211429.GA25691@redhat.com \
    --to=teigland@redhat.com \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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.