]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: clean up statmount syscall-related functions
authorKarel Zak <kzak@redhat.com>
Thu, 24 Apr 2025 16:16:07 +0000 (18:16 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 Apr 2025 16:31:14 +0000 (18:31 +0200)
commitb3bb829106e18c01c1fd984b3f68f22eba2c0c19
tree5c29e7f8f524337aaf76886c1a37a4558de68df1
parent8ae8ef764a9f5bf2c04510618d86d76760d043ff
libmount: clean up statmount syscall-related functions

* Rename the raw version of the syscall from ul_statmount() to
  ul_statmount_syscall().

* Rename `sys_statmount()` to `ul_statmount()`. The goal is to use the
  same naming convention as `ul_listmount()` for a function that is
  expected to be called from code.

* Move ul_statmount() to be in the same #ifdef block as the rest of
  the statmount code in the header file.

* Add has_statmount() to make it easy to verify the usability of the
  statmount syscall.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/mount-api-utils.h
libmount/src/fs_statmount.c
tests/helpers/test_sysinfo.c