diff mbox

btrfs-progs: usage should match what is coded

Message ID 1362132602-29501-2-git-send-email-anand.jain@oracle.com (mailing list archive)
State Under Review, archived
Headers show

Commit Message

Anand Jain March 1, 2013, 10:10 a.m. UTC
Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 cmds-restore.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Eric Sandeen March 1, 2013, 5:47 p.m. UTC | #1
On 3/1/13 4:10 AM, Anand Jain wrote:
> Signed-off-by: Anand Jain <anand.jain@oracle.com>

Revieed-by: Eric Sandeen <sandeen@redhat.com>

But the curious side of me wonders how it got this way.

commit e43cc461550130494194201037590a2b1f0f6880
Author: Ian Kumlien <pomac@demius.net>
Date:   Fri Feb 8 01:37:02 2013 +0100

    Btrfs-progs: add restore command to btrfs

added the usage text below, but didn't change the getopt
or add code to handle them.

No idea where it came from, it wasn't in the standalone
restore either.  *shrug*  I guess nothing got lost.

-Eric

> ---
>  cmds-restore.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/cmds-restore.c b/cmds-restore.c
> index 9385042..4a14f93 100644
> --- a/cmds-restore.c
> +++ b/cmds-restore.c
> @@ -763,10 +763,6 @@ const char * const cmd_restore_usage[] = {
>  	"-f <offset>     filesystem location",
>  	"-u <block>      super mirror",
>  	"-d              find dir",
> -	"-r <num>        root objectid",
> -	"-c              ignore case in regular expression",
> -	"-m <regexp>     regular expression to match",
> -	"-l              list roots",
>  	NULL
>  };
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Hugo Mills March 1, 2013, 6:05 p.m. UTC | #2
On Fri, Mar 01, 2013 at 11:47:50AM -0600, Eric Sandeen wrote:
> On 3/1/13 4:10 AM, Anand Jain wrote:
> > Signed-off-by: Anand Jain <anand.jain@oracle.com>
> 
> Revieed-by: Eric Sandeen <sandeen@redhat.com>
> 
> But the curious side of me wonders how it got this way.
> 
> commit e43cc461550130494194201037590a2b1f0f6880
> Author: Ian Kumlien <pomac@demius.net>
> Date:   Fri Feb 8 01:37:02 2013 +0100
> 
>     Btrfs-progs: add restore command to btrfs
> 
> added the usage text below, but didn't change the getopt
> or add code to handle them.
> 
> No idea where it came from, it wasn't in the standalone
> restore either.  *shrug*  I guess nothing got lost.

   -m was definitely a thing at some point, as I recall using it. I
think the code was in josef's progs tree. I suspect the other options
were part of that, too. (And -m was definitely really useful for me).

   Hugo.

> -Eric
> 
> > ---
> >  cmds-restore.c | 4 ----
> >  1 file changed, 4 deletions(-)
> > 
> > diff --git a/cmds-restore.c b/cmds-restore.c
> > index 9385042..4a14f93 100644
> > --- a/cmds-restore.c
> > +++ b/cmds-restore.c
> > @@ -763,10 +763,6 @@ const char * const cmd_restore_usage[] = {
> >  	"-f <offset>     filesystem location",
> >  	"-u <block>      super mirror",
> >  	"-d              find dir",
> > -	"-r <num>        root objectid",
> > -	"-c              ignore case in regular expression",
> > -	"-m <regexp>     regular expression to match",
> > -	"-l              list roots",
> >  	NULL
> >  };
> >  
> > 
>
David Sterba March 3, 2013, 4:33 p.m. UTC | #3
On Fri, Mar 01, 2013 at 06:05:21PM +0000, Hugo Mills wrote:
> On Fri, Mar 01, 2013 at 11:47:50AM -0600, Eric Sandeen wrote:
> > On 3/1/13 4:10 AM, Anand Jain wrote:
> > > Signed-off-by: Anand Jain <anand.jain@oracle.com>
> > 
> > Revieed-by: Eric Sandeen <sandeen@redhat.com>
> > 
> > But the curious side of me wonders how it got this way.
> > 
> > commit e43cc461550130494194201037590a2b1f0f6880
> > Author: Ian Kumlien <pomac@demius.net>
> > Date:   Fri Feb 8 01:37:02 2013 +0100
> > 
> >     Btrfs-progs: add restore command to btrfs
> > 
> > added the usage text below, but didn't change the getopt
> > or add code to handle them.
> > 
> > No idea where it came from, it wasn't in the standalone
> > restore either.  *shrug*  I guess nothing got lost.
> 
>    -m was definitely a thing at some point, as I recall using it. I
> think the code was in josef's progs tree. I suspect the other options
> were part of that, too. (And -m was definitely really useful for me).

My fault here, I cherry-picked Ian's commit from a branch with Josef's
updates to restore (adding all the commandline options). I'll pick
Anand's fix to keep help and functionality matching. The updates to
restore are wanted, but as they are based on an old progs version it's
not all trivial to merge them.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-restore.c b/cmds-restore.c
index 9385042..4a14f93 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -763,10 +763,6 @@  const char * const cmd_restore_usage[] = {
 	"-f <offset>     filesystem location",
 	"-u <block>      super mirror",
 	"-d              find dir",
-	"-r <num>        root objectid",
-	"-c              ignore case in regular expression",
-	"-m <regexp>     regular expression to match",
-	"-l              list roots",
 	NULL
 };