FMOUNT(2) FMOUNT(2) NAME fmount, funmount - mount or remove file system SYNOPSIS int fmount(type, fildes, name, flag) char *name; int funmount(name) char *name; DESCRIPTION Fmount mounts a file system of the named type described by the file descriptor fildes on pathname name. Henceforth, references to name (the mount point) will refer to the root file on the newly mounted file system. Name must already exist. Its old contents are inaccessible while the file system is mounted. The meaning of flag varies with the file system type. Allowed types are 0 Regular (block device) file system. Fildes must be a block special file. If flag is nonzero, the file sys- tem may not be written on; this must be used with phys- ically write-protected media or errors will occur when access times are updated, even if no explicit write is attempted. 2 Process file system, proc(4). Fildes is ignored. 3 Mounted stream. Fildes must refer to a stream; future calls to open(2) on name will reopen that stream. The mount is undone if the other end of the stream is closed or hung up. 4 Stream (network) file system. Fildes is a stream con- nected to a file system server, netfs(8). Types 5 and 6 are used internally to close off errors and for pipes; these types may not be mounted. Funmount removes knowledge of the file system mounted at name. The mount point reverts to its previous interpreta- tion. The userid owning name may mount or unmount file systems of type 3 or 4. For other types, these calls are restricted to the super-user. FMOUNT(2) FMOUNT(2) SEE ALSO mount(8), netfs(8), proc(4), stream(4) DIAGNOSTICS EBADF, EBUSY, EINVAL, EIO, ENODEV BUGS Although fildes for type 2 file systems is ignored, it must be a valid file descriptor.