Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > C

cachefspack(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

cachefspack — pack files and file systems in the cache

SYNOPSIS

/usr/sbin/cachefspack [ -h ] [ -i | -p | -u | -s | -d ] [ -f packing-list ] [ -U cache-directory ] [ file ... ]

DESCRIPTION

The cachefspack utility is used to set up and maintain files in the cache. This utility affords greater control over the cache, ensuring that the specified files will be in the cache whenever possible.

Options

cachefspack recognizes the following options:

-d

Display pathname of the files to be cached.

-f packing-list

Specify a packing-list file containing a list of files and directories to be packed. Options within subdirectories and files can also be specified. The format and rules governing packing-list are described in packingrules(4). Directories are packed recursively. Symlinks that match a regular expression on a LIST command are followed. Symlinks encountered while recursively processing directories are not followed.

-h

Print a brief help summary of all the options.

-i

View information about the packed files.

-p

Pack the file or files specified by file. This is the default behavior.

-s

Strip "./" from the beginning of a pattern name.

-u

Unpack the file or files specified by file.

-U cache-directory

Unpack all files in the specified cache-directory, under which the cache is stored.

Operands

cachefspack recognizes the following operands:

file

A path name of a file to be packed or unpacked.

RETURN VALUE

cachefspack returns the following values:

0

Successful completion.

>0

An error occurred.

EXAMPLES

Pack the file projects in the cache.

cachefspack -p projects

Pack the files projects, updates and master_plan in the cache.

cachefspack -p projects updates master_plan

Unpack the file projects from the cache.

cachefspack -u projects

Unpack the files projects, updates and master_plan from the cache.

cachefspack -u projects updates master_plan

Unpack all files in the cache1 cache directory.

cachefspack -U /cache/cache1

Use the lists.pkg packing-list to specify files to be packed in the cache. The contents of lists.pkg are as follows:

IGNORE SCCS BASE /src/junk LIST *.c LIST *.h

This example will pack all files in the directory /src/junk with .c and .h extensions that do not contain the string SCCS in the file's path name.

cachefspack -f lists.pkg

AUTHOR

cachefspack was developed by Sun Microsystems, Inc.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.