Commit | Line | Data |
---|---|---|
e31cb46a KB |
1 | .\" |
2 | .\" Copyright (c) 1992 The Regents of the University of California | |
3 | .\" Copyright (c) 1990, 1992 Jan-Simon Pendry | |
4 | .\" All rights reserved. | |
5 | .\" | |
6 | .\" This code is derived from software donated to Berkeley by | |
7 | .\" Jan-Simon Pendry. | |
8 | .\" | |
9 | .\" %sccs.include.redist.roff% | |
10 | .\" | |
3f9fc138 | 11 | .\" @(#)mount_lofs.8 5.2 (Berkeley) %G% |
e31cb46a KB |
12 | .\" |
13 | .\" | |
14 | .Dd | |
15 | .Dt MOUNT_LOFS 8 | |
16 | .Os BSD 4.4 | |
17 | .Sh NAME | |
18 | .Nm mount_lofs | |
19 | .Nd mount a virtual copy of an existing filesystem sub-tree | |
20 | .Sh SYNOPSIS | |
21 | .Nm mount_lofs | |
3f9fc138 | 22 | .Op Fl F Ar fsoptions |
e31cb46a KB |
23 | .Ar target mount-point |
24 | .Sh DESCRIPTION | |
25 | The | |
26 | .Nm mount_lofs | |
27 | command makes a sub-tree of an existing filesystem visible | |
28 | in another part of the global filesystem namespace. | |
29 | This allows existing files and directories to be accessed | |
30 | using a different pathname. | |
31 | .Pp | |
32 | The primary differences between a virtual copy of the filesystem | |
33 | and a symbolic link are that | |
34 | .Xr getcwd 3 | |
35 | functions correctly in the virtual copy, and that other filesystems | |
36 | may be mounted on the virtual copy without affecting the original. | |
37 | A different device number for the virtual copy is returned by | |
38 | .Xr stat 2 , | |
39 | but in other respects it is indistinguishable from the original. | |
40 | .Sh HISTORY | |
41 | The | |
42 | loopback filesystem | |
43 | is | |
44 | .Ud |