summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-28 12:49:55 +0200
committerKarel Zak2012-05-28 12:49:55 +0200
commit61f5ff6cb4e094b77279b7d52be0d7cc3bb13f72 (patch)
tree65664f52534d560ba46ae10ac70f1c14700ba19f /sys-utils/mount.c
parentmount: (new) add loopdev specific error message (diff)
downloadkernel-qcow2-util-linux-61f5ff6cb4e094b77279b7d52be0d7cc3bb13f72.tar.gz
kernel-qcow2-util-linux-61f5ff6cb4e094b77279b7d52be0d7cc3bb13f72.tar.xz
kernel-qcow2-util-linux-61f5ff6cb4e094b77279b7d52be0d7cc3bb13f72.zip
libmount: add MNT_ERR_MOUNTOPT
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 9be8cb8a9..a4fbd9b8f 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -367,6 +367,12 @@ try_readonly:
else
warnx(_("mount source not defined"));
return MOUNT_EX_USAGE;
+ case -MNT_ERR_MOUNTOPT:
+ if (errno)
+ warn(_("failed to parse mount options"));
+ else
+ warnx(_("failed to parse mount options"));
+ return MOUNT_EX_USAGE;
case -MNT_ERR_LOOPDEV:
if (errno == ENOENT
&& (uflags & MNT_MS_ENCRYPTION)