]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: improve fs referencing in tables
authorTim Hildering <hilderingt@posteo.net>
Mon, 4 Mar 2019 18:15:08 +0000 (19:15 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 8 Mar 2019 10:40:20 +0000 (11:40 +0100)
commit9d5eb4c46405413a8dd69d01f4e094f4390944d1
treec367420b5f2821714ae1eaf8bbde261f2825e6a9
parent64a87be1a4a899ee43b0960a669046e127cf46fa
libmount: improve fs referencing in tables

* Added member 'struct libmnt_table *tab' to libmnt_fs structure.
* Added 'mnt_fs_get_table()'.
* Removed overhead from 'mnt_table_{insert,move,remove}_fs().
* Added check to 'mnt_table_set_iter()' that entry is member of table.

[kzak@redhat.com: - add to libmount.sys
                  - add to docs
                  - cleanup commit message
                  - set fs->tab = NULL before mnt_unref_fs() in mnt_table_remove_fs()]

Signed-off-by: Tim Hildering <hilderingt@posteo.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/docs/libmount-sections.txt
libmount/src/fs.c
libmount/src/libmount.h.in
libmount/src/libmount.sym
libmount/src/mountP.h
libmount/src/tab.c