System Administration Guide: Devices and File Systems

How to Pack Files in the Cache

Pack files in the cache by using the cachefspack command.


$ cachefspack -p filename
-p

Specifies that you want the file or files to be packed. This option is also the default.

filename

Specifies the name of the files or directory you want packed in the cache. When you specify a directory, all of its subdirectories are also packed. For more information, see cachefspack(1M).

Examples—Packing Files in the Cache

The following example shows the projects file being packed in the cache.


$ cachefspack -p projects

The following example shows three files being packed in the cache.


$ cachefspack -p projects updates master_plan

The following example shows a directory being packed in the cache.


$ cachefspack -p /data/abc/bin