diff options
author | Karel Zak | 2011-02-22 18:41:20 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-22 18:41:20 +0100 |
commit | f2b3a3a3288d56b09d878c3e2b5310268f2f4d31 (patch) | |
tree | 4d990af02e8664a09a88bb2d110c0344a43e355a /shlibs/mount/src/tab_update.c | |
parent | ipcs: fix typo (diff) | |
download | kernel-qcow2-util-linux-f2b3a3a3288d56b09d878c3e2b5310268f2f4d31.tar.gz kernel-qcow2-util-linux-f2b3a3a3288d56b09d878c3e2b5310268f2f4d31.tar.xz kernel-qcow2-util-linux-f2b3a3a3288d56b09d878c3e2b5310268f2f4d31.zip |
libmount: don't export functions for vfs/fs/userspace mount options
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab_update.c')
-rw-r--r-- | shlibs/mount/src/tab_update.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c index 5373e2fa2..47a3e5fe9 100644 --- a/shlibs/mount/src/tab_update.c +++ b/shlibs/mount/src/tab_update.c @@ -264,13 +264,13 @@ int mnt_update_force_rdonly(struct libmnt_update *upd, int rdonly) if (!upd->userspace_only) { /* /etc/mtab -- we care about VFS options there */ - const char *o = mnt_fs_get_vfs_options(upd->fs); + const char *o = mnt_fs_get_options(upd->fs); char *n = o ? strdup(o) : NULL; if (n) mnt_optstr_remove_option(&n, rdonly ? "rw" : "ro"); if (!mnt_optstr_prepend_option(&n, rdonly ? "ro" : "rw", NULL)) - rc = mnt_fs_set_vfs_options(upd->fs, n); + rc = mnt_fs_set_options(upd->fs, n); free(n); } @@ -330,7 +330,7 @@ static int utab_new_entry(struct libmnt_fs *fs, unsigned long mountflags, struct goto err; } - rc = mnt_fs_set_user_options(*ent, u); + rc = mnt_fs_set_options(*ent, u); if (rc) goto err; rc = mnt_fs_set_attributes(*ent, a); @@ -759,13 +759,8 @@ static int update_modify_options(struct libmnt_update *upd, struct libmnt_lock * if (cur) { if (upd->userspace_only) rc = mnt_fs_set_attributes(cur, mnt_fs_get_attributes(fs)); - if (!rc && !upd->userspace_only) - rc = mnt_fs_set_vfs_options(cur, mnt_fs_get_vfs_options(fs)); - if (!rc && !upd->userspace_only) - rc = mnt_fs_set_fs_options(cur, mnt_fs_get_fs_options(fs)); if (!rc) - rc = mnt_fs_set_user_options(cur, - mnt_fs_get_user_options(fs)); + rc = mnt_fs_set_options(cur, mnt_fs_get_options(fs)); if (!rc) rc = update_table(upd, tb); } |