summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 14:37:55 +0200
committerKarel Zak2013-08-21 14:37:55 +0200
commit0105691d541ea2be766b681b437f3082e78dd664 (patch)
treecb62628fc0d7a82b1a2c5d18d16fb730f51cd48f /libmount/src/libmount.h.in
parentfsck: use libmount fs reference counter (diff)
downloadkernel-qcow2-util-linux-0105691d541ea2be766b681b437f3082e78dd664.tar.gz
kernel-qcow2-util-linux-0105691d541ea2be766b681b437f3082e78dd664.tar.xz
kernel-qcow2-util-linux-0105691d541ea2be766b681b437f3082e78dd664.zip
libmount: add reference counting to libmnt_cache
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index 29659628d..f4efd9804 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -216,6 +216,9 @@ extern struct libmnt_cache *mnt_new_cache(void)
__ul_attribute__((warn_unused_result));
extern void mnt_free_cache(struct libmnt_cache *cache);
+extern void mnt_ref_cache(struct libmnt_cache *cache);
+extern void mnt_unref_cache(struct libmnt_cache *cache);
+
extern int mnt_cache_read_tags(struct libmnt_cache *cache, const char *devname);
extern int mnt_cache_device_has_tag(struct libmnt_cache *cache,