Lines Matching refs:a
33 a. shared mount
39 2a) A shared mount can be replicated to as many mountpoints and all the
44 Let's say /mnt has a mount that is shared.
56 a b c
59 a b c
61 Now let's say we mount a device at /tmp/a
62 # mount /dev/sd0 /tmp/a
64 #ls /tmp/a
67 #ls /mnt/a
72 And the same is true even when /dev/sd0 is mounted on /mnt/a. The
73 contents will be visible under /tmp/a too.
76 2b) A slave mount is like a shared mount except that mount and umount events
79 All slave mounts have a master mount which is a shared.
83 Let's say /mnt has a mount which is shared.
89 the new mount at /tmp becomes a shared mount and it is a replica of
92 Now let's make the mount at /tmp; a slave of /mnt
95 let's mount /dev/sd0 on /mnt/a
96 # mount /dev/sd0 /mnt/a
98 #ls /mnt/a
101 #ls /tmp/a
124 2d) A unbindable mount is a unbindable private mount
126 let's say we have a mount at /mnt and we make is unbindable
135 Binding a unbindable mount is a invalid operation.
161 Now any process that clones off a new namespace will have a
162 mount at /cdrom which is a replica of the same mount in the
165 So when a CD is inserted and mounted at /cdrom that mount gets
179 A new process can clone off a new namespace. And mark some part
195 The above semantics allows a way to share mounts across
198 associate/disassociate a namespace with userid, then each user
205 a underlying versioning file system can return different
217 and if /usr has a versioning filesystem mounted, then that
235 5a) Mount states
244 A 'propagation event' is defined as event generated on a vfsmount
247 A 'peer group' is defined as a group of vfsmounts that propagate
252 A 'shared mount' is defined as a vfsmount that belongs to a
267 A 'slave mount' is defined as a vfsmount that receives
270 A slave mount as the name implies has a master mount from which
272 the slave mount to the master. Only a shared mount can be made
273 a slave by executing the following command
277 A shared mount that is made as a slave is no more shared unless
283 indicates that the mount is a slave of some vfsmount, and
289 peer group, and this peer-group is a slave of some other
292 Only a slave vfsmount can be made as 'shared and slave' by
295 or by moving the slave vfsmount under a shared vfsmount.
310 The state diagram below explains the state transition of a mount,
333 ** slaving a non-shared mount has no effect on the mount.
336 the state of a mount depending on type of the destination mount. Its
343 mount --bind A/a B/b
345 where 'A' is the source mount, 'a' is the dentry in the mount 'A', 'B'
365 1. 'A' is a shared mount and 'B' is a shared mount. A new mount 'C'
366 which is clone of 'A', is created. Its root dentry is 'a' . 'C' is
374 2. 'A' is a private mount and 'B' is a shared mount. A new mount 'C'
375 which is clone of 'A', is created. Its root dentry is 'a'. 'C' is
382 3. 'A' is a slave mount of mount 'Z' and 'B' is a shared mount. A new
383 mount 'C' which is clone of 'A', is created. Its root dentry is 'a' .
392 4. 'A' is a unbindable mount and 'B' is a shared mount. This is a
395 5. 'A' is a private mount and 'B' is a non-shared(private or slave or
397 Its root dentry is 'a'. 'C' is mounted on mount 'B' at dentry 'b'.
399 6. 'A' is a shared mount and 'B' is a non-shared mount. A new mount 'C'
400 which is a clone of 'A' is created. Its root dentry is 'a'. 'C' is
401 mounted on mount 'B' at dentry 'b'. 'C' is made a member of the
404 7. 'A' is a slave mount of mount 'Z' and 'B' is a non-shared mount. A
405 new mount 'C' which is a clone of 'A' is created. Its root dentry is
406 'a'. 'C' is mounted on mount 'B' at dentry 'b'. Also 'C' is set as a
412 8. 'A' is a unbindable mount and 'B' is a non-shared mount. This is a
434 of a type other than unbindable.
460 below is a quick reference.
473 NOTE: moving a mount residing under a shared mount is invalid.
477 1. 'A' is a shared mount and 'B' is a shared mount. The mount 'A' is
486 2. 'A' is a private mount and 'B' is a shared mount. The mount 'A' is
489 propagation from mount 'B'. The mount 'A' becomes a shared mount and a
494 3. 'A' is a slave mount of mount 'Z' and 'B' is a shared mount. The
504 4. 'A' is a unbindable mount and 'B' is a shared mount. The operation
510 5. 'A' is a private mount and 'B' is a non-shared(private or slave or
513 6. 'A' is a shared mount and 'B' is a non-shared mount. The mount 'A'
514 is mounted on mount 'B' at dentry 'b'. Mount 'A' continues to be a
517 7. 'A' is a slave mount of mount 'Z' and 'B' is a non-shared mount.
519 continues to be a slave mount of mount 'Z'.
521 8. 'A' is a unbindable mount and 'B' is a non-shared mount. The mount
522 'A' is mounted on mount 'B' at dentry 'b'. Mount 'A' continues to be a
535 that the source mount is always a private mount.
544 where 'A' is a mount mounted on mount 'B' at dentry 'b'.
583 If 'A' is a slave mount of 'Z', then 'B' is also the slave mount of
586 If 'A' is a private mount, then 'B' is a private mount too.
588 If 'A' is unbindable mount, then 'B' is a unbindable mount too.
627 And then we have a second mount at /tmp1 with root
629 Next we have a third mount at /mnt with root dentry
632 'B' is the slave of 'A' and 'C' is a slave of 'B'
655 exportfs is a heavyweight way of accomplishing part of what
656 shared subtree can do. I cannot imagine a way to implement the
664 if one rbind mounts a tree within the same subtree 'n' times
667 mounts. Here is a example.
737 One could use a series of umount at each step to prune
738 out the unneeded mounts. But there is a better solution.
823 the vfsmount. MNT_SHARE indicates that the vfsmount is a shared
827 All the shared vfsmounts in a peer group form a cyclic list through
830 All vfsmounts with the same ->mnt_master form on a cyclic list anchored
834 of master peer group. To find all immediate slaves of a peer group
836 Conceptually it's just a single set - distribution among the
840 All vfsmounts in a peer group have the same ->mnt_master. If it is
841 non-NULL, they form a contiguous (ordered) segment of slave list.
844 [ NOTE: Though it looks like a forest, if we consider all the shared
845 mounts as a conceptual entity called 'pnode', it becomes a tree]
887 The former modifies a vfsmount that has not been visible in any shared
906 a) Create the necessary number of mount trees to
911 c) Link all the new mounts to form a propagation tree that