diff options
author | Karel Zak | 2014-05-26 11:37:02 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-26 11:37:02 +0200 |
commit | fd7c492401b75f606908ed9793cb87e0a3c2dbd8 (patch) | |
tree | 6369abf77b6c452c539163cf2cb1de2cb4f8a11c /sys-utils/umount.c | |
parent | build-sys: cleanup bash-completion/ (diff) | |
download | kernel-qcow2-util-linux-fd7c492401b75f606908ed9793cb87e0a3c2dbd8.tar.gz kernel-qcow2-util-linux-fd7c492401b75f606908ed9793cb87e0a3c2dbd8.tar.xz kernel-qcow2-util-linux-fd7c492401b75f606908ed9793cb87e0a3c2dbd8.zip |
umount: add info that --all-targets works with mtab symlink only
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.c')
-rw-r--r-- | sys-utils/umount.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |