From f2b3a3a3288d56b09d878c3e2b5310268f2f4d31 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 22 Feb 2011 18:41:20 +0100 Subject: libmount: don't export functions for vfs/fs/userspace mount options Signed-off-by: Karel Zak --- shlibs/mount/src/context.c | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) (limited to 'shlibs/mount/src/context.c') diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c index 487859a3f..f8db3cfd6 100644 --- a/shlibs/mount/src/context.c +++ b/shlibs/mount/src/context.c @@ -1376,36 +1376,14 @@ static int apply_table(struct libmnt_context *cxt, struct libmnt_table *tb, if (cxt->optsmode & MNT_OMODE_IGNORE) ; - else if (cxt->optsmode & MNT_OMODE_REPLACE) { - rc = mnt_fs_set_vfs_options(cxt->fs, - mnt_fs_get_vfs_options(fs)); - if (!rc) - rc = mnt_fs_set_fs_options(cxt->fs, - mnt_fs_get_fs_options(fs)); - if (!rc) - rc = mnt_fs_set_user_options(cxt->fs, - mnt_fs_get_user_options(fs)); + else if (cxt->optsmode & MNT_OMODE_REPLACE) + rc = mnt_fs_set_options(cxt->fs, mnt_fs_get_options(fs)); - } else if (cxt->optsmode & MNT_OMODE_APPEND) { - rc = mnt_fs_append_vfs_options(cxt->fs, - mnt_fs_get_vfs_options(fs)); - if (!rc) - rc = mnt_fs_append_fs_options(cxt->fs, - mnt_fs_get_fs_options(fs)); - if (!rc) - rc = mnt_fs_append_user_options(cxt->fs, - mnt_fs_get_user_options(fs)); + else if (cxt->optsmode & MNT_OMODE_APPEND) + rc = mnt_fs_append_options(cxt->fs, mnt_fs_get_options(fs)); - } else if (cxt->optsmode & MNT_OMODE_PREPEND) { - rc = mnt_fs_prepend_vfs_options(cxt->fs, - mnt_fs_get_vfs_options(fs)); - if (!rc) - rc = mnt_fs_prepend_fs_options(cxt->fs, - mnt_fs_get_fs_options(fs)); - if (!rc) - rc = mnt_fs_prepend_user_options(cxt->fs, - mnt_fs_get_user_options(fs)); - } + else if (cxt->optsmode & MNT_OMODE_PREPEND) + rc = mnt_fs_prepend_options(cxt->fs, mnt_fs_get_options(fs)); if (!rc) cxt->flags |= MNT_FL_TAB_APPLIED; -- cgit v1.2.3-55-g7522