cachefslog.1m (2010 09)
c
cachefslog(1M) cachefslog(1M)
NAME
cachefslog - Cache File System logging
SYNOPSIS
/usr/sbin/cachefslog
[-f logfile |
-h] cachefs_mount_point
DESCRIPTION
The
cachefslog command is used to enable or disable logging for a cachefs_mount_point. When the
command is used without any options, it displays the logfile. The logfile contains information on the
operation performed on a cachefs_mount_point and statistics used by
cachefswssize to get the work-
ing set size of cache directory. The specified logfile will contain information for all the CacheFS mount
points using the same cache directory. A logfile and a cache directory have a 1-to-1 mapping; that is,
even if a cache directory is removed and recreated with the same name, the logfile used in the previous
instance of the cache directory cannot be reused with the new cache directory.
Enabling logging may have performance impact, even if minimal, on the operations for all the CacheFS
mount points using the same cache directory. The
cachefslog command is mainly used for debugging
purposes.
Options
The following options are supported. You must be a superuser to use the
-f
and -h options.
-f logfile Specify the logfile to be used.
-h Halt logging.
Operands
cachefs_mount_point
A mount point of a cache file system.
RETURN VALUE
cachefslog returns the following values:
0 Success.
non-zero An error occurred.
EXAMPLES
1. Checking the logging of a directory.
This example checks if the CacheFS file system
/home/sam is being logged:
cachefslog /home/sam
not logged: /home/sam
2. Changing the logfile.
This example changes the logfile of
/home/sam to /var/tmp/samlog:
cachefslog -f /var/tmp/samlog /home/sam
/var/tmp/samlog: /home/sam
3. Verifying the change of a logfile.
This example verifies the change of the previous example:
cachefslog /home/sam
/var/tmp/samlog: /home/sam
4. Halting the logging of a directory.
This example halts logging for the
/home/sam directory:
cachefslog -h /home/sam
not logged: /home/sam
AUTHOR
cachefslog was developed by Sun Microsystems, Inc.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1