]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: add mount-api-utils.h to mountP.h
authorKarel Zak <kzak@redhat.com>
Mon, 22 Jul 2024 12:12:37 +0000 (14:12 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:42 +0000 (13:57 +0100)
The new syscalls (statmount and fd-based mount) are already being
utilized in various areas within the library. Therefore, it would be
more efficient to include the syscalls header file in the private main
library header file.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/hook_idmap.c
libmount/src/hook_mount.c
libmount/src/hook_subdir.c
libmount/src/hooks.c
libmount/src/mountP.h
libmount/src/optlist.c
libmount/src/version.c

index 565825ca5dd490622e150ccc1b60fce14af242a2..3bc03ff87000f8960412159f622666f552ed08e0 100644 (file)
@@ -44,8 +44,6 @@
 #include <stdarg.h>
 #include <sys/wait.h>
 
-#include "mount-api-utils.h"
-
 /**
  * mnt_new_context:
  *
index 0fa93355975020696350a612fa0cafa8fc2d1cfc..814b427732968f6f416a6ce5c9e0e1b3510f2140 100644 (file)
@@ -25,7 +25,6 @@
 #include "strutils.h"
 #include "all-io.h"
 #include "namespace.h"
-#include "mount-api-utils.h"
 
 #include "mountP.h"
 
index 7622cc86395a5c5a77f7bb06cd15d240704872c8..f87f06816cd7a35c2c8009d7e6523a4c2c898031 100644 (file)
@@ -46,7 +46,6 @@
 #include "mountP.h"
 #include "fileutils.h" /* statx() fallback */
 #include "strutils.h"
-#include "mount-api-utils.h"
 #include "linux_version.h"
 
 #include <inttypes.h>
index 1ccf7b520c68f5b6c93f340fa77d7089170ea945..5949af7d8246c00c3120a10254cf43521398d4fd 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "mountP.h"
 #include "fileutils.h"
-#include "mount-api-utils.h"
 
 struct hookset_data {
        char *subdir;
index 6b9bd4bb25a011c1adeac0aced71935747dd2860..23eca4efdc4db2c017dc4bf87e6cb92a5f7aa538 100644 (file)
@@ -27,7 +27,6 @@
  *   Usually implemented by locally defined 'struct hook_data' in hook_*.c.
  */
 #include "mountP.h"
-#include "mount-api-utils.h"
 
 /* built-in hooksets */
 static const struct libmnt_hookset *const hooksets[] =
index 893f9e72947a3a10d027df778ebe16b025f79fc7..9835415c4355c77831de5648db326233589ca30e 100644 (file)
@@ -30,6 +30,8 @@
 #include "buffer.h"
 #include "libmount.h"
 
+#include "mount-api-utils.h"
+
 /*
  * Debug
  */
index 4ca3ef4b41047c96d619c9e9c3013884a0282b39..256c592fdec5e75f33cea95363355ef3b04c7e48 100644 (file)
@@ -16,7 +16,6 @@
 #include "strutils.h"
 #include "list.h"
 #include "mountP.h"
-#include "mount-api-utils.h"
 
 #define MNT_OL_MAXMAPS 8
 
index b1e34327e89f62598bb07c29b97bc3c4a9a364a0..f60c15c516557ef71a508e80bdeef552000224c6 100644 (file)
@@ -19,7 +19,6 @@
 #include <ctype.h>
 
 #include "mountP.h"
-#include "mount-api-utils.h"
 
 static const char *lib_version = LIBMOUNT_VERSION;
 static const char *lib_features[] = {