bind #Uspec / sys->bind("#Uspec", "/", Sys->MAFTER|Sys->MCREATE);
The plain name #U always refers to the root of the Inferno tree within the host file system. An optional spec string can select a different tree using conventions peculiar to the host system type. Currently, on Unix and Plan 9, a spec of * (ie, #U*) refers to the root of the host system; on Windows, the spec can give a device letter (eg, #Uc:) to refer to the Windows tree on that device.
When there is nothing but root(3) in the name space, the device can only be bound from Limbo using sys-bind(2) as shown above, since there is nothing in the name space to support either bind(1) or newns(2). It can later be rebound elsewhere in the name space using bind(1).
Fs provides only an approximation to the file ownership and permissions checking defined in intro(5) and other entries in this manual. Emu(1) typically runs as the user that starts it, and that user will own all newly-created files and directories, and that user's host system access rights control access to any file. Other details are specific to the host system, as given below.
The set of characters visible in file names within fs is also determined by the host operating system, not Inferno. For instance, names might contain control characters, or even `/', which might render them unusable in Inferno.
On MacOS X, file names might be case insensitive, depending on file system settings.
Files and directories always have read and execute permission, which cannot be changed. Files without write permission cannot be removed.
/man/3/fs(3) | Rev: Thu Oct 16 12:44:44 GMT 2008 |