diff options
author | Karel Zak | 2010-07-26 16:24:29 +0200 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:40 +0100 |
commit | 9ecdf48fc316b057acbaf744bb32a18e281a7924 (patch) | |
tree | c6266c35d3fdf18553aec8d82b08ce9e4e50188f /shlibs/mount/src/mount.h.in | |
parent | libmount: add unmangle/mangle() functions to API (diff) | |
download | kernel-qcow2-util-linux-9ecdf48fc316b057acbaf744bb32a18e281a7924.tar.gz kernel-qcow2-util-linux-9ecdf48fc316b057acbaf744bb32a18e281a7924.tar.xz kernel-qcow2-util-linux-9ecdf48fc316b057acbaf744bb32a18e281a7924.zip |
libmount: add mnt_copy_fs() and mnt_fs_set_root()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mount.h.in')
-rw-r--r-- | shlibs/mount/src/mount.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in index af1dd38a4..33f8d1722 100644 --- a/shlibs/mount/src/mount.h.in +++ b/shlibs/mount/src/mount.h.in @@ -146,7 +146,7 @@ extern int mnt_optstr_set_option(char **optstr, const char *name, const char *value); extern int mnt_optstr_remove_option(char **optstr, const char *name); -extern int mnt_split_optstr(char *optstr, char **user, char **vfs, char **fs); +extern int mnt_split_optstr(const char *optstr, char **user, char **vfs, char **fs); /* iter.c */ enum { @@ -224,6 +224,7 @@ extern int mnt_lock_file(mnt_lock *ml); /* fs.c */ extern mnt_fs *mnt_new_fs(void); extern void mnt_free_fs(mnt_fs *ent); +extern mnt_fs *mnt_copy_fs(mnt_fs *fs); extern void *mnt_fs_get_userdata(mnt_fs *fs); extern int mnt_fs_set_userdata(mnt_fs *fs, void *data); extern const char *mnt_fs_get_source(mnt_fs *ent); @@ -244,6 +245,7 @@ extern int mnt_fs_set_freq(mnt_fs *ent, int freq); extern int mnt_fs_get_passno(mnt_fs *ent); extern int mnt_fs_set_passno(mnt_fs *ent, int passno); extern const char *mnt_fs_get_root(mnt_fs *fs); +extern int mnt_fs_set_root(mnt_fs *fs, const char *root); extern int mnt_fs_get_id(mnt_fs *fs); extern int mnt_fs_get_parent_id(mnt_fs *fs); extern dev_t mnt_fs_get_devno(mnt_fs *fs); |