Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt PR/55875 - Valentin -- "gpt recover -r" does nothing



details:   https://anonhg.NetBSD.org/src/rev/1b4ea523193d
branches:  trunk
changeset: 1017147:1b4ea523193d
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sun Dec 13 21:55:25 2020 +0000

description:
PR/55875 - Valentin -- "gpt recover -r" does nothing

Delete do nothing undocumented option, that was there from initial
import.  No idea what it was intended to do and there is no longer
an "upstream".

diffstat:

 sbin/gpt/recover.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 4ddb6e0f28f1 -r 1b4ea523193d sbin/gpt/recover.c
--- a/sbin/gpt/recover.c        Sun Dec 13 21:27:45 2020 +0000
+++ b/sbin/gpt/recover.c        Sun Dec 13 21:55:25 2020 +0000
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/recover.c,v 1.8 2005/08/31 01:47:19 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: recover.c,v 1.18 2018/07/03 03:41:24 jnemeth Exp $");
+__RCSID("$NetBSD: recover.c,v 1.19 2020/12/13 21:55:25 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -149,7 +149,7 @@
 }
 
 static int
-recover(gpt_t gpt, int recoverable)
+recover(gpt_t gpt)
 {
        off_t last = gpt_last(gpt);
        map_t map;
@@ -233,13 +233,9 @@
 cmd_recover(gpt_t gpt, int argc, char *argv[])
 {
        int ch;
-       int recoverable = 0;
 
        while ((ch = getopt(argc, argv, "r")) != -1) {
                switch(ch) {
-               case 'r':
-                       recoverable = 1;
-                       break;
                default:
                        return usage();
                }
@@ -248,5 +244,5 @@
        if (argc != optind)
                return usage();
 
-       return recover(gpt, recoverable);
+       return recover(gpt);
 }



Home | Main Index | Thread Index | Old Index