]> git.ipfire.org Git - thirdparty/systemd.git/commit
libmount-util: introduce two helper functions 36154/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Jan 2025 00:33:58 +0000 (09:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Jan 2025 00:34:01 +0000 (09:34 +0900)
commit93f6cee97e28868b5c4a5411e411d97b51026096
tree975b60df04879302cd2a9e3bb88a6d7b159777a8
parent22f980dd0b04e65dbdc2fca9c653119459a2c52f
libmount-util: introduce two helper functions

This introduces libmount_parse_mountinfo() and libmount_parse_with_utab().
The former one parses only mountinfo, but the latter one also parse
utab. Hopefully this avoids pitfalls like issue #35949.
src/core/mount.c
src/mount/mount-tool.c
src/shared/libmount-util.c
src/shared/libmount-util.h
src/shared/mount-util.c
src/shutdown/test-umount.c
src/shutdown/umount.c
src/shutdown/umount.h
src/test/test-libmount.c
src/test/test-mount-util.c