Skip to contentSkip to conversation

losetup --all --verbose results in usage

DISCUSSION Bernhard Voelker 3 participants 5 messages Aug 17, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Bernhard Voelker

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.

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

#2 lore raw
Quoted 4 lines · Davidlohr Bueso
Quoted 3 lines · Bernhard Voelker

I was surprised that running

	mount/losetup --all --verbose

results 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

#4 lore raw
Quoted 8 lines · Karel Zak
Quoted 3 lines · Bernhard Voelker

I was surprised that running

	mount/losetup --all --verbose

results in usage().

Fixed. losetup -a -v works now.

Karel

uh, that was fast.
Thanks.

Berny