diff options
author | Karel Zak | 2013-08-21 12:31:43 +0200 |
---|---|---|
committer | Karel Zak | 2013-08-21 12:48:42 +0200 |
commit | 26d0c0aefde9a94f29d9850514fcbcf638eb8728 (patch) | |
tree | cfe01b73d0d399baeeb5bdf1ffb8e6cdd6a38708 /libmount/docs | |
parent | pylibmount: remove Context_get_table() (diff) | |
download | kernel-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/docs')
-rw-r--r-- | libmount/docs/libmount-sections.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/docs/libmount-sections.txt b/libmount/docs/libmount-sections.txt index 551ebedc1..97e0851e5 100644 --- a/libmount/docs/libmount-sections.txt +++ b/libmount/docs/libmount-sections.txt @@ -170,6 +170,8 @@ libmnt_fs mnt_copy_fs mnt_free_fs mnt_free_mntent +mnt_ref_fs +mnt_unref_fs mnt_fs_append_attributes mnt_fs_append_comment mnt_fs_append_options |