cachefslog Command

Purpose

Controls the logging of a cache file system.

Syntax

cachefslog [ -fLogFile |-h ] Cachefs_Mount_Point

Description

The cachefslog command displays where CacheFS statistics are being logged. Optionally, it sets where CacheFS statistics are being logged, or it halts logging for a cache specified by Cachefs_Mount_Point. The Cachefs_Mount_Point argument is a mount point of a cache file system. All file systems cached under the same cache as Cachefs_Mount_Point are logged.

Flags

Item Description
-f LogFile Specifies the log file to be used.
Note: You must have root authority in order to use this flag.
-h Halts logging.
Note: You must have root authority in order to use this flag.

Exit Status

The following exit values are returned:

Item Description
0 success
non-zero an error has occurred.

Examples

  1. To checks if the directory /home/sam is being logged, type:
    cachefslog /home/sam
    The system displays the following:
    not logged: /home/sam
  2. To change the logfile of /home/sam to /var/tmp/samlog, type:
    cachefslog -f /var/tmp/samlog /home/sam
    The system displays the following:
    /var/tmp/samlog: /home/sam
  3. To halt logging for the /home/sam directory, type:
    cachefslog -h /home/sam
    The system displays the following:
    not logged: /home/sam

Files

Item Description
/usr/sbin/cachefslog Contains the cachefslog command.