@@ -90,8 +90,4 @@ int safe_touch(const char *file, const int lineno,
const char *pathname,
mode_t mode, const struct timespec times[2]);
-/* helper functions to setup overlayfs mountpoint */
-void create_overlay_dirs(void);
-int mount_overlay(const char *file, const int lineno, int strict);
-
#endif /* SAFE_FILE_OPS_FN */
@@ -56,6 +56,12 @@
safe_touch(__FILE__, __LINE__, NULL, \
(pathname), (mode), (times))
+/* New API only functions */
+
+/* helper functions to setup overlayfs mountpoint */
+void create_overlay_dirs(void);
+int mount_overlay(const char *file, const int lineno, int strict);
+
#define SAFE_MOUNT_OVERLAY() \
((void) mount_overlay(__FILE__, __LINE__, 1))
create_overlay_dirs() and mount_overlay() were implemented only in new API (and we are not planning to use them in legacy API), thus remove them from legacy API header. Fixes: a88bbb43d ("lib: add helpers to setup overlayfs mountpoint") Signed-off-by: Petr Vorel <pvorel@suse.cz> --- include/safe_file_ops_fn.h | 4 ---- include/tst_safe_file_ops.h | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-)