2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CACHEFSPACK 1M "Mar 18, 2004"
8 cachefspack \- pack files and file systems in the cache
12 \fBcachefspack\fR [\fB-h\fR] [\fB-i\fR | \fB-p\fR | \fB-u\fR] [\fB-f\fR \fIpacking-list\fR]
13 [\fB-U\fR \fIcache-directory\fR] [\fIfile\fR]...
19 The \fBcachefspack\fR utility is used to set up and maintain files in the
20 cache. This utility affords greater control over the cache, ensuring that the
21 specified files are in the cache whenever possible.
24 \fBcachefspack\fR does not pack files when the backfileystem type for the
25 \fBcachefs\fR mount is NFSv4. This is because only pass-through support is
26 available for \fBcachefs\fR with NFSv4.
30 The following options are supported:
34 \fB\fB\fR\fB-f\fR\fB \fR\fIpacking-list\fR\fR
37 Specify a file containing a list of files and directories to be packed. Options
38 within subdirectories and files can also be specified. The format and rules
39 governing \fIpacking-list\fR are described on the \fBpackingrules\fR(4) manual
40 page. Directories are packed recursively. Symlinks that match a regular
41 expression on a \fBLIST\fR command are followed. Symlinks encountered while
42 recursively processing directories are not followed.
51 Help. Print a brief summary of all the options.
60 View information about the packed files.
69 Pack the file or files specified by \fBfile\fR. This is the default behavior.
78 Unpack the file or files specified by \fBfile\fR.
84 \fB\fB\fR\fB-U\fR\fB \fR\fIcache-directory\fR\fR
87 Unpack all files in the specified cache directory.
93 The following operands are supported:
100 A path name of a file to be packed or unpacked.
106 See \fBlargefile\fR(5) for the description of the behavior of \fBcachefspack\fR
107 when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
110 \fBExample 1 \fRPacking a File in the Cache
113 The following example packs the file \fBprojects\fR in the cache:
118 % cachefspack \fB-p\fR projects
124 \fBExample 2 \fRPackint Files in the Cache
127 The following example packs the files \fBprojects\fR, \fBupdates\fR, and
128 \fBmaster_plan\fR in the cache:
133 % cachefspack \fB-p\fR projects updates master_plan
139 \fBExample 3 \fRUnpacking a File From the Cache
142 The following example unpacks the file \fBprojects\fR from the cache:
147 % cachefspack \fB-u\fR projects
153 \fBExample 4 \fRUnpacking Files From the Cache
156 The following example unpacks the files \fBprojects\fR, \fBupdates\fR, and
157 \fBmaster_plan\fR from the cache:
162 % cachefspack \fB-u\fR projects updates master_plan
168 \fBExample 5 \fRUnpacking All Files From in a Cache Directory
171 The following example unpacks all files in the cache directory \fBcache1\fR:
176 % cachefspack \fB-U\fR /cache/cache1
182 \fBExample 6 \fRUsing a Packing List
185 The following example illustrates the use of a packing list to specify files to
186 be packed in the cache.
190 The contents of \fBlists.pkg\fR are as follows:
195 IGNORE SCCS BASE /src/junk LIST *.c LIST *.h
202 The following command packs all files in the \fB/src/junk\fR directory which
203 have \fB\&.c\fR and \fB\&.h\fR extensions, and do contain the string SCCS in
204 the file's path name:
209 % cachefspack \fB-f\fR lists.pkg
221 Successful completion.
236 \fBcfsadmin\fR(1M), \fBmount_cachefs\fR(1M), \fBpackingrules\fR(4),
237 \fBattributes\fR(5), \fBlargefile\fR(5)