All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org
Cc: "Roman Mamedov" <rm@romanrm.ru>,
	"Goffredo Baroncelli" <kreijack@gmail.com>,
	"Chris Mason" <chris.mason@fusionio.com>,
	"Hugo Mills" <hugo@carfax.org.uk>,
	"Sébastien Maury" <sebastien.maury@inserm.fr>,
	"Goffredo Baroncelli" <kreijack@inwind.it>
Subject: Re: [PATCH][BTRFS-PROGS] btrfs filesystem disk-usage
Date: Wed, 3 Oct 2012 11:14:17 +0200	[thread overview]
Message-ID: <201210031114.17663.Martin@lichtvoll.de> (raw)
In-Reply-To: <20121003123446.4e4db403@natsu>

Am Mittwoch, 3. Oktober 2012 schrieb Roman Mamedov:
> On Wed, 3 Oct 2012 08:22:06 +0200
> 
> Goffredo Baroncelli <kreijack@gmail.com> wrote:
> > On Wed, Oct 3, 2012 at 1:46 AM, Chris Mason
> > <chris.mason@fusionio.com> wrote: [...]
> > 
> > > I like it, thanks.  Could you please update btrfs fi df to show
> > > this instead of adding a new command though?
> > 
> > Hi Chris,
> > no problem to update the patches, however I have one suggestion:
> > - leave "btrfs fi df" as is to no break any script (if any) which
> > would uses it. Hide it from the help and deprecating it in the man
> > page. This because the output is very different.
> > - renaming "btrfs fi disk-usage" in "btrfs fi disk-free", which make
> > sense.
> 
> 1) btrfs is still labeled experimental, so no script author should have
> seriously relied on utilities text output to stay unchanged long-term;
> personally I don't see modifying it (especially not in some superficial
> way, but as a part of major improvement) to be a problem;

I am not fond of parsing command output unless using specific options that 
some commands provide to just provide one value. I.e. if the command 
provides options specifically for scripts parsing output. And if I do it 
nonetheless, I am not surprised when it breaks at a time, like with find -
ls which now reports decimal part of file modification timestamps.

I think having a library with a function to get those values via a defined 
API would be way to go. Or querying such stuff via udisks or whatever.

I am very happy to see better size reporting.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

  parent reply	other threads:[~2012-10-03  9:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02 18:36 [PATCH][BTRFS-PROGS] btrfs filesystem disk-usage Goffredo Baroncelli
2012-10-02 18:36 ` [PATCH 1/2] Add btrfs filesystem disk-usage command Goffredo Baroncelli
2012-10-02 18:36 ` [PATCH 2/2] Update help page Goffredo Baroncelli
2012-10-02 23:46 ` [PATCH][BTRFS-PROGS] btrfs filesystem disk-usage Chris Mason
2012-10-03  6:22   ` Goffredo Baroncelli
2012-10-03  6:34     ` Roman Mamedov
2012-10-03  6:40       ` Sébastien Maury
2012-10-03  9:14       ` Martin Steigerwald [this message]
2012-10-03 11:22     ` Chris Mason

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=201210031114.17663.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=chris.mason@fusionio.com \
    --cc=hugo@carfax.org.uk \
    --cc=kreijack@gmail.com \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=rm@romanrm.ru \
    --cc=sebastien.maury@inserm.fr \
    /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.