From fd7c492401b75f606908ed9793cb87e0a3c2dbd8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 26 May 2014 11:37:02 +0200 Subject: umount: add info that --all-targets works with mtab symlink only Reported-by: Ruediger Meier Signed-off-by: Karel Zak --- sys-utils/umount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys-utils/umount.c') diff --git a/sys-utils/umount.c b/sys-utils/umount.c index 0d576595b..1ad9e6aeb 100644 --- a/sys-utils/umount.c +++ b/sys-utils/umount.c @@ -435,7 +435,9 @@ static int umount_alltargets(struct libmnt_context *cxt, const char *spec, int r return mk_exit_code(cxt, rc); /* error */ if (!mnt_fs_get_srcpath(fs) || !mnt_fs_get_devno(fs)) - err(MOUNT_EX_USAGE, _("%s: failed to determine source"), spec); + errx(MOUNT_EX_USAGE, _("%s: failed to determine source " + "(--all-targets is unsupported on systems with " + "regular mtab file)."), spec); itr = mnt_new_iter(MNT_ITER_BACKWARD); if (!itr) -- cgit v1.2.3-55-g7522