[Top] [Prev] [Next]

bind

bind, mount, unmount - change name space

Synopsis

bind  		[option... ] new old
mount  		[option... ] addr old
unmount 		[new ] old

Description

The bind and mount commands modify the file name space of the current process and other processes in the same name space group (see pctl). For both calls, old is the name of an existing file or directory in the current name space where the modification is to be made.

For bind, new is the name of an existing file or directory in the current name space. After a successful bind, the file name old is an alias for the object originally named by new; if the modification doesn't hide it, new will also still refer to its original file. The evaluation of new (see File Name Expansion in Limbo System Modules) happens at the time of the bind, not when the binding is later used.

Both old and new must be of the same type: either both directories or both files.

The new argument to bind can also be a two character sequence (#c) representing a kernel device driver (see Limbo Modules - Miscellaneous). For example, the following command binds the console driver to /dev.

	bind '#c' /dev 

For mount, addr is a network address for the server machine. This argument should conform to the conventions described in dial.

The effects of bind and mount can be undone with the unmount command. If two arguments are given to unmount, the effect is to undo a bind or mount with the same arguments. If only one argument is given, everything bound to or mounted upon old is unmounted.

Options
-r

(the default option for both bind and mount)

Replace the old file by the new file. Henceforth, an evaluation of pathname old will be translated to the new file. If they are directories (for mount, this condition is true by definition), old becomes a "union directory" consisting of one directory (the new directory).

-b

(both files must be directories.)

Add the new directory to the beginning of the union directory represented by the old directory.

-a

(both files must be directories.)

Add the new directory to the end of the union directory represented by the old file.

-c

This can be used in addition to any of the above to permit creation in a union directory. When a new file is created in a union directory, it is placed in the first element of the union that permits creation.

-A

(for mount only)

Do not authenticate the connection to the server before proceeding with mount. Authentication occurs by default.

-C alg

(for mount only)

Specify the algorithm, alg, used in authentication. See ssl for the supported algorithms. The default value is "none".

Caveat

The single quotes are required around the two character sequence representing a kernel device driver since # is a special character (start-of-comment) to the Inferno shell. The single quotes are needed only when using the shell, not when programming in the Limbo language.

	sys->bind("#c", "/dev/", flags);

See Also

sh, auth, Limbo System Modules, bind, dial, and Limbo Modules - Miscellaneous



[Top] [Prev] [Next]

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