* losetup --all --verbose results in usage
@ 2011-08-17 14:12 Bernhard Voelker
2011-08-17 14:22 ` Davidlohr Bueso
2011-08-17 14:44 ` Karel Zak
0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Voelker @ 2011-08-17 14:12 UTC (permalink / raw)
To: util-linux
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: losetup --all --verbose results in usage
2011-08-17 14:12 losetup --all --verbose results in usage Bernhard Voelker
@ 2011-08-17 14:22 ` Davidlohr Bueso
2011-08-17 14:55 ` Bernhard Voelker
2011-08-17 14:44 ` Karel Zak
1 sibling, 1 reply; 5+ messages in thread
From: Davidlohr Bueso @ 2011-08-17 14:22 UTC (permalink / raw)
To: Bernhard Voelker; +Cc: util-linux
On Wed, 2011-08-17 at 16:12 +0200, Bernhard Voelker wrote:
> 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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: losetup --all --verbose results in usage
2011-08-17 14:12 losetup --all --verbose results in usage Bernhard Voelker
2011-08-17 14:22 ` Davidlohr Bueso
@ 2011-08-17 14:44 ` Karel Zak
2011-08-17 15:01 ` Bernhard Voelker
1 sibling, 1 reply; 5+ messages in thread
From: Karel Zak @ 2011-08-17 14:44 UTC (permalink / raw)
To: Bernhard Voelker; +Cc: util-linux
On Wed, Aug 17, 2011 at 04:12:53PM +0200, Bernhard Voelker wrote:
> I was surprised that running
> mount/losetup --all --verbose
> results in usage().
Fixed. losetup -a -v works now.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: losetup --all --verbose results in usage
2011-08-17 14:22 ` Davidlohr Bueso
@ 2011-08-17 14:55 ` Bernhard Voelker
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Voelker @ 2011-08-17 14:55 UTC (permalink / raw)
To: dave; +Cc: util-linux
On 08/17/2011 04:22 PM, Davidlohr Bueso wrote:
> On Wed, 2011-08-17 at 16:12 +0200, Bernhard Voelker wrote:
>> I was surprised that running
>> mount/losetup --all --verbose
>> results in usage().
...
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: losetup --all --verbose results in usage
2011-08-17 14:44 ` Karel Zak
@ 2011-08-17 15:01 ` Bernhard Voelker
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Voelker @ 2011-08-17 15:01 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
On 08/17/2011 04:44 PM, Karel Zak wrote:
> On Wed, Aug 17, 2011 at 04:12:53PM +0200, Bernhard Voelker wrote:
>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-17 15:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17 14:12 losetup --all --verbose results in usage Bernhard Voelker
2011-08-17 14:22 ` Davidlohr Bueso
2011-08-17 14:55 ` Bernhard Voelker
2011-08-17 14:44 ` Karel Zak
2011-08-17 15:01 ` Bernhard Voelker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox