linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@inwind.it>
To: Ilya Dryomov <idryomov@gmail.com>, Chris Mason <chris.mason@oracle.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] Btrfs-progs: restriper interface
Date: Sat, 7 Jan 2012 13:48:44 +0100	[thread overview]
Message-ID: <201201071348.45052.kreijack@inwind.it> (raw)
In-Reply-To: <1325860680-19403-1-git-send-email-idryomov@gmail.com>

On Friday, 06 January, 2012 15:37:59 Ilya Dryomov wrote:
> Hello,
> 
> This is an update of userspace restriper interface.  The main change is
> that restriper commands have been moved under balance prefix.  So now we
> have:
> 
> btrfs fi balance start
> btrfs fi balance pause
> btrfs fi balance cancel
> btrfs fi balance resume
> btrfs fi balance status
> 
> This breaks btrfs-progs backwards compatibility: to get the old
> balancing behaviour you have to call 'btrfs fi balance start' instead of
> 'btrfs fi balance'.  This is caused by stupidity of the core sub-command
> matcher.

Hi Ilya,

what you called "stupidity of the core sub-command matcher" was a design 
decision.

If you make "btrfs balance" a both command and a prefix you (my opinion) 
confuses a possible user and complex the interface:

for example what means:

# btrfs filesystem balance pause

when 'pause' (and all the valid abbreviation like "pa" or "p" ) is a valid 
mount point ?

My opinion, in order to not break the backward compatibility is to add another 
subcommand family, like 'restriper' or whatsoever, then deprecating the 
'balance' sub command.

Finally, please could you update the man page too ?

BR
G.Baroncelli

Disclaimer, I was the author of the sub-command matcher.

-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

  parent reply	other threads:[~2012-01-07 12:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 14:37 [PATCH] Btrfs-progs: restriper interface Ilya Dryomov
2012-01-06 14:38 ` [PATCH] Btrfs-progs: add restriper commands Ilya Dryomov
2012-01-07 12:48 ` Goffredo Baroncelli [this message]
2012-01-07 14:25   ` [PATCH] Btrfs-progs: restriper interface Ilya Dryomov
2012-01-07 14:32     ` Roman Mamedov
2012-01-07 15:14       ` Ilya Dryomov
2012-01-07 16:49         ` Goffredo Baroncelli
2012-01-07 17:21           ` Goffredo Baroncelli

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=201201071348.45052.kreijack@inwind.it \
    --to=kreijack@inwind.it \
    --cc=chris.mason@oracle.com \
    --cc=idryomov@gmail.com \
    --cc=linux-btrfs@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 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).