summaryrefslogtreecommitdiffstats
path: root/mount
diff options
context:
space:
mode:
authorKarel Zak2011-09-30 11:26:07 +0200
committerKarel Zak2011-09-30 11:26:07 +0200
commitf991d6b542a0d1c3d345006593a24d95609fc676 (patch)
tree19ae5d119f52f9eb375825a881e97ffa4b6af94d /mount
parentumount: use new lib/loopdev.c code (diff)
downloadkernel-qcow2-util-linux-f991d6b542a0d1c3d345006593a24d95609fc676.tar.gz
kernel-qcow2-util-linux-f991d6b542a0d1c3d345006593a24d95609fc676.tar.xz
kernel-qcow2-util-linux-f991d6b542a0d1c3d345006593a24d95609fc676.zip
umount: add warning
It's better to inform users about reason why their request does not makes sense :-) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r--mount/umount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mount/umount.c b/mount/umount.c
index f29d7cafb..ad93e757b 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -652,9 +652,9 @@ try_loopdev:
file = loopdev;
goto try_loopdev;
- } else if (count > 1 && verbose)
- printf(_("%s is associated with more than one "
- "loop device: not unmounting\n"), arg);
+ } else if (count > 1)
+ fprintf(stderr, _("umount: warning: %s is associated "
+ "with more than one loop device\n"), arg);
}
if (mc) {