Technical data

NFS Server
20.10 Maintaining a Container File System
20.10.1 Displaying Directory Listings
Use the DIRECTORY command to display the contents of a directory. For
example,
TCPIP> DIRECTORY "/path/name"
In this example, /path/name is a valid UNIX directory specification that begins
with a slash (/) and is enclosed in quotation marks.
The DIRECTORY command has the following qualifiers:
/FULL specifies that a comprehensive list of information is displayed for each
file displayed by the DIRECTORY command. The default provides a brief
listing of the files in the directory.
/VMS provides the corresponding OpenVMS file name for each file in the
directory.
20.10.2 Copying Files into a Container File System
You cannot use the DCL command COPY to create files in a container file system,
because the UNIX directory structure is fully contained in the corresponding
container file. Instead, you must use the TCP/IP Services IMPORT command to
copy a file from an OpenVMS directory into a container file system. Similarly, use
the TCP/IP Services EXPORT command to copy a file from a container file system
into an OpenVMS directory.
If the OpenVMS data file does not have the STREAM_LF record format, it will
automatically be converted to STREAM_LF. Use the /NOCONVERT qualifier to
prevent the conversion.
20.10.3 Removing Links to a File
A link is a directory entry referring to a file. A file can have several links to it.
A link (hard link) to a file is indistinguishable from the original directory entry.
Any changes to the file are independent of the link used to reference the file. A
file cannot be deleted (removed) until the link count is zero.
Users can create multiple links to a file. A user sometimes creates a link to a file
so that the file appears in more than one directory.
All links to a file are of equal value. If a file has two links and one link is
removed, the file is still accessible through the remaining link. When the last
existing link is removed (the link count is zero), the file is no longer accessible
and is deleted.
Remove links to a file with the REMOVE FILE command. For example, to
remove the link to a file named
letter
located at
/usr/smith
, enter the following
command:
TCPIP> REMOVE FILE "/usr/smith/letter"
20.10.4 Removing Links to a Directory
Like UNIX files, UNIX directories have links to them. An empty directory is
deleted when the last link to the directory is removed.
Remove links to a UNIX directory with the REMOVE DIRECTORY command.
For example, to remove the directory
smith
at
/usr
, enter the following command:
TCPIP> REMOVE DIRECTORY "/usr/smith"
20–14 NFS Server