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 2
2
// Copyright (c) 2025 Miklos Szeredi <[email protected] >
3
3
4
4
#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
+
5
12
#include <fcntl.h>
6
13
#include <sched.h>
7
14
#include <stdio.h>
10
17
#include <sys/mount.h>
11
18
#include <unistd.h>
12
19
#include <sys/syscall.h>
20
+ #include <sys/fanotify.h>
13
21
14
22
#include "../../kselftest_harness.h"
15
23
#include "../statmount/statmount.h"
16
24
#include "../utils.h"
17
25
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
-
27
26
static const char root_mntpoint_templ [] = "/tmp/mount-notify_test_root.XXXXXX" ;
28
27
29
28
static const int mark_cmds [] = {
Original file line number Diff line number Diff line change 2
2
// Copyright (c) 2025 Miklos Szeredi <[email protected] >
3
3
4
4
#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
+
5
12
#include <fcntl.h>
6
13
#include <sched.h>
7
14
#include <stdio.h>
10
17
#include <sys/mount.h>
11
18
#include <unistd.h>
12
19
#include <sys/syscall.h>
20
+ #include <sys/fanotify.h>
13
21
14
22
#include "../../kselftest_harness.h"
15
- #include "../../pidfd/pidfd.h"
16
23
#include "../statmount/statmount.h"
17
24
#include "../utils.h"
18
25
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
-
28
26
static const char root_mntpoint_templ [] = "/tmp/mount-notify_test_root.XXXXXX" ;
29
27
30
28
static const int mark_types [] = {
You can’t perform that action at this time.
0 commit comments