summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/cachefspack.1m
blob: ccc602fb042d67672590cc59ad6cad64d746aac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
'\" te
.\"  Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" 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.
.\" 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.
.\" 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]
.TH CACHEFSPACK 1M "Mar 18, 2004"
.SH NAME
cachefspack \- pack files and file systems in the cache
.SH SYNOPSIS
.LP
.nf
\fBcachefspack\fR [\fB-h\fR] [\fB-i\fR | \fB-p\fR | \fB-u\fR] [\fB-f\fR \fIpacking-list\fR]
     [\fB-U\fR \fIcache-directory\fR] [\fIfile\fR]...
.fi

.SH DESCRIPTION
.sp
.LP
The \fBcachefspack\fR 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 are in the cache whenever possible.
.sp
.LP
\fBcachefspack\fR does not pack files when the backfileystem type for the
\fBcachefs\fR mount is NFSv4. This is because only pass-through support is
available for \fBcachefs\fR with NFSv4.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB\fR\fB-f\fR\fB \fR\fIpacking-list\fR\fR
.ad
.RS 22n
Specify a 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 \fIpacking-list\fR are described on the \fBpackingrules\fR(4) manual
page. Directories are packed recursively. Symlinks that match a regular
expression on a \fBLIST\fR command are followed. Symlinks encountered while
recursively processing directories are not followed.
.RE

.sp
.ne 2
.na
\fB\fB-h\fR\fR
.ad
.RS 22n
Help. Print a brief summary of all the options.
.RE

.sp
.ne 2
.na
\fB\fB-i\fR\fR
.ad
.RS 22n
View information about the packed files.
.RE

.sp
.ne 2
.na
\fB\fB-p\fR\fR
.ad
.RS 22n
Pack the file or files specified by \fBfile\fR. This is the default behavior.
.RE

.sp
.ne 2
.na
\fB\fB-u\fR\fR
.ad
.RS 22n
Unpack the file or files specified by \fBfile\fR.
.RE

.sp
.ne 2
.na
\fB\fB\fR\fB-U\fR\fB \fR\fIcache-directory\fR\fR
.ad
.RS 22n
Unpack all files in the specified cache directory.
.RE

.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fBfile\fR\fR
.ad
.RS 8n
A path name of a file to be packed or unpacked.
.RE

.SH USAGE
.sp
.LP
See \fBlargefile\fR(5) for the description of the behavior of \fBcachefspack\fR
when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
.SH EXAMPLES
.LP
\fBExample 1 \fRPacking a File in the Cache
.sp
.LP
The following example packs the file \fBprojects\fR in the cache:

.sp
.in +2
.nf
% cachefspack \fB-p\fR projects
.fi
.in -2
.sp

.LP
\fBExample 2 \fRPackint Files in the Cache
.sp
.LP
The following example packs the files \fBprojects\fR, \fBupdates\fR, and
\fBmaster_plan\fR in the cache:

.sp
.in +2
.nf
% cachefspack \fB-p\fR projects updates master_plan
.fi
.in -2
.sp

.LP
\fBExample 3 \fRUnpacking a File From the Cache
.sp
.LP
The following example unpacks the file \fBprojects\fR from the cache:

.sp
.in +2
.nf
% cachefspack \fB-u\fR projects
.fi
.in -2
.sp

.LP
\fBExample 4 \fRUnpacking Files From the Cache
.sp
.LP
The following example unpacks the files \fBprojects\fR, \fBupdates\fR, and
\fBmaster_plan\fR from the cache:

.sp
.in +2
.nf
% cachefspack \fB-u\fR projects updates master_plan
.fi
.in -2
.sp

.LP
\fBExample 5 \fRUnpacking All Files From in a Cache Directory
.sp
.LP
The following example unpacks all files in the cache directory \fBcache1\fR:

.sp
.in +2
.nf
% cachefspack \fB-U\fR /cache/cache1
.fi
.in -2
.sp

.LP
\fBExample 6 \fRUsing a Packing List
.sp
.LP
The following example illustrates the use of a packing list to specify files to
be packed in the cache.

.sp
.LP
The contents of \fBlists.pkg\fR are as follows:

.sp
.in +2
.nf
IGNORE SCCS BASE /src/junk LIST *.c LIST *.h
.fi
.in -2
.sp

.sp
.LP
The following command packs all files in the \fB/src/junk\fR directory which
have \fB\&.c\fR and \fB\&.h\fR extensions, and do contain the string SCCS in
the file's path name:

.sp
.in +2
.nf
% cachefspack \fB-f\fR lists.pkg
.fi
.in -2
.sp

.SH EXIT STATUS
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 6n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
An error occurred.
.RE

.SH SEE ALSO
.sp
.LP
\fBcfsadmin\fR(1M), \fBmount_cachefs\fR(1M), \fBpackingrules\fR(4),
\fBattributes\fR(5), \fBlargefile\fR(5)