From 5109589cc5f1c44682e55307922c459feb3083ab Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 19 Mar 2018 11:29:25 +0100 Subject: mount: (man) be explicit about bind operation Signed-off-by: Karel Zak --- sys-utils/mount.8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys-utils/mount.8') diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 2f9890aae..b64d956e3 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -327,7 +327,7 @@ The option is similar, with the restriction that the user must be member of the group of the special file. -.SS Bind mounts +.SS Bind mount operation Remount part of the file hierarchy somewhere else. The call is: .RS @@ -346,6 +346,13 @@ or by using this fstab entry: .RE After this call the same contents are accessible in two places. + +It is important to understand that "bind" does not to create any second-class +or special node in the kernel VFS. The "bind" is just another operation to +attach a filesystem. There is nowhere stored information that the filesystem +has been attached by "bind" operation. The \fIolddir\fR and \fInewdir\fR are +independent and the \fIolddir\fR maybe be umounted. + One can also remount a single file (on a single file). It's also possible to use the bind mount to create a mountpoint from a regular directory, for example: -- cgit v1.2.3-55-g7522