Purpose
The Add Mounted File System (ADDMFS) command makes the objects in a file system accessible to the integrated file system (IFS) name space. The file system to be made accessible can be either a user-defined file system (*UDFS) on the local system, a remote file system accessed via a local Network File System client (*NFS), or a local or remote NetWare file system (*NETWARE). The directory that is the destination for the mount (the MNTOVRDIR parameter) must exist.
This command can also be issued using the following alternative command name:
For more information about Network File System commands, see the OS/400 Network File System Support book.
Restrictions:
Required Parameters
*NFS: The file system specified for the MFS parameter is a Network File System. The MFS parameter must be of the form hostname:pathname where hostname can either be the name of a system or an IP address, and pathname must be an absolute path name.
*UDFS: The file system specified for the MFS parameter is a user-defined file system. The MFS parameter must be of the form /dev/qaspXX/name.udfs where XX is one of the valid Auxillary Storage Pool (ASP) numbers on the system, and name is the name of the user-defined file system. All other parts of the name must appear as in the example above.
*NETWARE: The file system specified for the MFS parameter is a NetWare file system. The MFS parameter must be one of the following forms:
| Note: | On the MFS parameter, if you specify a relative context that contains no dots and no path name after the colon, you must be sure to quote the parameter value when prompting on the command. The command analyzer may interpret the MFS value as a label and remove the trailing colon. |
Multiple file systems can be mounted over the same directory, one on top of the other. However, only the topmost mounted file system is accessible, and the file systems must later be in the opposite order from which they were mounted (last-in first-out order).
Optional Parameters
*DFT: The default value for the options string for the mount of a Network File System (*NFS) is:
'rw,suid,rsize=8096,wsize=8096,timeo=20,retrans=5, acregmin=30,acregmax=60,acdirmin=30,acdirmax=60,hard'The default value for the options string for the mount of a user defined file system (*UDFS) is:
'rw'The default value for the options string for the mount of a NetWare file system (*NETWARE) is:
'rw,acregmax=60,acdirmax=60'For the mount of a Network File System, all of the following options are valid. For the mount of a user defined file system, only the protection option (ro or rw) is valid. For the mount of a NetWare file system, the protection (ro or rw), acregmax, acdirmax, noac, and nocto options are valid. If options that are not valid for the file system type you are mounting are specified, they are ignored.
options-list: The following are the available options keywords and their descriptions:
Element 1: Data file code page
| Note: | You should specify a code page that has the same number of bytes per character as the original data. |
*ASCII: The ASCII equivalent of the code page obtained from the default job coded character set identifier (CCSID) associated with the current job is used.
*JOBCCSID: The code page obtained from the default job coded character set identifier (CCSID) associated with the current job is used.
data-code-page: A code page to be assumed for data files on the remote system. Only code pages that correspond to single- or double-byte encoding schemes are supported. Code pages that correspond to mixed-byte encoding schemes are not supported.
Element 2: Path name code page
*ASCII: The ASCII equivalent of the code page obtained from the default job coded character set identifier (CCSID) associated with the current job is used.
*JOBCCSID: The code page from the default job CCSID associated with the current job is used.
path-name-code-page: A code page to be assumed for path names on the remote system. Only code pages whose CCSIDs are convertible into ISO 10646(1348) are supported. See International Application Development SC41-5603 for a list of supported conversions.
Examples for ADDMFS
Example 1: Mounting a User-Defined File System
ADDMFS TYPE(*UDFS) MFS('/DEV/QASP03/PROD1')
MNTOVRDIR('DIRB')
This command mounts a user defined file system PROD1 over the directory, DIRB. It uses the defaults for the other parameters.
Example 2: Mounting a Network File System
ADDMFS TYPE(*NFS) MFS('RAINFALL:/QSYS.LIB/RAY.LIB')
MNTOVRDIR('/mystuff')
This command mounts the /qsys.lib/ray.lib file system from the remote system RAINFALL into the directory /mystuff.
Example 3: Mounting a Network File System with OPTIONS
ADDMFS TYPE(*NFS) MFS('RAINFALL:/QSYS.LIB/RAY.LIB')
MNTOVRDIR('/mystuff')
OPTIONS('ro,nosuid,rsize=256, retrans=10')
CODEPAGE(*ASCII *JOBCCSID)
This command mounts the /qsys.lib/ray.lib file system from the remote system RAINFALL into the directory /mystuff. In addition it specifies to mount as read-only, not allow setuid execution, set the read buffer to 256 bytes, and the retransmission attempts to 10. The job CCSID is used to determine the code page to use for remote path names.
Example 4: Mounting a NetWare File System with OPTIONS
ADDMFS TYPE(*NETWARE)
MFS('RCHNWSVR1/LOTUS:LOTSUITE/SMARTCTR')
MNTOVRDIR('/temp1')
OPTIONS('ro,agregmax=120')
This command mounts the NetWare directory LOTSUITE/SMARTCTR contained in the volume LOTUS that resides on server RCHNWSVR1 over the directory /temp1. In addition it specifies to mount as read-only, sets the maximum time to store file attributes locally to 120 seconds.
Example 5: Mounting using a NetWare Directory Services Context
Following are several examples of mounting a NetWare file system using NetWare Directory Services (NDS) contexts.
ADDMFS TYPE(*NETWARE) MFS('.LOTUS_VOL.ROCHESTER.IBM')
MNTOVRDIR('/temp1')
This command mounts NDS volume LOTUS_VOL using a distinguished context, over the directory /temp1.
ADDMFS TYPE(*NETWARE)
MFS('CN=LOTUS_VOL.OU=ROCHESTER:LOTSUITE/SMARTCTR')
MNTOVRDIR('/temp1')
This command mounts path LOTSUITE/SMARTCTR on NDS volume LOTUS using a relative path and fully qualified names, over the directory /temp1.
ADDMFS TYPE(*NETWARE)
MFS('.CN=LOTUSMAP.OU=ROCHESTER.O=IBM')
MNTOVRDIR('/temp1')
This command mounts a directory map object using a distinguished context and fully qualified names, over the directory /temp1.
Error messages for ADDMFS None| [ Information Center Home Page | Feedback | Back to main CL topic ] | [ Legal | AS/400 Glossary ] |