From d22f2822ed873bac1dbb28aa5fd5351f3a27b2b8 Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Fri, 14 Jun 2013 13:00:49 +0200 Subject: libmount: add functions to safely replace a fs table Signed-off-by: Ondrej Oprala --- libmount/src/fs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmount/src/fs.c') diff --git a/libmount/src/fs.c b/libmount/src/fs.c index bcf250597..b6b3d12b8 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -1300,6 +1300,10 @@ const char *mnt_fs_get_comment(struct libmnt_fs *fs) * @fs: fstab entry pointer * @comm: comment string * + * Note that the comment has to be terminated by '\n' (new line), otherwise + * whole filesystem entry will be written as a comment to the tabfile (e.g. + * fstab). + * * Returns: 0 on success or <0 in case of error. */ int mnt_fs_set_comment(struct libmnt_fs *fs, const char *comm) @@ -1324,6 +1328,8 @@ int mnt_fs_set_comment(struct libmnt_fs *fs, const char *comm) * mnt_fs_append_comment: * @fs: fstab entry pointer * + * See also mnt_fs_set_comment(). + * * Returns: 0 on success or <0 in case of error. */ int mnt_fs_append_comment(struct libmnt_fs *fs, const char *comm) -- cgit v1.2.3-55-g7522