From ff83f99ef6b8adc10a729ac86d4cbf1179166776 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 28 Jan 2008 12:52:04 +0100 Subject: [PATCH] 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 --- mount/umount.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mount/umount.c b/mount/umount.c index 9690f2ac..5b939879 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: -- 2.39.5