All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Richard Weinberger <richard@nod.at>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] flash_eraseall: Remove warning
Date: Wed, 27 Apr 2016 10:21:01 +0200	[thread overview]
Message-ID: <20160427102101.13c6d017@bbrezillon> (raw)
In-Reply-To: <1461701022-21023-1-git-send-email-richard@nod.at>

On Tue, 26 Apr 2016 22:03:42 +0200
Richard Weinberger <richard@nod.at> wrote:

> Well, flash_erase <mtddev> 0 0 is the same as flash_eraseall <mtddev>.
> But flash_eraseall is still more handy to use.
> Let's keep flash_eraseall as short cut and don't force users to
> use a less handy user interface.

Hm, I'm not convinced by this change. Aren't we trying to make people
switch to flash_erase instead of using flash_eraseall.
If you want to make flash_erase more easy to use, you can always erase
the whole partition if only <mtddev> is passed in arguments, which IMO
would be clearer than having to pass 0 0.

> 
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
>  misc-utils/flash_eraseall | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/misc-utils/flash_eraseall b/misc-utils/flash_eraseall
> index c5539b3..65a85cc 100755
> --- a/misc-utils/flash_eraseall
> +++ b/misc-utils/flash_eraseall
> @@ -1,4 +1,3 @@
>  #!/bin/sh
> -echo "${0##*/} has been replaced by \`flash_erase <mtddev> 0 0\`; please use it" 1>&2
>  [ $# -ne 0 ] && set -- "$@" 0 0
>  exec flash_erase "$@"



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2016-04-27  8:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26 20:03 [PATCH] flash_eraseall: Remove warning Richard Weinberger
2016-04-27  8:21 ` Boris Brezillon [this message]
2016-04-27  8:27   ` Richard Weinberger
2016-04-27  8:29     ` Boris Brezillon
2016-04-27 16:01       ` Brian Norris

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=20160427102101.13c6d017@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    /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.