Home
last modified time | relevance | path

Searched refs:mount (Results 1 - 25 of 746) sorted by relevance

12345678910>>...30

/kernel/linux/linux-6.6/fs/
H A Dpnode.c9 #include <linux/mount.h>
12 #include <uapi/linux/mount.h>
16 /* return the next shared peer mount of @p */
17 static inline struct mount *next_peer(struct mount *p) in next_peer()
19 return list_entry(p->mnt_share.next, struct mount, mnt_share); in next_peer()
22 static inline struct mount *first_slave(struct mount *p) in first_slave()
24 return list_entry(p->mnt_slave_list.next, struct mount, mnt_slave); in first_slave()
27 static inline struct mount *last_slav
[all...]
H A Dpnode.h11 #include "mount.h"
33 static inline void set_mnt_shared(struct mount *mnt) in set_mnt_shared()
39 void change_mnt_propagation(struct mount *, int);
40 int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
43 int propagate_mount_busy(struct mount *, int);
44 void propagate_mount_unlock(struct mount *);
45 void mnt_release_group_id(struct mount *);
46 int get_dominating_id(struct mount *mnt, const struct path *root);
47 int mnt_get_count(struct mount *mn
[all...]
H A Dmount.h2 #include <linux/mount.h>
10 struct mount * root;
39 struct mount { struct
41 struct mount *mnt_parent;
56 struct list_head mnt_instance; /* mount instance on sb->s_mounts */
63 struct mount *mnt_master; /* slave is on master->mnt_slave_list */
75 int mnt_id; /* mount identifier */
84 static inline struct mount *real_mount(struct vfsmount *mnt) in real_mount()
86 return container_of(mnt, struct mount, mnt); in real_mount()
89 static inline int mnt_has_parent(struct mount *mn
[all...]
H A Dnamespace.c31 #include <uapi/linux/mount.h>
39 /* Maximum number of mounts in a mount namespace */
127 static int mnt_alloc_id(struct mount *mnt) in mnt_alloc_id()
137 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
145 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
158 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
167 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
181 int mnt_get_count(struct mount *mnt) in mnt_get_count()
197 static struct mount *alloc_vfsmnt(const char *name) in alloc_vfsmnt()
199 struct mount *mn in alloc_vfsmnt()
[all...]
/kernel/linux/linux-5.10/fs/
H A Dpnode.c9 #include <linux/mount.h>
12 #include <uapi/linux/mount.h>
16 /* return the next shared peer mount of @p */
17 static inline struct mount *next_peer(struct mount *p) in next_peer()
19 return list_entry(p->mnt_share.next, struct mount, mnt_share); in next_peer()
22 static inline struct mount *first_slave(struct mount *p) in first_slave()
24 return list_entry(p->mnt_slave_list.next, struct mount, mnt_slave); in first_slave()
27 static inline struct mount *last_slav
[all...]
H A Dpnode.h11 #include "mount.h"
33 static inline void set_mnt_shared(struct mount *mnt) in set_mnt_shared()
39 void change_mnt_propagation(struct mount *, int);
40 int propagate_mnt(struct mount *, struct mountpoint *, struct mount *,
43 int propagate_mount_busy(struct mount *, int);
44 void propagate_mount_unlock(struct mount *);
45 void mnt_release_group_id(struct mount *);
46 int get_dominating_id(struct mount *mnt, const struct path *root);
47 int mnt_get_count(struct mount *mn
[all...]
H A Dmount.h2 #include <linux/mount.h>
11 struct mount * root;
40 struct mount { struct
42 struct mount *mnt_parent;
57 struct list_head mnt_instance; /* mount instance on sb->s_mounts */
64 struct mount *mnt_master; /* slave is on master->mnt_slave_list */
76 int mnt_id; /* mount identifier */
85 static inline struct mount *real_mount(struct vfsmount *mnt) in real_mount()
87 return container_of(mnt, struct mount, mnt); in real_mount()
90 static inline int mnt_has_parent(struct mount *mn
[all...]
H A Dnamespace.c30 #include <uapi/linux/mount.h>
37 /* Maximum number of mounts in a mount namespace */
105 static int mnt_alloc_id(struct mount *mnt) in mnt_alloc_id()
115 static void mnt_free_id(struct mount *mnt) in mnt_free_id()
123 static int mnt_alloc_group_id(struct mount *mnt) in mnt_alloc_group_id()
136 void mnt_release_group_id(struct mount *mnt) in mnt_release_group_id()
145 static inline void mnt_add_count(struct mount *mnt, int n) in mnt_add_count()
159 int mnt_get_count(struct mount *mnt) in mnt_get_count()
175 static struct mount *alloc_vfsmnt(const char *name) in alloc_vfsmnt()
177 struct mount *mn in alloc_vfsmnt()
[all...]
/kernel/linux/linux-5.10/security/tomoyo/
H A Dmount.c3 * security/tomoyo/mount.c
9 #include <uapi/linux/mount.h>
12 /* String table for special mount operations. */
24 * tomoyo_audit_mount_log - Audit mount log.
32 return tomoyo_supervisor(r, "file mount %s %s %s 0x%lX\n", in tomoyo_audit_mount_log()
33 r->param.mount.dev->name, in tomoyo_audit_mount_log()
34 r->param.mount.dir->name, in tomoyo_audit_mount_log()
35 r->param.mount.type->name, in tomoyo_audit_mount_log()
36 r->param.mount.flags); in tomoyo_audit_mount_log()
53 return tomoyo_compare_number_union(r->param.mount in tomoyo_check_mount_acl()
[all...]
/kernel/linux/linux-6.6/security/tomoyo/
H A Dmount.c3 * security/tomoyo/mount.c
9 #include <uapi/linux/mount.h>
12 /* String table for special mount operations. */
24 * tomoyo_audit_mount_log - Audit mount log.
32 return tomoyo_supervisor(r, "file mount %s %s %s 0x%lX\n", in tomoyo_audit_mount_log()
33 r->param.mount.dev->name, in tomoyo_audit_mount_log()
34 r->param.mount.dir->name, in tomoyo_audit_mount_log()
35 r->param.mount.type->name, in tomoyo_audit_mount_log()
36 r->param.mount.flags); in tomoyo_audit_mount_log()
53 return tomoyo_compare_number_union(r->param.mount in tomoyo_check_mount_acl()
[all...]
/kernel/linux/build/test/moduletest/runtest/bin/
H A Denhancedf2fs_t_init.sh32 gc_merge_mount_opt=$(mount |grep gc_merge)
34 mount -o remount,gc_merge $DISK_PATH/
35 mount -o remount,nogc_merge $DISK_PATH/
37 mount -o remount,nogc_merge $DISK_PATH/
38 mount -o remount,gc_merge $DISK_PATH/
40 mount -o remount,rw $DISK_PATH/
/kernel/linux/linux-6.6/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c9 #include <sys/mount.h>
118 if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0)) in prepare_unpriv_mountns()
198 if (mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in move_mount_set_group_supported()
202 if (mount(NULL, "/tmp", NULL, MS_PRIVATE, 0)) in move_mount_set_group_supported()
211 if (mount("testing", SET_GROUP_FROM, "tmpfs", MS_NOATIME | MS_NODEV, in move_mount_set_group_supported()
215 if (mount(SET_GROUP_FROM, SET_GROUP_TO, NULL, MS_BIND, NULL)) in move_mount_set_group_supported()
218 if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) in move_mount_set_group_supported()
246 ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
251 ASSERT_EQ(mount("testing", SET_GROUP_A, "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP()
319 ret = mount(NUL in get_nestedns_mount_cb()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c5 #include <sys/mount.h>
38 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
39 if (CHECK(err, "mount /", "failed: %d\n", errno)) in fn()
46 err = mount("none", TDIR, "tmpfs", 0, NULL); in fn()
47 if (CHECK(err, "mount", "mount root failed: %d\n", errno)) in fn()
57 err = mount("bpf", TDIR "/fs1", "bpf", 0, NULL); in fn()
58 if (CHECK(err, "mount bpffs "TDIR"/fs1", "failed: %d\n", errno)) in fn()
60 err = mount("bpf", TDIR "/fs2", "bpf", 0, NULL); in fn()
61 if (CHECK(err, "mount bpff in fn()
[all...]
/kernel/liteos_a/fs/include/fs/
H A Dmount.h45 LIST_ENTRY mountList; /* mount list */
46 const struct MountOps *ops; /* operations of mount */
56 unsigned long mountFlags; /* Flags for mount */
57 char pathName[PATH_MAX]; /* path name of mount point */
62 int (*Mount)(struct Mount *mount, struct Vnode *vnode, const void *data);
63 int (*Unmount)(struct Mount *mount, struct Vnode **blkdriver);
64 int (*Statfs)(struct Mount *mount, struct statfs *sbp);
65 int (*Sync)(struct Mount *mount);
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
H A Dinit.c15 #include <sys/mount.h>
91 if (mount("none", "/dev", "devtmpfs", 0, NULL)) in mount_filesystems()
92 panic("devtmpfs mount"); in mount_filesystems()
93 if (mount("none", "/proc", "proc", 0, NULL)) in mount_filesystems()
94 panic("procfs mount"); in mount_filesystems()
95 if (mount("none", "/sys", "sysfs", 0, NULL)) in mount_filesystems()
96 panic("sysfs mount"); in mount_filesystems()
97 if (mount("none", "/tmp", "tmpfs", 0, NULL)) in mount_filesystems()
98 panic("tmpfs mount"); in mount_filesystems()
99 if (mount("non in mount_filesystems()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/qemu/
H A Dinit.c16 #include <sys/mount.h>
92 if (mount("none", "/dev", "devtmpfs", 0, NULL)) in mount_filesystems()
93 panic("devtmpfs mount"); in mount_filesystems()
94 if (mount("none", "/proc", "proc", 0, NULL)) in mount_filesystems()
95 panic("procfs mount"); in mount_filesystems()
96 if (mount("none", "/sys", "sysfs", 0, NULL)) in mount_filesystems()
97 panic("sysfs mount"); in mount_filesystems()
98 if (mount("none", "/tmp", "tmpfs", 0, NULL)) in mount_filesystems()
99 panic("tmpfs mount"); in mount_filesystems()
100 if (mount("non in mount_filesystems()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/firmware/
H A Dfw_namespace.c2 /* Test triggering of loading of firmware from different mount
3 * namespaces. Expect firmware to be always loaded from the mount
14 #include <sys/mount.h>
72 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
105 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1) in test_fw_in_ns()
109 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
128 if (mount("test", "/lib/firmware", "tmpfs", 0, NULL) == -1) in main()
138 /* Positive case: firmware in PID1 mount namespace */ in main()
143 /* Negative case: firmware in child mount namespace, expected to fail */ in main()
/kernel/linux/linux-6.6/tools/testing/selftests/firmware/
H A Dfw_namespace.c2 /* Test triggering of loading of firmware from different mount
3 * namespaces. Expect firmware to be always loaded from the mount
14 #include <sys/mount.h>
72 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
105 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1) in test_fw_in_ns()
109 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
128 if (mount("test", "/lib/firmware", "tmpfs", 0, NULL) == -1) in main()
138 /* Positive case: firmware in PID1 mount namespace */ in main()
143 /* Negative case: firmware in child mount namespace, expected to fail */ in main()
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
H A Dproc-multiple-procfs.c19 #include <sys/mount.h>
33 assert(!mount("proc", procdir1, "proc", 0, "hidepid=1")); in main()
34 assert(!mount("proc", procdir2, "proc", 0, "hidepid=2")); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/proc/
H A Dproc-multiple-procfs.c19 #include <sys/mount.h>
33 assert(!mount("proc", procdir1, "proc", 0, "hidepid=1")); in main()
34 assert(!mount("proc", procdir2, "proc", 0, "hidepid=2")); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c23 #include <sys/mount.h>
38 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
39 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
44 if (mount(NULL, "/tmp", "tmpfs", 0, "nr_inodes=3") == -1) { in main()
45 fprintf(stderr, "error: mount tmpfs, errno %d\n", errno); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
H A Drecursion-depth.c24 #include <sys/mount.h>
37 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
38 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
42 if (mount(NULL, "/tmp", "ramfs", 0, NULL) == -1) { in main()
43 fprintf(stderr, "error: mount ramfs, errno %d\n", errno); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c23 #include <sys/mount.h>
38 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
39 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
44 if (mount(NULL, "/tmp", "tmpfs", 0, "nr_inodes=3") == -1) { in main()
45 fprintf(stderr, "error: mount tmpfs, errno %d\n", errno); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/exec/
H A Drecursion-depth.c24 #include <sys/mount.h>
37 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in main()
38 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main()
42 if (mount(NULL, "/tmp", "ramfs", 0, NULL) == -1) { in main()
43 fprintf(stderr, "error: mount ramfs, errno %d\n", errno); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c6 #include <sys/mount.h>
42 err = mount("", "/", "", MS_REC | MS_PRIVATE, NULL); in fn()
43 if (!ASSERT_OK(err, "mount /")) in fn()
50 err = mount("none", TDIR, "tmpfs", 0, NULL); in fn()
51 if (!ASSERT_OK(err, "mount tmpfs")) in fn()
61 err = mount("bpf", TDIR "/fs1", "bpf", 0, NULL); in fn()
62 if (!ASSERT_OK(err, "mount bpffs " TDIR "/fs1")) in fn()
64 err = mount("bpf", TDIR "/fs2", "bpf", 0, NULL); in fn()
65 if (!ASSERT_OK(err, "mount bpffs " TDIR "/fs2")) in fn()

Completed in 15 milliseconds

12345678910>>...30