File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed
tools/testing/selftests/filesystems/mount-notify Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 22// Copyright (c) 2025 Miklos Szeredi <[email protected] > 33
44#define _GNU_SOURCE
5+
6+ // Needed for linux/fanotify.h
7+ typedef struct {
8+ int val [2 ];
9+ } __kernel_fsid_t ;
10+ #define __kernel_fsid_t __kernel_fsid_t
11+
512#include <fcntl.h>
613#include <sched.h>
714#include <stdio.h>
1017#include <sys/mount.h>
1118#include <unistd.h>
1219#include <sys/syscall.h>
20+ #include <sys/fanotify.h>
1321
1422#include "../../kselftest_harness.h"
1523#include "../statmount/statmount.h"
1624#include "../utils.h"
1725
18- // Needed for linux/fanotify.h
19- #ifndef __kernel_fsid_t
20- typedef struct {
21- int val [2 ];
22- } __kernel_fsid_t ;
23- #endif
24-
25- #include <sys/fanotify.h>
26-
2726static const char root_mntpoint_templ [] = "/tmp/mount-notify_test_root.XXXXXX" ;
2827
2928static const int mark_cmds [] = {
Original file line number Diff line number Diff line change 22// Copyright (c) 2025 Miklos Szeredi <[email protected] > 33
44#define _GNU_SOURCE
5+
6+ // Needed for linux/fanotify.h
7+ typedef struct {
8+ int val [2 ];
9+ } __kernel_fsid_t ;
10+ #define __kernel_fsid_t __kernel_fsid_t
11+
512#include <fcntl.h>
613#include <sched.h>
714#include <stdio.h>
1017#include <sys/mount.h>
1118#include <unistd.h>
1219#include <sys/syscall.h>
20+ #include <sys/fanotify.h>
1321
1422#include "../../kselftest_harness.h"
15- #include "../../pidfd/pidfd.h"
1623#include "../statmount/statmount.h"
1724#include "../utils.h"
1825
19- // Needed for linux/fanotify.h
20- #ifndef __kernel_fsid_t
21- typedef struct {
22- int val [2 ];
23- } __kernel_fsid_t ;
24- #endif
25-
26- #include <sys/fanotify.h>
27-
2826static const char root_mntpoint_templ [] = "/tmp/mount-notify_test_root.XXXXXX" ;
2927
3028static const int mark_types [] = {
You can’t perform that action at this time.
0 commit comments