summaryrefslogtreecommitdiffstats
path: root/mount/lomount.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-17 16:40:05 +0200
committerKarel Zak2011-08-17 16:40:05 +0200
commitb71e4c30b653094755b3f272aea96d237f53c5ae (patch)
treee32b662a94d5620376943012d5a83657acaafe13 /mount/lomount.c
parentbuild-sys: release++ (v2.20-rc2) (diff)
downloadkernel-qcow2-util-linux-b71e4c30b653094755b3f272aea96d237f53c5ae.tar.gz
kernel-qcow2-util-linux-b71e4c30b653094755b3f272aea96d237f53c5ae.tar.xz
kernel-qcow2-util-linux-b71e4c30b653094755b3f272aea96d237f53c5ae.zip
losetup: allow to use --verbose with --all
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r--mount/lomount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mount/lomount.c b/mount/lomount.c
index 757013734..34d151ac1 100644
--- a/mount/lomount.c
+++ b/mount/lomount.c
@@ -1134,7 +1134,8 @@ main(int argc, char **argv) {
if (capacity || all || assoc || argc < optind || argc > optind+1)
usage(stderr);
} else if (all) {
- if (argc > 2)
+ /* only -v is allowed */
+ if ((argc == 3 && verbose == 0) || argc > 3)
usage(stderr);
} else if (assoc) {
if (capacity || encryption || showdev || passfd || ro)