/Linux-v5.10/Documentation/filesystems/ |
D | sharedsubtree.rst | 10 3) Setting mount states 36 a. shared mount 37 b. slave mount 38 c. private mount 39 d. unbindable mount 42 2a) A shared mount can be replicated to as many mountpoints and all the 47 Let's say /mnt has a mount that is shared:: 49 mount --make-shared /mnt 51 Note: mount(8) command now supports the --make-shared flag, 57 # mount --bind /mnt /tmp [all …]
|
D | autofs-mount-control.rst | 17 are things such as setting an autofs mount catatonic, setting the 20 mount itself which prevents us being able to use open(2) to obtain a 25 needs to walk back up the mount tree to construct a path, such as 28 from the mount tree. 33 because autofs direct mounts and the implementation of "on demand mount 34 and expire" of nested mount trees have the file system mounted directly 35 on top of the mount trigger directory dentry. 39 a direct mount in disguise) and indirect. 62 operation. So we see a mount of shark:/autofs/export1 on /test/g1, for 65 The way that direct mounts are handled is by making an autofs mount on [all …]
|
D | autofs.rst | 46 symbolic links and mount traps. Mount traps are directories with 51 mount traps are created with `mkdir`. The determination of whether a 52 directory should be a mount trap is based on a master map. This master 53 map is consulted by autofs to determine which directories are mount 54 points. Mount points can be *direct*/*indirect*/*offset*. 57 If neither the *direct* or *offset* mount options are given (so the 58 mount is considered to be *indirect*), then the root directory is 59 always a regular directory, otherwise it is a mount trap when it is 62 directory is a mount trap only if the filesystem is mounted *direct* 65 Directories created in the root directory are mount traps only if the [all …]
|
D | fuse.rst | 18 Non-privileged mount (or user mount): 31 Mount owner: 41 module (fuse.ko), a userspace library (libfuse.*) and a mount utility 55 The filesystem type given to mount(2) can be one of the following: 58 This is the usual way to mount a FUSE filesystem. The first 59 argument of the mount system call may contain an arbitrary string, 64 mount system call is interpreted as the name of the device. 66 Mount options 78 The numeric user id of the mount owner. 81 The numeric group id of the mount owner. [all …]
|
D | tmpfs.rst | 17 be adjusted on the fly via 'mount -o remount ...' 33 1) There is always a kernel internal mount which you will not see at 37 This mount does not depend on CONFIG_TMPFS. If CONFIG_TMPFS is not 47 Remember to create the directory that you intend to mount tmpfs on 50 This mount is _not_ needed for SYSV shared memory. The internal 51 mount is used for that. (In the 2.3 kernel versions it was 52 necessary to mount the predecessor of tmpfs (shm fs) to use SYSV 55 3) Some people (including me) find it very convenient to mount it 63 tmpfs has three mount options for sizing: 84 mount with such options, since it allows any user with write access to [all …]
|
D | gfs2-uevents.rst | 7 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 30 The ONLINE uevent is generated after a successful mount or remount. It 40 successful mount of the filesystem by the first node (FIRSTMOUNT=Done). 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 [all …]
|
D | overlayfs.rst | 35 make the overlay mount more compliant with filesystem scanners and 48 feature with the "-o xino=on" overlay mount option. That is useful for the 120 At mount time, the two directories given as mount options "lowerdir" and 123 mount -t overlay overlay -olowerdir=/lower,upperdir=/upper,\ 228 Mount options: 291 2) task creating the overlay mount MUST NOT gain additional privileges 317 mount -t overlay overlay -olowerdir=/lower,upperdir=/upper,... /merged 322 mount --bind /upper /merged 334 mount -t overlay overlay -olowerdir=/lower1:/lower2:/lower3 /merged 358 parameter metacopy=on/off. Lastly, there is also a per mount option [all …]
|
D | ecryptfs.rst | 37 then copy the files back into the new eCryptfs mount to migrate the 41 Mount-wide Passphrase 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,
|
D | virtiofs.rst | 15 guest to mount a directory that has been exported on the host. 33 Mount file system with tag ``myfs`` on ``/mnt``: 37 guest# mount -t virtiofs myfs /mnt 42 Mount options 45 virtiofs supports general VFS mount options, for example, remount, 46 ro, rw, context, etc. It also supports FUSE mount options. 51 The atime-related mount options, for example, noatime, strictatime,
|
/Linux-v5.10/fs/ |
D | pnode.c | 9 #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_slave(struct mount *p) in last_slave() 29 return list_entry(p->mnt_slave_list.prev, struct mount, mnt_slave); in last_slave() 32 static inline struct mount *next_slave(struct mount *p) in next_slave() [all …]
|
D | pnode.h | 11 #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 unsigned int mnt_get_count(struct mount *mnt); 48 void mnt_set_mountpoint(struct mount *, struct mountpoint *, [all …]
|
D | namespace.c | 30 #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 unsigned 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 *mnt = kmem_cache_zalloc(mnt_cache, GFP_KERNEL); in alloc_vfsmnt() [all …]
|
D | mount.h | 2 #include <linux/mount.h> 11 struct mount * root; 40 struct mount { struct 42 struct mount *mnt_parent; argument 57 struct list_head mnt_instance; /* mount instance on sb->s_mounts */ argument 64 struct mount *mnt_master; /* slave is on master->mnt_slave_list */ argument 76 int mnt_id; /* mount identifier */ argument 85 static inline struct mount *real_mount(struct vfsmount *mnt) in real_mount() argument 87 return container_of(mnt, struct mount, mnt); in real_mount() 90 static inline int mnt_has_parent(struct mount *mnt) in mnt_has_parent() [all …]
|
/Linux-v5.10/Documentation/admin-guide/cifs/ |
D | usage.rst | 54 If you do not have the utility mount.cifs (in the Samba 4.x source tree and on 55 the CIFS VFS web site) copy it to the same directory in which mount helpers 57 required, mount.cifs is recommended. Most distros include a ``cifs-utils`` 62 domain to the proper network user. The mount.cifs mount helper can be 78 the new default. To use old dialects (e.g. to mount Windows XP) use "vers=1.0" 79 on mount (or vers=2.0 for Windows Vista). Note that the CIFS (vers=1.0) is 83 There are additional mount options that may be helpful for SMB3 to get 91 To permit users to mount and unmount over directories they own is possible 92 with the cifs vfs. A way to enable such mounting is to mark the mount.cifs 93 utility as suid (e.g. ``chmod +s /sbin/mount.cifs``). To enable users to [all …]
|
/Linux-v5.10/security/tomoyo/ |
D | mount.c | 3 * 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.flags, in tomoyo_check_mount_acl() [all …]
|
/Linux-v5.10/Documentation/admin-guide/nfs/ |
D | nfs-rdma.rst | 55 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 73 these to create an NFS/RDMA enabled mount command), the installation 84 After building the nfs-utils package, there will be a mount.nfs binary in 85 the utils/mount directory. This binary can be used to initiate NFS v2, v3, 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: [all …]
|
/Linux-v5.10/fs/autofs/ |
D | dev-ioctl.c | 20 * an ioctl file descriptor on an autofs mount that may be covered by 21 * another mount. This situation arises when starting automount(8) 23 * mounts (used for autofs lazy mount/umount of nested mount trees), 181 /* Find the topmost mount satisfying test() */ 223 * Open a file descriptor on the autofs mount point corresponding 256 /* Open a file descriptor on an autofs mount point */ 296 * Send "ready" status for an existing wait (either a mount or an expire 310 * Send "fail" status for an existing wait (either a mount or an expire 328 * Normally this is set at mount using an option but if we 329 * are reconnecting to a busy mount then we need to use this [all …]
|
D | root.c | 86 * mount point. The daemon must have failed to mount this in autofs_dir_open() 89 * mount request. Otherwise we're doing a readdir on the in autofs_dir_open() 249 pr_debug("waiting for mount name=%pd\n", path->dentry); in autofs_mount_wait() 251 pr_debug("mount wait done status=%d\n", status); in autofs_mount_wait() 290 * If this is an indirect mount the dentry could have gone away in autofs_mountpoint_changed() 318 /* The daemon never triggers a mount. */ in autofs_d_automount() 328 * the mount. in autofs_d_automount() 334 /* Callback to the daemon to perform the mount or wait */ in autofs_d_automount() 357 * after umounting a rootless multi-mount, although it in autofs_d_automount() 360 * the mount never trigger mounts themselves (they have an in autofs_d_automount() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | test_bpffs.c | 5 #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 bpffs " TDIR "/fs2", "failed: %d\n", errno)) in fn()
|
/Linux-v5.10/Documentation/filesystems/cifs/ |
D | cifsroot.rst | 15 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/cifs/cifsroot.c. 71 Optional mount options. For more information, see mount.cifs(8).
|
/Linux-v5.10/tools/testing/selftests/firmware/ |
D | fw_namespace.c | 2 /* 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() 126 /* Mount tmpfs to /lib/firmware so we don't have to assume in main() 128 if (mount("test", "/lib/firmware", "tmpfs", 0, NULL) == -1) in main() 137 /* Positive case: firmware in PID1 mount namespace */ in main() 142 /* Negative case: firmware in child mount namespace, expected to fail */ in main()
|
/Linux-v5.10/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 12 #include <sys/mount.h> 210 ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC, in verify_non_standard_devpts_mount() 213 fprintf(stderr, "Failed to mount devpts fs to \"%s\" in new " in verify_non_standard_devpts_mount() 214 "mount namespace: %s\n", mntpoint, in verify_non_standard_devpts_mount() 238 ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL); in verify_ptmx_bind_mount() 240 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to " in verify_ptmx_bind_mount() 241 "\"/dev/ptmx\" mount namespace\n"); in verify_ptmx_bind_mount() 265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); in verify_invalid_ptmx_bind_mount() 268 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to " in verify_invalid_ptmx_bind_mount() 269 "\"%s\" mount namespace\n", ptmx); in verify_invalid_ptmx_bind_mount() [all …]
|
/Linux-v5.10/samples/binderfs/ |
D | binderfs_example.c | 11 #include <sys/mount.h> 25 fprintf(stderr, "%s - Failed to unshare mount namespace\n", in main() 30 ret = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0); in main() 32 fprintf(stderr, "%s - Failed to mount / as private\n", in main() 44 ret = mount(NULL, "/dev/binderfs", "binder", 0, 0); in main() 46 fprintf(stderr, "%s - Failed to mount binderfs\n", in main() 80 /* Cleanup happens when the mount namespace dies. */ in main()
|
/Linux-v5.10/fs/jfs/ |
D | jfs_mount.c | 11 * file system mount is interpreted as the mount of aggregate, 12 * if not already mounted, and mount of the single/only fileset in 16 * (aka mount inode) initialized with aggregate superblock; 27 * each inode points to the mount inode (to facilitate access to 65 * -EBUSY - mount table full 66 * -ENOTDIR- cvrdvp not directory on a device mount 80 * (initialize mount inode from the superblock) in jfs_mount() 160 * mount (the only/single) fileset in jfs_mount() 216 jfs_err("Mount JFS Failure: %d", rc); in jfs_mount() 224 * FUNCTION: Completes read-write mount, or remounts read-only volume [all …]
|
/Linux-v5.10/fs/fat/ |
D | Kconfig | 8 to include FAT support. You will then be able to mount partitions or 24 Linux box, say Y here, mount the floppy under Linux with an MSDOS 40 This allows you to mount MSDOS partitions of your hard drive (unless 84 It can be overridden with the "codepage" mount option. 95 with the "iocharset" mount option for FAT filesystems. 109 Set this if you would like to have "utf8" mount option set 113 particular mount by adding "utf8=0" to mount options.
|