losetup --all --verbose results in usage
I was surprised that running
mount/losetup --all --verbose
results in usage().
As -a is the option to list all used loop devices, one might think that -v adds some more info to the output.
Neither --help nor the man pages nor the info page tells that -a doesn't accept other options:
mount/lomount.c (line 1133):
} else if (all) {
if (argc > 2)
usage(stderr);Should we work on this?
If it's not possible to output more information with -v, then it would maybe make sense to ignore it, right?
Have a nice day,
Berny
Quoted 7 lines · Bernhard Voelker
I was surprised that running
mount/losetup --all --verboseresults in
usage().As -a is the option to list all used loop devices, one might think that -v adds some more info to the output.
The verbose option is quite broken, yes.
Quoted 10 lines
Neither --help nor the man pages nor the info page tells that -a doesn't accept other options:
mount/lomount.c(line 1133):} else if (all) { if (argc > 2) usage(stderr);Should we work on this?
I'm actually rewriting this tool to make use of our new loop library. I'll address this issue here as well, thanks for the heads up.
- Davidlohr
Quoted 4 lines · Davidlohr Bueso
Quoted 3 lines · Bernhard Voelker
I was surprised that running
mount/losetup --all --verboseresults in
usage().
...
Quoted 2 lines
I'm actually rewriting this tool to make use of our new loop library. I'll address this issue here as well, thanks for the heads up.
great - I have to thank you!
Have a nice day,
Berny
Karel Zak
maintainerQuoted 3 lines · Bernhard Voelker
I was surprised that running
mount/losetup --all --verboseresults in
usage().
Fixed. losetup -a -v works now.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Quoted 8 lines · Karel Zak
Quoted 3 lines · Bernhard Voelker
I was surprised that running
mount/losetup --all --verboseresults in
usage().Fixed. losetup -a -v works now.
Karel
uh, that was fast.
Thanks.
Berny