summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 16:07:25 +0200
committerKarel Zak2013-08-21 16:07:25 +0200
commitc9f1585e67717068e82ba22bc498aabf2954c113 (patch)
tree01f996b217aef1f2efbf235667a16f7de5a5c96e /libmount/src/mountP.h
parentmisc: use libmnt_cache reference counting (diff)
downloadkernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.gz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.xz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.zip
libmount: add reference counter to libmnt_table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index bf450a6c1..9e6f4bd28 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -276,6 +276,7 @@ struct libmnt_fs {
struct libmnt_table {
int fmt; /* MNT_FMT_* file format */
int nents; /* number of entries */
+ int refcount; /* reference counter */
int comms; /* enable/disable comment parsing */
char *comm_intro; /* First comment in file */
char *comm_tail; /* Last comment in file */
@@ -391,9 +392,6 @@ struct libmnt_context
#define MNT_FL_FORK (1 << 12)
#define MNT_FL_NOSWAPMATCH (1 << 13)
-#define MNT_FL_EXTERN_FSTAB (1 << 16) /* cxt->fstab is not private */
-#define MNT_FL_EXTERN_CACHE (1 << 17) /* cxt->cache is not private */
-
#define MNT_FL_MOUNTDATA (1 << 20)
#define MNT_FL_TAB_APPLIED (1 << 21) /* mtab/fstab merged to cxt->fs */
#define MNT_FL_MOUNTFLAGS_MERGED (1 << 22) /* MS_* flags was read from optstr */