summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.sym
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 12:31:43 +0200
committerKarel Zak2013-08-21 12:48:42 +0200
commit26d0c0aefde9a94f29d9850514fcbcf638eb8728 (patch)
treecfe01b73d0d399baeeb5bdf1ffb8e6cdd6a38708 /libmount/src/libmount.sym
parentpylibmount: remove Context_get_table() (diff)
downloadkernel-qcow2-util-linux-26d0c0aefde9a94f29d9850514fcbcf638eb8728.tar.gz
kernel-qcow2-util-linux-26d0c0aefde9a94f29d9850514fcbcf638eb8728.tar.xz
kernel-qcow2-util-linux-26d0c0aefde9a94f29d9850514fcbcf638eb8728.zip
libmount: add reference counting to libmount_fs
* mnt_new_fs() returns object with refcount=1 * mnt_free_fs() does not care about reference counter * new functions mnt_ref_fs() and mnt_unref_fs() * mnt_table_add_fs() and mnt_table_rem_fs() uses reference counter * libmmnt_context uses reference counter for internal FS (as it could be shared outside the context) * backwardly incompatible change: - FS could be deallocated after mnt_table_remove_fs() * it's recommended to use mnt_unref_fs() after mnt_table_add_fs() Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.sym')
-rw-r--r--libmount/src/libmount.sym2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/libmount.sym b/libmount/src/libmount.sym
index ae0bc59f8..621821e97 100644
--- a/libmount/src/libmount.sym
+++ b/libmount/src/libmount.sym
@@ -265,6 +265,7 @@ global:
mnt_fs_append_comment;
mnt_fs_get_comment;
mnt_fs_set_comment;
+ mnt_ref_fs;
mnt_table_append_intro_comment;
mnt_table_append_trailing_comment;
mnt_table_enable_comments;
@@ -280,4 +281,5 @@ global:
mnt_table_set_userdata;
mnt_table_with_comments;
mnt_table_write_file;
+ mnt_unref_fs;
} MOUNT_2.23;