version 1.10, 2015/12/03 01:07:28 |
version 1.11, 2019/04/04 13:58:20 |
Line 52 __RCSID("$NetBSD$"); |
|
Line 52 __RCSID("$NetBSD$"); |
|
static int cmd_destroy(gpt_t, int, char *[]); |
static int cmd_destroy(gpt_t, int, char *[]); |
|
|
static const char *destroyhelp[] = { |
static const char *destroyhelp[] = { |
"[-rf]", |
"[-r]", |
}; |
}; |
|
|
struct gpt_cmd c_destroy = { |
struct gpt_cmd c_destroy = { |
Line 107 cmd_destroy(gpt_t gpt, int argc, char *a |
|
Line 107 cmd_destroy(gpt_t gpt, int argc, char *a |
|
{ |
{ |
int ch; |
int ch; |
int recoverable = 0; |
int recoverable = 0; |
int force = 0; |
|
|
|
while ((ch = getopt(argc, argv, "fr")) != -1) { |
while ((ch = getopt(argc, argv, "fr")) != -1) { |
switch(ch) { |
switch(ch) { |
case 'f': |
case 'f': |
force = 1; |
|
break; |
break; |
case 'r': |
case 'r': |
recoverable = 1; |
recoverable = 1; |
Line 125 cmd_destroy(gpt_t gpt, int argc, char *a |
|
Line 123 cmd_destroy(gpt_t gpt, int argc, char *a |
|
if (argc != optind) |
if (argc != optind) |
return usage(); |
return usage(); |
|
|
return destroy(gpt, force, recoverable); |
return destroy(gpt, 0, recoverable); |
} |
} |