mount_cachefs.1m (2010 09)

m
mount_cachefs(1M) mount_cachefs(1M)
systems that change infrequently, for example,
/usr/bin. The
demandconst, noconst, and weakconst are mutually exclusive.
local-access Causes the front file system to interpret the mode bits used for access checking
instead of having the back file system verify access permissions. Do not use this
argument with secure NFS .
noconst Disables cache consistency checking. By default, periodic consistency checking
is enabled. Specify noconst only when you know that the back file system will
not be modified. Trying to perform cache consistency check using
cfsadmin
-s will result in error. The demandconst
, noconst, and weakconst are
mutually exclusive.
nosec Disable ACL functionality. If you try to change ACL entries for a file on a
CacheFS file system mounted with the
nosec option an error is returned. How-
ever, if you try to get the ACL entries for a file, CacheFS will return fabricated
ACL entries by using UNIX file permissions. By default, the CacheFS file sys-
tem supports ACL functionality. See aclv(5) for a description of ACL entries.
purge Purge any cached information for the specified file system.
remount Remounts a read-only file system as read-write (using the rw option).
rpages If specified when mounting a CacheFS file system, a binary will be read and
populated in the cache the first time it is loaded. Subsequent access to the
binary will be satisfied from the cache.
rw | ro Read-write (default) or read-only.
suid | nosuid Allow (default) or disallow set-uid execution.
weakconst Verifies the cache consistency with the NFS client’s copy of file attributes, and
coordinates with bakfs (NFS) for delayed flushing of modified pages to the
server. The delayed flushing of pages improves CacheFS response times. The
weakconst must not be used when multiple clients are modifying the same file.
The demandconst, noconst, and weakconst options are mutually
exclusive.
write-around | non-shared
Write modes for CacheFS. The write-around mode (the default) handles
writes the same as NFS does; that is, writes are made to the back file system,
and the affected file is purged from the cache. You can use the
non-shared
mode when you are sure that no one else will be writing to the cached file sys-
tem. In this mode, all writes are made to both the front and the back file system,
and the file remains in the cache.
-O Overlay mount. Allow the file system to be mounted over an existing mount point, making the
underlying file system inaccessible. If a mount is attempted on a pre-existing mount point without
setting this flag, the mount will fail, producing the error "device busy".
-q When processing an unknown specific_option , the mount utility prints a warning message and
processes the next one. This option prevents printing the warning message.
EXAMPLES
CacheFS-mount the file system
server1:/user2, which is already NFS-mounted on
/usr/abc as
/xyz.
mount -F cachefs -o backfstype=nfs,backpath=/usr/abc, \
cachedir=/cache1 server1:/user2 /xyz
Lines similar to the following appear in the /etc/mnttab file after the mount command is executed:
server1:/user2 /usr/abc nfs
/usr/abc /cache1/xyz cachefs backfstype=nfs
Mount a CacheFS filesystem over NFS Version 2.
mount -F cachefs -o vers=2,backfstype=nfs,cachedir=/cache1 \
server1:/user2 /xyz
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010