From cb90e24e804e2f95eadf01e96561749092c858c1 Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Fri, 14 Jun 2013 12:41:30 +0200 Subject: libmount: add functions to handle comments in fs tables Co-Author: Karel Zak Signed-off-by: Ondrej Oprala Signed-off-by: Karel Zak --- libmount/src/mountP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmount/src/mountP.h') diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index c6b70e29f..28b77d0c3 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -243,6 +243,8 @@ struct libmnt_fs { int flags; /* MNT_FS_* flags */ pid_t tid; /* /proc//mountinfo otherwise zero */ + char *comment; /* fstab comment */ + void *userdata; /* library independent data */ }; @@ -265,6 +267,9 @@ struct libmnt_fs { struct libmnt_table { int fmt; /* MNT_FMT_* file format */ int nents; /* number of valid entries */ + int comms; /* enable/disable comment parsing */ + char *comm_intro; /* First comment in file */ + char *comm_tail; /* Last comment in file */ struct libmnt_cache *cache; /* canonicalized paths/tags cache */ -- cgit v1.2.3-55-g7522