diff options
-rw-r--r-- | libmount/docs/libmount-sections.txt | 12 | ||||
-rw-r--r-- | libmount/src/fs.c | 1 | ||||
-rw-r--r-- | libmount/src/libmount.h.in | 3 | ||||
-rw-r--r-- | libmount/src/tab.c | 2 |
4 files changed, 18 insertions, 0 deletions
diff --git a/libmount/docs/libmount-sections.txt b/libmount/docs/libmount-sections.txt index 2c3dab722..a5ef05f85 100644 --- a/libmount/docs/libmount-sections.txt +++ b/libmount/docs/libmount-sections.txt @@ -168,10 +168,12 @@ mnt_copy_fs mnt_free_fs mnt_free_mntent mnt_fs_append_attributes +mnt_fs_append_comment mnt_fs_append_options mnt_fs_get_attribute mnt_fs_get_attributes mnt_fs_get_bindsrc +mnt_fs_get_comment mnt_fs_get_devno mnt_fs_get_freq mnt_fs_get_fs_options @@ -209,6 +211,7 @@ mnt_fs_prepend_options mnt_fs_print_debug mnt_fs_set_attributes mnt_fs_set_bindsrc +mnt_fs_set_comment mnt_fs_set_freq mnt_fs_set_fstype mnt_fs_set_options @@ -282,6 +285,9 @@ mnt_reset_table mnt_new_table_from_dir mnt_new_table_from_file mnt_table_add_fs +mnt_table_append_intro_comment +mnt_table_append_trailing_comment +mnt_table_enable_comments mnt_table_find_devno mnt_table_find_mountpoint mnt_table_find_next_fs @@ -291,8 +297,10 @@ mnt_table_find_srcpath mnt_table_find_tag mnt_table_find_target mnt_table_get_cache +mnt_table_get_intro_comment mnt_table_get_nents mnt_table_get_root_fs +mnt_table_get_trailing_comment mnt_table_is_fs_mounted mnt_table_next_child_fs mnt_table_next_fs @@ -304,8 +312,10 @@ mnt_table_parse_stream mnt_table_parse_swaps mnt_table_remove_fs mnt_table_set_cache +mnt_table_set_intro_comment mnt_table_set_iter mnt_table_set_parser_errcb +mnt_table_set_trailing_comment </SECTION> <SECTION> @@ -322,6 +332,8 @@ mnt_diff_tables libmnt_update mnt_free_update mnt_new_update +mnt_table_replace_file +mnt_table_write_file mnt_update_force_rdonly mnt_update_get_filename mnt_update_get_fs diff --git a/libmount/src/fs.c b/libmount/src/fs.c index b6b3d12b8..fc2eee7aa 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -1327,6 +1327,7 @@ int mnt_fs_set_comment(struct libmnt_fs *fs, const char *comm) /** * mnt_fs_append_comment: * @fs: fstab entry pointer + * @comm: comment string * * See also mnt_fs_set_comment(). * diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 9f904ca58..5eb7c48b8 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -462,6 +462,9 @@ extern struct libmnt_update *mnt_new_update(void) __ul_attribute__((warn_unused_result)); extern void mnt_free_update(struct libmnt_update *upd); +extern int mnt_table_replace_file(struct libmnt_table *tb, const char *filename); +extern int mnt_table_write_file(struct libmnt_table *tb, FILE *file); + extern int mnt_update_is_ready(struct libmnt_update *upd); extern int mnt_update_set_fs(struct libmnt_update *upd, unsigned long mountflags, const char *target, struct libmnt_fs *fs); diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 653c15d3d..ac4d4a3d3 100644 --- a/libmount/src/tab.c +++ b/libmount/src/tab.c @@ -130,6 +130,7 @@ int mnt_table_get_nents(struct libmnt_table *tb) /** * mnt_table_enable_comments: * @tb: pointer to tab + * @enable: TRUE or FALSE * * Enables parsing of comments. * @@ -230,6 +231,7 @@ const char *mnt_table_get_trailing_comment(struct libmnt_table *tb) /** * mnt_table_set_trailing_comment * @tb: pointer to tab + * @comm: comment string * * Sets tailing comment in table. * |