Home
last modified time | relevance | path

Searched refs:mount (Results 1 – 25 of 531) sorted by relevance

12345678910>>...22

/linux-6.15/fs/
H A Dpnode.c17 static inline struct mount *next_peer(struct mount *p) in next_peer()
22 static inline struct mount *first_slave(struct mount *p) in first_slave()
27 static inline struct mount *last_slave(struct mount *p) in last_slave()
32 static inline struct mount *next_slave(struct mount *p) in next_slave()
37 static struct mount *get_peer_under_root(struct mount *mnt, in get_peer_under_root()
62 struct mount *m; in get_dominating_id()
94 struct mount *m; in do_make_slave()
149 static struct mount *propagation_next(struct mount *m, in propagation_next()
170 static struct mount *skip_propagation_subtree(struct mount *m, in skip_propagation_subtree()
183 static struct mount *next_group(struct mount *m, struct mount *origin) in next_group()
[all …]
H A Dpnode.h33 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 *);
47 int mnt_get_count(struct mount *mnt);
49 struct mount *);
51 struct mount *mnt);
52 struct mount *copy_tree(struct mount *, struct dentry *, int);
[all …]
H A Dmount.h16 struct mount * root;
55 struct mount { struct
57 struct mount *mnt_parent; argument
80 struct mount *mnt_master; /* slave is on master->mnt_slave_list */ argument
104 static inline struct mount *real_mount(struct vfsmount *mnt) in real_mount() argument
106 return container_of(mnt, struct mount, mnt); in real_mount()
109 static inline int mnt_has_parent(struct mount *mnt) in mnt_has_parent()
126 struct mount *m = __lookup_mnt(path->mnt, path->dentry); in __path_is_mountpoint()
168 static inline bool mnt_ns_attached(const struct mount *mnt) in mnt_ns_attached()
201 static inline void mnt_notify_add(struct mount *m) in mnt_notify_add()
[all …]
H A Dnamespace.c841 struct mount *p; in __lookup_mnt()
1105 static void __attach_mnt(struct mount *mnt, struct mount *parent) in __attach_mnt()
1134 static void attach_mnt(struct mount *mnt, struct mount *parent, in attach_mnt()
1205 struct mount *m; in commit_tree()
1225 static struct mount *next_mnt(struct mount *p, struct mount *root) in next_mnt()
1241 static struct mount *skip_mnt_tree(struct mount *p) in skip_mnt_tree()
1414 struct mount *m; in cleanup_mnt()
1583 struct mount *p; in mnt_clone_internal()
1698 struct mount *p; in may_umount_tree()
1792 struct mount *m; in namespace_unlock()
[all …]
/linux-6.15/Documentation/filesystems/
H A Dsharedsubtree.rst86 2b) A slave mount is like a shared mount except that mount and umount events
290 mount --make-slave mount
310 mount --make-shared mount
385 1. 'A' is a shared mount and 'B' is a shared mount. A new mount 'C'
394 2. 'A' is a private mount and 'B' is a shared mount. A new mount 'C'
402 3. 'A' is a slave mount of mount 'Z' and 'B' is a shared mount. A new
424 7. 'A' is a slave mount of mount 'Z' and 'B' is a non-shared mount. A
513 propagation from mount 'B'. The mount 'A' becomes a shared mount and a
518 3. 'A' is a slave mount of mount 'Z' and 'B' is a shared mount. The
535 unbindable) mount. The mount 'A' is mounted on mount 'B' at dentry 'b'.
[all …]
H A Dautofs-mount-control.rst28 from the mount tree.
105 above and so the mount points can be covered by a mount.
141 in the mount table. An operation to lookup the mount status of a mount
202 The ioctlfd field is a mount point file descriptor of an autofs mount
274 the autofs mount. The device number can be obtained from the mount options
300 to a existing mount we need to use this to tell the autofs mount about
316 Make the autofs mount point catatonic. The autofs mount will no longer
391 set to an autofs mount type. The call returns 1 if this is a mount point
400 a mountpoint or contains a mount, such as a multi-mount without a root
401 mount. In this case we return 1 if the descriptor corresponds to a mount
[all …]
H A Dtmpfs.rst17 mount. tmpfs also supports THP.
63 mount is used for that. (In the 2.3 kernel versions it was
67 3) Some people (including me) find it very convenient to mount it
75 tmpfs has three mount options for sizing:
104 tmpfs has a mount option to disable its use of swap:
114 The mount options for this are:
129 tmpfs also supports quota with the following mount options
136 on the mount.
138 on the mount.
162 adjusted on the fly via 'mount -o remount ...'
[all …]
H A Dgfs2-uevents.rst7 During the lifetime of a GFS2 mount, a number of uevents are generated.
17 The ADD event occurs at mount time. It will always be the first
18 uevent generated by the newly created filesystem. If the mount
23 and RDONLY=[0|1] that specify the spectator status (a read-only mount
42 nodes in the cluster to mount the filesystem.
49 for every journal recovered, whether it is during the initial mount
58 uevent for a successful mount or remount.
71 The REMOVE uevent is generated at the end of an unsuccessful mount
84 The LOCKTABLE is a string, as supplied on the mount command
86 as well as providing the information for a lock_dlm mount to be
[all …]
H A Dautofs.rst78 and whether the mount was *indirect* or not.
103 mount has already happened. The VFS doesn't try to mount anything but
104 follows down the mount that is already there.
135 causing the directory not be a mount trap after all.
141 caught in the mount trap.
183 reason that it might not be is if an expiry of the mount is
321 be passed using the 'fd=' mount option. autofs will write
550 The "ignore" mount option
555 mount information.
558 space based on the kernel mount list a no-op mount option ("ignore" is
[all …]
H A Dfuse.rst18 Non-privileged mount (or user mount):
64 mount system call is interpreted as the name of the device.
78 The numeric user id of the mount owner.
81 The numeric group id of the mount owner.
89 'allow_other' mount option.
111 mount -t fusectl none /sys/fs/fuse/connections
132 Only the owner of the mount may read or write these files.
226 A) The mount owner could gain elevated privileges by either:
275 monitored or manipulated by the mount owner. Since if the
276 mount owner can ptrace a process, it can do all of the above
[all …]
H A Ddevpts.rst7 Each mount of the devpts filesystem is now distinct such that ptys
8 and their indices allocated in one mount are independent from ptys
21 to bind mount ``/dev/ptx/ptmx`` to ``/dev/ptmx``. If you opt for using
28 kernel.pty.reserve = 1024 - reserved for filesystems mounted from the initial mount namespace
31 Per-instance limit could be set by adding mount option ``max=<count>``.
H A Doverlayfs.rst120 At mount time, the two directories given as mount options "lowerdir" and
298 In the old mount api the credentials of the task calling mount(2) are
306 the new mount api as the old mount api combines setting options and
344 mount --bind /upper /merged
447 the "datadir+" mount options and the fsconfig syscall from new mount api.
463 fsconfig syscall from the new mount api::
547 lower root origin, mount will fail with ESTALE. An overlayfs mount with
553 mount time. So if same upper is mounted with different set of lower, mount
577 mount, so to support storing an effective whiteout file in an overlayfs mount an
746 read-write mount and will result in an error.
[all …]
H A Decryptfs.rst37 then copy the files back into the new eCryptfs mount to migrate the
45 files (i.e., /root/crypt). Then, create the mount point directory
46 (i.e., /mnt/crypt). Now it's time to mount eCryptfs::
48 mount -t ecryptfs /root/crypt /mnt/crypt
65 Then umount /mnt/crypt and mount again per the instructions given
78 mount a directory that has pre-existing files not created by eCryptfs,
H A D9p.rst41 mount -t 9p 10.10.1.2 /mnt/9
45 mount -t 9p `namespace`/acme /mnt/9 -o trans=unix,uname=$USER
49 mount -t 9p -o trans=virtio <mount_tag> /mnt/9
53 associated "mount_tag" property. Available mount tags can be
59 To mount a 9p FS on a USB Host accessible via the gadget at runtime::
61 mount -t 9p -o trans=usbg,aname=/path/to/fs <device> /mnt/9
119 unix specifying a named pipe mount point
168 have an exclusive mount and the server will not modify the
206 dfltuid attempt to mount as a particular uid
208 dfltgid attempt to mount with a particular gid
[all …]
H A Didmappings.rst707 VFS ids in the mount's idmapping::
713 make_kuid(mount, uid) = kuid
722 from_kuid(mount, kid) = uid
736 mount idmapping: u0:v10000:r10000
805 mount idmapping: u0:v10000:r10000
839 mount idmapping: u0:v10000:r10000
872 mount idmapping: u0:v10000:r10000
909 mount idmapping: u0:v10000:r10000
956 and files on a per-mount basis.
981 mount idmapping: u1000:v1125:r1
[all …]
/linux-6.15/security/tomoyo/
H A Dmount.c33 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()
57 tomoyo_compare_name_union(r->param.mount.dir, in tomoyo_check_mount_acl()
59 (!r->param.mount.need_dev || in tomoyo_check_mount_acl()
159 r->param.mount.need_dev = need_dev; in tomoyo_mount_acl()
160 r->param.mount.dev = &rdev; in tomoyo_mount_acl()
161 r->param.mount.dir = &rdir; in tomoyo_mount_acl()
162 r->param.mount.type = &rtype; in tomoyo_mount_acl()
[all …]
/linux-6.15/Documentation/admin-guide/cifs/
H A Dusage.rst62 domain to the proper network user. The mount.cifs mount helper can be
103 in order to reduce risks, the ``nosuid`` mount flag is passed in on mount to
166 disabled on a per-mount basis by specifying ``nouser_xattr`` on mount.
172 ``noacl`` on mount.
213 mount helper display the mount steps more verbosely.
289 mount.
308 who executed the mount (root, except when mount.cifs
412 when the cifs mount helper cifs.mount (version 1.1 or later)
435 the mount helper, mount.cifs. When mount.cifs is installed it
476 under nfsd requires this mount option on the cifs mount.
[all …]
/linux-6.15/tools/testing/selftests/pid_namespace/
H A Dpid_max.c42 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_cb()
50 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_cb()
88 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_inner()
96 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_nested_inner()
163 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_outer()
171 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_nested_outer()
232 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_inner()
240 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_nested_limit_inner()
289 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in pid_max_nested_limit_outer()
297 ret = mount("proc", "/proc", "proc", 0, NULL); in pid_max_nested_limit_outer()
/linux-6.15/tools/testing/selftests/filesystems/mount-notify/
H A Dmount-notify_test.c266 ret = mount("", "/", NULL, MS_SHARED, NULL); in setup_mount_tree()
270 ret = mount("/", "/", NULL, MS_BIND, NULL); in setup_mount_tree()
280 ret = mount("/", "/", NULL, MS_BIND, NULL); in TEST_F()
305 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
345 ret = mount("", "/", NULL, MS_PRIVATE, NULL); in TEST_F()
401 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
404 ret = mount("", "/a", NULL, MS_SHARED, NULL); in TEST_F()
410 ret = mount("", "/b", NULL, MS_SLAVE, NULL); in TEST_F()
418 ret = mount("/", "/a", NULL, MS_BIND, NULL); in TEST_F()
426 ret = mount("/", "/b", NULL, MS_BIND, NULL); in TEST_F()
[all …]
/linux-6.15/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c118 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(NULL, SET_GROUP_A, NULL, MS_SHARED, 0); in get_nestedns_mount_cb()
/linux-6.15/Documentation/admin-guide/nfs/
H A Dnfs-rdma.rst55 An NFS/RDMA mount point can be obtained by using the mount.nfs command in
59 mount.nfs you are using, type:
63 $ /sbin/mount.nfs -V
86 or v4 mounts. To initiate a v4 mount, the binary must be called
87 mount.nfs4. The standard technique is to create a symlink called
88 mount.nfs4 to mount.nfs.
90 This mount.nfs binary should be installed at /sbin/mount.nfs as follows:
94 $ sudo cp utils/mount/mount.nfs /sbin/mount.nfs
97 by the system mount command.
283 command to mount the NFS/RDMA server:
[all …]
/linux-6.15/Documentation/filesystems/smb/
H A Dcifsroot.rst15 which will tell the kernel to mount the root file system over the
18 In order to mount, the network stack will also need to be set up by
22 A CIFS root mount currently requires the use of SMB1+UNIX Extensions
31 to use can nonetheless be changed via the 'vers=' mount option. This
52 This is just a virtual device that basically tells the kernel to mount
59 Enables the kernel to mount the root file system via SMB that are
62 The default mount options are set in fs/smb/client/cifsroot.c.
71 Optional mount options. For more information, see mount.cifs(8).
/linux-6.15/security/
H A Dinode.c25 static struct vfsmount *mount; variable
121 error = simple_pin_fs(&fs_type, &mount, &mount_count); in securityfs_create_dentry()
126 parent = mount->mnt_root; in securityfs_create_dentry()
171 simple_release_fs(&mount, &mount_count); in securityfs_create_dentry()
312 simple_release_fs(&mount, &mount_count); in securityfs_remove()
318 simple_release_fs(&mount, &mount_count); in remove_one()
335 simple_pin_fs(&fs_type, &mount, &mount_count); in securityfs_recursive_remove()
337 simple_release_fs(&mount, &mount_count); in securityfs_recursive_remove()
/linux-6.15/tools/testing/selftests/wireguard/qemu/
H A Dinit.c92 if (mount("none", "/dev", "devtmpfs", 0, NULL)) in mount_filesystems()
94 if (mount("none", "/proc", "proc", 0, NULL)) in mount_filesystems()
96 if (mount("none", "/sys", "sysfs", 0, NULL)) in mount_filesystems()
98 if (mount("none", "/tmp", "tmpfs", 0, NULL)) in mount_filesystems()
100 if (mount("none", "/run", "tmpfs", 0, NULL)) in mount_filesystems()
102 if (mount("none", "/sys/kernel/debug", "debugfs", 0, NULL)) in mount_filesystems()
/linux-6.15/tools/testing/selftests/firmware/
H A Dfw_namespace.c68 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
101 if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL) == -1) in test_fw_in_ns()
105 if (mount("test", "/lib/firmware", "tmpfs", MS_RDONLY, NULL) == -1) in test_fw_in_ns()
124 if (mount("test", "/lib/firmware", "tmpfs", 0, NULL) == -1) in main()

12345678910>>...22