summaryrefslogtreecommitdiffstats
path: root/mount
diff options
context:
space:
mode:
authorKarel Zak2008-01-28 12:52:04 +0100
committerKarel Zak2008-01-28 12:52:04 +0100
commitff83f99ef6b8adc10a729ac86d4cbf1179166776 (patch)
tree4a9d2b722b310c502fd524ebe02df15ddcfc784e /mount
parentcal: fix weekday alignment for certain locales (diff)
downloadkernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.tar.gz
kernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.tar.xz
kernel-qcow2-util-linux-ff83f99ef6b8adc10a729ac86d4cbf1179166776.zip
umount: add hint about lsof & fuser
This patch adds a hint about lsof and fuser to the "device is busy" error message. Addresses-Red-Hat-Bugzilla: #145844 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r--mount/umount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c
index 9690f2ac0..5b9398793 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -152,7 +152,10 @@ static void complain(int err, const char *dev) {
case EBUSY:
/* Let us hope fstab has a line "proc /proc ..."
and not "none /proc ..."*/
- error (_("umount: %s: device is busy"), dev); break;
+ error (_("umount: %s: device is busy.\n"
+ " (In some cases useful info about processes that use\n"
+ " the device is found by lsof(8) or fuser(1))"), dev);
+ break;
case ENOENT:
error (_("umount: %s: not found"), dev); break;
case EPERM: