[Top] [Prev] [Next]

newns - build a new name space from a description file

include "newns.m";
ns:=   load Newns Newns->PATH;
newns: fn(user: string, nsfile: string): string;

Description

The Newns module reads file nsfile and builds a new name space based on the commands it contains. If nsfile is nil or empty, then newns attempts to read the file namespace in the current directory.

The name space description file contains one or more lines each of which specifies one name space operation. The operations and their arguments are:

bind [-abrci] source target

Use source as an alias for file or directory target. Options a, b, c, and r translate to flag values MAFTER, MBEFORE, MCREATE, and MREPL, respectively. Option i means to ignore errors. See bind, mount, unmount - change file name space in Chapter 8.

cd directory

Change working directory to directory.

fork

Split the name space before modification. This is equivalent to passing a value of FORKNS to the pctl system call. See pctl - process control in Chapter 8.

nodev

Disallow device attaches. This is equivalent to passing a value of NODEVS to the pctl system call. See pctl - process control in Chapter 8.

mount [-abrci] [net!machine] to [target]

Mount the file tree of machine upon directory target. Options a, b, c, i, and r are the same as for bind.

Notes

The user string is ignored.

See Also
nsbuild - build Inferno name space in Chapter 5

bind, mount, unmount - change file name space in Chapter 8

chdir - change working directory in Chapter 8

pctl - process control in Chapter 8



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.