summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_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 /libmount/src/context_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 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 63091b7f8..3f0001dd4 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -141,6 +141,9 @@ done:
DBG(CXT, mnt_debug_h(cxt, "fixed options [rc=%d]: "
"vfs: '%s' fs: '%s' user: '%s', optstr: '%s'", rc,
fs->vfs_optstr, fs->fs_optstr, fs->user_optstr, fs->optstr));
+
+ if (rc)
+ rc = -MNT_ERR_MOUNTOPT;
return rc;
}