]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
umount: add warning
authorKarel Zak <kzak@redhat.com>
Fri, 30 Sep 2011 09:26:07 +0000 (11:26 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Sep 2011 09:26:07 +0000 (11:26 +0200)
It's better to inform users about reason why their request does not
makes sense :-)

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/umount.c

index f29d7cafb8908ca6586a9f73e6f7493b8a17cdfc..ad93e757b0c0b121d1c1a212fb5e0b7c4a80cbfe 100644 (file)
@@ -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) {