When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.
This commit is contained in:
parent
9085467970
commit
ce88793698
@ -1657,7 +1657,7 @@
|
|||||||
"\t-f\t\toutput data as the log grows"
|
"\t-f\t\toutput data as the log grows"
|
||||||
|
|
||||||
#define losetup_trivial_usage \
|
#define losetup_trivial_usage \
|
||||||
"[-od] LOOPDEVICE [FILE]\n"
|
"[-od] LOOPDEVICE [FILE]"
|
||||||
#define losetup_full_usage \
|
#define losetup_full_usage \
|
||||||
"Associate LOOPDEVICE with FILE, or display current association.\n\n" \
|
"Associate LOOPDEVICE with FILE, or display current association.\n\n" \
|
||||||
"Options:\n" \
|
"Options:\n" \
|
||||||
|
@ -33,7 +33,8 @@ int losetup_main (int argc, char **argv)
|
|||||||
switch(getopt(argc,argv, "do:")) {
|
switch(getopt(argc,argv, "do:")) {
|
||||||
case 'd':
|
case 'd':
|
||||||
/* detach takes exactly one argument */
|
/* detach takes exactly one argument */
|
||||||
if(optind+1==argc && !del_loop(argv[optind])) return EXIT_SUCCESS;
|
if(optind+1!=argc) bb_show_usage();
|
||||||
|
if(!del_loop(argv[optind])) return EXIT_SUCCESS;
|
||||||
die_failed:
|
die_failed:
|
||||||
bb_perror_msg_and_die("%s",argv[optind]);
|
bb_perror_msg_and_die("%s",argv[optind]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user