78577507cb1a4a033204f708cd92237f35f8693e
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.13.18\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-05 18:11+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options]\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -d domname\n"
48 "\n"
49 msgstr ""
50
51 #. type: verbatim
52 #: ../align/virt-alignment-scan.pod:13
53 #, no-wrap
54 msgid ""
55 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
56 "\n"
57 msgstr ""
58
59 #. type: =head1
60 #: ../align/virt-alignment-scan.pod:15 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
61 msgid "DESCRIPTION"
62 msgstr ""
63
64 #. type: textblock
65 #: ../align/virt-alignment-scan.pod:17
66 msgid ""
67 "When older operating systems install themselves, the partitioning tools "
68 "place partitions at a sector misaligned with the underlying storage "
69 "(commonly the first partition starts on sector C<63>).  Misaligned "
70 "partitions can result in an operating system issuing more I/O than should be "
71 "necessary."
72 msgstr ""
73
74 #. type: textblock
75 #: ../align/virt-alignment-scan.pod:23
76 msgid ""
77 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
78 "machines and disk images and warns you if there are alignment problems."
79 msgstr ""
80
81 #. type: textblock
82 #: ../align/virt-alignment-scan.pod:27
83 msgid ""
84 "Currently there is no virt tool for fixing alignment problems, except to "
85 "reinstall the operating system.  The following NetApp document summarises "
86 "the problem and possible solutions: "
87 "L<http://media.netapp.com/documents/tr-3747.pdf>"
88 msgstr ""
89
90 #. type: =head1
91 #: ../align/virt-alignment-scan.pod:32
92 msgid "OUTPUT"
93 msgstr ""
94
95 #. type: textblock
96 #: ../align/virt-alignment-scan.pod:34
97 msgid "To run this tool on a disk image directly, use the I<-a> option:"
98 msgstr ""
99
100 #. type: verbatim
101 #: ../align/virt-alignment-scan.pod:36
102 #, no-wrap
103 msgid ""
104 " $ virt-alignment-scan -a winxp.img\n"
105 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
106 "\n"
107 msgstr ""
108
109 #. type: verbatim
110 #: ../align/virt-alignment-scan.pod:39
111 #, no-wrap
112 msgid ""
113 " $ virt-alignment-scan -a fedora16.img\n"
114 " /dev/sda1      1048576         1024K   ok\n"
115 " /dev/sda2      2097152         2048K   ok\n"
116 " /dev/sda3    526385152         2048K   ok\n"
117 "\n"
118 msgstr ""
119
120 #. type: textblock
121 #: ../align/virt-alignment-scan.pod:44
122 msgid ""
123 "To run the tool on a guest known to libvirt, use the I<-d> option and "
124 "possibly the I<-c> option:"
125 msgstr ""
126
127 #. type: verbatim
128 #: ../align/virt-alignment-scan.pod:47
129 #, no-wrap
130 msgid ""
131 " # virt-alignment-scan -d RHEL5\n"
132 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
133 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
134 "\n"
135 msgstr ""
136
137 #. type: verbatim
138 #: ../align/virt-alignment-scan.pod:51
139 #, no-wrap
140 msgid ""
141 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
142 " /dev/sda1      1048576         1024K   ok\n"
143 " /dev/sda2    105906176         1024K   ok\n"
144 " /dev/sdb1        65536           64K   ok\n"
145 "\n"
146 msgstr ""
147
148 #. type: textblock
149 #: ../align/virt-alignment-scan.pod:56
150 msgid ""
151 "The output consists of 4 or more whitespace-separated columns.  Only the "
152 "first 4 columns are signficant if you want to parse this from a program.  "
153 "The columns are:"
154 msgstr ""
155
156 #. type: =item
157 #: ../align/virt-alignment-scan.pod:62
158 msgid "col 1"
159 msgstr ""
160
161 #. type: textblock
162 #: ../align/virt-alignment-scan.pod:64
163 msgid ""
164 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
165 "on the first block device)"
166 msgstr ""
167
168 #. type: =item
169 #: ../align/virt-alignment-scan.pod:67
170 msgid "col 2"
171 msgstr ""
172
173 #. type: textblock
174 #: ../align/virt-alignment-scan.pod:69
175 msgid "the start of the partition in bytes"
176 msgstr ""
177
178 #. type: =item
179 #: ../align/virt-alignment-scan.pod:71
180 msgid "col 3"
181 msgstr ""
182
183 #. type: textblock
184 #: ../align/virt-alignment-scan.pod:73
185 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
186 msgstr ""
187
188 #. type: =item
189 #: ../align/virt-alignment-scan.pod:75
190 msgid "col 4"
191 msgstr ""
192
193 #. type: textblock
194 #: ../align/virt-alignment-scan.pod:77
195 msgid ""
196 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
197 "can cause performance problems"
198 msgstr ""
199
200 #. type: =item
201 #: ../align/virt-alignment-scan.pod:80
202 msgid "cols 5+"
203 msgstr ""
204
205 #. type: textblock
206 #: ../align/virt-alignment-scan.pod:82
207 msgid "optional free-text explanation."
208 msgstr ""
209
210 #. type: textblock
211 #: ../align/virt-alignment-scan.pod:86
212 msgid ""
213 "The exit code from the program changes depending on whether poorly aligned "
214 "partitions were found.  See L</EXIT STATUS> below."
215 msgstr ""
216
217 #. type: textblock
218 #: ../align/virt-alignment-scan.pod:89
219 msgid "If you just want the exit code with no output, use the I<-q> option."
220 msgstr ""
221
222 #. type: =head1
223 #: ../align/virt-alignment-scan.pod:91 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
224 msgid "OPTIONS"
225 msgstr ""
226
227 #. type: =item
228 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
229 msgid "B<--help>"
230 msgstr ""
231
232 #. type: textblock
233 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
234 msgid "Display brief help."
235 msgstr ""
236
237 #. type: =item
238 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
239 msgid "B<-a> file"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:101 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
244 msgid "B<--add> file"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:103
249 msgid "Add I<file> which should be a disk image from a virtual machine."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:105 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
254 msgid ""
255 "The format of the disk image is auto-detected.  To override this and force a "
256 "particular format use the I<--format=..> option."
257 msgstr ""
258
259 #. type: =item
260 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
261 msgid "B<-c> URI"
262 msgstr ""
263
264 #. type: =item
265 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
266 msgid "B<--connect> URI"
267 msgstr ""
268
269 #. type: textblock
270 #: ../align/virt-alignment-scan.pod:112 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
271 msgid ""
272 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
273 "to the default libvirt hypervisor."
274 msgstr ""
275
276 #. type: textblock
277 #: ../align/virt-alignment-scan.pod:115 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
278 msgid ""
279 "If you specify guest block devices directly (I<-a>), then libvirt is not "
280 "used at all."
281 msgstr ""
282
283 #. type: =item
284 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
285 msgid "B<-d> guest"
286 msgstr ""
287
288 #. type: =item
289 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
290 msgid "B<--domain> guest"
291 msgstr ""
292
293 #. type: textblock
294 #: ../align/virt-alignment-scan.pod:122 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
295 msgid ""
296 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
297 "instead of names."
298 msgstr ""
299
300 #. type: =item
301 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
302 msgid "B<--format=raw|qcow2|..>"
303 msgstr ""
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
307 msgid "B<--format>"
308 msgstr ""
309
310 #. type: textblock
311 #: ../align/virt-alignment-scan.pod:129 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
312 msgid ""
313 "The default for the I<-a> option is to auto-detect the format of the disk "
314 "image.  Using this forces the disk format for I<-a> options which follow on "
315 "the command line.  Using I<--format> with no argument switches back to "
316 "auto-detection for subsequent I<-a> options."
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:134 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2791
321 msgid "For example:"
322 msgstr ""
323
324 #. type: verbatim
325 #: ../align/virt-alignment-scan.pod:136
326 #, no-wrap
327 msgid ""
328 " virt-alignment-scan --format=raw -a disk.img\n"
329 "\n"
330 msgstr ""
331
332 #. type: textblock
333 #: ../align/virt-alignment-scan.pod:138 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
334 msgid "forces raw format (no auto-detection) for C<disk.img>."
335 msgstr ""
336
337 #. type: verbatim
338 #: ../align/virt-alignment-scan.pod:140
339 #, no-wrap
340 msgid ""
341 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
342 "\n"
343 msgstr ""
344
345 #. type: textblock
346 #: ../align/virt-alignment-scan.pod:142 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
347 msgid ""
348 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
349 "auto-detection for C<another.img>."
350 msgstr ""
351
352 #. type: textblock
353 #: ../align/virt-alignment-scan.pod:145 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
354 msgid ""
355 "If you have untrusted raw-format guest disk images, you should use this "
356 "option to specify the disk format.  This avoids a possible security problem "
357 "with malicious guests (CVE-2010-3851)."
358 msgstr ""
359
360 #. type: =item
361 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
362 msgid "B<-q>"
363 msgstr ""
364
365 #. type: =item
366 #: ../align/virt-alignment-scan.pod:151 ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
367 msgid "B<--quiet>"
368 msgstr ""
369
370 #. type: textblock
371 #: ../align/virt-alignment-scan.pod:153
372 msgid ""
373 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
374 "below)."
375 msgstr ""
376
377 #. type: =item
378 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
379 msgid "B<-v>"
380 msgstr ""
381
382 #. type: =item
383 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
384 msgid "B<--verbose>"
385 msgstr ""
386
387 #. type: textblock
388 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
389 msgid "Enable verbose messages for debugging."
390 msgstr ""
391
392 #. type: =item
393 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
394 msgid "B<-V>"
395 msgstr ""
396
397 #. type: =item
398 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
399 msgid "B<--version>"
400 msgstr ""
401
402 #. type: textblock
403 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
404 msgid "Display version number and exit."
405 msgstr ""
406
407 #. type: =item
408 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
409 msgid "B<-x>"
410 msgstr ""
411
412 #. type: textblock
413 #: ../align/virt-alignment-scan.pod:170 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
414 msgid "Enable tracing of libguestfs API calls."
415 msgstr ""
416
417 #. type: =head1
418 #: ../align/virt-alignment-scan.pod:174 ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
419 msgid "SHELL QUOTING"
420 msgstr ""
421
422 #. type: textblock
423 #: ../align/virt-alignment-scan.pod:176 ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
424 msgid ""
425 "Libvirt guest names can contain arbitrary characters, some of which have "
426 "meaning to the shell such as C<#> and space.  You may need to quote or "
427 "escape these characters on the command line.  See the shell manual page "
428 "L<sh(1)> for details."
429 msgstr ""
430
431 #. type: =head1
432 #: ../align/virt-alignment-scan.pod:181 ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
433 msgid "EXIT STATUS"
434 msgstr ""
435
436 #. type: textblock
437 #: ../align/virt-alignment-scan.pod:183
438 msgid "This program returns:"
439 msgstr ""
440
441 #. type: =item
442 #: ../align/virt-alignment-scan.pod:187
443 msgid "code 0"
444 msgstr ""
445
446 #. type: textblock
447 #: ../align/virt-alignment-scan.pod:189
448 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
449 msgstr ""
450
451 #. type: =item
452 #: ../align/virt-alignment-scan.pod:191
453 msgid "code 1"
454 msgstr ""
455
456 #. type: textblock
457 #: ../align/virt-alignment-scan.pod:193
458 msgid "an error scanning the disk image or guest"
459 msgstr ""
460
461 #. type: =item
462 #: ../align/virt-alignment-scan.pod:195
463 msgid "code 2"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:197
468 msgid ""
469 "successful exit, some partitions have alignment E<lt> 64K which can result "
470 "in poor performance on high end network storage"
471 msgstr ""
472
473 #. type: =item
474 #: ../align/virt-alignment-scan.pod:200
475 msgid "code 3"
476 msgstr ""
477
478 #. type: textblock
479 #: ../align/virt-alignment-scan.pod:202
480 msgid ""
481 "successful exit, some partitions have alignment E<lt> 4K which can result in "
482 "poor performance on most hypervisors"
483 msgstr ""
484
485 #. type: =head1
486 #: ../align/virt-alignment-scan.pod:207 ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308 ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3179 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:746
487 msgid "SEE ALSO"
488 msgstr ""
489
490 #. type: textblock
491 #: ../align/virt-alignment-scan.pod:209
492 msgid ""
493 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
494 "L<http://libguestfs.org/>."
495 msgstr ""
496
497 #. type: =head1
498 #: ../align/virt-alignment-scan.pod:214 ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
499 msgid "AUTHOR"
500 msgstr ""
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:216 ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
504 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
505 msgstr ""
506
507 #. type: =head1
508 #: ../align/virt-alignment-scan.pod:218 ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../fish/guestfish.pod:1266 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323 ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3259 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:776
509 msgid "COPYRIGHT"
510 msgstr ""
511
512 #. type: textblock
513 #: ../align/virt-alignment-scan.pod:220 ../sparsify/virt-sparsify.pod:270
514 msgid "Copyright (C) 2011 Red Hat Inc."
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:222 ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1271 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:780
519 msgid ""
520 "This program is free software; you can redistribute it and/or modify it "
521 "under the terms of the GNU General Public License as published by the Free "
522 "Software Foundation; either version 2 of the License, or (at your option) "
523 "any later version."
524 msgstr ""
525
526 #. type: textblock
527 #: ../align/virt-alignment-scan.pod:227 ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1276 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:785
528 msgid ""
529 "This program is distributed in the hope that it will be useful, but WITHOUT "
530 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
531 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
532 "more details."
533 msgstr ""
534
535 #. type: textblock
536 #: ../align/virt-alignment-scan.pod:232 ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1281 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:790
537 msgid ""
538 "You should have received a copy of the GNU General Public License along with "
539 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
540 "Ave, Cambridge, MA 02139, USA."
541 msgstr ""
542
543 #. type: textblock
544 #: ../cat/virt-cat.pod:5
545 msgid "virt-cat - Display files in a virtual machine"
546 msgstr ""
547
548 #. type: verbatim
549 #: ../cat/virt-cat.pod:9
550 #, no-wrap
551 msgid ""
552 " virt-cat [--options] -d domname file [file ...]\n"
553 "\n"
554 msgstr ""
555
556 #. type: verbatim
557 #: ../cat/virt-cat.pod:11
558 #, no-wrap
559 msgid ""
560 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
561 "\n"
562 msgstr ""
563
564 #. type: textblock
565 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
566 msgid "Old-style:"
567 msgstr ""
568
569 #. type: verbatim
570 #: ../cat/virt-cat.pod:15
571 #, no-wrap
572 msgid ""
573 " virt-cat domname file\n"
574 "\n"
575 msgstr ""
576
577 #. type: verbatim
578 #: ../cat/virt-cat.pod:17
579 #, no-wrap
580 msgid ""
581 " virt-cat disk.img file\n"
582 "\n"
583 msgstr ""
584
585 #. type: textblock
586 #: ../cat/virt-cat.pod:21
587 msgid ""
588 "C<virt-cat> is a command line tool to display the contents of C<file> where "
589 "C<file> exists in the named virtual machine (or disk image)."
590 msgstr ""
591
592 #. type: textblock
593 #: ../cat/virt-cat.pod:24
594 msgid ""
595 "Multiple filenames can be given, in which case they are concatenated "
596 "together.  Each filename must be a full path, starting at the root directory "
597 "(starting with '/')."
598 msgstr ""
599
600 #. type: textblock
601 #: ../cat/virt-cat.pod:28
602 msgid ""
603 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
604 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
605 "tool (see L</USING GUESTFISH> below)."
606 msgstr ""
607
608 #. type: =head1
609 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
610 msgid "EXAMPLES"
611 msgstr ""
612
613 #. type: textblock
614 #: ../cat/virt-cat.pod:34
615 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
616 msgstr ""
617
618 #. type: verbatim
619 #: ../cat/virt-cat.pod:37
620 #, no-wrap
621 msgid ""
622 " virt-cat -d mydomain /etc/fstab\n"
623 "\n"
624 msgstr ""
625
626 #. type: textblock
627 #: ../cat/virt-cat.pod:39
628 msgid "List syslog messages from a VM disk image file:"
629 msgstr ""
630
631 #. type: verbatim
632 #: ../cat/virt-cat.pod:41
633 #, no-wrap
634 msgid ""
635 " virt-cat -a disk.img /var/log/messages | tail\n"
636 "\n"
637 msgstr ""
638
639 #. type: textblock
640 #: ../cat/virt-cat.pod:43
641 msgid "Find out what DHCP IP address a VM acquired:"
642 msgstr ""
643
644 #. type: verbatim
645 #: ../cat/virt-cat.pod:45
646 #, no-wrap
647 msgid ""
648 " virt-cat -d mydomain /var/log/messages | \\\n"
649 "   grep 'dhclient: bound to' | tail\n"
650 "\n"
651 msgstr ""
652
653 #. type: textblock
654 #: ../cat/virt-cat.pod:48
655 msgid "Find out what packages were recently installed:"
656 msgstr ""
657
658 #. type: verbatim
659 #: ../cat/virt-cat.pod:50
660 #, no-wrap
661 msgid ""
662 " virt-cat -d mydomain /var/log/yum.log | tail\n"
663 "\n"
664 msgstr ""
665
666 #. type: textblock
667 #: ../cat/virt-cat.pod:52
668 msgid "Find out who is logged on inside a virtual machine:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../cat/virt-cat.pod:54
673 #, no-wrap
674 msgid ""
675 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
676 " who /tmp/utmp\n"
677 "\n"
678 msgstr ""
679
680 #. type: textblock
681 #: ../cat/virt-cat.pod:57
682 msgid "or who was logged on:"
683 msgstr ""
684
685 #. type: verbatim
686 #: ../cat/virt-cat.pod:59
687 #, no-wrap
688 msgid ""
689 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
690 " last -f /tmp/wtmp\n"
691 "\n"
692 msgstr ""
693
694 #. type: textblock
695 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
696 msgid ""
697 "Add I<file> which should be a disk image from a virtual machine.  If the "
698 "virtual machine has multiple block devices, you must supply all of them with "
699 "separate I<-a> options."
700 msgstr ""
701
702 #. type: =item
703 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
704 msgid "B<--echo-keys>"
705 msgstr ""
706
707 #. type: textblock
708 #: ../cat/virt-cat.pod:100
709 msgid ""
710 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
711 "so you cannot see what you are typing.  If you are not worried about Tempest "
712 "attacks and there is no one else in the room you can specify this flag to "
713 "see what you are typing."
714 msgstr ""
715
716 #. type: verbatim
717 #: ../cat/virt-cat.pod:116
718 #, no-wrap
719 msgid ""
720 " virt-cat --format=raw -a disk.img file\n"
721 "\n"
722 msgstr ""
723
724 #. type: verbatim
725 #: ../cat/virt-cat.pod:120
726 #, no-wrap
727 msgid ""
728 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
729 "\n"
730 msgstr ""
731
732 #. type: =item
733 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
734 msgid "B<--keys-from-stdin>"
735 msgstr ""
736
737 #. type: textblock
738 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
739 msgid ""
740 "Read key or passphrase parameters from stdin.  The default is to try to read "
741 "passphrases from the user by opening C</dev/tty>."
742 msgstr ""
743
744 #. type: =head1
745 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
746 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
747 msgstr ""
748
749 #. type: textblock
750 #: ../cat/virt-cat.pod:154
751 msgid "Previous versions of virt-cat allowed you to write either:"
752 msgstr ""
753
754 #. type: verbatim
755 #: ../cat/virt-cat.pod:156
756 #, no-wrap
757 msgid ""
758 " virt-cat disk.img [disk.img ...] file\n"
759 "\n"
760 msgstr ""
761
762 #. type: textblock
763 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
764 msgid "or"
765 msgstr ""
766
767 #. type: verbatim
768 #: ../cat/virt-cat.pod:160
769 #, no-wrap
770 msgid ""
771 " virt-cat guestname file\n"
772 "\n"
773 msgstr ""
774
775 #. type: textblock
776 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
777 msgid ""
778 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
779 "the confusing case where a disk image might have the same name as a guest."
780 msgstr ""
781
782 #. type: textblock
783 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
784 msgid "For compatibility the old style is still supported."
785 msgstr ""
786
787 #. type: =head1
788 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
789 msgid "USING GUESTFISH"
790 msgstr ""
791
792 #. type: textblock
793 #: ../cat/virt-cat.pod:170
794 msgid ""
795 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
796 "C<virt-cat> doesn't work."
797 msgstr ""
798
799 #. type: textblock
800 #: ../cat/virt-cat.pod:173
801 msgid "Using C<virt-cat> is approximately equivalent to doing:"
802 msgstr ""
803
804 #. type: verbatim
805 #: ../cat/virt-cat.pod:175
806 #, no-wrap
807 msgid ""
808 " guestfish --ro -i -d domname download file -\n"
809 "\n"
810 msgstr ""
811
812 #. type: textblock
813 #: ../cat/virt-cat.pod:177
814 msgid ""
815 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
816 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
817 msgstr ""
818
819 #. type: textblock
820 #: ../cat/virt-cat.pod:181
821 msgid ""
822 "The command above uses libguestfs's guest inspection feature and so does not "
823 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
824 "disk images that don't contain guests.  To display a file from a disk image "
825 "directly, use:"
826 msgstr ""
827
828 #. type: verbatim
829 #: ../cat/virt-cat.pod:186
830 #, no-wrap
831 msgid ""
832 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
833 "\n"
834 msgstr ""
835
836 #. type: textblock
837 #: ../cat/virt-cat.pod:188
838 msgid ""
839 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
840 "the disk image, and C<file> is the full path to the file."
841 msgstr ""
842
843 #. type: textblock
844 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374 ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
845 msgid "This program returns 0 if successful, or non-zero if there was an error."
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:205
850 msgid ""
851 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
852 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:641
857 msgid "Copyright (C) 2010-2011 Red Hat Inc."
858 msgstr ""
859
860 #. type: textblock
861 #: ../cat/virt-filesystems.pod:5
862 msgid ""
863 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
864 "virtual machine or disk image"
865 msgstr ""
866
867 #. type: verbatim
868 #: ../cat/virt-filesystems.pod:9
869 #, no-wrap
870 msgid ""
871 " virt-filesystems [--options] -d domname\n"
872 "\n"
873 msgstr ""
874
875 #. type: verbatim
876 #: ../cat/virt-filesystems.pod:11
877 #, no-wrap
878 msgid ""
879 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
880 "\n"
881 msgstr ""
882
883 #. type: textblock
884 #: ../cat/virt-filesystems.pod:15
885 msgid ""
886 "This tool allows you to discover filesystems, partitions, logical volumes, "
887 "and their sizes in a disk image or virtual machine.  It is a replacement for "
888 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
889 msgstr ""
890
891 #. type: textblock
892 #: ../cat/virt-filesystems.pod:20
893 msgid ""
894 "One use for this tool is from shell scripts to iterate over all filesystems "
895 "from a disk image:"
896 msgstr ""
897
898 #. type: verbatim
899 #: ../cat/virt-filesystems.pod:23
900 #, no-wrap
901 msgid ""
902 " for fs in $(virt-filesystems -a disk.img); do\n"
903 "   # ...\n"
904 " done\n"
905 "\n"
906 msgstr ""
907
908 #. type: textblock
909 #: ../cat/virt-filesystems.pod:27
910 msgid ""
911 "Another use is to list partitions before using another tool to modify those "
912 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
913 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-filesystems.pod:32
918 msgid ""
919 "Various command line options control what this program displays.  You need "
920 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
921 "guest respectively.  If you just specify that then the program shows "
922 "filesystems found, one per line, like this:"
923 msgstr ""
924
925 #. type: verbatim
926 #: ../cat/virt-filesystems.pod:37
927 #, no-wrap
928 msgid ""
929 " $ virt-filesystems -a disk.img\n"
930 " /dev/sda1\n"
931 " /dev/vg_guest/lv_root\n"
932 "\n"
933 msgstr ""
934
935 #. type: textblock
936 #: ../cat/virt-filesystems.pod:41
937 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
938 msgstr ""
939
940 #. type: verbatim
941 #: ../cat/virt-filesystems.pod:44
942 #, no-wrap
943 msgid ""
944 " $ virt-filesystems -a disk.img -l\n"
945 " Name                   Type         VFS   Label  Size\n"
946 " /dev/sda1              filesystem   ext4  boot   524288000\n"
947 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
948 "\n"
949 msgstr ""
950
951 #. type: textblock
952 #: ../cat/virt-filesystems.pod:49
953 msgid ""
954 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
955 "shown as well:"
956 msgstr ""
957
958 #. type: verbatim
959 #: ../cat/virt-filesystems.pod:52
960 #, no-wrap
961 msgid ""
962 " $ virt-filesystems -a disk.img --extra\n"
963 " /dev/sda1\n"
964 " /dev/vg_guest/lv_root\n"
965 " /dev/vg_guest/lv_swap\n"
966 " /dev/vg_guest/lv_data\n"
967 "\n"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-filesystems.pod:58
972 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
973 msgstr ""
974
975 #. type: verbatim
976 #: ../cat/virt-filesystems.pod:60
977 #, no-wrap
978 msgid ""
979 " $ virt-filesystems -a disk.img --partitions\n"
980 " /dev/sda1\n"
981 " /dev/sda2\n"
982 "\n"
983 msgstr ""
984
985 #. type: textblock
986 #: ../cat/virt-filesystems.pod:64
987 msgid ""
988 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
989 "I<--physical-volumes>, I<--block-devices> to list those items."
990 msgstr ""
991
992 #. type: textblock
993 #: ../cat/virt-filesystems.pod:67
994 msgid ""
995 "You can use these options in combination as well (if you want a combination "
996 "including filesystems, you have to add I<--filesystems>).  Notice that some "
997 "items fall into several categories (eg. C</dev/sda1> might be both a "
998 "partition and a filesystem).  These items are listed several times.  To get "
999 "a list which includes absolutely everything that virt-filesystems knows "
1000 "about, use the I<--all> option."
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../cat/virt-filesystems.pod:74
1005 msgid ""
1006 "UUIDs (because they are quite long) are not shown by default.  Add the "
1007 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../cat/virt-filesystems.pod:78
1012 msgid ""
1013 "I<--all --long --uuid> is a useful combination to display all possible "
1014 "information about everything."
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-filesystems.pod:81
1019 #, no-wrap
1020 msgid ""
1021 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1022 " Name      Type       VFS  Label           Size Parent   UUID\n"
1023 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1024 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1025 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1026 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1027 " /dev/sda  device     -    -               20G  -        -\n"
1028 "\n"
1029 msgstr ""
1030
1031 #. type: textblock
1032 #: ../cat/virt-filesystems.pod:89
1033 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1034 msgstr ""
1035
1036 #. type: =item
1037 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1038 msgid "B<--all>"
1039 msgstr ""
1040
1041 #. type: textblock
1042 #: ../cat/virt-filesystems.pod:112
1043 msgid ""
1044 "Display everything.  This is currently the same as specifying these options: "
1045 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1046 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1047 "be added to this list in future)."
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../cat/virt-filesystems.pod:117
1052 msgid "See also I<--long>."
1053 msgstr ""
1054
1055 #. type: =item
1056 #: ../cat/virt-filesystems.pod:119
1057 msgid "B<--blkdevs>"
1058 msgstr ""
1059
1060 #. type: =item
1061 #: ../cat/virt-filesystems.pod:121
1062 msgid "B<--block-devices>"
1063 msgstr ""
1064
1065 #. type: textblock
1066 #: ../cat/virt-filesystems.pod:123
1067 msgid "Display block devices."
1068 msgstr ""
1069
1070 #. type: =item
1071 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1072 msgid "B<--csv>"
1073 msgstr ""
1074
1075 #. type: textblock
1076 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1077 msgid ""
1078 "Write out the results in CSV format (comma-separated values).  This format "
1079 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1080 "ABOUT CSV FORMAT> below."
1081 msgstr ""
1082
1083 #. type: textblock
1084 #: ../cat/virt-filesystems.pod:150
1085 msgid ""
1086 "When prompting for keys and passphrases, virt-filesystems normally turns "
1087 "echoing off so you cannot see what you are typing.  If you are not worried "
1088 "about Tempest attacks and there is no one else in the room you can specify "
1089 "this flag to see what you are typing."
1090 msgstr ""
1091
1092 #. type: =item
1093 #: ../cat/virt-filesystems.pod:155
1094 msgid "B<--extra>"
1095 msgstr ""
1096
1097 #. type: textblock
1098 #: ../cat/virt-filesystems.pod:157
1099 msgid ""
1100 "This causes filesystems that are not ordinary, mountable filesystems to be "
1101 "displayed.  This category includes swapspace, and filesystems that are empty "
1102 "or contain unknown data."
1103 msgstr ""
1104
1105 #. type: textblock
1106 #: ../cat/virt-filesystems.pod:161
1107 msgid "This option implies I<--filesystems>."
1108 msgstr ""
1109
1110 #. type: =item
1111 #: ../cat/virt-filesystems.pod:163
1112 msgid "B<--filesystems>"
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-filesystems.pod:165
1117 msgid ""
1118 "Display mountable filesystems.  If no display option was selected then this "
1119 "option is implied."
1120 msgstr ""
1121
1122 #. type: textblock
1123 #: ../cat/virt-filesystems.pod:168
1124 msgid "With I<--extra>, non-mountable filesystems are shown too."
1125 msgstr ""
1126
1127 #. type: verbatim
1128 #: ../cat/virt-filesystems.pod:181
1129 #, no-wrap
1130 msgid ""
1131 " virt-filesystems --format=raw -a disk.img\n"
1132 "\n"
1133 msgstr ""
1134
1135 #. type: verbatim
1136 #: ../cat/virt-filesystems.pod:185
1137 #, no-wrap
1138 msgid ""
1139 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1140 "\n"
1141 msgstr ""
1142
1143 #. type: =item
1144 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1145 msgid "B<-h>"
1146 msgstr ""
1147
1148 #. type: =item
1149 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1150 msgid "B<--human-readable>"
1151 msgstr ""
1152
1153 #. type: textblock
1154 #: ../cat/virt-filesystems.pod:198
1155 msgid "In I<--long> mode, display sizes in human-readable format."
1156 msgstr ""
1157
1158 #. type: =item
1159 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1160 msgid "B<-l>"
1161 msgstr ""
1162
1163 #. type: =item
1164 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1165 msgid "B<--long>"
1166 msgstr ""
1167
1168 #. type: textblock
1169 #: ../cat/virt-filesystems.pod:209
1170 msgid "Display extra columns of data (\"long format\")."
1171 msgstr ""
1172
1173 #. type: textblock
1174 #: ../cat/virt-filesystems.pod:211
1175 msgid "A title row is added unless you also specify I<--no-title>."
1176 msgstr ""
1177
1178 #. type: textblock
1179 #: ../cat/virt-filesystems.pod:213
1180 msgid ""
1181 "The extra columns displayed depend on what output you select, and the "
1182 "ordering of columns may change in future versions.  Use the title row, "
1183 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1184 "programs."
1185 msgstr ""
1186
1187 #. type: textblock
1188 #: ../cat/virt-filesystems.pod:218
1189 msgid ""
1190 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1191 "default is to show raw numbers of I<bytes>."
1192 msgstr ""
1193
1194 #. type: textblock
1195 #: ../cat/virt-filesystems.pod:221
1196 msgid "Use I<--uuid> to display UUIDs too."
1197 msgstr ""
1198
1199 #. type: =item
1200 #: ../cat/virt-filesystems.pod:223
1201 msgid "B<--lvs>"
1202 msgstr ""
1203
1204 #. type: =item
1205 #: ../cat/virt-filesystems.pod:225
1206 msgid "B<--logvols>"
1207 msgstr ""
1208
1209 #. type: =item
1210 #: ../cat/virt-filesystems.pod:227
1211 msgid "B<--logical-volumes>"
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../cat/virt-filesystems.pod:229
1216 msgid ""
1217 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1218 "of whether the LVs contain filesystems."
1219 msgstr ""
1220
1221 #. type: =item
1222 #: ../cat/virt-filesystems.pod:232
1223 msgid "B<--no-title>"
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-filesystems.pod:234
1228 msgid "In I<--long> mode, don't add a title row."
1229 msgstr ""
1230
1231 #. type: textblock
1232 #: ../cat/virt-filesystems.pod:236
1233 msgid ""
1234 "Note that the order of the columns is not fixed, and may change in future "
1235 "versions of virt-filesystems, so using this option may give you unexpected "
1236 "surprises."
1237 msgstr ""
1238
1239 #. type: =item
1240 #: ../cat/virt-filesystems.pod:240
1241 msgid "B<--parts>"
1242 msgstr ""
1243
1244 #. type: =item
1245 #: ../cat/virt-filesystems.pod:242
1246 msgid "B<--partitions>"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-filesystems.pod:244
1251 msgid ""
1252 "Display partitions.  In this mode, these are displayed irrespective of "
1253 "whether the partitions contain filesystems."
1254 msgstr ""
1255
1256 #. type: =item
1257 #: ../cat/virt-filesystems.pod:247
1258 msgid "B<--pvs>"
1259 msgstr ""
1260
1261 #. type: =item
1262 #: ../cat/virt-filesystems.pod:249
1263 msgid "B<--physvols>"
1264 msgstr ""
1265
1266 #. type: =item
1267 #: ../cat/virt-filesystems.pod:251
1268 msgid "B<--physical-volumes>"
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:253
1273 msgid "Display LVM physical volumes."
1274 msgstr ""
1275
1276 #. type: =item
1277 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1278 msgid "B<--uuid>"
1279 msgstr ""
1280
1281 #. type: =item
1282 #: ../cat/virt-filesystems.pod:257
1283 msgid "B<--uuids>"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:259
1288 msgid "In I<--long> mode, display UUIDs as well."
1289 msgstr ""
1290
1291 #. type: =item
1292 #: ../cat/virt-filesystems.pod:273
1293 msgid "B<--vgs>"
1294 msgstr ""
1295
1296 #. type: =item
1297 #: ../cat/virt-filesystems.pod:275
1298 msgid "B<--volgroups>"
1299 msgstr ""
1300
1301 #. type: =item
1302 #: ../cat/virt-filesystems.pod:277
1303 msgid "B<--volume-groups>"
1304 msgstr ""
1305
1306 #. type: textblock
1307 #: ../cat/virt-filesystems.pod:279
1308 msgid "Display LVM volume groups."
1309 msgstr ""
1310
1311 #. type: =head1
1312 #: ../cat/virt-filesystems.pod:287
1313 msgid "COLUMNS"
1314 msgstr ""
1315
1316 #. type: textblock
1317 #: ../cat/virt-filesystems.pod:289
1318 msgid ""
1319 "Note that columns in the output are subject to reordering and change in "
1320 "future versions of this tool."
1321 msgstr ""
1322
1323 #. type: =item
1324 #: ../cat/virt-filesystems.pod:294
1325 msgid "B<Name>"
1326 msgstr ""
1327
1328 #. type: textblock
1329 #: ../cat/virt-filesystems.pod:296
1330 msgid "The filesystem, partition, block device or LVM name."
1331 msgstr ""
1332
1333 #. type: textblock
1334 #: ../cat/virt-filesystems.pod:298
1335 msgid ""
1336 "For device and partition names these are displayed as canonical libguestfs "
1337 "names, so that for example C</dev/sda2> is the second partition on the first "
1338 "device."
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../cat/virt-filesystems.pod:302
1343 msgid ""
1344 "If the I<--long> option is B<not> specified, then only the name column is "
1345 "shown in the output."
1346 msgstr ""
1347
1348 #. type: =item
1349 #: ../cat/virt-filesystems.pod:305
1350 msgid "B<Type>"
1351 msgstr ""
1352
1353 #. type: textblock
1354 #: ../cat/virt-filesystems.pod:307
1355 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1356 msgstr ""
1357
1358 #. type: =item
1359 #: ../cat/virt-filesystems.pod:309
1360 msgid "B<VFS>"
1361 msgstr ""
1362
1363 #. type: textblock
1364 #: ../cat/virt-filesystems.pod:311
1365 msgid ""
1366 "If there is a filesystem, then this column displays the filesystem type if "
1367 "one could be detected, eg. C<ext4>."
1368 msgstr ""
1369
1370 #. type: =item
1371 #: ../cat/virt-filesystems.pod:314
1372 msgid "B<Label>"
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../cat/virt-filesystems.pod:316
1377 msgid ""
1378 "If the object has a label (used for identifying and mounting filesystems) "
1379 "then this column contains the label."
1380 msgstr ""
1381
1382 #. type: =item
1383 #: ../cat/virt-filesystems.pod:319
1384 msgid "B<Size>"
1385 msgstr ""
1386
1387 #. type: textblock
1388 #: ../cat/virt-filesystems.pod:321
1389 msgid ""
1390 "The size of the object in bytes.  If the I<--human> option is used then the "
1391 "size is displayed in a human-readable form."
1392 msgstr ""
1393
1394 #. type: =item
1395 #: ../cat/virt-filesystems.pod:324
1396 msgid "B<Parent>"
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:326
1401 msgid ""
1402 "The parent column records the parent relationship between objects.  For "
1403 "example, if the object is a partition, then this column contains the name of "
1404 "the containing device.  If the object is a logical volume, then this column "
1405 "is the name of the volume group."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:331
1410 msgid "B<UUID>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:333
1415 msgid ""
1416 "If the object has a UUID (used for identifying and mounting filesystems and "
1417 "block devices) then this column contains the UUID as a string."
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../cat/virt-filesystems.pod:337
1422 msgid "The UUID is only displayed if the I<--uuid> option is given."
1423 msgstr ""
1424
1425 #. type: =head1
1426 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1427 msgid "NOTE ABOUT CSV FORMAT"
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1432 msgid ""
1433 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1434 "should be easy to parse, but it is definitely not easy to parse."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1439 msgid ""
1440 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1441 "reliably.  This example has two columns:"
1442 msgstr ""
1443
1444 #. type: verbatim
1445 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1446 #, no-wrap
1447 msgid ""
1448 " \"foo,bar\",baz\n"
1449 "\n"
1450 msgstr ""
1451
1452 #. type: textblock
1453 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1454 msgid ""
1455 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1456 "reliably.  This example has one row:"
1457 msgstr ""
1458
1459 #. type: verbatim
1460 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1461 #, no-wrap
1462 msgid ""
1463 " \"foo\n"
1464 " bar\",baz\n"
1465 "\n"
1466 msgstr ""
1467
1468 #. type: textblock
1469 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1470 msgid ""
1471 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1472 "packaged in major Linux distributions)."
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1477 msgid ""
1478 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1479 "or Python's built-in csv library)."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1484 msgid "Most spreadsheets and databases can import CSV directly."
1485 msgstr ""
1486
1487 #. type: textblock
1488 #: ../cat/virt-filesystems.pod:379
1489 msgid ""
1490 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1491 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1492 "L<http://libguestfs.org/>."
1493 msgstr ""
1494
1495 #. type: textblock
1496 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1497 msgid "Copyright (C) 2010 Red Hat Inc."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-ls.pod:5
1502 msgid "virt-ls - List files in a virtual machine"
1503 msgstr ""
1504
1505 #. type: verbatim
1506 #: ../cat/virt-ls.pod:9
1507 #, no-wrap
1508 msgid ""
1509 " virt-ls [--options] -d domname directory [directory ...]\n"
1510 "\n"
1511 msgstr ""
1512
1513 #. type: verbatim
1514 #: ../cat/virt-ls.pod:11
1515 #, no-wrap
1516 msgid ""
1517 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1518 "...]\n"
1519 "\n"
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1524 msgid "Old style:"
1525 msgstr ""
1526
1527 #. type: verbatim
1528 #: ../cat/virt-ls.pod:15
1529 #, no-wrap
1530 msgid ""
1531 " virt-ls [--options] domname directory\n"
1532 "\n"
1533 msgstr ""
1534
1535 #. type: verbatim
1536 #: ../cat/virt-ls.pod:17
1537 #, no-wrap
1538 msgid ""
1539 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1540 "\n"
1541 msgstr ""
1542
1543 #. type: textblock
1544 #: ../cat/virt-ls.pod:21
1545 msgid ""
1546 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1547 "more from a virtual machine or disk image."
1548 msgstr ""
1549
1550 #. type: textblock
1551 #: ../cat/virt-ls.pod:24
1552 msgid ""
1553 "Multiple directory names can be given, in which case the output from each is "
1554 "concatenated."
1555 msgstr ""
1556
1557 #. type: textblock
1558 #: ../cat/virt-ls.pod:27
1559 msgid ""
1560 "To list directories from a libvirt guest use the I<-d> option to specify the "
1561 "name of the guest.  For a disk image, use the I<-a> option."
1562 msgstr ""
1563
1564 #. type: textblock
1565 #: ../cat/virt-ls.pod:31
1566 msgid ""
1567 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1568 "may need to use L<guestfish(1)>, or write a program directly to the "
1569 "L<guestfs(3)> API."
1570 msgstr ""
1571
1572 #. type: textblock
1573 #: ../cat/virt-ls.pod:37
1574 msgid "Get a list of all files and directories in a virtual machine:"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-ls.pod:39
1579 #, no-wrap
1580 msgid ""
1581 " virt-ls -R -d guest /\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-ls.pod:41
1587 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1588 msgstr ""
1589
1590 #. type: verbatim
1591 #: ../cat/virt-ls.pod:43
1592 #, no-wrap
1593 msgid ""
1594 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1595 "\n"
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-ls.pod:45
1600 msgid "List all public-writable directories in a Linux virtual machine:"
1601 msgstr ""
1602
1603 #. type: verbatim
1604 #: ../cat/virt-ls.pod:47
1605 #, no-wrap
1606 msgid ""
1607 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1608 "\n"
1609 msgstr ""
1610
1611 #. type: textblock
1612 #: ../cat/virt-ls.pod:49
1613 msgid "List all Unix domain sockets in a Linux virtual machine:"
1614 msgstr ""
1615
1616 #. type: verbatim
1617 #: ../cat/virt-ls.pod:51
1618 #, no-wrap
1619 msgid ""
1620 " virt-ls -lR -d guest / | grep '^s'\n"
1621 "\n"
1622 msgstr ""
1623
1624 #. type: textblock
1625 #: ../cat/virt-ls.pod:53
1626 msgid "List all regular files with filenames ending in '.png':"
1627 msgstr ""
1628
1629 #. type: verbatim
1630 #: ../cat/virt-ls.pod:55
1631 #, no-wrap
1632 msgid ""
1633 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1634 "\n"
1635 msgstr ""
1636
1637 #. type: textblock
1638 #: ../cat/virt-ls.pod:57
1639 msgid "To display files larger than 10MB in home directories:"
1640 msgstr ""
1641
1642 #. type: verbatim
1643 #: ../cat/virt-ls.pod:59
1644 #, no-wrap
1645 msgid ""
1646 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1647 "\n"
1648 msgstr ""
1649
1650 #. type: textblock
1651 #: ../cat/virt-ls.pod:61
1652 msgid "Find everything modified in the last 7 days:"
1653 msgstr ""
1654
1655 #. type: verbatim
1656 #: ../cat/virt-ls.pod:63
1657 #, no-wrap
1658 msgid ""
1659 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1660 "\n"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:65
1665 msgid "Find regular files modified in the last 24 hours:"
1666 msgstr ""
1667
1668 #. type: verbatim
1669 #: ../cat/virt-ls.pod:67
1670 #, no-wrap
1671 msgid ""
1672 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1673 "\n"
1674 msgstr ""
1675
1676 #. type: =head2
1677 #: ../cat/virt-ls.pod:69
1678 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1679 msgstr ""
1680
1681 #. type: textblock
1682 #: ../cat/virt-ls.pod:71
1683 msgid ""
1684 "Find the differences between files in a guest and an earlier snapshot of the "
1685 "same guest."
1686 msgstr ""
1687
1688 #. type: verbatim
1689 #: ../cat/virt-ls.pod:74
1690 #, no-wrap
1691 msgid ""
1692 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1693 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1694 " diff -u old new | less\n"
1695 "\n"
1696 msgstr ""
1697
1698 #. type: textblock
1699 #: ../cat/virt-ls.pod:78
1700 msgid ""
1701 "The commands above won't find files where the content has changed but the "
1702 "metadata (eg. file size and modification date) is the same.  To do that, you "
1703 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1704 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1705 "of every regular file in the virtual machine."
1706 msgstr ""
1707
1708 #. type: =head1
1709 #: ../cat/virt-ls.pod:84
1710 msgid "OUTPUT MODES"
1711 msgstr ""
1712
1713 #. type: textblock
1714 #: ../cat/virt-ls.pod:86
1715 msgid ""
1716 "C<virt-ls> has four output modes, controlled by different combinations of "
1717 "the I<-l> and I<-R> options."
1718 msgstr ""
1719
1720 #. type: =head2
1721 #: ../cat/virt-ls.pod:89
1722 msgid "SIMPLE LISTING"
1723 msgstr ""
1724
1725 #. type: textblock
1726 #: ../cat/virt-ls.pod:91
1727 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1728 msgstr ""
1729
1730 #. type: verbatim
1731 #: ../cat/virt-ls.pod:93
1732 #, no-wrap
1733 msgid ""
1734 " $ virt-ls -d guest /\n"
1735 " bin\n"
1736 " boot\n"
1737 " [etc.]\n"
1738 "\n"
1739 msgstr ""
1740
1741 #. type: =head2
1742 #: ../cat/virt-ls.pod:98
1743 msgid "LONG LISTING"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-ls.pod:100
1748 msgid ""
1749 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1750 "(more specifically, like the C<guestfs_ll> function)."
1751 msgstr ""
1752
1753 #. type: verbatim
1754 #: ../cat/virt-ls.pod:103
1755 #, no-wrap
1756 msgid ""
1757 " $ virt-ls -l -d guest /\n"
1758 " total 204\n"
1759 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1760 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1761 " [etc.]\n"
1762 "\n"
1763 msgstr ""
1764
1765 #. type: textblock
1766 #: ../cat/virt-ls.pod:109
1767 msgid ""
1768 "Note that while this is useful for displaying a directory, do not try "
1769 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1770 "instead."
1771 msgstr ""
1772
1773 #. type: =head2
1774 #: ../cat/virt-ls.pod:113
1775 msgid "RECURSIVE LISTING"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-ls.pod:115
1780 msgid ""
1781 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1782 "and directories recursively:"
1783 msgstr ""
1784
1785 #. type: verbatim
1786 #: ../cat/virt-ls.pod:118
1787 #, no-wrap
1788 msgid ""
1789 " $ virt-ls -R -d guest /tmp\n"
1790 " foo\n"
1791 " foo/bar\n"
1792 " [etc.]\n"
1793 "\n"
1794 msgstr ""
1795
1796 #. type: textblock
1797 #: ../cat/virt-ls.pod:123
1798 msgid ""
1799 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1800 "converts C<\\0> characters to C<\\n>."
1801 msgstr ""
1802
1803 #. type: =head2
1804 #: ../cat/virt-ls.pod:126
1805 msgid "RECURSIVE LONG LISTING"
1806 msgstr ""
1807
1808 #. type: textblock
1809 #: ../cat/virt-ls.pod:128
1810 msgid ""
1811 "Using I<-lR> options together changes the output to display directories "
1812 "recursively, with file stats, and optionally other features such as "
1813 "checksums and extended attributes."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-ls.pod:132
1818 msgid ""
1819 "Most of the interesting features of C<virt-ls> are only available when using "
1820 "I<-lR> mode."
1821 msgstr ""
1822
1823 #. type: textblock
1824 #: ../cat/virt-ls.pod:135
1825 msgid ""
1826 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1827 "you cannot use the output in another program (because filenames can contain "
1828 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1829 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1830 "on you by creating filenames with embedded newline characters.  To B<safely> "
1831 "parse the output in another program, use the I<--csv> (Comma-Separated "
1832 "Values) option."
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../cat/virt-ls.pod:143
1837 msgid ""
1838 "Note that this output format is completely unrelated to the C<ls -lR> "
1839 "command."
1840 msgstr ""
1841
1842 #. type: verbatim
1843 #: ../cat/virt-ls.pod:146
1844 #, no-wrap
1845 msgid ""
1846 " $ virt-ls -lR -d guest /bin\n"
1847 " d 0555       4096 /bin\n"
1848 " - 0755        123 /bin/alsaunmute\n"
1849 " - 0755      28328 /bin/arch\n"
1850 " l 0777          4 /bin/awk -> gawk\n"
1851 " - 0755      27216 /bin/basename\n"
1852 " - 0755     943360 /bin/bash\n"
1853 " [etc.]\n"
1854 "\n"
1855 msgstr ""
1856
1857 #. type: textblock
1858 #: ../cat/virt-ls.pod:155
1859 msgid "These basic fields are always shown:"
1860 msgstr ""
1861
1862 #. type: =item
1863 #: ../cat/virt-ls.pod:159
1864 msgid "type"
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:161
1869 msgid ""
1870 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1871 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1872 "link), C<s> (socket) or C<u> (unknown)."
1873 msgstr ""
1874
1875 #. type: =item
1876 #: ../cat/virt-ls.pod:171
1877 msgid "permissions"
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../cat/virt-ls.pod:173
1882 msgid "The Unix permissions, displayed as a 4 digit octal number."
1883 msgstr ""
1884
1885 #. type: =item
1886 #: ../cat/virt-ls.pod:175
1887 msgid "size"
1888 msgstr ""
1889
1890 #. type: textblock
1891 #: ../cat/virt-ls.pod:177
1892 msgid ""
1893 "The size of the file.  This is shown in bytes unless I<-h> or "
1894 "I<--human-readable> option is given, in which case this is shown as a "
1895 "human-readable number."
1896 msgstr ""
1897
1898 #. type: =head2
1899 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
1900 msgid "path"
1901 msgstr ""
1902
1903 #. type: textblock
1904 #: ../cat/virt-ls.pod:183
1905 msgid "The full path of the file or directory."
1906 msgstr ""
1907
1908 #. type: =item
1909 #: ../cat/virt-ls.pod:185
1910 msgid "link"
1911 msgstr ""
1912
1913 #. type: textblock
1914 #: ../cat/virt-ls.pod:187
1915 msgid "For symbolic links only, the link target."
1916 msgstr ""
1917
1918 #. type: textblock
1919 #: ../cat/virt-ls.pod:191
1920 msgid ""
1921 "In I<-lR> mode, additional command line options enable the display of more "
1922 "fields."
1923 msgstr ""
1924
1925 #. type: textblock
1926 #: ../cat/virt-ls.pod:194
1927 msgid ""
1928 "With the I<--uids> flag, these additional fields are displayed before the "
1929 "path:"
1930 msgstr ""
1931
1932 #. type: =item
1933 #: ../cat/virt-ls.pod:199
1934 msgid "uid"
1935 msgstr ""
1936
1937 #. type: =item
1938 #: ../cat/virt-ls.pod:201
1939 msgid "gid"
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-ls.pod:203
1944 msgid ""
1945 "The UID and GID of the owner of the file (displayed numerically).  Note "
1946 "these only make sense in the context of a Unix-like guest."
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../cat/virt-ls.pod:208
1951 msgid "With the I<--times> flag, these additional fields are displayed:"
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-ls.pod:212
1956 msgid "atime"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-ls.pod:214
1961 msgid "The time of last access."
1962 msgstr ""
1963
1964 #. type: =item
1965 #: ../cat/virt-ls.pod:216
1966 msgid "mtime"
1967 msgstr ""
1968
1969 #. type: textblock
1970 #: ../cat/virt-ls.pod:218
1971 msgid "The time of last modification."
1972 msgstr ""
1973
1974 #. type: =item
1975 #: ../cat/virt-ls.pod:220
1976 msgid "ctime"
1977 msgstr ""
1978
1979 #. type: textblock
1980 #: ../cat/virt-ls.pod:222
1981 msgid "The time of last status change."
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:226
1986 msgid ""
1987 "The time fields are displayed as string dates and times, unless one of the "
1988 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1989 msgstr ""
1990
1991 #. type: textblock
1992 #: ../cat/virt-ls.pod:229
1993 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-ls.pod:233
1998 msgid "device"
1999 msgstr ""
2000
2001 #. type: textblock
2002 #: ../cat/virt-ls.pod:235
2003 msgid ""
2004 "The device containing the file (displayed as major:minor).  This may not "
2005 "match devices as known to the guest."
2006 msgstr ""
2007
2008 #. type: =item
2009 #: ../cat/virt-ls.pod:238
2010 msgid "inode"
2011 msgstr ""
2012
2013 #. type: textblock
2014 #: ../cat/virt-ls.pod:240
2015 msgid "The inode number."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-ls.pod:242
2020 msgid "nlink"
2021 msgstr ""
2022
2023 #. type: textblock
2024 #: ../cat/virt-ls.pod:244
2025 msgid "The number of hard links."
2026 msgstr ""
2027
2028 #. type: =item
2029 #: ../cat/virt-ls.pod:246
2030 msgid "rdev"
2031 msgstr ""
2032
2033 #. type: textblock
2034 #: ../cat/virt-ls.pod:248
2035 msgid "For block and char special files, the device (displayed as major:minor)."
2036 msgstr ""
2037
2038 #. type: =item
2039 #: ../cat/virt-ls.pod:251
2040 msgid "blocks"
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-ls.pod:253
2045 msgid "The number of 512 byte blocks allocated to the file."
2046 msgstr ""
2047
2048 #. type: textblock
2049 #: ../cat/virt-ls.pod:257
2050 msgid ""
2051 "With the I<--checksum> flag, the checksum of the file contents is shown "
2052 "(only for regular files).  Computing file checksums can take a considerable "
2053 "amount of time."
2054 msgstr ""
2055
2056 #. type: =item
2057 #: ../cat/virt-ls.pod:280
2058 msgid "B<--checksum>"
2059 msgstr ""
2060
2061 #. type: =item
2062 #: ../cat/virt-ls.pod:282
2063 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2064 msgstr ""
2065
2066 #. type: textblock
2067 #: ../cat/virt-ls.pod:284
2068 msgid ""
2069 "Display checksum over file contents for regular files.  With no argument, "
2070 "this defaults to using I<md5>.  Using an argument, you can select the "
2071 "checksum type to use."
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2076 msgid ""
2077 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2078 "LISTING> above."
2079 msgstr ""
2080
2081 #. type: textblock
2082 #: ../cat/virt-ls.pod:316
2083 msgid ""
2084 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2085 "so you cannot see what you are typing.  If you are not worried about Tempest "
2086 "attacks and there is no one else in the room you can specify this flag to "
2087 "see what you are typing."
2088 msgstr ""
2089
2090 #. type: =item
2091 #: ../cat/virt-ls.pod:321
2092 msgid "B<--extra-stats>"
2093 msgstr ""
2094
2095 #. type: textblock
2096 #: ../cat/virt-ls.pod:323
2097 msgid "Display extra stats."
2098 msgstr ""
2099
2100 #. type: verbatim
2101 #: ../cat/virt-ls.pod:339
2102 #, no-wrap
2103 msgid ""
2104 " virt-ls --format=raw -a disk.img /dir\n"
2105 "\n"
2106 msgstr ""
2107
2108 #. type: verbatim
2109 #: ../cat/virt-ls.pod:343
2110 #, no-wrap
2111 msgid ""
2112 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2113 "\n"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:356
2118 msgid "Display file sizes in human-readable format."
2119 msgstr ""
2120
2121 #. type: =item
2122 #: ../cat/virt-ls.pod:370
2123 msgid "B<-R>"
2124 msgstr ""
2125
2126 #. type: =item
2127 #: ../cat/virt-ls.pod:372
2128 msgid "B<--recursive>"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-ls.pod:374
2133 msgid ""
2134 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2135 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2136 "LISTING>."
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-ls.pod:378
2141 msgid ""
2142 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2143 "L</LONG LISTING>."
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../cat/virt-ls.pod:381
2148 msgid ""
2149 "C<virt-ls -R> produces a recursive list of files starting at the named "
2150 "directory.  See L</RECURSIVE LISTING>."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../cat/virt-ls.pod:384
2155 msgid ""
2156 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2157 "parsed.  See L</RECURSIVE LONG LISTING>."
2158 msgstr ""
2159
2160 #. type: =item
2161 #: ../cat/virt-ls.pod:387
2162 msgid "B<--times>"
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:389
2167 msgid "Display time fields."
2168 msgstr ""
2169
2170 #. type: =item
2171 #: ../cat/virt-ls.pod:394
2172 msgid "B<--time-days>"
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../cat/virt-ls.pod:396
2177 msgid "Display time fields as days before now (negative if in the future)."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../cat/virt-ls.pod:398
2182 msgid ""
2183 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2184 "of the file is between 0 and 86399 seconds."
2185 msgstr ""
2186
2187 #. type: =item
2188 #: ../cat/virt-ls.pod:404
2189 msgid "B<--time-relative>"
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../cat/virt-ls.pod:406
2194 msgid "Display time fields as seconds before now (negative if in the future)."
2195 msgstr ""
2196
2197 #. type: =item
2198 #: ../cat/virt-ls.pod:411
2199 msgid "B<--time-t>"
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:413
2204 msgid "Display time fields as seconds since the Unix epoch."
2205 msgstr ""
2206
2207 #. type: =item
2208 #: ../cat/virt-ls.pod:418
2209 msgid "B<--uids>"
2210 msgstr ""
2211
2212 #. type: textblock
2213 #: ../cat/virt-ls.pod:420
2214 msgid "Display UID and GID fields."
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../cat/virt-ls.pod:445
2219 msgid "Previous versions of virt-ls allowed you to write either:"
2220 msgstr ""
2221
2222 #. type: verbatim
2223 #: ../cat/virt-ls.pod:447
2224 #, no-wrap
2225 msgid ""
2226 " virt-ls disk.img [disk.img ...] /dir\n"
2227 "\n"
2228 msgstr ""
2229
2230 #. type: verbatim
2231 #: ../cat/virt-ls.pod:451
2232 #, no-wrap
2233 msgid ""
2234 " virt-ls guestname /dir\n"
2235 "\n"
2236 msgstr ""
2237
2238 #. type: textblock
2239 #: ../cat/virt-ls.pod:497
2240 msgid ""
2241 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2242 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2243 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2244 msgstr ""
2245
2246 #. type: textblock
2247 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2248 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../df/virt-df.pod:5
2253 msgid "virt-df - Display free space on virtual filesystems"
2254 msgstr ""
2255
2256 #. type: verbatim
2257 #: ../df/virt-df.pod:9
2258 #, no-wrap
2259 msgid ""
2260 " virt-df [--options]\n"
2261 "\n"
2262 msgstr ""
2263
2264 #. type: verbatim
2265 #: ../df/virt-df.pod:11
2266 #, no-wrap
2267 msgid ""
2268 " virt-df [--options] -d domname\n"
2269 "\n"
2270 msgstr ""
2271
2272 #. type: verbatim
2273 #: ../df/virt-df.pod:13
2274 #, no-wrap
2275 msgid ""
2276 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2277 "\n"
2278 msgstr ""
2279
2280 #. type: verbatim
2281 #: ../df/virt-df.pod:17
2282 #, no-wrap
2283 msgid ""
2284 " virt-df [--options] domname\n"
2285 "\n"
2286 msgstr ""
2287
2288 #. type: verbatim
2289 #: ../df/virt-df.pod:19
2290 #, no-wrap
2291 msgid ""
2292 " virt-df [--options] disk.img [disk.img ...]\n"
2293 "\n"
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../df/virt-df.pod:23
2298 msgid ""
2299 "C<virt-df> is a command line tool to display free space on virtual machine "
2300 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2301 "allocated to a virtual machine, but can look inside disk images to see how "
2302 "much space is really being used."
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../df/virt-df.pod:28
2307 msgid ""
2308 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2309 "to get a list of all active and inactive guests, and performs a C<df>-type "
2310 "operation on each one in turn, printing out the results."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../df/virt-df.pod:32
2315 msgid ""
2316 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
2317 "C<df>-type operation on either the single named libvirt domain, or on the "
2318 "disk image(s) listed on the command line (which must all belong to a single "
2319 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
2320 "single guest>.  If you want to run on multiple guests, then you have to "
2321 "invoke C<virt-df> multiple times."
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../df/virt-df.pod:39
2326 msgid ""
2327 "Use the I<--csv> option to get a format which can be easily parsed by other "
2328 "programs.  Other options are similar to the standard L<df(1)> command."
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../df/virt-df.pod:45
2333 msgid ""
2334 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2335 "output human-readable:"
2336 msgstr ""
2337
2338 #. type: verbatim
2339 #: ../df/virt-df.pod:48
2340 #, no-wrap
2341 msgid ""
2342 " # virt-df -d F14x64 -h\n"
2343 " Filesystem                       Size     Used  Available  Use%\n"
2344 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2345 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2346 "\n"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../df/virt-df.pod:53
2351 msgid "Show disk usage for a disk image file called C<test.img>:"
2352 msgstr ""
2353
2354 #. type: verbatim
2355 #: ../df/virt-df.pod:55
2356 #, no-wrap
2357 msgid ""
2358 " $ virt-df -a test1.img\n"
2359 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2360 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2361 "\n"
2362 msgstr ""
2363
2364 #. type: verbatim
2365 #: ../df/virt-df.pod:112
2366 #, no-wrap
2367 msgid ""
2368 " virt-df --format=raw -a disk.img\n"
2369 "\n"
2370 msgstr ""
2371
2372 #. type: verbatim
2373 #: ../df/virt-df.pod:116
2374 #, no-wrap
2375 msgid ""
2376 " virt-df --format=raw -a disk.img --format -a another.img\n"
2377 "\n"
2378 msgstr ""
2379
2380 #. type: textblock
2381 #: ../df/virt-df.pod:129
2382 msgid "Print sizes in human-readable format."
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../df/virt-df.pod:131
2387 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2392 msgid "B<-i>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../df/virt-df.pod:135
2397 msgid "B<--inodes>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../df/virt-df.pod:137
2402 msgid "Print inodes instead of blocks."
2403 msgstr ""
2404
2405 #. type: =item
2406 #: ../df/virt-df.pod:139
2407 msgid "B<--one-per-guest>"
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../df/virt-df.pod:141
2412 msgid ""
2413 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2414 "disks from several guests to a single libguestfs appliance."
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../df/virt-df.pod:144
2419 msgid "You might use this option in the following circumstances:"
2420 msgstr ""
2421
2422 #. type: =item
2423 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412 ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151 ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163 ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177 ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279 ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026 ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802 ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565 ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2971 ../src/guestfs.pod:2976 ../src/guestfs.pod:2980 ../src/guestfs.pod:2984 ../src/guestfs.pod:2988 ../src/guestfs.pod:3002 ../src/guestfs.pod:3007 ../src/guestfs.pod:3236 ../src/guestfs.pod:3240 ../src/guestfs.pod:3244 ../src/guestfs.pod:3248 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2424 msgid "*"
2425 msgstr ""
2426
2427 #. type: textblock
2428 #: ../df/virt-df.pod:150
2429 msgid ""
2430 "If you think an untrusted guest might actively try to exploit the libguestfs "
2431 "appliance kernel, then this prevents one guest from interfering with the "
2432 "stats printed for another guest."
2433 msgstr ""
2434
2435 #. type: textblock
2436 #: ../df/virt-df.pod:156
2437 msgid ""
2438 "If the kernel has a bug which stops it from accessing a filesystem in one "
2439 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2440 "and report stats for further guests."
2441 msgstr ""
2442
2443 #. type: textblock
2444 #: ../df/virt-df.pod:165
2445 msgid ""
2446 "Print UUIDs instead of names.  This is useful for following a guest even "
2447 "when the guest is migrated or renamed, or when two guests happen to have the "
2448 "same name."
2449 msgstr ""
2450
2451 #. type: textblock
2452 #: ../df/virt-df.pod:169
2453 msgid ""
2454 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2455 "images, we still print the disk image name even when this option is "
2456 "specified."
2457 msgstr ""
2458
2459 #. type: textblock
2460 #: ../df/virt-df.pod:229
2461 msgid ""
2462 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
2463 "L<http://libguestfs.org/>."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../edit/virt-edit.pod:5
2468 msgid "virt-edit - Edit a file in a virtual machine"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../edit/virt-edit.pod:9
2473 #, no-wrap
2474 msgid ""
2475 " virt-edit [--options] -d domname file [file ...]\n"
2476 "\n"
2477 msgstr ""
2478
2479 #. type: verbatim
2480 #: ../edit/virt-edit.pod:11
2481 #, no-wrap
2482 msgid ""
2483 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2484 "\n"
2485 msgstr ""
2486
2487 #. type: verbatim
2488 #: ../edit/virt-edit.pod:13
2489 #, no-wrap
2490 msgid ""
2491 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2492 "\n"
2493 msgstr ""
2494
2495 #. type: verbatim
2496 #: ../edit/virt-edit.pod:17
2497 #, no-wrap
2498 msgid ""
2499 " virt-edit domname file\n"
2500 "\n"
2501 msgstr ""
2502
2503 #. type: verbatim
2504 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2505 #, no-wrap
2506 msgid ""
2507 " virt-edit disk.img [disk.img ...] file\n"
2508 "\n"
2509 msgstr ""
2510
2511 #. type: =head1
2512 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2513 msgid "WARNING"
2514 msgstr ""
2515
2516 #. type: textblock
2517 #: ../edit/virt-edit.pod:23
2518 msgid ""
2519 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2520 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2521 "doing this, but doesn't catch all cases."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../edit/virt-edit.pod:29
2526 msgid ""
2527 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2528 "exists in the named virtual machine (or disk image)."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../edit/virt-edit.pod:32
2533 msgid ""
2534 "Multiple filenames can be given, in which case they are each edited in "
2535 "turn.  Each filename must be a full path, starting at the root directory "
2536 "(starting with '/')."
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../edit/virt-edit.pod:36
2541 msgid "If you want to just view a file, use L<virt-cat(1)>."
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../edit/virt-edit.pod:38
2546 msgid ""
2547 "For more complex cases you should look at the L<guestfish(1)> tool (see "
2548 "L</USING GUESTFISH> below)."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../edit/virt-edit.pod:41
2553 msgid ""
2554 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2555 "that and much more."
2556 msgstr ""
2557
2558 #. type: textblock
2559 #: ../edit/virt-edit.pod:46
2560 msgid "Edit the named files interactively:"
2561 msgstr ""
2562
2563 #. type: verbatim
2564 #: ../edit/virt-edit.pod:48
2565 #, no-wrap
2566 msgid ""
2567 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2568 "\n"
2569 msgstr ""
2570
2571 #. type: verbatim
2572 #: ../edit/virt-edit.pod:50
2573 #, no-wrap
2574 msgid ""
2575 " virt-edit -d mydomain /etc/passwd\n"
2576 "\n"
2577 msgstr ""
2578
2579 #. type: textblock
2580 #: ../edit/virt-edit.pod:52
2581 msgid "For Windows guests, some Windows paths are understood:"
2582 msgstr ""
2583
2584 #. type: verbatim
2585 #: ../edit/virt-edit.pod:54
2586 #, no-wrap
2587 msgid ""
2588 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2589 "\n"
2590 msgstr ""
2591
2592 #. type: textblock
2593 #: ../edit/virt-edit.pod:56
2594 msgid ""
2595 "If Perl is installed, you can also edit files non-interactively (see "
2596 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
2597 msgstr ""
2598
2599 #. type: verbatim
2600 #: ../edit/virt-edit.pod:60
2601 #, no-wrap
2602 msgid ""
2603 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2604 "\n"
2605 msgstr ""
2606
2607 #. type: =item
2608 #: ../edit/virt-edit.pod:81
2609 msgid "B<-b> extension"
2610 msgstr ""
2611
2612 #. type: =item
2613 #: ../edit/virt-edit.pod:83
2614 msgid "B<--backup> extension"
2615 msgstr ""
2616
2617 #. type: textblock
2618 #: ../edit/virt-edit.pod:85
2619 msgid ""
2620 "Create a backup of the original file I<in the guest disk image>.  The backup "
2621 "has the original filename with C<extension> added."
2622 msgstr ""
2623
2624 #. type: textblock
2625 #: ../edit/virt-edit.pod:88
2626 msgid ""
2627 "Usually the first character of C<extension> would be a dot C<.> so you would "
2628 "write:"
2629 msgstr ""
2630
2631 #. type: verbatim
2632 #: ../edit/virt-edit.pod:91
2633 #, no-wrap
2634 msgid ""
2635 " virt-edit -b .orig [etc]\n"
2636 "\n"
2637 msgstr ""
2638
2639 #. type: textblock
2640 #: ../edit/virt-edit.pod:93
2641 msgid "By default, no backup file is made."
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2646 msgid "B<-c URI>"
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2651 msgid "B<--connect URI>"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84 ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134 ../tools/virt-win-reg.pl:135
2656 msgid ""
2657 "If you specify guest block devices directly, then libvirt is not used at "
2658 "all."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../edit/virt-edit.pod:114
2663 msgid ""
2664 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2665 "off so you cannot see what you are typing.  If you are not worried about "
2666 "Tempest attacks and there is no one else in the room you can specify this "
2667 "flag to see what you are typing."
2668 msgstr ""
2669
2670 #. type: =item
2671 #: ../edit/virt-edit.pod:119
2672 msgid "B<-e> EXPR"
2673 msgstr ""
2674
2675 #. type: =item
2676 #: ../edit/virt-edit.pod:121
2677 msgid "B<--expr> EXPR"
2678 msgstr ""
2679
2680 #. type: textblock
2681 #: ../edit/virt-edit.pod:123
2682 msgid ""
2683 "Instead of launching the external editor, non-interactively apply the Perl "
2684 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2685 "EDITING> below."
2686 msgstr ""
2687
2688 #. type: textblock
2689 #: ../edit/virt-edit.pod:127
2690 msgid ""
2691 "Be careful to properly quote the expression to prevent it from being altered "
2692 "by the shell."
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../edit/virt-edit.pod:130
2697 msgid "Note that this option is only available when Perl 5 is installed."
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../edit/virt-edit.pod:132
2702 msgid "B<--format> raw|qcow2|..."
2703 msgstr ""
2704
2705 #. type: verbatim
2706 #: ../edit/virt-edit.pod:143
2707 #, no-wrap
2708 msgid ""
2709 " virt-edit --format=raw -a disk.img file\n"
2710 "\n"
2711 msgstr ""
2712
2713 #. type: verbatim
2714 #: ../edit/virt-edit.pod:147
2715 #, no-wrap
2716 msgid ""
2717 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2718 "\n"
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../edit/virt-edit.pod:181
2723 msgid "Previous versions of virt-edit allowed you to write either:"
2724 msgstr ""
2725
2726 #. type: verbatim
2727 #: ../edit/virt-edit.pod:187
2728 #, no-wrap
2729 msgid ""
2730 " virt-edit guestname file\n"
2731 "\n"
2732 msgstr ""
2733
2734 #. type: =head1
2735 #: ../edit/virt-edit.pod:195
2736 msgid "NON-INTERACTIVE EDITING"
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../edit/virt-edit.pod:197
2741 msgid ""
2742 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2743 "administrator can interactively edit the file."
2744 msgstr ""
2745
2746 #. type: textblock
2747 #: ../edit/virt-edit.pod:200
2748 msgid ""
2749 "There are two ways also to use C<virt-edit> from scripts in order to make "
2750 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2751 "like this, it's less error-prone to write scripts directly using the "
2752 "libguestfs API and Augeas for configuration file editing.)"
2753 msgstr ""
2754
2755 #. type: textblock
2756 #: ../edit/virt-edit.pod:206
2757 msgid ""
2758 "The first method is to temporarily set C<$EDITOR> to any script or program "
2759 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2760 "update C<tmpfile> in place however it likes."
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../edit/virt-edit.pod:210
2765 msgid ""
2766 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2767 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2768 "instances of C<foo> with C<bar> in a file:"
2769 msgstr ""
2770
2771 #. type: verbatim
2772 #: ../edit/virt-edit.pod:214
2773 #, no-wrap
2774 msgid ""
2775 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2776 "\n"
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../edit/virt-edit.pod:216
2781 msgid ""
2782 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2783 "For example to delete root's password you could do:"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:219
2788 #, no-wrap
2789 msgid ""
2790 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2791 "\n"
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../edit/virt-edit.pod:221
2796 msgid ""
2797 "What really happens is that the snippet is evaluated as a Perl expression "
2798 "for each line of the file.  The line, including the final C<\\n>, is passed "
2799 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2800 msgstr ""
2801
2802 #. type: textblock
2803 #: ../edit/virt-edit.pod:226
2804 msgid ""
2805 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2806 "C<apache> user account from the password file you can do:"
2807 msgstr ""
2808
2809 #. type: verbatim
2810 #: ../edit/virt-edit.pod:229
2811 #, no-wrap
2812 msgid ""
2813 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2814 "\n"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../edit/virt-edit.pod:231
2819 msgid ""
2820 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2821 "the end of the file is rather difficult this way since there is no concept "
2822 "of \"last line of the file\" - your expression just doesn't get called "
2823 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2824 "want to do this."
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../edit/virt-edit.pod:237
2829 msgid ""
2830 "The variable C<$lineno> contains the current line number.  As is "
2831 "traditional, the first line in the file is number C<1>."
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../edit/virt-edit.pod:240
2836 msgid ""
2837 "The return value from the expression is ignored, but the expression may call "
2838 "C<die> in order to abort the whole program, leaving the original file "
2839 "untouched."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:244
2844 msgid ""
2845 "Remember when matching the end of a line that C<$_> may contain the final "
2846 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2847 "newline then neither of these.  Thus to match or substitute some text at the "
2848 "end of a line, use this regular expression:"
2849 msgstr ""
2850
2851 #. type: verbatim
2852 #: ../edit/virt-edit.pod:249
2853 #, no-wrap
2854 msgid ""
2855 " /some text(\\r?\\n)?$/\n"
2856 "\n"
2857 msgstr ""
2858
2859 #. type: textblock
2860 #: ../edit/virt-edit.pod:251
2861 msgid ""
2862 "Alternately, use the perl C<chomp> function, being careful not to chomp "
2863 "C<$_> itself (since that would remove all newlines from the file):"
2864 msgstr ""
2865
2866 #. type: verbatim
2867 #: ../edit/virt-edit.pod:255
2868 #, no-wrap
2869 msgid ""
2870 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2871 "\n"
2872 msgstr ""
2873
2874 #. type: =head1
2875 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2876 msgid "WINDOWS PATHS"
2877 msgstr ""
2878
2879 #. type: textblock
2880 #: ../edit/virt-edit.pod:259
2881 msgid ""
2882 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2883 "paths (eg. C<E:\\foo\\bar.txt>)."
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../edit/virt-edit.pod:262
2888 msgid "If and only if the guest is running Windows then:"
2889 msgstr ""
2890
2891 #. type: textblock
2892 #: ../edit/virt-edit.pod:268
2893 msgid ""
2894 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2895 "to the correct filesystem."
2896 msgstr ""
2897
2898 #. type: textblock
2899 #: ../edit/virt-edit.pod:273
2900 msgid ""
2901 "Any backslash (C<\\>) characters in the path are replaced with forward "
2902 "slashes so that libguestfs can process it."
2903 msgstr ""
2904
2905 #. type: textblock
2906 #: ../edit/virt-edit.pod:278
2907 msgid ""
2908 "The path is resolved case insensitively to locate the file that should be "
2909 "edited."
2910 msgstr ""
2911
2912 #. type: textblock
2913 #: ../edit/virt-edit.pod:283
2914 msgid "There are some known shortcomings:"
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../edit/virt-edit.pod:289
2919 msgid "Some NTFS symbolic links may not be followed correctly."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../edit/virt-edit.pod:293
2924 msgid "NTFS junction points that cross filesystems are not followed."
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../edit/virt-edit.pod:299
2929 msgid ""
2930 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2931 "C<virt-edit> doesn't work."
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../edit/virt-edit.pod:302
2936 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2937 msgstr ""
2938
2939 #. type: verbatim
2940 #: ../edit/virt-edit.pod:304
2941 #, no-wrap
2942 msgid ""
2943 " guestfish --rw -i -d domname edit /file\n"
2944 "\n"
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../edit/virt-edit.pod:306
2949 msgid ""
2950 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2951 "path to the file."
2952 msgstr ""
2953
2954 #. type: textblock
2955 #: ../edit/virt-edit.pod:309
2956 msgid ""
2957 "The command above uses libguestfs's guest inspection feature and so does not "
2958 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2959 "disk images that don't contain guests.  To edit a file on a disk image "
2960 "directly, use:"
2961 msgstr ""
2962
2963 #. type: verbatim
2964 #: ../edit/virt-edit.pod:314
2965 #, no-wrap
2966 msgid ""
2967 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2968 "\n"
2969 msgstr ""
2970
2971 #. type: textblock
2972 #: ../edit/virt-edit.pod:316
2973 msgid ""
2974 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2975 "the disk image to edit, and C</file> is the full path to the file."
2976 msgstr ""
2977
2978 #. type: textblock
2979 #: ../edit/virt-edit.pod:320
2980 msgid ""
2981 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2982 "C<write> or C<upload> instead:"
2983 msgstr ""
2984
2985 #. type: verbatim
2986 #: ../edit/virt-edit.pod:323
2987 #, no-wrap
2988 msgid ""
2989 " guestfish --rw -i -d domname touch /newfile\n"
2990 "\n"
2991 msgstr ""
2992
2993 #. type: verbatim
2994 #: ../edit/virt-edit.pod:325
2995 #, no-wrap
2996 msgid ""
2997 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
2998 "\n"
2999 msgstr ""
3000
3001 #. type: verbatim
3002 #: ../edit/virt-edit.pod:327
3003 #, no-wrap
3004 msgid ""
3005 " guestfish --rw -i -d domname upload localfile /newfile\n"
3006 "\n"
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:95
3011 msgid "ENVIRONMENT VARIABLES"
3012 msgstr ""
3013
3014 #. type: =item
3015 #: ../edit/virt-edit.pod:333
3016 msgid "C<EDITOR>"
3017 msgstr ""
3018
3019 #. type: textblock
3020 #: ../edit/virt-edit.pod:335
3021 msgid ""
3022 "If set, this string is used as the editor.  It may contain arguments, "
3023 "eg. C<\"emacs -nw\">"
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../edit/virt-edit.pod:338
3028 msgid "If not set, C<vi> is used."
3029 msgstr ""
3030
3031 #. type: textblock
3032 #: ../edit/virt-edit.pod:356
3033 msgid ""
3034 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
3035 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
3036 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3037 msgstr ""
3038
3039 #. type: textblock
3040 #: ../erlang/examples/guestfs-erlang.pod:5
3041 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3042 msgstr ""
3043
3044 #. type: verbatim
3045 #: ../erlang/examples/guestfs-erlang.pod:9
3046 #, no-wrap
3047 msgid ""
3048 " {ok, G} = guestfs:create(),\n"
3049 " ok = guestfs:add_drive_opts(G, Disk,\n"
3050 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3051 " ok = guestfs:launch(G),\n"
3052 " [Device] = guestfs:list_devices(G),\n"
3053 " ok = guestfs:close(G).\n"
3054 "\n"
3055 msgstr ""
3056
3057 #. type: textblock
3058 #: ../erlang/examples/guestfs-erlang.pod:18
3059 msgid ""
3060 "This manual page documents how to call libguestfs from the Erlang "
3061 "programming language.  This page just documents the differences from the C "
3062 "API and gives some examples.  If you are not familiar with using libguestfs, "
3063 "you also need to read L<guestfs(3)>."
3064 msgstr ""
3065
3066 #. type: =head2
3067 #: ../erlang/examples/guestfs-erlang.pod:23
3068 msgid "OPENING AND CLOSING THE HANDLE"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../erlang/examples/guestfs-erlang.pod:25
3073 msgid ""
3074 "The Erlang bindings are implemented using an external program called "
3075 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
3076 "should specify the full path to the program:"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../erlang/examples/guestfs-erlang.pod:29
3081 #, no-wrap
3082 msgid ""
3083 " {ok, G} = guestfs:create().\n"
3084 "\n"
3085 msgstr ""
3086
3087 #. type: verbatim
3088 #: ../erlang/examples/guestfs-erlang.pod:31
3089 #, no-wrap
3090 msgid ""
3091 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3092 "\n"
3093 msgstr ""
3094
3095 #. type: textblock
3096 #: ../erlang/examples/guestfs-erlang.pod:33
3097 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../erlang/examples/guestfs-erlang.pod:36
3102 msgid "To close the handle:"
3103 msgstr ""
3104
3105 #. type: verbatim
3106 #: ../erlang/examples/guestfs-erlang.pod:38
3107 #, no-wrap
3108 msgid ""
3109 " ok = guestfs:close(G).\n"
3110 "\n"
3111 msgstr ""
3112
3113 #. type: =head2
3114 #: ../erlang/examples/guestfs-erlang.pod:40
3115 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../erlang/examples/guestfs-erlang.pod:42
3120 msgid ""
3121 "For functions that take optional arguments, the first arguments are the "
3122 "non-optional ones.  The last argument is a list of tuples supplying the "
3123 "remaining optional arguments."
3124 msgstr ""
3125
3126 #. type: verbatim
3127 #: ../erlang/examples/guestfs-erlang.pod:46
3128 #, no-wrap
3129 msgid ""
3130 " ok = guestfs:add_drive_opts(G, Disk,\n"
3131 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3132 "\n"
3133 msgstr ""
3134
3135 #. type: textblock
3136 #: ../erlang/examples/guestfs-erlang.pod:49
3137 msgid "If the last argument would be an empty list, you can also omit it:"
3138 msgstr ""
3139
3140 #. type: verbatim
3141 #: ../erlang/examples/guestfs-erlang.pod:51
3142 #, no-wrap
3143 msgid ""
3144 " ok = guestfs:add_drive_opts(G, Disk).\n"
3145 "\n"
3146 msgstr ""
3147
3148 #. type: =head2
3149 #: ../erlang/examples/guestfs-erlang.pod:53
3150 msgid "RETURN VALUES AND ERRORS"
3151 msgstr ""
3152
3153 #. type: textblock
3154 #: ../erlang/examples/guestfs-erlang.pod:55
3155 msgid ""
3156 "On success, most functions return a C<Result> term (which could be a list, "
3157 "string, tuple etc.).  If there is nothing for the function to return, then "
3158 "the atom C<ok> is returned."
3159 msgstr ""
3160
3161 #. type: textblock
3162 #: ../erlang/examples/guestfs-erlang.pod:59
3163 msgid "On error, you would see one of the following tuples:"
3164 msgstr ""
3165
3166 #. type: =item
3167 #: ../erlang/examples/guestfs-erlang.pod:63
3168 msgid "C<{error, Msg, Errno}>"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../erlang/examples/guestfs-erlang.pod:65
3173 msgid "This indicates an ordinary error from the function."
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../erlang/examples/guestfs-erlang.pod:67
3178 msgid ""
3179 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3180 "(integer)."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../erlang/examples/guestfs-erlang.pod:70
3185 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3186 msgstr ""
3187
3188 #. type: =item
3189 #: ../erlang/examples/guestfs-erlang.pod:72
3190 msgid "C<{unknown, Function}>"
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../erlang/examples/guestfs-erlang.pod:74
3195 msgid ""
3196 "This indicates that the function you called is not known.  Generally this "
3197 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3198 "which you should not do."
3199 msgstr ""
3200
3201 #. type: textblock
3202 #: ../erlang/examples/guestfs-erlang.pod:78
3203 msgid "C<Function> is the name of the unknown function."
3204 msgstr ""
3205
3206 #. type: =item
3207 #: ../erlang/examples/guestfs-erlang.pod:80
3208 msgid "C<{unknownarg, Arg}>"
3209 msgstr ""
3210
3211 #. type: textblock
3212 #: ../erlang/examples/guestfs-erlang.pod:82
3213 msgid ""
3214 "This indicates that you called a function with optional arguments, with an "
3215 "unknown argument name."
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../erlang/examples/guestfs-erlang.pod:85
3220 msgid "C<Arg> is the name of the unknown argument."
3221 msgstr ""
3222
3223 #. type: =head1
3224 #: ../erlang/examples/guestfs-erlang.pod:89 ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 ../python/examples/guestfs-python.pod:34 ../ruby/examples/guestfs-ruby.pod:28
3225 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../erlang/examples/guestfs-erlang.pod:91 ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 ../python/examples/guestfs-python.pod:36 ../ruby/examples/guestfs-ruby.pod:30
3230 msgid "@EXAMPLE1@"
3231 msgstr ""
3232
3233 #. type: =head1
3234 #: ../erlang/examples/guestfs-erlang.pod:93 ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 ../python/examples/guestfs-python.pod:38 ../ruby/examples/guestfs-ruby.pod:32
3235 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../erlang/examples/guestfs-erlang.pod:95 ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 ../python/examples/guestfs-python.pod:40 ../ruby/examples/guestfs-ruby.pod:34
3240 msgid "@EXAMPLE2@"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../erlang/examples/guestfs-erlang.pod:99
3245 msgid ""
3246 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
3247 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3248 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
3249 "L<http://libguestfs.org/>."
3250 msgstr ""
3251
3252 #. type: =head1
3253 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3255 ../test-tool/libguestfs-test-tool.pod:106
3254 msgid "AUTHORS"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3257 ../test-tool/libguestfs-test-tool.pod:108
3259 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3264 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../erlang/examples/guestfs-erlang.pod:118 ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405 ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99 ../perl/examples/guestfs-perl.pod:60 ../python/examples/guestfs-python.pod:62 ../ruby/examples/guestfs-ruby.pod:56
3269 msgid ""
3270 "The examples in this manual page may be freely copied, modified and "
3271 "distributed without any restrictions."
3272 msgstr ""
3273
3274 #. type: textblock
3275 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3264
3276 msgid ""
3277 "This library is free software; you can redistribute it and/or modify it "
3278 "under the terms of the GNU Lesser General Public License as published by the "
3279 "Free Software Foundation; either version 2 of the License, or (at your "
3280 "option) any later version."
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3269
3285 msgid ""
3286 "This library is distributed in the hope that it will be useful, but WITHOUT "
3287 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3288 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3289 "for more details."
3290 msgstr ""
3291
3292 #. type: textblock
3293 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3274
3294 msgid ""
3295 "You should have received a copy of the GNU Lesser General Public License "
3296 "along with this library; if not, write to the Free Software Foundation, "
3297 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../examples/guestfs-examples.pod:5
3302 msgid "guestfs-examples - Examples of using libguestfs from C"
3303 msgstr ""
3304
3305 #. type: verbatim
3306 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3307 #, no-wrap
3308 msgid ""
3309 " #include <guestfs.h>\n"
3310 " \n"
3311 msgstr ""
3312
3313 #. type: verbatim
3314 #: ../examples/guestfs-examples.pod:11
3315 #, no-wrap
3316 msgid ""
3317 " guestfs_h *g = guestfs_create ();\n"
3318 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3319 " guestfs_launch (g);\n"
3320 "\n"
3321 msgstr ""
3322
3323 #. type: verbatim
3324 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3325 #, no-wrap
3326 msgid ""
3327 " cc prog.c -o prog -lguestfs\n"
3328 "or:\n"
3329 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../examples/guestfs-examples.pod:21
3335 msgid ""
3336 "This manual page contains examples of calling libguestfs from the C "
3337 "programming language.  If you are not familiar with using libguestfs, you "
3338 "also need to read L<guestfs(3)>."
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../examples/guestfs-examples.pod:35
3343 msgid ""
3344 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
3345 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3346 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3347 msgstr ""
3348
3349 #. type: textblock
3350 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
3351 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3352 msgstr ""
3353
3354 #. type: =end
3355 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3356 msgid "comment"
3357 msgstr ""
3358
3359 #. type: textblock
3360 #: ../examples/guestfs-recipes.pod:5
3361 msgid ""
3362 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3363 "here.  The only way which works for both sorts of output is to just write "
3364 "the URL directly.  Do NOT use L<...> for URLs."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../examples/guestfs-recipes.pod:9
3369 msgid ""
3370 "We break with tradition here and don't use ALL CAPS for the section "
3371 "headings, as this makes them much easier to read."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../examples/guestfs-recipes.pod:16
3376 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../examples/guestfs-recipes.pod:20
3381 msgid ""
3382 "This page contains recipes for and links to things you can do using "
3383 "libguestfs, L<guestfish(1)> and the virt tools."
3384 msgstr ""
3385
3386 #. type: =head1
3387 #: ../examples/guestfs-recipes.pod:23
3388 msgid "Audit a virtual machine for setuid files"
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../examples/guestfs-recipes.pod:25
3393 msgid ""
3394 "The link below contains a small program which can be used to audit a Linux "
3395 "virtual machine to see what setuid and setgid files it contains."
3396 msgstr ""
3397
3398 #. type: textblock
3399 #: ../examples/guestfs-recipes.pod:28
3400 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
3401 msgstr ""
3402
3403 #. type: =head1
3404 #: ../examples/guestfs-recipes.pod:30
3405 msgid "Change the background image in a Windows XP VM"
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../examples/guestfs-recipes.pod:32
3410 msgid ""
3411 "The links below explain how to use L<guestfish(1)> to change the background "
3412 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3413 "be substantially different for each version of Windows."
3414 msgstr ""
3415
3416 #. type: textblock
3417 #: ../examples/guestfs-recipes.pod:37
3418 msgid ""
3419 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
3420 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3421 msgstr ""
3422
3423 #. type: =head1
3424 #: ../examples/guestfs-recipes.pod:40
3425 msgid "Cloning a virtual machine (Linux)"
3426 msgstr ""
3427
3428 #. type: textblock
3429 #: ../examples/guestfs-recipes.pod:42
3430 msgid ""
3431 "The guestfish technique described in the link below works well for most "
3432 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3433 "slightly."
3434 msgstr ""
3435
3436 #. type: textblock
3437 #: ../examples/guestfs-recipes.pod:46
3438 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../examples/guestfs-recipes.pod:48
3443 msgid ""
3444 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3445 "discussion."
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../examples/guestfs-recipes.pod:51
3450 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3451 msgstr ""
3452
3453 #. type: =head1
3454 #: ../examples/guestfs-recipes.pod:53
3455 msgid "Cloning a virtual machine (Windows)"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../examples/guestfs-recipes.pod:55
3460 msgid ""
3461 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3462 "straightforward.  Currently there is code in the Aeolus Oz project which "
3463 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3464 "we may add sysprepping ability."
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../examples/guestfs-recipes.pod:60
3469 msgid ""
3470 "https://github.com/clalancette/oz "
3471 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3472 msgstr ""
3473
3474 #. type: =head1
3475 #: ../examples/guestfs-recipes.pod:63
3476 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3477 msgstr ""
3478
3479 #. type: textblock
3480 #: ../examples/guestfs-recipes.pod:65
3481 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3482 msgstr ""
3483
3484 #. type: verbatim
3485 #: ../examples/guestfs-recipes.pod:67
3486 #, no-wrap
3487 msgid ""
3488 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3489 "\n"
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../examples/guestfs-recipes.pod:69
3494 msgid "To export just a subdirectory, eg. C</files>, do:"
3495 msgstr ""
3496
3497 #. type: verbatim
3498 #: ../examples/guestfs-recipes.pod:71
3499 #, no-wrap
3500 msgid ""
3501 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3502 "\n"
3503 msgstr ""
3504
3505 #. type: =head1
3506 #: ../examples/guestfs-recipes.pod:73
3507 msgid "Create empty disk images"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../examples/guestfs-recipes.pod:75
3512 msgid ""
3513 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3514 "The useful guide below explains the options available."
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../examples/guestfs-recipes.pod:78
3519 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3520 msgstr ""
3521
3522 #. type: =head1
3523 #: ../examples/guestfs-recipes.pod:80
3524 msgid "Dump raw filesystem content from inside a disk image or VM"
3525 msgstr ""
3526
3527 #. type: textblock
3528 #: ../examples/guestfs-recipes.pod:82
3529 msgid ""
3530 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3531 "filesystem content from any filesystem in a disk image or a VM (even one "
3532 "which is encrypted or buried inside an LV):"
3533 msgstr ""
3534
3535 #. type: verbatim
3536 #: ../examples/guestfs-recipes.pod:86
3537 #, no-wrap
3538 msgid ""
3539 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3540 "\n"
3541 msgstr ""
3542
3543 #. type: verbatim
3544 #: ../examples/guestfs-recipes.pod:88
3545 #, no-wrap
3546 msgid ""
3547 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3548 "\n"
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../examples/guestfs-recipes.pod:90
3553 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3554 msgstr ""
3555
3556 #. type: =head1
3557 #: ../examples/guestfs-recipes.pod:92
3558 msgid "Edit grub configuration in a VM"
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../examples/guestfs-recipes.pod:94
3563 msgid "You can use this to:"
3564 msgstr ""
3565
3566 #. type: textblock
3567 #: ../examples/guestfs-recipes.pod:100
3568 msgid "Fix a virtual machine that does not boot."
3569 msgstr ""
3570
3571 #. type: textblock
3572 #: ../examples/guestfs-recipes.pod:104
3573 msgid "Change which kernel is used to boot the VM."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../examples/guestfs-recipes.pod:108
3578 msgid "Change kernel command line options."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../examples/guestfs-recipes.pod:112
3583 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3584 msgstr ""
3585
3586 #. type: verbatim
3587 #: ../examples/guestfs-recipes.pod:114
3588 #, no-wrap
3589 msgid ""
3590 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3591 "\n"
3592 msgstr ""
3593
3594 #. type: textblock
3595 #: ../examples/guestfs-recipes.pod:116
3596 msgid ""
3597 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3598 "this:"
3599 msgstr ""
3600
3601 #. type: verbatim
3602 #: ../examples/guestfs-recipes.pod:119
3603 #, no-wrap
3604 msgid ""
3605 " virt-rescue -d BrokenGuest\n"
3606 "\n"
3607 msgstr ""
3608
3609 #. type: =head1
3610 #: ../examples/guestfs-recipes.pod:121
3611 msgid "Export any directory from a VM"
3612 msgstr ""
3613
3614 #. type: textblock
3615 #: ../examples/guestfs-recipes.pod:123
3616 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3617 msgstr ""
3618
3619 #. type: verbatim
3620 #: ../examples/guestfs-recipes.pod:126
3621 #, no-wrap
3622 msgid ""
3623 " virt-copy-out -d Guest /home .\n"
3624 "\n"
3625 msgstr ""
3626
3627 #. type: textblock
3628 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592 ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670 ../tools/virt-win-reg.pl:706
3629 msgid "Notes:"
3630 msgstr ""
3631
3632 #. type: textblock
3633 #: ../examples/guestfs-recipes.pod:134
3634 msgid ""
3635 "The final dot of the command is not a printing error.  It means we want to "
3636 "copy out to the current directory."
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../examples/guestfs-recipes.pod:139
3641 msgid "This creates a directory called C<home> under the current directory."
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../examples/guestfs-recipes.pod:143
3646 msgid ""
3647 "If the guest is a Windows guest then you can use drive letters and "
3648 "backslashes, but you must prefix the path with C<win:> and quote it to "
3649 "protect it from the shell, like this:"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../examples/guestfs-recipes.pod:147
3654 #, no-wrap
3655 msgid ""
3656 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../examples/guestfs-recipes.pod:149
3662 msgid "To get the output as a compressed tarball, do:"
3663 msgstr ""
3664
3665 #. type: verbatim
3666 #: ../examples/guestfs-recipes.pod:151
3667 #, no-wrap
3668 msgid ""
3669 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3670 "\n"
3671 msgstr ""
3672
3673 #. type: textblock
3674 #: ../examples/guestfs-recipes.pod:153
3675 msgid ""
3676 "Although it sounds tempting, this is usually not a reliable way to get a "
3677 "backup from a running guest.  See the entry in the FAQ: "
3678 "http://libguestfs.org/FAQ.html#backup"
3679 msgstr ""
3680
3681 #. type: =head1
3682 #: ../examples/guestfs-recipes.pod:157
3683 msgid "Find out which user is using the most space"
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../examples/guestfs-recipes.pod:159
3688 msgid ""
3689 "This simple script examines a Linux guest to find out which user is using "
3690 "the most space in their home directory:"
3691 msgstr ""
3692
3693 #. type: verbatim
3694 #: ../examples/guestfs-recipes.pod:162
3695 #, no-wrap
3696 msgid ""
3697 " #!/bin/sh -\n"
3698 " \n"
3699 msgstr ""
3700
3701 #. type: verbatim
3702 #: ../examples/guestfs-recipes.pod:164
3703 #, no-wrap
3704 msgid ""
3705 " set -e\n"
3706 " \n"
3707 msgstr ""
3708
3709 #. type: verbatim
3710 #: ../examples/guestfs-recipes.pod:166
3711 #, no-wrap
3712 msgid ""
3713 " vm=\"$1\"\n"
3714 " dir=/home\n"
3715 " \n"
3716 msgstr ""
3717
3718 #. type: verbatim
3719 #: ../examples/guestfs-recipes.pod:169
3720 #, no-wrap
3721 msgid ""
3722 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3723 " \n"
3724 msgstr ""
3725
3726 #. type: verbatim
3727 #: ../examples/guestfs-recipes.pod:171
3728 #, no-wrap
3729 msgid ""
3730 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3731 "     echo -n \"$dir/$d\"\n"
3732 "     echo -ne '\\t'\n"
3733 "     guestfish --remote du \"$dir/$d\";\n"
3734 " done | sort -nr -k 2\n"
3735 " \n"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3740 #, no-wrap
3741 msgid ""
3742 " guestfish --remote exit\n"
3743 "\n"
3744 msgstr ""
3745
3746 #. type: =head1
3747 #: ../examples/guestfs-recipes.pod:179
3748 msgid "Get DHCP address from a VM"
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../examples/guestfs-recipes.pod:181
3753 msgid ""
3754 "The link below explains the many different possible techniques for getting "
3755 "the last assigned DHCP address of a virtual machine."
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:184
3760 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../examples/guestfs-recipes.pod:186
3765 msgid ""
3766 "In the libguestfs source examples directory you will find the latest version "
3767 "of the C<virt-dhcp-address.c> program."
3768 msgstr ""
3769
3770 #. type: =head1
3771 #: ../examples/guestfs-recipes.pod:189
3772 msgid "Get the operating system product name string"
3773 msgstr ""
3774
3775 #. type: textblock
3776 #: ../examples/guestfs-recipes.pod:191
3777 msgid "Save the following script into a file called C<product-name.sh>:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../examples/guestfs-recipes.pod:193
3782 #, no-wrap
3783 msgid ""
3784 " #!/bin/sh -\n"
3785 " set -e\n"
3786 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3787 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3788 " guestfish --remote inspect-get-product-name \"$root\"\n"
3789 " guestfish --remote exit\n"
3790 "\n"
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../examples/guestfs-recipes.pod:200
3795 msgid "Make the script executable and run it on a named guest:"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../examples/guestfs-recipes.pod:202
3800 #, no-wrap
3801 msgid ""
3802 " # product-name.sh RHEL60x64\n"
3803 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3804 "\n"
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../examples/guestfs-recipes.pod:205
3809 msgid ""
3810 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3811 "C<xpath> command line tool or from your favourite programming language:"
3812 msgstr ""
3813
3814 #. type: verbatim
3815 #: ../examples/guestfs-recipes.pod:209
3816 #, no-wrap
3817 msgid ""
3818 " # virt-inspector RHEL60x64 > xml\n"
3819 " # xpath '//product_name' < xml\n"
3820 " Found 1 nodes:\n"
3821 " -- NODE --\n"
3822 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3823 "(Santiago)</product_name>\n"
3824 "\n"
3825 msgstr ""
3826
3827 #. type: =head1
3828 #: ../examples/guestfs-recipes.pod:215
3829 msgid "Get the default boot kernel for a Linux VM"
3830 msgstr ""
3831
3832 #. type: textblock
3833 #: ../examples/guestfs-recipes.pod:217
3834 msgid ""
3835 "The link below contains a program to print the default boot kernel for a "
3836 "Linux VM."
3837 msgstr ""
3838
3839 #. type: textblock
3840 #: ../examples/guestfs-recipes.pod:220
3841 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../examples/guestfs-recipes.pod:222
3846 msgid ""
3847 "It uses Augeas, and the technique is generally applicable for many different "
3848 "tasks, such as:"
3849 msgstr ""
3850
3851 #. type: textblock
3852 #: ../examples/guestfs-recipes.pod:229
3853 msgid "listing the user accounts in the guest"
3854 msgstr ""
3855
3856 #. type: textblock
3857 #: ../examples/guestfs-recipes.pod:233
3858 msgid "what repositories is it configured to use"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../examples/guestfs-recipes.pod:237
3863 msgid "what NTP servers does it connect to"
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../examples/guestfs-recipes.pod:241
3868 msgid "what were the boot messages last time it booted"
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../examples/guestfs-recipes.pod:245
3873 msgid "listing who was logged in recently"
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../examples/guestfs-recipes.pod:249
3878 msgid "http://augeas.net/"
3879 msgstr ""
3880
3881 #. type: =head1
3882 #: ../examples/guestfs-recipes.pod:251
3883 msgid "Install RPMs in a guest"
3884 msgstr ""
3885
3886 #. type: textblock
3887 #: ../examples/guestfs-recipes.pod:253
3888 msgid ""
3889 "The link below contains a method to install RPMs in a guest.  In fact the "
3890 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3891 "installs them next time the guest is booted.  You could use this technique "
3892 "to install vital security updates in an offline guest."
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../examples/guestfs-recipes.pod:259
3897 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3898 msgstr ""
3899
3900 #. type: =head1
3901 #: ../examples/guestfs-recipes.pod:261
3902 msgid "List applications installed in a VM"
3903 msgstr ""
3904
3905 #. type: textblock
3906 #: ../examples/guestfs-recipes.pod:263
3907 msgid "Save the following to a file C<list-apps.sh>:"
3908 msgstr ""
3909
3910 #. type: verbatim
3911 #: ../examples/guestfs-recipes.pod:265
3912 #, no-wrap
3913 msgid ""
3914 " #!/bin/sh -\n"
3915 " set -e\n"
3916 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3917 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3918 " guestfish --remote inspect-list-applications \"$root\"\n"
3919 " guestfish --remote exit\n"
3920 "\n"
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../examples/guestfs-recipes.pod:272
3925 msgid ""
3926 "Make the file executable and then you can run it on any named virtual "
3927 "machine:"
3928 msgstr ""
3929
3930 #. type: verbatim
3931 #: ../examples/guestfs-recipes.pod:275
3932 #, no-wrap
3933 msgid ""
3934 " # list-apps.sh WinGuest\n"
3935 " [0] = {\n"
3936 "   app_name: Mozilla Firefox (3.6.12)\n"
3937 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3938 "   app_epoch: 0\n"
3939 "   app_version: 3.6.12 (en-GB)\n"
3940 "   app_release:\n"
3941 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3942 "   app_trans_path:\n"
3943 "   app_publisher: Mozilla\n"
3944 "   app_url: http://www.mozilla.com/en-GB/\n"
3945 "   app_source_package:\n"
3946 "   app_summary:\n"
3947 "   app_description: Mozilla Firefox\n"
3948 " }\n"
3949 " [1] = {\n"
3950 "   app_name: VLC media player\n"
3951 "   app_display_name: VLC media player 1.1.5\n"
3952 "   app_epoch: 0\n"
3953 "   app_version: 1.1.5\n"
3954 "   app_release:\n"
3955 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3956 "   app_trans_path:\n"
3957 "   app_publisher: VideoLAN\n"
3958 "   app_url: http://www.videolan.org/\n"
3959 "   app_source_package:\n"
3960 "   app_summary:\n"
3961 "   app_description:\n"
3962 " }\n"
3963 "\n"
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../examples/guestfs-recipes.pod:305
3968 msgid ""
3969 "If you want to run the script on disk images (instead of libvirt virtual "
3970 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3971 "L<virt-inspector(1)>."
3972 msgstr ""
3973
3974 #. type: =head1
3975 #: ../examples/guestfs-recipes.pod:309
3976 msgid "List files and directories in a VM"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../examples/guestfs-recipes.pod:311
3981 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3982 msgstr ""
3983
3984 #. type: verbatim
3985 #: ../examples/guestfs-recipes.pod:313
3986 #, no-wrap
3987 msgid ""
3988 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: =head1
3993 #: ../examples/guestfs-recipes.pod:315
3994 msgid "List services in a Windows VM"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../examples/guestfs-recipes.pod:317
3999 msgid ""
4000 "The link below contains a script that can be used to list out the services "
4001 "from a Windows VM, and whether those services run at boot time or are loaded "
4002 "on demand."
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../examples/guestfs-recipes.pod:321
4007 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
4008 msgstr ""
4009
4010 #. type: =head1
4011 #: ../examples/guestfs-recipes.pod:323
4012 msgid "Make a disk image sparse"
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../examples/guestfs-recipes.pod:325
4017 msgid ""
4018 "The link below contains some guides for making a disk image sparse (or "
4019 "reintroducing sparseness)."
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../examples/guestfs-recipes.pod:328
4024 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4025 msgstr ""
4026
4027 #. type: =head1
4028 #: ../examples/guestfs-recipes.pod:330
4029 msgid "Monitor disk usage over time"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../examples/guestfs-recipes.pod:332
4034 msgid ""
4035 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4036 "The link below contains a guide."
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../examples/guestfs-recipes.pod:335
4041 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4042 msgstr ""
4043
4044 #. type: =head1
4045 #: ../examples/guestfs-recipes.pod:337
4046 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4047 msgstr ""
4048
4049 #. type: textblock
4050 #: ../examples/guestfs-recipes.pod:339
4051 msgid ""
4052 "L<guestfish(1)> plus the tools described in the link below can be used to "
4053 "read out the Windows Event Log from any virtual machine running Windows "
4054 "Vista or a later version."
4055 msgstr ""
4056
4057 #. type: textblock
4058 #: ../examples/guestfs-recipes.pod:343
4059 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
4060 msgstr ""
4061
4062 #. type: =head1
4063 #: ../examples/guestfs-recipes.pod:345
4064 msgid "Remove root password (Linux)"
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../examples/guestfs-recipes.pod:347
4069 msgid ""
4070 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4071 "files.  One use is to remove the root password from a Linux guest:"
4072 msgstr ""
4073
4074 #. type: verbatim
4075 #: ../examples/guestfs-recipes.pod:350
4076 #, no-wrap
4077 msgid ""
4078 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4079 "\n"
4080 msgstr ""
4081
4082 #. type: =head1
4083 #: ../examples/guestfs-recipes.pod:352
4084 msgid "Remove Administrator password (Windows)"
4085 msgstr ""
4086
4087 #. type: textblock
4088 #: ../examples/guestfs-recipes.pod:354
4089 msgid ""
4090 "The link below contains one technique for removing the Administrator "
4091 "password from a Windows VM, or to be more precise, it gives you a command "
4092 "prompt the next time you log in which you can use to bypass any security:"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../examples/guestfs-recipes.pod:359
4097 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
4098 msgstr ""
4099
4100 #. type: =head1
4101 #: ../examples/guestfs-recipes.pod:361
4102 msgid "Unpack a live CD"
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../examples/guestfs-recipes.pod:363
4107 msgid ""
4108 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4109 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4110 "layers, as outlined in the guide below."
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../examples/guestfs-recipes.pod:367
4115 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
4116 msgstr ""
4117
4118 #. type: =head1
4119 #: ../examples/guestfs-recipes.pod:369
4120 msgid "Uploading and downloading files"
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../examples/guestfs-recipes.pod:371
4125 msgid ""
4126 "The link below contains general tips on uploading (copying in)  and "
4127 "downloading (copying out) files from VMs."
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../examples/guestfs-recipes.pod:374
4132 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4133 msgstr ""
4134
4135 #. type: =head1
4136 #: ../examples/guestfs-recipes.pod:376
4137 msgid "Use libguestfs tools on VMware ESX guests"
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../examples/guestfs-recipes.pod:378
4142 msgid ""
4143 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4144 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../examples/guestfs-recipes.pod:382
4149 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
4150 msgstr ""
4151
4152 #. type: textblock
4153 #: ../examples/guestfs-recipes.pod:386
4154 msgid ""
4155 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
4156 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
4157 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
4158 "L<http://libguestfs.org/>."
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../examples/guestfs-recipes.pod:403
4163 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4164 msgstr ""
4165
4166 #. type: =head2
4167 #: ../fish/guestfish-actions.pod:1
4168 msgid "add-cdrom"
4169 msgstr ""
4170
4171 #. type: verbatim
4172 #: ../fish/guestfish-actions.pod:3
4173 #, no-wrap
4174 msgid ""
4175 " add-cdrom filename\n"
4176 "\n"
4177 msgstr ""
4178
4179 #. type: textblock
4180 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4181 msgid "This function adds a virtual CD-ROM disk image to the guest."
4182 msgstr ""
4183
4184 #. type: textblock
4185 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4186 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4187 msgstr ""
4188
4189 #. type: textblock
4190 #: ../fish/guestfish-actions.pod:15
4191 msgid ""
4192 "This call checks for the existence of C<filename>.  This stops you from "
4193 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4194 "and C<http:> URLs.  To specify those, use the general L</config> call "
4195 "instead."
4196 msgstr ""
4197
4198 #. type: textblock
4199 #: ../fish/guestfish-actions.pod:22
4200 msgid ""
4201 "If you just want to add an ISO file (often you use this as an efficient way "
4202 "to transfer large files into the guest), then you should probably use "
4203 "L</add-drive-ro> instead."
4204 msgstr ""
4205
4206 #. type: textblock
4207 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
4208 msgid ""
4209 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4210 "instead."
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400 ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468 ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429 ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474 ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161 ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393 ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857 ../src/guestfs-actions.pod:8040
4215 msgid ""
4216 "Deprecated functions will not be removed from the API, but the fact that "
4217 "they are deprecated indicates that there are problems with correct use of "
4218 "these functions."
4219 msgstr ""
4220
4221 #. type: =head2
4222 #: ../fish/guestfish-actions.pod:35
4223 msgid "add-domain"
4224 msgstr ""
4225
4226 #. type: =head2
4227 #: ../fish/guestfish-actions.pod:37
4228 msgid "domain"
4229 msgstr ""
4230
4231 #. type: verbatim
4232 #: ../fish/guestfish-actions.pod:39
4233 #, no-wrap
4234 msgid ""
4235 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
4236 "[allowuuid:..]\n"
4237 "\n"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../fish/guestfish-actions.pod:41
4242 msgid ""
4243 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4244 "It works by connecting to libvirt, requesting the domain and domain XML from "
4245 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4250 msgid ""
4251 "The number of disks added is returned.  This operation is atomic: if an "
4252 "error is returned, then no disks are added."
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4257 msgid ""
4258 "This function does some minimal checks to make sure the libvirt domain is "
4259 "not running (unless C<readonly> is true).  In a future version we will try "
4260 "to acquire the libvirt lock on each disk."
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4265 msgid ""
4266 "Disks must be accessible locally.  This often means that adding disks from a "
4267 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4268 "unless those disks are accessible via the same device path locally too."
4269 msgstr ""
4270
4271 #. type: textblock
4272 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4273 msgid ""
4274 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4275 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4276 "default libvirt URI (or one set through an environment variable, see the "
4277 "libvirt documentation for full details)."
4278 msgstr ""
4279
4280 #. type: textblock
4281 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4282 msgid ""
4283 "The optional C<live> flag controls whether this call will try to connect to "
4284 "a running virtual machine C<guestfsd> process if it sees a suitable "
4285 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4286 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4287 "DAEMONS> for more information."
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4292 msgid ""
4293 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4294 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4295 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4296 "as usual."
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../fish/guestfish-actions.pod:76
4301 msgid ""
4302 "The other optional parameters are passed directly through to "
4303 "L</add-drive-opts>."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784 ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040 ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369 ../fish/guestfish-actions.pod:3504
4308 msgid ""
4309 "This command has one or more optional arguments.  See L</OPTIONAL "
4310 "ARGUMENTS>."
4311 msgstr ""
4312
4313 #. type: =head2
4314 #: ../fish/guestfish-actions.pod:81
4315 msgid "add-drive"
4316 msgstr ""
4317
4318 #. type: verbatim
4319 #: ../fish/guestfish-actions.pod:83
4320 #, no-wrap
4321 msgid ""
4322 " add-drive filename\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../fish/guestfish-actions.pod:85
4328 msgid ""
4329 "This function is the equivalent of calling L</add-drive-opts> with no "
4330 "optional parameters, so the disk is added writable, with the format being "
4331 "detected automatically."
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../fish/guestfish-actions.pod:89
4336 msgid ""
4337 "Automatic detection of the format opens you up to a potential security hole "
4338 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4339 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4340 "you should think about replacing calls to this function with calls to "
4341 "L</add-drive-opts>, and specifying the format."
4342 msgstr ""
4343
4344 #. type: =head2
4345 #: ../fish/guestfish-actions.pod:96
4346 msgid "add-drive-opts"
4347 msgstr ""
4348
4349 #. type: =head2
4350 #: ../fish/guestfish-actions.pod:98
4351 msgid "add"
4352 msgstr ""
4353
4354 #. type: verbatim
4355 #: ../fish/guestfish-actions.pod:100
4356 #, no-wrap
4357 msgid ""
4358 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4359 "\n"
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4364 msgid ""
4365 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4366 "The first time you call this function, the disk appears as C</dev/sda>, the "
4367 "second time as C</dev/sdb>, and so on."
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4372 msgid ""
4373 "You don't necessarily need to be root when using libguestfs.  However you "
4374 "obviously do need sufficient permissions to access the filename for whatever "
4375 "operations you want to perform (ie. read access if you just want to read the "
4376 "image or write access if you want to modify the image)."
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4381 msgid "This call checks that C<filename> exists."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
4386 msgid "The optional arguments are:"
4387 msgstr ""
4388
4389 #. type: =item
4390 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4391 msgid "C<readonly>"
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4396 msgid ""
4397 "If true then the image is treated as read-only.  Writes are still allowed, "
4398 "but they are stored in a temporary snapshot overlay which is discarded at "
4399 "the end.  The disk that you add is not modified."
4400 msgstr ""
4401
4402 #. type: =item
4403 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4404 msgid "C<format>"
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:127
4409 msgid ""
4410 "This forces the image format.  If you omit this (or use L</add-drive> or "
4411 "L</add-drive-ro>) then the format is automatically detected.  Possible "
4412 "formats include C<raw> and C<qcow2>."
4413 msgstr ""
4414
4415 #. type: textblock
4416 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4417 msgid ""
4418 "Automatic detection of the format opens you up to a potential security hole "
4419 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4420 "RHBZ#642934.  Specifying the format closes this security hole."
4421 msgstr ""
4422
4423 #. type: =item
4424 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4425 msgid "C<iface>"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../fish/guestfish-actions.pod:138
4430 msgid ""
4431 "This rarely-used option lets you emulate the behaviour of the deprecated "
4432 "L</add-drive-with-if> call (q.v.)"
4433 msgstr ""
4434
4435 #. type: =head2
4436 #: ../fish/guestfish-actions.pod:145
4437 msgid "add-drive-ro"
4438 msgstr ""
4439
4440 #. type: =head2
4441 #: ../fish/guestfish-actions.pod:147
4442 msgid "add-ro"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../fish/guestfish-actions.pod:149
4447 #, no-wrap
4448 msgid ""
4449 " add-drive-ro filename\n"
4450 "\n"
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../fish/guestfish-actions.pod:151
4455 msgid ""
4456 "This function is the equivalent of calling L</add-drive-opts> with the "
4457 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4458 "is added read-only, with the format being detected automatically."
4459 msgstr ""
4460
4461 #. type: =head2
4462 #: ../fish/guestfish-actions.pod:156
4463 msgid "add-drive-ro-with-if"
4464 msgstr ""
4465
4466 #. type: verbatim
4467 #: ../fish/guestfish-actions.pod:158
4468 #, no-wrap
4469 msgid ""
4470 " add-drive-ro-with-if filename iface\n"
4471 "\n"
4472 msgstr ""
4473
4474 #. type: textblock
4475 #: ../fish/guestfish-actions.pod:160
4476 msgid ""
4477 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4478 "interface emulation to use at run time."
4479 msgstr ""
4480
4481 #. type: =head2
4482 #: ../fish/guestfish-actions.pod:170
4483 msgid "add-drive-with-if"
4484 msgstr ""
4485
4486 #. type: verbatim
4487 #: ../fish/guestfish-actions.pod:172
4488 #, no-wrap
4489 msgid ""
4490 " add-drive-with-if filename iface\n"
4491 "\n"
4492 msgstr ""
4493
4494 #. type: textblock
4495 #: ../fish/guestfish-actions.pod:174
4496 msgid ""
4497 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4498 "interface emulation to use at run time."
4499 msgstr ""
4500
4501 #. type: =head2
4502 #: ../fish/guestfish-actions.pod:184
4503 msgid "aug-clear"
4504 msgstr ""
4505
4506 #. type: verbatim
4507 #: ../fish/guestfish-actions.pod:186
4508 #, no-wrap
4509 msgid ""
4510 " aug-clear augpath\n"
4511 "\n"
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4516 msgid ""
4517 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4518 "L<augtool(1)> C<clear> command."
4519 msgstr ""
4520
4521 #. type: =head2
4522 #: ../fish/guestfish-actions.pod:191
4523 msgid "aug-close"
4524 msgstr ""
4525
4526 #. type: verbatim
4527 #: ../fish/guestfish-actions.pod:193
4528 #, no-wrap
4529 msgid ""
4530 " aug-close\n"
4531 "\n"
4532 msgstr ""
4533
4534 #. type: textblock
4535 #: ../fish/guestfish-actions.pod:195
4536 msgid ""
4537 "Close the current Augeas handle and free up any resources used by it.  After "
4538 "calling this, you have to call L</aug-init> again before you can use any "
4539 "other Augeas functions."
4540 msgstr ""
4541
4542 #. type: =head2
4543 #: ../fish/guestfish-actions.pod:200
4544 msgid "aug-defnode"
4545 msgstr ""
4546
4547 #. type: verbatim
4548 #: ../fish/guestfish-actions.pod:202
4549 #, no-wrap
4550 msgid ""
4551 " aug-defnode name expr val\n"
4552 "\n"
4553 msgstr ""
4554
4555 #. type: textblock
4556 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4557 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4558 msgstr ""
4559
4560 #. type: textblock
4561 #: ../fish/guestfish-actions.pod:207
4562 msgid ""
4563 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4564 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4565 "containing that single node."
4566 msgstr ""
4567
4568 #. type: textblock
4569 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4570 msgid ""
4571 "On success this returns a pair containing the number of nodes in the "
4572 "nodeset, and a boolean flag if a node was created."
4573 msgstr ""
4574
4575 #. type: =head2
4576 #: ../fish/guestfish-actions.pod:215
4577 msgid "aug-defvar"
4578 msgstr ""
4579
4580 #. type: verbatim
4581 #: ../fish/guestfish-actions.pod:217
4582 #, no-wrap
4583 msgid ""
4584 " aug-defvar name expr\n"
4585 "\n"
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4590 msgid ""
4591 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4592 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4593 msgstr ""
4594
4595 #. type: textblock
4596 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4597 msgid ""
4598 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4599 "evaluates to something which is not a nodeset."
4600 msgstr ""
4601
4602 #. type: =head2
4603 #: ../fish/guestfish-actions.pod:226
4604 msgid "aug-get"
4605 msgstr ""
4606
4607 #. type: verbatim
4608 #: ../fish/guestfish-actions.pod:228
4609 #, no-wrap
4610 msgid ""
4611 " aug-get augpath\n"
4612 "\n"
4613 msgstr ""
4614
4615 #. type: textblock
4616 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4617 msgid ""
4618 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4619 "node, the C<value> is returned."
4620 msgstr ""
4621
4622 #. type: =head2
4623 #: ../fish/guestfish-actions.pod:233
4624 msgid "aug-init"
4625 msgstr ""
4626
4627 #. type: verbatim
4628 #: ../fish/guestfish-actions.pod:235
4629 #, no-wrap
4630 msgid ""
4631 " aug-init root flags\n"
4632 "\n"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4637 msgid ""
4638 "Create a new Augeas handle for editing configuration files.  If there was "
4639 "any previous Augeas handle associated with this guestfs session, then it is "
4640 "closed."
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:241
4645 msgid "You must call this before using any other L</aug-*> commands."
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4650 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4651 msgstr ""
4652
4653 #. type: textblock
4654 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4655 msgid ""
4656 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4657 "logical I<or> of the following integers:"
4658 msgstr ""
4659
4660 #. type: =item
4661 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4662 msgid "C<AUG_SAVE_BACKUP> = 1"
4663 msgstr ""
4664
4665 #. type: textblock
4666 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4667 msgid "Keep the original file with a C<.augsave> extension."
4668 msgstr ""
4669
4670 #. type: =item
4671 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4672 msgid "C<AUG_SAVE_NEWFILE> = 2"
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4677 msgid ""
4678 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4679 "original.  Overrides C<AUG_SAVE_BACKUP>."
4680 msgstr ""
4681
4682 #. type: =item
4683 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4684 msgid "C<AUG_TYPE_CHECK> = 4"
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4689 msgid "Typecheck lenses."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../fish/guestfish-actions.pod:266
4694 msgid ""
4695 "This option is only useful when debugging Augeas lenses.  Use of this option "
4696 "may require additional memory for the libguestfs appliance.  You may need to "
4697 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4698 msgstr ""
4699
4700 #. type: =item
4701 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4702 msgid "C<AUG_NO_STDINC> = 8"
4703 msgstr ""
4704
4705 #. type: textblock
4706 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4707 msgid "Do not use standard load path for modules."
4708 msgstr ""
4709
4710 #. type: =item
4711 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4712 msgid "C<AUG_SAVE_NOOP> = 16"
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4717 msgid "Make save a no-op, just record what would have been changed."
4718 msgstr ""
4719
4720 #. type: =item
4721 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4722 msgid "C<AUG_NO_LOAD> = 32"
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../fish/guestfish-actions.pod:281
4727 msgid "Do not load the tree in L</aug-init>."
4728 msgstr ""
4729
4730 #. type: textblock
4731 #: ../fish/guestfish-actions.pod:285
4732 msgid "To close the handle, you can call L</aug-close>."
4733 msgstr ""
4734
4735 #. type: textblock
4736 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4737 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4738 msgstr ""
4739
4740 #. type: =head2
4741 #: ../fish/guestfish-actions.pod:289
4742 msgid "aug-insert"
4743 msgstr ""
4744
4745 #. type: verbatim
4746 #: ../fish/guestfish-actions.pod:291
4747 #, no-wrap
4748 msgid ""
4749 " aug-insert augpath label true|false\n"
4750 "\n"
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4755 msgid ""
4756 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4757 "or after C<path> (depending on the boolean flag C<before>)."
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4762 msgid ""
4763 "C<path> must match exactly one existing node in the tree, and C<label> must "
4764 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4765 msgstr ""
4766
4767 #. type: =head2
4768 #: ../fish/guestfish-actions.pod:301
4769 msgid "aug-load"
4770 msgstr ""
4771
4772 #. type: verbatim
4773 #: ../fish/guestfish-actions.pod:303
4774 #, no-wrap
4775 msgid ""
4776 " aug-load\n"
4777 "\n"
4778 msgstr ""
4779
4780 #. type: textblock
4781 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4782 msgid "Load files into the tree."
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4787 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4788 msgstr ""
4789
4790 #. type: =head2
4791 #: ../fish/guestfish-actions.pod:310
4792 msgid "aug-ls"
4793 msgstr ""
4794
4795 #. type: verbatim
4796 #: ../fish/guestfish-actions.pod:312
4797 #, no-wrap
4798 msgid ""
4799 " aug-ls augpath\n"
4800 "\n"
4801 msgstr ""
4802
4803 #. type: textblock
4804 #: ../fish/guestfish-actions.pod:314
4805 msgid ""
4806 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4807 "resulting nodes into alphabetical order."
4808 msgstr ""
4809
4810 #. type: =head2
4811 #: ../fish/guestfish-actions.pod:317
4812 msgid "aug-match"
4813 msgstr ""
4814
4815 #. type: verbatim
4816 #: ../fish/guestfish-actions.pod:319
4817 #, no-wrap
4818 msgid ""
4819 " aug-match augpath\n"
4820 "\n"
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4825 msgid ""
4826 "Returns a list of paths which match the path expression C<path>.  The "
4827 "returned paths are sufficiently qualified so that they match exactly one "
4828 "node in the current tree."
4829 msgstr ""
4830
4831 #. type: =head2
4832 #: ../fish/guestfish-actions.pod:325
4833 msgid "aug-mv"
4834 msgstr ""
4835
4836 #. type: verbatim
4837 #: ../fish/guestfish-actions.pod:327
4838 #, no-wrap
4839 msgid ""
4840 " aug-mv src dest\n"
4841 "\n"
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4846 msgid ""
4847 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4848 "C<dest> is overwritten if it exists."
4849 msgstr ""
4850
4851 #. type: =head2
4852 #: ../fish/guestfish-actions.pod:332
4853 msgid "aug-rm"
4854 msgstr ""
4855
4856 #. type: verbatim
4857 #: ../fish/guestfish-actions.pod:334
4858 #, no-wrap
4859 msgid ""
4860 " aug-rm augpath\n"
4861 "\n"
4862 msgstr ""
4863
4864 #. type: textblock
4865 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4866 msgid "Remove C<path> and all of its children."
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4871 msgid "On success this returns the number of entries which were removed."
4872 msgstr ""
4873
4874 #. type: =head2
4875 #: ../fish/guestfish-actions.pod:340
4876 msgid "aug-save"
4877 msgstr ""
4878
4879 #. type: verbatim
4880 #: ../fish/guestfish-actions.pod:342
4881 #, no-wrap
4882 msgid ""
4883 " aug-save\n"
4884 "\n"
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4889 msgid "This writes all pending changes to disk."
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../fish/guestfish-actions.pod:346
4894 msgid ""
4895 "The flags which were passed to L</aug-init> affect exactly how files are "
4896 "saved."
4897 msgstr ""
4898
4899 #. type: =head2
4900 #: ../fish/guestfish-actions.pod:349
4901 msgid "aug-set"
4902 msgstr ""
4903
4904 #. type: verbatim
4905 #: ../fish/guestfish-actions.pod:351
4906 #, no-wrap
4907 msgid ""
4908 " aug-set augpath val\n"
4909 "\n"
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4914 msgid "Set the value associated with C<path> to C<val>."
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../fish/guestfish-actions.pod:355
4919 msgid ""
4920 "In the Augeas API, it is possible to clear a node by setting the value to "
4921 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4922 "this call.  Instead you must use the L</aug-clear> call."
4923 msgstr ""
4924
4925 #. type: =head2
4926 #: ../fish/guestfish-actions.pod:360
4927 msgid "available"
4928 msgstr ""
4929
4930 #. type: verbatim
4931 #: ../fish/guestfish-actions.pod:362
4932 #, no-wrap
4933 msgid ""
4934 " available 'groups ...'\n"
4935 "\n"
4936 msgstr ""
4937
4938 #. type: textblock
4939 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4940 msgid ""
4941 "This command is used to check the availability of some groups of "
4942 "functionality in the appliance, which not all builds of the libguestfs "
4943 "appliance will be able to provide."
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../fish/guestfish-actions.pod:368
4948 msgid ""
4949 "The libguestfs groups, and the functions that those groups correspond to, "
4950 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4951 "runtime by calling L</available-all-groups>."
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4956 msgid ""
4957 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4958 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4959 "and Augeas (configuration file editing) functions."
4960 msgstr ""
4961
4962 #. type: textblock
4963 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4964 msgid "The command returns no error if I<all> requested groups are available."
4965 msgstr ""
4966
4967 #. type: textblock
4968 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4969 msgid ""
4970 "It fails with an error if one or more of the requested groups is unavailable "
4971 "in the appliance."
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4976 msgid ""
4977 "If an unknown group name is included in the list of groups then an error is "
4978 "always returned."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4983 msgid "I<Notes:>"
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../fish/guestfish-actions.pod:392
4988 msgid "You must call L</launch> before calling this function."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4993 msgid ""
4994 "The reason is because we don't know what groups are supported by the "
4995 "appliance/daemon until it is running and can be queried."
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5000 msgid ""
5001 "If a group of functions is available, this does not necessarily mean that "
5002 "they will work.  You still have to check for errors when calling individual "
5003 "API functions even if they are available."
5004 msgstr ""
5005
5006 #. type: textblock
5007 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5008 msgid ""
5009 "It is usually the job of distro packagers to build complete functionality "
5010 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5011 "with all requirements satisfied, will support everything."
5012 msgstr ""
5013
5014 #. type: textblock
5015 #: ../fish/guestfish-actions.pod:414
5016 msgid ""
5017 "This call was added in version C<1.0.80>.  In previous versions of "
5018 "libguestfs all you could do would be to speculatively execute a command to "
5019 "find out if the daemon implemented it.  See also L</version>."
5020 msgstr ""
5021
5022 #. type: =head2
5023 #: ../fish/guestfish-actions.pod:421
5024 msgid "available-all-groups"
5025 msgstr ""
5026
5027 #. type: verbatim
5028 #: ../fish/guestfish-actions.pod:423
5029 #, no-wrap
5030 msgid ""
5031 " available-all-groups\n"
5032 "\n"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../fish/guestfish-actions.pod:425
5037 msgid ""
5038 "This command returns a list of all optional groups that this daemon knows "
5039 "about.  Note this returns both supported and unsupported groups.  To find "
5040 "out which ones the daemon can actually support you have to call "
5041 "L</available> on each member of the returned list."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../fish/guestfish-actions.pod:431
5046 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5047 msgstr ""
5048
5049 #. type: =head2
5050 #: ../fish/guestfish-actions.pod:433
5051 msgid "base64-in"
5052 msgstr ""
5053
5054 #. type: verbatim
5055 #: ../fish/guestfish-actions.pod:435
5056 #, no-wrap
5057 msgid ""
5058 " base64-in (base64file|-) filename\n"
5059 "\n"
5060 msgstr ""
5061
5062 #. type: textblock
5063 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5064 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782 ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902 ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766 ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5069 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5070 msgstr ""
5071
5072 #. type: =head2
5073 #: ../fish/guestfish-actions.pod:442
5074 msgid "base64-out"
5075 msgstr ""
5076
5077 #. type: verbatim
5078 #: ../fish/guestfish-actions.pod:444
5079 #, no-wrap
5080 msgid ""
5081 " base64-out filename (base64file|-)\n"
5082 "\n"
5083 msgstr ""
5084
5085 #. type: textblock
5086 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5087 msgid ""
5088 "This command downloads the contents of C<filename>, writing it out to local "
5089 "file C<base64file> encoded as base64."
5090 msgstr ""
5091
5092 #. type: =head2
5093 #: ../fish/guestfish-actions.pod:451
5094 msgid "blockdev-flushbufs"
5095 msgstr ""
5096
5097 #. type: verbatim
5098 #: ../fish/guestfish-actions.pod:453
5099 #, no-wrap
5100 msgid ""
5101 " blockdev-flushbufs device\n"
5102 "\n"
5103 msgstr ""
5104
5105 #. type: textblock
5106 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5107 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469 ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532 ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796 ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5112 msgid "This uses the L<blockdev(8)> command."
5113 msgstr ""
5114
5115 #. type: =head2
5116 #: ../fish/guestfish-actions.pod:460
5117 msgid "blockdev-getbsz"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../fish/guestfish-actions.pod:462
5122 #, no-wrap
5123 msgid ""
5124 " blockdev-getbsz device\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5130 msgid "This returns the block size of a device."
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5135 msgid ""
5136 "(Note this is different from both I<size in blocks> and I<filesystem block "
5137 "size>)."
5138 msgstr ""
5139
5140 #. type: =head2
5141 #: ../fish/guestfish-actions.pod:471
5142 msgid "blockdev-getro"
5143 msgstr ""
5144
5145 #. type: verbatim
5146 #: ../fish/guestfish-actions.pod:473
5147 #, no-wrap
5148 msgid ""
5149 " blockdev-getro device\n"
5150 "\n"
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5155 msgid ""
5156 "Returns a boolean indicating if the block device is read-only (true if "
5157 "read-only, false if not)."
5158 msgstr ""
5159
5160 #. type: =head2
5161 #: ../fish/guestfish-actions.pod:480
5162 msgid "blockdev-getsize64"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../fish/guestfish-actions.pod:482
5167 #, no-wrap
5168 msgid ""
5169 " blockdev-getsize64 device\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5175 msgid "This returns the size of the device in bytes."
5176 msgstr ""
5177
5178 #. type: textblock
5179 #: ../fish/guestfish-actions.pod:486
5180 msgid "See also L</blockdev-getsz>."
5181 msgstr ""
5182
5183 #. type: =head2
5184 #: ../fish/guestfish-actions.pod:490
5185 msgid "blockdev-getss"
5186 msgstr ""
5187
5188 #. type: verbatim
5189 #: ../fish/guestfish-actions.pod:492
5190 #, no-wrap
5191 msgid ""
5192 " blockdev-getss device\n"
5193 "\n"
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5198 msgid ""
5199 "This returns the size of sectors on a block device.  Usually 512, but can be "
5200 "larger for modern devices."
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../fish/guestfish-actions.pod:497
5205 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5206 msgstr ""
5207
5208 #. type: =head2
5209 #: ../fish/guestfish-actions.pod:502
5210 msgid "blockdev-getsz"
5211 msgstr ""
5212
5213 #. type: verbatim
5214 #: ../fish/guestfish-actions.pod:504
5215 #, no-wrap
5216 msgid ""
5217 " blockdev-getsz device\n"
5218 "\n"
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5223 msgid ""
5224 "This returns the size of the device in units of 512-byte sectors (even if "
5225 "the sectorsize isn't 512 bytes ... weird)."
5226 msgstr ""
5227
5228 #. type: textblock
5229 #: ../fish/guestfish-actions.pod:509
5230 msgid ""
5231 "See also L</blockdev-getss> for the real sector size of the device, and "
5232 "L</blockdev-getsize64> for the more useful I<size in bytes>."
5233 msgstr ""
5234
5235 #. type: =head2
5236 #: ../fish/guestfish-actions.pod:515
5237 msgid "blockdev-rereadpt"
5238 msgstr ""
5239
5240 #. type: verbatim
5241 #: ../fish/guestfish-actions.pod:517
5242 #, no-wrap
5243 msgid ""
5244 " blockdev-rereadpt device\n"
5245 "\n"
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5250 msgid "Reread the partition table on C<device>."
5251 msgstr ""
5252
5253 #. type: =head2
5254 #: ../fish/guestfish-actions.pod:523
5255 msgid "blockdev-setbsz"
5256 msgstr ""
5257
5258 #. type: verbatim
5259 #: ../fish/guestfish-actions.pod:525
5260 #, no-wrap
5261 msgid ""
5262 " blockdev-setbsz device blocksize\n"
5263 "\n"
5264 msgstr ""
5265
5266 #. type: textblock
5267 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5268 msgid "This sets the block size of a device."
5269 msgstr ""
5270
5271 #. type: =head2
5272 #: ../fish/guestfish-actions.pod:534
5273 msgid "blockdev-setro"
5274 msgstr ""
5275
5276 #. type: verbatim
5277 #: ../fish/guestfish-actions.pod:536
5278 #, no-wrap
5279 msgid ""
5280 " blockdev-setro device\n"
5281 "\n"
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5286 msgid "Sets the block device named C<device> to read-only."
5287 msgstr ""
5288
5289 #. type: =head2
5290 #: ../fish/guestfish-actions.pod:542
5291 msgid "blockdev-setrw"
5292 msgstr ""
5293
5294 #. type: verbatim
5295 #: ../fish/guestfish-actions.pod:544
5296 #, no-wrap
5297 msgid ""
5298 " blockdev-setrw device\n"
5299 "\n"
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5304 msgid "Sets the block device named C<device> to read-write."
5305 msgstr ""
5306
5307 #. type: =head2
5308 #: ../fish/guestfish-actions.pod:550
5309 msgid "btrfs-filesystem-resize"
5310 msgstr ""
5311
5312 #. type: verbatim
5313 #: ../fish/guestfish-actions.pod:552
5314 #, no-wrap
5315 msgid ""
5316 " btrfs-filesystem-resize mountpoint [size:..]\n"
5317 "\n"
5318 msgstr ""
5319
5320 #. type: textblock
5321 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5322 msgid "This command resizes a btrfs filesystem."
5323 msgstr ""
5324
5325 #. type: textblock
5326 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5327 msgid ""
5328 "Note that unlike other resize calls, the filesystem has to be mounted and "
5329 "the parameter is the mountpoint not the device (this is a requirement of "
5330 "btrfs itself)."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
5335 msgid "The optional parameters are:"
5336 msgstr ""
5337
5338 #. type: =item
5339 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
5340 msgid "C<size>"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5345 msgid ""
5346 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5347 "resized to the maximum size."
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5352 msgid "See also L<btrfs(8)>."
5353 msgstr ""
5354
5355 #. type: =head2
5356 #: ../fish/guestfish-actions.pod:575
5357 msgid "case-sensitive-path"
5358 msgstr ""
5359
5360 #. type: verbatim
5361 #: ../fish/guestfish-actions.pod:577
5362 #, no-wrap
5363 msgid ""
5364 " case-sensitive-path path\n"
5365 "\n"
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5370 msgid ""
5371 "This can be used to resolve case insensitive paths on a filesystem which is "
5372 "case sensitive.  The use case is to resolve paths which you have read from "
5373 "Windows configuration files or the Windows Registry, to the true path."
5374 msgstr ""
5375
5376 #. type: textblock
5377 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5378 msgid ""
5379 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5380 "(and probably others), which is that although the underlying filesystem is "
5381 "case-insensitive, the driver exports the filesystem to Linux as "
5382 "case-sensitive."
5383 msgstr ""
5384
5385 #. type: textblock
5386 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5387 msgid ""
5388 "One consequence of this is that special directories such as C<c:\\windows> "
5389 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5390 "precise details of how they were created.  In Windows itself this would not "
5391 "be a problem."
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5396 msgid ""
5397 "Bug or feature? You decide: "
5398 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5399 msgstr ""
5400
5401 #. type: textblock
5402 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5403 msgid ""
5404 "This function resolves the true case of each element in the path and returns "
5405 "the case-sensitive path."
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../fish/guestfish-actions.pod:601
5410 msgid ""
5411 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
5412 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5413 "how the directories were originally created under Windows)."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5418 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5419 msgstr ""
5420
5421 #. type: textblock
5422 #: ../fish/guestfish-actions.pod:609
5423 msgid "See also L</realpath>."
5424 msgstr ""
5425
5426 #. type: =head2
5427 #: ../fish/guestfish-actions.pod:611
5428 msgid "cat"
5429 msgstr ""
5430
5431 #. type: verbatim
5432 #: ../fish/guestfish-actions.pod:613
5433 #, no-wrap
5434 msgid ""
5435 " cat path\n"
5436 "\n"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
5441 msgid "Return the contents of the file named C<path>."
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../fish/guestfish-actions.pod:617
5446 msgid ""
5447 "Note that this function cannot correctly handle binary files (specifically, "
5448 "files containing C<\\0> character which is treated as end of string).  For "
5449 "those you need to use the L</read-file> or L</download> functions which have "
5450 "a more complex interface."
5451 msgstr ""
5452
5453 #. type: textblock
5454 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647 ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676 ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784 ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877 ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573 ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704 ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182 ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249 ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132 ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821 ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
5455 msgid ""
5456 "Because of the message protocol, there is a transfer limit of somewhere "
5457 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5458 msgstr ""
5459
5460 #. type: =head2
5461 #: ../fish/guestfish-actions.pod:625
5462 msgid "checksum"
5463 msgstr ""
5464
5465 #. type: verbatim
5466 #: ../fish/guestfish-actions.pod:627
5467 #, no-wrap
5468 msgid ""
5469 " checksum csumtype path\n"
5470 "\n"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5475 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5476 msgstr ""
5477
5478 #. type: textblock
5479 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5480 msgid ""
5481 "The type of checksum to compute is given by the C<csumtype> parameter which "
5482 "must have one of the following values:"
5483 msgstr ""
5484
5485 #. type: =item
5486 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5487 msgid "C<crc>"
5488 msgstr ""
5489
5490 #. type: textblock
5491 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5492 msgid ""
5493 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5494 "C<cksum> command."
5495 msgstr ""
5496
5497 #. type: =item
5498 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5499 msgid "C<md5>"
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5504 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5505 msgstr ""
5506
5507 #. type: =item
5508 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5509 msgid "C<sha1>"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5514 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5515 msgstr ""
5516
5517 #. type: =item
5518 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5519 msgid "C<sha224>"
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5524 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5525 msgstr ""
5526
5527 #. type: =item
5528 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5529 msgid "C<sha256>"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5534 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5535 msgstr ""
5536
5537 #. type: =item
5538 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5539 msgid "C<sha384>"
5540 msgstr ""
5541
5542 #. type: textblock
5543 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5544 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5545 msgstr ""
5546
5547 #. type: =item
5548 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5549 msgid "C<sha512>"
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5554 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5559 msgid "The checksum is returned as a printable string."
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../fish/guestfish-actions.pod:670
5564 msgid "To get the checksum for a device, use L</checksum-device>."
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../fish/guestfish-actions.pod:672
5569 msgid "To get the checksums for many files, use L</checksums-out>."
5570 msgstr ""
5571
5572 #. type: =head2
5573 #: ../fish/guestfish-actions.pod:674
5574 msgid "checksum-device"
5575 msgstr ""
5576
5577 #. type: verbatim
5578 #: ../fish/guestfish-actions.pod:676
5579 #, no-wrap
5580 msgid ""
5581 " checksum-device csumtype device\n"
5582 "\n"
5583 msgstr ""
5584
5585 #. type: textblock
5586 #: ../fish/guestfish-actions.pod:678
5587 msgid ""
5588 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5589 "device named C<device>.  For the types of checksums supported see the "
5590 "L</checksum> command."
5591 msgstr ""
5592
5593 #. type: =head2
5594 #: ../fish/guestfish-actions.pod:682
5595 msgid "checksums-out"
5596 msgstr ""
5597
5598 #. type: verbatim
5599 #: ../fish/guestfish-actions.pod:684
5600 #, no-wrap
5601 msgid ""
5602 " checksums-out csumtype directory (sumsfile|-)\n"
5603 "\n"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5608 msgid ""
5609 "This command computes the checksums of all regular files in C<directory> and "
5610 "then emits a list of those checksums to the local output file C<sumsfile>."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5615 msgid ""
5616 "This can be used for verifying the integrity of a virtual machine.  However "
5617 "to be properly secure you should pay attention to the output of the checksum "
5618 "command (it uses the ones from GNU coreutils).  In particular when the "
5619 "filename is not printable, coreutils uses a special backslash syntax.  For "
5620 "more information, see the GNU coreutils info file."
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../fish/guestfish-actions.pod:700
5625 msgid "chmod"
5626 msgstr ""
5627
5628 #. type: verbatim
5629 #: ../fish/guestfish-actions.pod:702
5630 #, no-wrap
5631 msgid ""
5632 " chmod mode path\n"
5633 "\n"
5634 msgstr ""
5635
5636 #. type: textblock
5637 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5638 msgid ""
5639 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5640 "supported."
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5645 msgid ""
5646 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5647 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5648 "C<700>."
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132 ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281 ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
5653 msgid "The mode actually set is affected by the umask."
5654 msgstr ""
5655
5656 #. type: =head2
5657 #: ../fish/guestfish-actions.pod:713
5658 msgid "chown"
5659 msgstr ""
5660
5661 #. type: verbatim
5662 #: ../fish/guestfish-actions.pod:715
5663 #, no-wrap
5664 msgid ""
5665 " chown owner group path\n"
5666 "\n"
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5671 msgid "Change the file owner to C<owner> and group to C<group>."
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
5676 msgid ""
5677 "Only numeric uid and gid are supported.  If you want to use names, you will "
5678 "need to locate and parse the password file yourself (Augeas support makes "
5679 "this relatively easy)."
5680 msgstr ""
5681
5682 #. type: =head2
5683 #: ../fish/guestfish-actions.pod:723
5684 msgid "command"
5685 msgstr ""
5686
5687 #. type: verbatim
5688 #: ../fish/guestfish-actions.pod:725
5689 #, no-wrap
5690 msgid ""
5691 " command 'arguments ...'\n"
5692 "\n"
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5697 msgid ""
5698 "This call runs a command from the guest filesystem.  The filesystem must be "
5699 "mounted, and must contain a compatible operating system (ie. something "
5700 "Linux, with the same or compatible processor architecture)."
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../fish/guestfish-actions.pod:732
5705 msgid ""
5706 "The single parameter is an argv-style list of arguments.  The first element "
5707 "is the name of the program to run.  Subsequent elements are parameters.  The "
5708 "list must be non-empty (ie. must contain a program name).  Note that the "
5709 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5714 msgid "The return value is anything printed to I<stdout> by the command."
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5719 msgid ""
5720 "If the command returns a non-zero exit status, then this function returns an "
5721 "error message.  The error message string is the content of I<stderr> from "
5722 "the command."
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5727 msgid ""
5728 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5729 "C</bin>.  If you require a program from another location, you should provide "
5730 "the full path in the first parameter."
5731 msgstr ""
5732
5733 #. type: textblock
5734 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5735 msgid ""
5736 "Shared libraries and data files required by the program must be available on "
5737 "filesystems which are mounted in the correct places.  It is the caller's "
5738 "responsibility to ensure all filesystems that are needed are mounted at the "
5739 "right locations."
5740 msgstr ""
5741
5742 #. type: =head2
5743 #: ../fish/guestfish-actions.pod:760
5744 msgid "command-lines"
5745 msgstr ""
5746
5747 #. type: verbatim
5748 #: ../fish/guestfish-actions.pod:762
5749 #, no-wrap
5750 msgid ""
5751 " command-lines 'arguments ...'\n"
5752 "\n"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:764
5757 msgid "This is the same as L</command>, but splits the result into a list of lines."
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../fish/guestfish-actions.pod:767
5762 msgid "See also: L</sh-lines>"
5763 msgstr ""
5764
5765 #. type: =head2
5766 #: ../fish/guestfish-actions.pod:772
5767 msgid "compress-device-out"
5768 msgstr ""
5769
5770 #. type: verbatim
5771 #: ../fish/guestfish-actions.pod:774
5772 #, no-wrap
5773 msgid ""
5774 " compress-device-out ctype device (zdevice|-) [level:..]\n"
5775 "\n"
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
5780 msgid ""
5781 "This command compresses C<device> and writes it out to the local file "
5782 "C<zdevice>."
5783 msgstr ""
5784
5785 #. type: textblock
5786 #: ../fish/guestfish-actions.pod:779
5787 msgid ""
5788 "The C<ctype> and optional C<level> parameters have the same meaning as in "
5789 "L</compress-out>."
5790 msgstr ""
5791
5792 #. type: =head2
5793 #: ../fish/guestfish-actions.pod:786
5794 msgid "compress-out"
5795 msgstr ""
5796
5797 #. type: verbatim
5798 #: ../fish/guestfish-actions.pod:788
5799 #, no-wrap
5800 msgid ""
5801 " compress-out ctype file (zfile|-) [level:..]\n"
5802 "\n"
5803 msgstr ""
5804
5805 #. type: textblock
5806 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
5807 msgid ""
5808 "This command compresses C<file> and writes it out to the local file "
5809 "C<zfile>."
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
5814 msgid ""
5815 "The compression program used is controlled by the C<ctype> parameter.  "
5816 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
5817 "Some compression types may not be supported by particular builds of "
5818 "libguestfs, in which case you will get an error containing the substring "
5819 "\"not supported\"."
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
5824 msgid ""
5825 "The optional C<level> parameter controls compression level.  The meaning and "
5826 "default for this parameter depends on the compression program being used."
5827 msgstr ""
5828
5829 #. type: =head2
5830 #: ../fish/guestfish-actions.pod:807
5831 msgid "config"
5832 msgstr ""
5833
5834 #. type: verbatim
5835 #: ../fish/guestfish-actions.pod:809
5836 #, no-wrap
5837 msgid ""
5838 " config qemuparam qemuvalue\n"
5839 "\n"
5840 msgstr ""
5841
5842 #. type: textblock
5843 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
5844 msgid ""
5845 "This can be used to add arbitrary qemu command line parameters of the form "
5846 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5847 "setting some parameters which would interfere with parameters that we use."
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
5852 msgid "The first character of C<param> string must be a C<-> (dash)."
5853 msgstr ""
5854
5855 #. type: textblock
5856 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
5857 msgid "C<value> can be NULL."
5858 msgstr ""
5859
5860 #. type: =head2
5861 #: ../fish/guestfish-actions.pod:820
5862 msgid "copy-size"
5863 msgstr ""
5864
5865 #. type: verbatim
5866 #: ../fish/guestfish-actions.pod:822
5867 #, no-wrap
5868 msgid ""
5869 " copy-size src dest size\n"
5870 "\n"
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
5875 msgid ""
5876 "This command copies exactly C<size> bytes from one source device or file "
5877 "C<src> to another destination device or file C<dest>."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
5882 msgid ""
5883 "Note this will fail if the source is too short or if the destination is not "
5884 "large enough."
5885 msgstr ""
5886
5887 #. type: =head2
5888 #: ../fish/guestfish-actions.pod:830
5889 msgid "cp"
5890 msgstr ""
5891
5892 #. type: verbatim
5893 #: ../fish/guestfish-actions.pod:832
5894 #, no-wrap
5895 msgid ""
5896 " cp src dest\n"
5897 "\n"
5898 msgstr ""
5899
5900 #. type: textblock
5901 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
5902 msgid ""
5903 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5904 "destination filename or destination directory."
5905 msgstr ""
5906
5907 #. type: =head2
5908 #: ../fish/guestfish-actions.pod:837
5909 msgid "cp-a"
5910 msgstr ""
5911
5912 #. type: verbatim
5913 #: ../fish/guestfish-actions.pod:839
5914 #, no-wrap
5915 msgid ""
5916 " cp-a src dest\n"
5917 "\n"
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
5922 msgid ""
5923 "This copies a file or directory from C<src> to C<dest> recursively using the "
5924 "C<cp -a> command."
5925 msgstr ""
5926
5927 #. type: =head2
5928 #: ../fish/guestfish-actions.pod:844
5929 msgid "dd"
5930 msgstr ""
5931
5932 #. type: verbatim
5933 #: ../fish/guestfish-actions.pod:846
5934 #, no-wrap
5935 msgid ""
5936 " dd src dest\n"
5937 "\n"
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
5942 msgid ""
5943 "This command copies from one source device or file C<src> to another "
5944 "destination device or file C<dest>.  Normally you would use this to copy to "
5945 "or from a device or partition, for example to duplicate a filesystem."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:853
5950 msgid ""
5951 "If the destination is a device, it must be as large or larger than the "
5952 "source file or device, otherwise the copy will fail.  This command cannot do "
5953 "partial copies (see L</copy-size>)."
5954 msgstr ""
5955
5956 #. type: =head2
5957 #: ../fish/guestfish-actions.pod:857
5958 msgid "df"
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../fish/guestfish-actions.pod:859
5963 #, no-wrap
5964 msgid ""
5965 " df\n"
5966 "\n"
5967 msgstr ""
5968
5969 #. type: textblock
5970 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
5971 msgid "This command runs the C<df> command to report disk space used."
5972 msgstr ""
5973
5974 #. type: textblock
5975 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
5976 msgid ""
5977 "This command is mostly useful for interactive sessions.  It is I<not> "
5978 "intended that you try to parse the output string.  Use L</statvfs> from "
5979 "programs."
5980 msgstr ""
5981
5982 #. type: =head2
5983 #: ../fish/guestfish-actions.pod:867
5984 msgid "df-h"
5985 msgstr ""
5986
5987 #. type: verbatim
5988 #: ../fish/guestfish-actions.pod:869
5989 #, no-wrap
5990 msgid ""
5991 " df-h\n"
5992 "\n"
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
5997 msgid ""
5998 "This command runs the C<df -h> command to report disk space used in "
5999 "human-readable format."
6000 msgstr ""
6001
6002 #. type: =head2
6003 #: ../fish/guestfish-actions.pod:878
6004 msgid "dmesg"
6005 msgstr ""
6006
6007 #. type: verbatim
6008 #: ../fish/guestfish-actions.pod:880
6009 #, no-wrap
6010 msgid ""
6011 " dmesg\n"
6012 "\n"
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6017 msgid ""
6018 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6019 "This is sometimes useful for extended debugging of problems."
6020 msgstr ""
6021
6022 #. type: textblock
6023 #: ../fish/guestfish-actions.pod:886
6024 msgid ""
6025 "Another way to get the same information is to enable verbose messages with "
6026 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6027 "before running the program."
6028 msgstr ""
6029
6030 #. type: =head2
6031 #: ../fish/guestfish-actions.pod:891
6032 msgid "download"
6033 msgstr ""
6034
6035 #. type: verbatim
6036 #: ../fish/guestfish-actions.pod:893
6037 #, no-wrap
6038 msgid ""
6039 " download remotefilename (filename|-)\n"
6040 "\n"
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6045 msgid ""
6046 "Download file C<remotefilename> and save it as C<filename> on the local "
6047 "machine."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6052 msgid "C<filename> can also be a named pipe."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:900
6057 msgid "See also L</upload>, L</cat>."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../fish/guestfish-actions.pod:904
6062 msgid "download-offset"
6063 msgstr ""
6064
6065 #. type: verbatim
6066 #: ../fish/guestfish-actions.pod:906
6067 #, no-wrap
6068 msgid ""
6069 " download-offset remotefilename (filename|-) offset size\n"
6070 "\n"
6071 msgstr ""
6072
6073 #. type: textblock
6074 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6075 msgid ""
6076 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6077 "region must be within the file or device)."
6078 msgstr ""
6079
6080 #. type: textblock
6081 #: ../fish/guestfish-actions.pod:914
6082 msgid ""
6083 "Note that there is no limit on the amount of data that can be downloaded "
6084 "with this call, unlike with L</pread>, and this call always reads the full "
6085 "amount unless an error occurs."
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../fish/guestfish-actions.pod:919
6090 msgid "See also L</download>, L</pread>."
6091 msgstr ""
6092
6093 #. type: =head2
6094 #: ../fish/guestfish-actions.pod:923
6095 msgid "drop-caches"
6096 msgstr ""
6097
6098 #. type: verbatim
6099 #: ../fish/guestfish-actions.pod:925
6100 #, no-wrap
6101 msgid ""
6102 " drop-caches whattodrop\n"
6103 "\n"
6104 msgstr ""
6105
6106 #. type: textblock
6107 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6108 msgid ""
6109 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6110 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6111 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6112 msgstr ""
6113
6114 #. type: textblock
6115 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6116 msgid "Setting C<whattodrop> to 3 should drop everything."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6121 msgid ""
6122 "This automatically calls L<sync(2)> before the operation, so that the "
6123 "maximum guest memory is freed."
6124 msgstr ""
6125
6126 #. type: =head2
6127 #: ../fish/guestfish-actions.pod:937
6128 msgid "du"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../fish/guestfish-actions.pod:939
6133 #, no-wrap
6134 msgid ""
6135 " du path\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6141 msgid ""
6142 "This command runs the C<du -s> command to estimate file space usage for "
6143 "C<path>."
6144 msgstr ""
6145
6146 #. type: textblock
6147 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6148 msgid ""
6149 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6150 "estimate includes the contents of the directory and all subdirectories "
6151 "(recursively)."
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6156 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6157 msgstr ""
6158
6159 #. type: =head2
6160 #: ../fish/guestfish-actions.pod:951
6161 msgid "e2fsck-f"
6162 msgstr ""
6163
6164 #. type: verbatim
6165 #: ../fish/guestfish-actions.pod:953
6166 #, no-wrap
6167 msgid ""
6168 " e2fsck-f device\n"
6169 "\n"
6170 msgstr ""
6171
6172 #. type: textblock
6173 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6174 msgid ""
6175 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6176 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6177 "clean (I<-f>)."
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:959
6182 msgid ""
6183 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6184 "should use L</fsck>."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:962
6189 msgid "echo-daemon"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:964
6194 #, no-wrap
6195 msgid ""
6196 " echo-daemon 'words ...'\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6202 msgid ""
6203 "This command concatenates the list of C<words> passed with single spaces "
6204 "between them and returns the resulting string."
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6209 msgid "You can use this command to test the connection through to the daemon."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:971
6214 msgid "See also L</ping-daemon>."
6215 msgstr ""
6216
6217 #. type: =head2
6218 #: ../fish/guestfish-actions.pod:973
6219 msgid "egrep"
6220 msgstr ""
6221
6222 #. type: verbatim
6223 #: ../fish/guestfish-actions.pod:975
6224 #, no-wrap
6225 msgid ""
6226 " egrep regex path\n"
6227 "\n"
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
6232 msgid "This calls the external C<egrep> program and returns the matching lines."
6233 msgstr ""
6234
6235 #. type: =head2
6236 #: ../fish/guestfish-actions.pod:983
6237 msgid "egrepi"
6238 msgstr ""
6239
6240 #. type: verbatim
6241 #: ../fish/guestfish-actions.pod:985
6242 #, no-wrap
6243 msgid ""
6244 " egrepi regex path\n"
6245 "\n"
6246 msgstr ""
6247
6248 #. type: textblock
6249 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
6250 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6251 msgstr ""
6252
6253 #. type: =head2
6254 #: ../fish/guestfish-actions.pod:993
6255 msgid "equal"
6256 msgstr ""
6257
6258 #. type: verbatim
6259 #: ../fish/guestfish-actions.pod:995
6260 #, no-wrap
6261 msgid ""
6262 " equal file1 file2\n"
6263 "\n"
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
6268 msgid ""
6269 "This compares the two files C<file1> and C<file2> and returns true if their "
6270 "content is exactly equal, or false otherwise."
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
6275 msgid "The external L<cmp(1)> program is used for the comparison."
6276 msgstr ""
6277
6278 #. type: =head2
6279 #: ../fish/guestfish-actions.pod:1002
6280 msgid "exists"
6281 msgstr ""
6282
6283 #. type: verbatim
6284 #: ../fish/guestfish-actions.pod:1004
6285 #, no-wrap
6286 msgid ""
6287 " exists path\n"
6288 "\n"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
6293 msgid ""
6294 "This returns C<true> if and only if there is a file, directory (or anything) "
6295 "with the given C<path> name."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:1009
6300 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6301 msgstr ""
6302
6303 #. type: =head2
6304 #: ../fish/guestfish-actions.pod:1011
6305 msgid "fallocate"
6306 msgstr ""
6307
6308 #. type: verbatim
6309 #: ../fish/guestfish-actions.pod:1013
6310 #, no-wrap
6311 msgid ""
6312 " fallocate path len\n"
6313 "\n"
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
6318 msgid ""
6319 "This command preallocates a file (containing zero bytes) named C<path> of "
6320 "size C<len> bytes.  If the file exists already, it is overwritten."
6321 msgstr ""
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
6325 msgid ""
6326 "Do not confuse this with the guestfish-specific C<alloc> command which "
6327 "allocates a file in the host and attaches it as a device."
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:1023
6332 msgid ""
6333 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6334 "instead."
6335 msgstr ""
6336
6337 #. type: =head2
6338 #: ../fish/guestfish-actions.pod:1030
6339 msgid "fallocate64"
6340 msgstr ""
6341
6342 #. type: verbatim
6343 #: ../fish/guestfish-actions.pod:1032
6344 #, no-wrap
6345 msgid ""
6346 " fallocate64 path len\n"
6347 "\n"
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../fish/guestfish-actions.pod:1038
6352 msgid ""
6353 "Note that this call allocates disk blocks for the file.  To create a sparse "
6354 "file use L</truncate-size> instead."
6355 msgstr ""
6356
6357 #. type: textblock
6358 #: ../fish/guestfish-actions.pod:1041
6359 msgid ""
6360 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6361 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6362 "maximum size of files created through that call to 1GB."
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
6367 msgid ""
6368 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6369 "commands which create a file in the host and attach it as a device."
6370 msgstr ""
6371
6372 #. type: =head2
6373 #: ../fish/guestfish-actions.pod:1050
6374 msgid "fgrep"
6375 msgstr ""
6376
6377 #. type: verbatim
6378 #: ../fish/guestfish-actions.pod:1052
6379 #, no-wrap
6380 msgid ""
6381 " fgrep pattern path\n"
6382 "\n"
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
6387 msgid "This calls the external C<fgrep> program and returns the matching lines."
6388 msgstr ""
6389
6390 #. type: =head2
6391 #: ../fish/guestfish-actions.pod:1060
6392 msgid "fgrepi"
6393 msgstr ""
6394
6395 #. type: verbatim
6396 #: ../fish/guestfish-actions.pod:1062
6397 #, no-wrap
6398 msgid ""
6399 " fgrepi pattern path\n"
6400 "\n"
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
6405 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6406 msgstr ""
6407
6408 #. type: =head2
6409 #: ../fish/guestfish-actions.pod:1070
6410 msgid "file"
6411 msgstr ""
6412
6413 #. type: verbatim
6414 #: ../fish/guestfish-actions.pod:1072
6415 #, no-wrap
6416 msgid ""
6417 " file path\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
6423 msgid ""
6424 "This call uses the standard L<file(1)> command to determine the type or "
6425 "contents of the file."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
6430 msgid ""
6431 "This call will also transparently look inside various types of compressed "
6432 "file."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
6437 msgid ""
6438 "The exact command which runs is C<file -zb path>.  Note in particular that "
6439 "the filename is not prepended to the output (the I<-b> option)."
6440 msgstr ""
6441
6442 #. type: textblock
6443 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
6444 msgid ""
6445 "The output depends on the output of the underlying L<file(1)> command and it "
6446 "can change in future in ways beyond our control.  In other words, the output "
6447 "is not guaranteed by the ABI."
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:1088
6452 msgid ""
6453 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6454 "(etc), L</is-zero>."
6455 msgstr ""
6456
6457 #. type: =head2
6458 #: ../fish/guestfish-actions.pod:1091
6459 msgid "file-architecture"
6460 msgstr ""
6461
6462 #. type: verbatim
6463 #: ../fish/guestfish-actions.pod:1093
6464 #, no-wrap
6465 msgid ""
6466 " file-architecture filename\n"
6467 "\n"
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
6472 msgid ""
6473 "This detects the architecture of the binary C<filename>, and returns it if "
6474 "known."
6475 msgstr ""
6476
6477 #. type: textblock
6478 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
6479 msgid "Currently defined architectures are:"
6480 msgstr ""
6481
6482 #. type: =item
6483 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
6484 msgid "\"i386\""
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
6489 msgid ""
6490 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6491 "irrespective of the precise processor requirements of the binary."
6492 msgstr ""
6493
6494 #. type: =item
6495 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
6496 msgid "\"x86_64\""
6497 msgstr ""
6498
6499 #. type: textblock
6500 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
6501 msgid "64 bit x86-64."
6502 msgstr ""
6503
6504 #. type: =item
6505 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
6506 msgid "\"sparc\""
6507 msgstr ""
6508
6509 #. type: textblock
6510 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
6511 msgid "32 bit SPARC."
6512 msgstr ""
6513
6514 #. type: =item
6515 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
6516 msgid "\"sparc64\""
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
6521 msgid "64 bit SPARC V9 and above."
6522 msgstr ""
6523
6524 #. type: =item
6525 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
6526 msgid "\"ia64\""
6527 msgstr ""
6528
6529 #. type: textblock
6530 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
6531 msgid "Intel Itanium."
6532 msgstr ""
6533
6534 #. type: =item
6535 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
6536 msgid "\"ppc\""
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
6541 msgid "32 bit Power PC."
6542 msgstr ""
6543
6544 #. type: =item
6545 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
6546 msgid "\"ppc64\""
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
6551 msgid "64 bit Power PC."
6552 msgstr ""
6553
6554 #. type: textblock
6555 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
6556 msgid "Libguestfs may return other architecture strings in future."
6557 msgstr ""
6558
6559 #. type: textblock
6560 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
6561 msgid "The function works on at least the following types of files:"
6562 msgstr ""
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
6566 msgid "many types of Un*x and Linux binary"
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
6571 msgid "many types of Un*x and Linux shared library"
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
6576 msgid "Windows Win32 and Win64 binaries"
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
6581 msgid "Windows Win32 and Win64 DLLs"
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
6586 msgid "Win32 binaries and DLLs return C<i386>."
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
6591 msgid "Win64 binaries and DLLs return C<x86_64>."
6592 msgstr ""
6593
6594 #. type: textblock
6595 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
6596 msgid "Linux kernel modules"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
6601 msgid "Linux new-style initrd images"
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
6606 msgid "some non-x86 Linux vmlinuz kernels"
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
6611 msgid "What it can't do currently:"
6612 msgstr ""
6613
6614 #. type: textblock
6615 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
6616 msgid "static libraries (libfoo.a)"
6617 msgstr ""
6618
6619 #. type: textblock
6620 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
6621 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6622 msgstr ""
6623
6624 #. type: textblock
6625 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
6626 msgid "x86 Linux vmlinuz kernels"
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
6631 msgid ""
6632 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6633 "compressed code, and are horribly hard to unpack.  If you want to find the "
6634 "architecture of a kernel, use the architecture of the associated initrd or "
6635 "kernel module(s) instead."
6636 msgstr ""
6637
6638 #. type: =head2
6639 #: ../fish/guestfish-actions.pod:1196
6640 msgid "filesize"
6641 msgstr ""
6642
6643 #. type: verbatim
6644 #: ../fish/guestfish-actions.pod:1198
6645 #, no-wrap
6646 msgid ""
6647 " filesize file\n"
6648 "\n"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
6653 msgid "This command returns the size of C<file> in bytes."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:1202
6658 msgid ""
6659 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6660 "L</is-file> etc.  To get the size of block devices, use "
6661 "L</blockdev-getsize64>."
6662 msgstr ""
6663
6664 #. type: =head2
6665 #: ../fish/guestfish-actions.pod:1206
6666 msgid "fill"
6667 msgstr ""
6668
6669 #. type: verbatim
6670 #: ../fish/guestfish-actions.pod:1208
6671 #, no-wrap
6672 msgid ""
6673 " fill c len path\n"
6674 "\n"
6675 msgstr ""
6676
6677 #. type: textblock
6678 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
6679 msgid ""
6680 "This command creates a new file called C<path>.  The initial content of the "
6681 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6682 "C<[0..255]>."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:1214
6687 msgid ""
6688 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6689 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6690 "L</fill-pattern>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:1219
6695 msgid "fill-pattern"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:1221
6700 #, no-wrap
6701 msgid ""
6702 " fill-pattern pattern len path\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:1223
6708 msgid ""
6709 "This function is like L</fill> except that it creates a new file of length "
6710 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6711 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6712 "bytes."
6713 msgstr ""
6714
6715 #. type: =head2
6716 #: ../fish/guestfish-actions.pod:1228
6717 msgid "find"
6718 msgstr ""
6719
6720 #. type: verbatim
6721 #: ../fish/guestfish-actions.pod:1230
6722 #, no-wrap
6723 msgid ""
6724 " find directory\n"
6725 "\n"
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
6730 msgid ""
6731 "This command lists out all files and directories, recursively, starting at "
6732 "C<directory>.  It is essentially equivalent to running the shell command "
6733 "C<find directory -print> but some post-processing happens on the output, "
6734 "described below."
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
6739 msgid ""
6740 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6741 "structure was:"
6742 msgstr ""
6743
6744 #. type: verbatim
6745 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
6746 #, no-wrap
6747 msgid ""
6748 " /tmp/a\n"
6749 " /tmp/b\n"
6750 " /tmp/c/d\n"
6751 "\n"
6752 msgstr ""
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:1244
6756 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6757 msgstr ""
6758
6759 #. type: verbatim
6760 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
6761 #, no-wrap
6762 msgid ""
6763 " a\n"
6764 " b\n"
6765 " c\n"
6766 " c/d\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
6772 msgid "If C<directory> is not a directory, then this command returns an error."
6773 msgstr ""
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
6777 msgid "The returned list is sorted."
6778 msgstr ""
6779
6780 #. type: textblock
6781 #: ../fish/guestfish-actions.pod:1257
6782 msgid "See also L</find0>."
6783 msgstr ""
6784
6785 #. type: =head2
6786 #: ../fish/guestfish-actions.pod:1262
6787 msgid "find0"
6788 msgstr ""
6789
6790 #. type: verbatim
6791 #: ../fish/guestfish-actions.pod:1264
6792 #, no-wrap
6793 msgid ""
6794 " find0 directory (files|-)\n"
6795 "\n"
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
6800 msgid ""
6801 "This command lists out all files and directories, recursively, starting at "
6802 "C<directory>, placing the resulting list in the external file called "
6803 "C<files>."
6804 msgstr ""
6805
6806 #. type: textblock
6807 #: ../fish/guestfish-actions.pod:1270
6808 msgid "This command works the same way as L</find> with the following exceptions:"
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
6813 msgid "The resulting list is written to an external file."
6814 msgstr ""
6815
6816 #. type: textblock
6817 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
6818 msgid ""
6819 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6820 "L<find(1)> option I<-print0>."
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
6825 msgid "This command is not limited in the number of names that it can return."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
6830 msgid "The result list is not sorted."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../fish/guestfish-actions.pod:1297
6835 msgid "findfs-label"
6836 msgstr ""
6837
6838 #. type: verbatim
6839 #: ../fish/guestfish-actions.pod:1299
6840 #, no-wrap
6841 msgid ""
6842 " findfs-label label\n"
6843 "\n"
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
6848 msgid ""
6849 "This command searches the filesystems and returns the one which has the "
6850 "given label.  An error is returned if no such filesystem can be found."
6851 msgstr ""
6852
6853 #. type: textblock
6854 #: ../fish/guestfish-actions.pod:1305
6855 msgid "To find the label of a filesystem, use L</vfs-label>."
6856 msgstr ""
6857
6858 #. type: =head2
6859 #: ../fish/guestfish-actions.pod:1307
6860 msgid "findfs-uuid"
6861 msgstr ""
6862
6863 #. type: verbatim
6864 #: ../fish/guestfish-actions.pod:1309
6865 #, no-wrap
6866 msgid ""
6867 " findfs-uuid uuid\n"
6868 "\n"
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
6873 msgid ""
6874 "This command searches the filesystems and returns the one which has the "
6875 "given UUID.  An error is returned if no such filesystem can be found."
6876 msgstr ""
6877
6878 #. type: textblock
6879 #: ../fish/guestfish-actions.pod:1315
6880 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6881 msgstr ""
6882
6883 #. type: =head2
6884 #: ../fish/guestfish-actions.pod:1317
6885 msgid "fsck"
6886 msgstr ""
6887
6888 #. type: verbatim
6889 #: ../fish/guestfish-actions.pod:1319
6890 #, no-wrap
6891 msgid ""
6892 " fsck fstype device\n"
6893 "\n"
6894 msgstr ""
6895
6896 #. type: textblock
6897 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
6898 msgid ""
6899 "This runs the filesystem checker (fsck) on C<device> which should have "
6900 "filesystem type C<fstype>."
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
6905 msgid ""
6906 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6907 "codes from C<fsck>."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
6912 msgid "Multiple status codes can be summed together."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
6917 msgid ""
6918 "A non-zero return code can mean \"success\", for example if errors have been "
6919 "corrected on the filesystem."
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
6924 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
6929 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6930 msgstr ""
6931
6932 #. type: =head2
6933 #: ../fish/guestfish-actions.pod:1349
6934 msgid "get-append"
6935 msgstr ""
6936
6937 #. type: verbatim
6938 #: ../fish/guestfish-actions.pod:1351
6939 #, no-wrap
6940 msgid ""
6941 " get-append\n"
6942 "\n"
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
6947 msgid ""
6948 "Return the additional kernel options which are added to the guest kernel "
6949 "command line."
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
6954 msgid "If C<NULL> then no options are added."
6955 msgstr ""
6956
6957 #. type: =head2
6958 #: ../fish/guestfish-actions.pod:1358
6959 msgid "get-attach-method"
6960 msgstr ""
6961
6962 #. type: verbatim
6963 #: ../fish/guestfish-actions.pod:1360
6964 #, no-wrap
6965 msgid ""
6966 " get-attach-method\n"
6967 "\n"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1362
6972 msgid "Return the current attach method.  See L</set-attach-method>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1364
6977 msgid "get-autosync"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1366
6982 #, no-wrap
6983 msgid ""
6984 " get-autosync\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
6990 msgid "Get the autosync flag."
6991 msgstr ""
6992
6993 #. type: =head2
6994 #: ../fish/guestfish-actions.pod:1370
6995 msgid "get-direct"
6996 msgstr ""
6997
6998 #. type: verbatim
6999 #: ../fish/guestfish-actions.pod:1372
7000 #, no-wrap
7001 msgid ""
7002 " get-direct\n"
7003 "\n"
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7008 msgid "Return the direct appliance mode flag."
7009 msgstr ""
7010
7011 #. type: =head2
7012 #: ../fish/guestfish-actions.pod:1376
7013 msgid "get-e2label"
7014 msgstr ""
7015
7016 #. type: verbatim
7017 #: ../fish/guestfish-actions.pod:1378
7018 #, no-wrap
7019 msgid ""
7020 " get-e2label device\n"
7021 "\n"
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7026 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:1383
7031 msgid ""
7032 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7033 "instead."
7034 msgstr ""
7035
7036 #. type: =head2
7037 #: ../fish/guestfish-actions.pod:1390
7038 msgid "get-e2uuid"
7039 msgstr ""
7040
7041 #. type: verbatim
7042 #: ../fish/guestfish-actions.pod:1392
7043 #, no-wrap
7044 msgid ""
7045 " get-e2uuid device\n"
7046 "\n"
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7051 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1397
7056 msgid ""
7057 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7058 "instead."
7059 msgstr ""
7060
7061 #. type: =head2
7062 #: ../fish/guestfish-actions.pod:1404
7063 msgid "get-memsize"
7064 msgstr ""
7065
7066 #. type: verbatim
7067 #: ../fish/guestfish-actions.pod:1406
7068 #, no-wrap
7069 msgid ""
7070 " get-memsize\n"
7071 "\n"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7076 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:1411
7081 msgid ""
7082 "If L</set-memsize> was not called on this handle, and if "
7083 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7084 "value for memsize."
7085 msgstr ""
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7089 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7090 msgstr ""
7091
7092 #. type: =head2
7093 #: ../fish/guestfish-actions.pod:1418
7094 msgid "get-network"
7095 msgstr ""
7096
7097 #. type: verbatim
7098 #: ../fish/guestfish-actions.pod:1420
7099 #, no-wrap
7100 msgid ""
7101 " get-network\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7107 msgid "This returns the enable network flag."
7108 msgstr ""
7109
7110 #. type: =head2
7111 #: ../fish/guestfish-actions.pod:1424
7112 msgid "get-path"
7113 msgstr ""
7114
7115 #. type: verbatim
7116 #: ../fish/guestfish-actions.pod:1426
7117 #, no-wrap
7118 msgid ""
7119 " get-path\n"
7120 "\n"
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7125 msgid "Return the current search path."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7130 msgid ""
7131 "This is always non-NULL.  If it wasn't set already, then this will return "
7132 "the default path."
7133 msgstr ""
7134
7135 #. type: =head2
7136 #: ../fish/guestfish-actions.pod:1433
7137 msgid "get-pgroup"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../fish/guestfish-actions.pod:1435
7142 #, no-wrap
7143 msgid ""
7144 " get-pgroup\n"
7145 "\n"
7146 msgstr ""
7147
7148 #. type: textblock
7149 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7150 msgid "This returns the process group flag."
7151 msgstr ""
7152
7153 #. type: =head2
7154 #: ../fish/guestfish-actions.pod:1439
7155 msgid "get-pid"
7156 msgstr ""
7157
7158 #. type: =head2
7159 #: ../fish/guestfish-actions.pod:1441
7160 msgid "pid"
7161 msgstr ""
7162
7163 #. type: verbatim
7164 #: ../fish/guestfish-actions.pod:1443
7165 #, no-wrap
7166 msgid ""
7167 " get-pid\n"
7168 "\n"
7169 msgstr ""
7170
7171 #. type: textblock
7172 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7173 msgid ""
7174 "Return the process ID of the qemu subprocess.  If there is no qemu "
7175 "subprocess, then this will return an error."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7180 msgid "This is an internal call used for debugging and testing."
7181 msgstr ""
7182
7183 #. type: =head2
7184 #: ../fish/guestfish-actions.pod:1450
7185 msgid "get-qemu"
7186 msgstr ""
7187
7188 #. type: verbatim
7189 #: ../fish/guestfish-actions.pod:1452
7190 #, no-wrap
7191 msgid ""
7192 " get-qemu\n"
7193 "\n"
7194 msgstr ""
7195
7196 #. type: textblock
7197 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7198 msgid "Return the current qemu binary."
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7203 msgid ""
7204 "This is always non-NULL.  If it wasn't set already, then this will return "
7205 "the default qemu binary name."
7206 msgstr ""
7207
7208 #. type: =head2
7209 #: ../fish/guestfish-actions.pod:1459
7210 msgid "get-recovery-proc"
7211 msgstr ""
7212
7213 #. type: verbatim
7214 #: ../fish/guestfish-actions.pod:1461
7215 #, no-wrap
7216 msgid ""
7217 " get-recovery-proc\n"
7218 "\n"
7219 msgstr ""
7220
7221 #. type: textblock
7222 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
7223 msgid "Return the recovery process enabled flag."
7224 msgstr ""
7225
7226 #. type: =head2
7227 #: ../fish/guestfish-actions.pod:1465
7228 msgid "get-selinux"
7229 msgstr ""
7230
7231 #. type: verbatim
7232 #: ../fish/guestfish-actions.pod:1467
7233 #, no-wrap
7234 msgid ""
7235 " get-selinux\n"
7236 "\n"
7237 msgstr ""
7238
7239 #. type: textblock
7240 #: ../fish/guestfish-actions.pod:1469
7241 msgid ""
7242 "This returns the current setting of the selinux flag which is passed to the "
7243 "appliance at boot time.  See L</set-selinux>."
7244 msgstr ""
7245
7246 #. type: =head2
7247 #: ../fish/guestfish-actions.pod:1475
7248 msgid "get-smp"
7249 msgstr ""
7250
7251 #. type: verbatim
7252 #: ../fish/guestfish-actions.pod:1477
7253 #, no-wrap
7254 msgid ""
7255 " get-smp\n"
7256 "\n"
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
7261 msgid "This returns the number of virtual CPUs assigned to the appliance."
7262 msgstr ""
7263
7264 #. type: =head2
7265 #: ../fish/guestfish-actions.pod:1481
7266 msgid "get-state"
7267 msgstr ""
7268
7269 #. type: verbatim
7270 #: ../fish/guestfish-actions.pod:1483
7271 #, no-wrap
7272 msgid ""
7273 " get-state\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
7279 msgid ""
7280 "This returns the current state as an opaque integer.  This is only useful "
7281 "for printing debug and internal error messages."
7282 msgstr ""
7283
7284 #. type: textblock
7285 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490 ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616 ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
7286 msgid "For more information on states, see L<guestfs(3)>."
7287 msgstr ""
7288
7289 #. type: =head2
7290 #: ../fish/guestfish-actions.pod:1490
7291 msgid "get-trace"
7292 msgstr ""
7293
7294 #. type: verbatim
7295 #: ../fish/guestfish-actions.pod:1492
7296 #, no-wrap
7297 msgid ""
7298 " get-trace\n"
7299 "\n"
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
7304 msgid "Return the command trace flag."
7305 msgstr ""
7306
7307 #. type: =head2
7308 #: ../fish/guestfish-actions.pod:1496
7309 msgid "get-umask"
7310 msgstr ""
7311
7312 #. type: verbatim
7313 #: ../fish/guestfish-actions.pod:1498
7314 #, no-wrap
7315 msgid ""
7316 " get-umask\n"
7317 "\n"
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:1500
7322 msgid ""
7323 "Return the current umask.  By default the umask is C<022> unless it has been "
7324 "set by calling L</umask>."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:1503
7329 msgid "get-verbose"
7330 msgstr ""
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:1505
7334 #, no-wrap
7335 msgid ""
7336 " get-verbose\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
7342 msgid "This returns the verbose messages flag."
7343 msgstr ""
7344
7345 #. type: =head2
7346 #: ../fish/guestfish-actions.pod:1509
7347 msgid "getcon"
7348 msgstr ""
7349
7350 #. type: verbatim
7351 #: ../fish/guestfish-actions.pod:1511
7352 #, no-wrap
7353 msgid ""
7354 " getcon\n"
7355 "\n"
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
7360 msgid "This gets the SELinux security context of the daemon."
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1515
7365 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7366 msgstr ""
7367
7368 #. type: =head2
7369 #: ../fish/guestfish-actions.pod:1518
7370 msgid "getxattr"
7371 msgstr ""
7372
7373 #. type: verbatim
7374 #: ../fish/guestfish-actions.pod:1520
7375 #, no-wrap
7376 msgid ""
7377 " getxattr path name\n"
7378 "\n"
7379 msgstr ""
7380
7381 #. type: textblock
7382 #: ../fish/guestfish-actions.pod:1522
7383 msgid ""
7384 "Get a single extended attribute from file C<path> named C<name>.  This call "
7385 "follows symlinks.  If you want to lookup an extended attribute for the "
7386 "symlink itself, use L</lgetxattr>."
7387 msgstr ""
7388
7389 #. type: textblock
7390 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7391 msgid ""
7392 "Normally it is better to get all extended attributes from a file in one go "
7393 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7394 "buggy and do not provide a way to list out attributes.  For these "
7395 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7396 "attributes you want in advance and call this function."
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
7401 msgid ""
7402 "Extended attribute values are blobs of binary data.  If there is no extended "
7403 "attribute named C<name>, this returns an error."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:1536
7408 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7409 msgstr ""
7410
7411 #. type: =head2
7412 #: ../fish/guestfish-actions.pod:1538
7413 msgid "getxattrs"
7414 msgstr ""
7415
7416 #. type: verbatim
7417 #: ../fish/guestfish-actions.pod:1540
7418 #, no-wrap
7419 msgid ""
7420 " getxattrs path\n"
7421 "\n"
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
7426 msgid "This call lists the extended attributes of the file or directory C<path>."
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
7431 msgid ""
7432 "At the system call level, this is a combination of the L<listxattr(2)> and "
7433 "L<getxattr(2)> calls."
7434 msgstr ""
7435
7436 #. type: textblock
7437 #: ../fish/guestfish-actions.pod:1548
7438 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7439 msgstr ""
7440
7441 #. type: =head2
7442 #: ../fish/guestfish-actions.pod:1550
7443 msgid "glob-expand"
7444 msgstr ""
7445
7446 #. type: verbatim
7447 #: ../fish/guestfish-actions.pod:1552
7448 #, no-wrap
7449 msgid ""
7450 " glob-expand pattern\n"
7451 "\n"
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
7456 msgid ""
7457 "This command searches for all the pathnames matching C<pattern> according to "
7458 "the wildcard expansion rules used by the shell."
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
7463 msgid "If no paths match, then this returns an empty list (note: not an error)."
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
7468 msgid ""
7469 "It is just a wrapper around the C L<glob(3)> function with flags "
7470 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../fish/guestfish-actions.pod:1565
7475 msgid "grep"
7476 msgstr ""
7477
7478 #. type: verbatim
7479 #: ../fish/guestfish-actions.pod:1567
7480 #, no-wrap
7481 msgid ""
7482 " grep regex path\n"
7483 "\n"
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
7488 msgid "This calls the external C<grep> program and returns the matching lines."
7489 msgstr ""
7490
7491 #. type: =head2
7492 #: ../fish/guestfish-actions.pod:1575
7493 msgid "grepi"
7494 msgstr ""
7495
7496 #. type: verbatim
7497 #: ../fish/guestfish-actions.pod:1577
7498 #, no-wrap
7499 msgid ""
7500 " grepi regex path\n"
7501 "\n"
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
7506 msgid "This calls the external C<grep -i> program and returns the matching lines."
7507 msgstr ""
7508
7509 #. type: =head2
7510 #: ../fish/guestfish-actions.pod:1585
7511 msgid "grub-install"
7512 msgstr ""
7513
7514 #. type: verbatim
7515 #: ../fish/guestfish-actions.pod:1587
7516 #, no-wrap
7517 msgid ""
7518 " grub-install root device\n"
7519 "\n"
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
7524 msgid ""
7525 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7526 "with the root directory being C<root>."
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
7531 msgid ""
7532 "There is currently no way in the API to install grub2, which is used by most "
7533 "modern Linux guests.  It is possible to run the grub2 command from the "
7534 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7535 msgstr ""
7536
7537 #. type: textblock
7538 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
7539 msgid ""
7540 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7541 "compatible with itself, so this only works in rather narrow circumstances.  "
7542 "Careful testing with each guest version is advisable."
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
7547 msgid ""
7548 "If grub-install reports the error \"No suitable drive was found in the "
7549 "generated device map.\" it may be that you need to create a "
7550 "C</boot/grub/device.map> file first that contains the mapping between grub "
7551 "device names and Linux device names.  It is usually sufficient to create a "
7552 "file containing:"
7553 msgstr ""
7554
7555 #. type: verbatim
7556 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
7557 #, no-wrap
7558 msgid ""
7559 " (hd0) /dev/vda\n"
7560 "\n"
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
7565 msgid "replacing C</dev/vda> with the name of the installation device."
7566 msgstr ""
7567
7568 #. type: =head2
7569 #: ../fish/guestfish-actions.pod:1625
7570 msgid "head"
7571 msgstr ""
7572
7573 #. type: verbatim
7574 #: ../fish/guestfish-actions.pod:1627
7575 #, no-wrap
7576 msgid ""
7577 " head path\n"
7578 "\n"
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
7583 msgid ""
7584 "This command returns up to the first 10 lines of a file as a list of "
7585 "strings."
7586 msgstr ""
7587
7588 #. type: =head2
7589 #: ../fish/guestfish-actions.pod:1635
7590 msgid "head-n"
7591 msgstr ""
7592
7593 #. type: verbatim
7594 #: ../fish/guestfish-actions.pod:1637
7595 #, no-wrap
7596 msgid ""
7597 " head-n nrlines path\n"
7598 "\n"
7599 msgstr ""
7600
7601 #. type: textblock
7602 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
7603 msgid ""
7604 "If the parameter C<nrlines> is a positive number, this returns the first "
7605 "C<nrlines> lines of the file C<path>."
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
7610 msgid ""
7611 "If the parameter C<nrlines> is a negative number, this returns lines from "
7612 "the file C<path>, excluding the last C<nrlines> lines."
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
7617 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7618 msgstr ""
7619
7620 #. type: =head2
7621 #: ../fish/guestfish-actions.pod:1650
7622 msgid "hexdump"
7623 msgstr ""
7624
7625 #. type: verbatim
7626 #: ../fish/guestfish-actions.pod:1652
7627 #, no-wrap
7628 msgid ""
7629 " hexdump path\n"
7630 "\n"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
7635 msgid ""
7636 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7637 "human-readable, canonical hex dump of the file."
7638 msgstr ""
7639
7640 #. type: =head2
7641 #: ../fish/guestfish-actions.pod:1660
7642 msgid "initrd-cat"
7643 msgstr ""
7644
7645 #. type: verbatim
7646 #: ../fish/guestfish-actions.pod:1662
7647 #, no-wrap
7648 msgid ""
7649 " initrd-cat initrdpath filename\n"
7650 "\n"
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
7655 msgid ""
7656 "This command unpacks the file C<filename> from the initrd file called "
7657 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7658 "character."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
7663 msgid ""
7664 "For example, in guestfish you could use the following command to examine the "
7665 "boot script (usually called C</init>)  contained in a Linux initrd or "
7666 "initramfs image:"
7667 msgstr ""
7668
7669 #. type: verbatim
7670 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
7671 #, no-wrap
7672 msgid ""
7673 " initrd-cat /boot/initrd-<version>.img init\n"
7674 "\n"
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../fish/guestfish-actions.pod:1674
7679 msgid "See also L</initrd-list>."
7680 msgstr ""
7681
7682 #. type: =head2
7683 #: ../fish/guestfish-actions.pod:1679
7684 msgid "initrd-list"
7685 msgstr ""
7686
7687 #. type: verbatim
7688 #: ../fish/guestfish-actions.pod:1681
7689 #, no-wrap
7690 msgid ""
7691 " initrd-list path\n"
7692 "\n"
7693 msgstr ""
7694
7695 #. type: textblock
7696 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
7697 msgid "This command lists out files contained in an initrd."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
7702 msgid ""
7703 "The files are listed without any initial C</> character.  The files are "
7704 "listed in the order they appear (not necessarily alphabetical).  Directory "
7705 "names are listed as separate items."
7706 msgstr ""
7707
7708 #. type: textblock
7709 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
7710 msgid ""
7711 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7712 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7713 "files)."
7714 msgstr ""
7715
7716 #. type: =head2
7717 #: ../fish/guestfish-actions.pod:1693
7718 msgid "inotify-add-watch"
7719 msgstr ""
7720
7721 #. type: verbatim
7722 #: ../fish/guestfish-actions.pod:1695
7723 #, no-wrap
7724 msgid ""
7725 " inotify-add-watch path mask\n"
7726 "\n"
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
7731 msgid "Watch C<path> for the events listed in C<mask>."
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
7736 msgid ""
7737 "Note that if C<path> is a directory then events within that directory are "
7738 "watched, but this does I<not> happen recursively (in subdirectories)."
7739 msgstr ""
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
7743 msgid ""
7744 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7745 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7746 msgstr ""
7747
7748 #. type: =head2
7749 #: ../fish/guestfish-actions.pod:1707
7750 msgid "inotify-close"
7751 msgstr ""
7752
7753 #. type: verbatim
7754 #: ../fish/guestfish-actions.pod:1709
7755 #, no-wrap
7756 msgid ""
7757 " inotify-close\n"
7758 "\n"
7759 msgstr ""
7760
7761 #. type: textblock
7762 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
7763 msgid ""
7764 "This closes the inotify handle which was previously opened by inotify_init.  "
7765 "It removes all watches, throws away any pending events, and deallocates all "
7766 "resources."
7767 msgstr ""
7768
7769 #. type: =head2
7770 #: ../fish/guestfish-actions.pod:1715
7771 msgid "inotify-files"
7772 msgstr ""
7773
7774 #. type: verbatim
7775 #: ../fish/guestfish-actions.pod:1717
7776 #, no-wrap
7777 msgid ""
7778 " inotify-files\n"
7779 "\n"
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:1719
7784 msgid ""
7785 "This function is a helpful wrapper around L</inotify-read> which just "
7786 "returns a list of pathnames of objects that were touched.  The returned "
7787 "pathnames are sorted and deduplicated."
7788 msgstr ""
7789
7790 #. type: =head2
7791 #: ../fish/guestfish-actions.pod:1723
7792 msgid "inotify-init"
7793 msgstr ""
7794
7795 #. type: verbatim
7796 #: ../fish/guestfish-actions.pod:1725
7797 #, no-wrap
7798 msgid ""
7799 " inotify-init maxevents\n"
7800 "\n"
7801 msgstr ""
7802
7803 #. type: textblock
7804 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
7805 msgid ""
7806 "This command creates a new inotify handle.  The inotify subsystem can be "
7807 "used to notify events which happen to objects in the guest filesystem."
7808 msgstr ""
7809
7810 #. type: textblock
7811 #: ../fish/guestfish-actions.pod:1731
7812 msgid ""
7813 "C<maxevents> is the maximum number of events which will be queued up between "
7814 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7815 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7816 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7817 "but records the fact that it threw them away by setting a flag "
7818 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:1741
7823 msgid ""
7824 "Before any events are generated, you have to add some watches to the "
7825 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7826 "L</inotify-watch-all>."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1747
7831 msgid ""
7832 "Queued up events should be read periodically by calling L</inotify-read> (or "
7833 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7834 "If you don't read the events out often enough then you risk the internal "
7835 "queue overflowing."
7836 msgstr ""
7837
7838 #. type: textblock
7839 #: ../fish/guestfish-actions.pod:1754
7840 msgid ""
7841 "The handle should be closed after use by calling L</inotify-close>.  This "
7842 "also removes any watches automatically."
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
7847 msgid ""
7848 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7849 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7850 "that there is one global inotify handle per libguestfs instance."
7851 msgstr ""
7852
7853 #. type: =head2
7854 #: ../fish/guestfish-actions.pod:1763
7855 msgid "inotify-read"
7856 msgstr ""
7857
7858 #. type: verbatim
7859 #: ../fish/guestfish-actions.pod:1765
7860 #, no-wrap
7861 msgid ""
7862 " inotify-read\n"
7863 "\n"
7864 msgstr ""
7865
7866 #. type: textblock
7867 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
7868 msgid ""
7869 "Return the complete queue of events that have happened since the previous "
7870 "read call."
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
7875 msgid "If no events have happened, this returns an empty list."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
7880 msgid ""
7881 "I<Note>: In order to make sure that all events have been read, you must call "
7882 "this function repeatedly until it returns an empty list.  The reason is that "
7883 "the call will read events up to the maximum appliance-to-host message size "
7884 "and leave remaining events in the queue."
7885 msgstr ""
7886
7887 #. type: =head2
7888 #: ../fish/guestfish-actions.pod:1778
7889 msgid "inotify-rm-watch"
7890 msgstr ""
7891
7892 #. type: verbatim
7893 #: ../fish/guestfish-actions.pod:1780
7894 #, no-wrap
7895 msgid ""
7896 " inotify-rm-watch wd\n"
7897 "\n"
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1782
7902 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7903 msgstr ""
7904
7905 #. type: =head2
7906 #: ../fish/guestfish-actions.pod:1785
7907 msgid "inspect-get-arch"
7908 msgstr ""
7909
7910 #. type: verbatim
7911 #: ../fish/guestfish-actions.pod:1787
7912 #, no-wrap
7913 msgid ""
7914 " inspect-get-arch root\n"
7915 "\n"
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:1789
7920 msgid ""
7921 "This returns the architecture of the inspected operating system.  The "
7922 "possible return values are listed under L</file-architecture>."
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
7927 msgid ""
7928 "If the architecture could not be determined, then the string C<unknown> is "
7929 "returned."
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883 ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119 ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206 ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
7934 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../fish/guestfish-actions.pod:1798
7939 msgid "inspect-get-distro"
7940 msgstr ""
7941
7942 #. type: verbatim
7943 #: ../fish/guestfish-actions.pod:1800
7944 #, no-wrap
7945 msgid ""
7946 " inspect-get-distro root\n"
7947 "\n"
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
7952 msgid "This returns the distro (distribution) of the inspected operating system."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
7957 msgid "Currently defined distros are:"
7958 msgstr ""
7959
7960 #. type: =item
7961 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
7962 msgid "\"archlinux\""
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
7967 msgid "Arch Linux."
7968 msgstr ""
7969
7970 #. type: =item
7971 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
7972 msgid "\"centos\""
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
7977 msgid "CentOS."
7978 msgstr ""
7979
7980 #. type: =item
7981 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
7982 msgid "\"debian\""
7983 msgstr ""
7984
7985 #. type: textblock
7986 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
7987 msgid "Debian."
7988 msgstr ""
7989
7990 #. type: =item
7991 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
7992 msgid "\"fedora\""
7993 msgstr ""
7994
7995 #. type: textblock
7996 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
7997 msgid "Fedora."
7998 msgstr ""
7999
8000 #. type: =item
8001 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8002 msgid "\"gentoo\""
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8007 msgid "Gentoo."
8008 msgstr ""
8009
8010 #. type: =item
8011 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8012 msgid "\"linuxmint\""
8013 msgstr ""
8014
8015 #. type: textblock
8016 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8017 msgid "Linux Mint."
8018 msgstr ""
8019
8020 #. type: =item
8021 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8022 msgid "\"mandriva\""
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8027 msgid "Mandriva."
8028 msgstr ""
8029
8030 #. type: =item
8031 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8032 msgid "\"meego\""
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8037 msgid "MeeGo."
8038 msgstr ""
8039
8040 #. type: =item
8041 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8042 msgid "\"pardus\""
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8047 msgid "Pardus."
8048 msgstr ""
8049
8050 #. type: =item
8051 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8052 msgid "\"redhat-based\""
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8057 msgid "Some Red Hat-derived distro."
8058 msgstr ""
8059
8060 #. type: =item
8061 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8062 msgid "\"rhel\""
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8067 msgid "Red Hat Enterprise Linux."
8068 msgstr ""
8069
8070 #. type: =item
8071 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8072 msgid "\"scientificlinux\""
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8077 msgid "Scientific Linux."
8078 msgstr ""
8079
8080 #. type: =item
8081 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8082 msgid "\"slackware\""
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8087 msgid "Slackware."
8088 msgstr ""
8089
8090 #. type: =item
8091 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8092 msgid "\"ttylinux\""
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8097 msgid "ttylinux."
8098 msgstr ""
8099
8100 #. type: =item
8101 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8102 msgid "\"ubuntu\""
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8107 msgid "Ubuntu."
8108 msgstr ""
8109
8110 #. type: =item
8111 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8112 msgid "\"unknown\""
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8117 msgid "The distro could not be determined."
8118 msgstr ""
8119
8120 #. type: =item
8121 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8122 msgid "\"windows\""
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8127 msgid ""
8128 "Windows does not have distributions.  This string is returned if the OS type "
8129 "is Windows."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8134 msgid ""
8135 "Future versions of libguestfs may return other strings here.  The caller "
8136 "should be prepared to handle any string."
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../fish/guestfish-actions.pod:1885
8141 msgid "inspect-get-drive-mappings"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../fish/guestfish-actions.pod:1887
8146 #, no-wrap
8147 msgid ""
8148 " inspect-get-drive-mappings root\n"
8149 "\n"
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8154 msgid ""
8155 "This call is useful for Windows which uses a primitive system of assigning "
8156 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8157 "Windows Registry to find out how disks/partitions are mapped to drive "
8158 "letters, and returns a hash table as in the example below:"
8159 msgstr ""
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
8163 #, no-wrap
8164 msgid ""
8165 " C      =>     /dev/vda2\n"
8166 " E      =>     /dev/vdb1\n"
8167 " F      =>     /dev/vdc1\n"
8168 "\n"
8169 msgstr ""
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
8173 msgid ""
8174 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8175 "and just contains the drive letter, without the customary colon separator "
8176 "character."
8177 msgstr ""
8178
8179 #. type: textblock
8180 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
8181 msgid ""
8182 "In future we may support other operating systems that also used drive "
8183 "letters, but the keys for those might not be case insensitive and might be "
8184 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8185 "C<h1> etc."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
8190 msgid ""
8191 "For Windows guests, currently only hard drive mappings are returned.  "
8192 "Removable disks (eg. DVD-ROMs) are ignored."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
8197 msgid ""
8198 "For guests that do not use drive mappings, or if the drive mappings could "
8199 "not be determined, this returns an empty hash table."
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:1914
8204 msgid ""
8205 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8206 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
8207 msgstr ""
8208
8209 #. type: =head2
8210 #: ../fish/guestfish-actions.pod:1918
8211 msgid "inspect-get-filesystems"
8212 msgstr ""
8213
8214 #. type: verbatim
8215 #: ../fish/guestfish-actions.pod:1920
8216 #, no-wrap
8217 msgid ""
8218 " inspect-get-filesystems root\n"
8219 "\n"
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
8224 msgid ""
8225 "This returns a list of all the filesystems that we think are associated with "
8226 "this operating system.  This includes the root filesystem, other ordinary "
8227 "filesystems, and non-mounted devices like swap partitions."
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
8232 msgid ""
8233 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8234 "to be shared between operating systems."
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:1930
8239 msgid ""
8240 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8241 "L</inspect-get-mountpoints>."
8242 msgstr ""
8243
8244 #. type: =head2
8245 #: ../fish/guestfish-actions.pod:1933
8246 msgid "inspect-get-format"
8247 msgstr ""
8248
8249 #. type: verbatim
8250 #: ../fish/guestfish-actions.pod:1935
8251 #, no-wrap
8252 msgid ""
8253 " inspect-get-format root\n"
8254 "\n"
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
8259 msgid ""
8260 "This returns the format of the inspected operating system.  You can use it "
8261 "to detect install images, live CDs and similar."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
8266 msgid "Currently defined formats are:"
8267 msgstr ""
8268
8269 #. type: =item
8270 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
8271 msgid "\"installed\""
8272 msgstr ""
8273
8274 #. type: textblock
8275 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
8276 msgid "This is an installed operating system."
8277 msgstr ""
8278
8279 #. type: =item
8280 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
8281 msgid "\"installer\""
8282 msgstr ""
8283
8284 #. type: textblock
8285 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
8286 msgid ""
8287 "The disk image being inspected is not an installed operating system, but a "
8288 "I<bootable> install disk, live CD, or similar."
8289 msgstr ""
8290
8291 #. type: textblock
8292 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
8293 msgid "The format of this disk image is not known."
8294 msgstr ""
8295
8296 #. type: =head2
8297 #: ../fish/guestfish-actions.pod:1964
8298 msgid "inspect-get-hostname"
8299 msgstr ""
8300
8301 #. type: verbatim
8302 #: ../fish/guestfish-actions.pod:1966
8303 #, no-wrap
8304 msgid ""
8305 " inspect-get-hostname root\n"
8306 "\n"
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
8311 msgid ""
8312 "This function returns the hostname of the operating system as found by "
8313 "inspection of the guest's configuration files."
8314 msgstr ""
8315
8316 #. type: textblock
8317 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
8318 msgid ""
8319 "If the hostname could not be determined, then the string C<unknown> is "
8320 "returned."
8321 msgstr ""
8322
8323 #. type: =head2
8324 #: ../fish/guestfish-actions.pod:1976
8325 msgid "inspect-get-icon"
8326 msgstr ""
8327
8328 #. type: verbatim
8329 #: ../fish/guestfish-actions.pod:1978
8330 #, no-wrap
8331 msgid ""
8332 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8333 "\n"
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
8338 msgid ""
8339 "This function returns an icon corresponding to the inspected operating "
8340 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8341 "to PNG if necessary)."
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
8346 msgid ""
8347 "If it was not possible to get an icon this function returns a zero-length "
8348 "(non-NULL) buffer.  I<Callers must check for this case>."
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
8353 msgid ""
8354 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8355 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8356 "this file will be returned.  You can disable favicons by passing the "
8357 "optional C<favicon> boolean as false (default is true)."
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
8362 msgid ""
8363 "If finding the favicon fails, then we look in other places in the guest for "
8364 "a suitable icon."
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
8369 msgid ""
8370 "If the optional C<highquality> boolean is true then only high quality icons "
8371 "are returned, which means only icons of high resolution with an alpha "
8372 "channel.  The default (false) is to return any icon we can, even if it is of "
8373 "substandard quality."
8374 msgstr ""
8375
8376 #. type: textblock
8377 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
8378 msgid ""
8379 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8380 "before you call this, since it needs to read information from the guest "
8381 "filesystem during the call."
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
8386 msgid ""
8387 "B<Security:> The icon data comes from the untrusted guest, and should be "
8388 "treated with caution.  PNG files have been known to contain exploits.  "
8389 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8390 "trying to process or display the icon."
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
8395 msgid ""
8396 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8397 "tries to return the largest, highest quality icon available.  The "
8398 "application must scale the icon to the required size."
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
8403 msgid ""
8404 "Extracting icons from Windows guests requires the external C<wrestool> "
8405 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8406 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8407 "installed separately."
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
8412 msgid ""
8413 "Operating system icons are usually trademarks.  Seek legal advice before "
8414 "using trademarks in applications."
8415 msgstr ""
8416
8417 #. type: =head2
8418 #: ../fish/guestfish-actions.pod:2042
8419 msgid "inspect-get-major-version"
8420 msgstr ""
8421
8422 #. type: verbatim
8423 #: ../fish/guestfish-actions.pod:2044
8424 #, no-wrap
8425 msgid ""
8426 " inspect-get-major-version root\n"
8427 "\n"
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
8432 msgid "This returns the major version number of the inspected operating system."
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
8437 msgid ""
8438 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8439 "popular public names used by the operating system.  Notably the operating "
8440 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8441 "1).  You can find out the real versions corresponding to releases of Windows "
8442 "by consulting Wikipedia or MSDN."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
8447 msgid "If the version could not be determined, then C<0> is returned."
8448 msgstr ""
8449
8450 #. type: =head2
8451 #: ../fish/guestfish-actions.pod:2060
8452 msgid "inspect-get-minor-version"
8453 msgstr ""
8454
8455 #. type: verbatim
8456 #: ../fish/guestfish-actions.pod:2062
8457 #, no-wrap
8458 msgid ""
8459 " inspect-get-minor-version root\n"
8460 "\n"
8461 msgstr ""
8462
8463 #. type: textblock
8464 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
8465 msgid "This returns the minor version number of the inspected operating system."
8466 msgstr ""
8467
8468 #. type: textblock
8469 #: ../fish/guestfish-actions.pod:2069
8470 msgid ""
8471 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8472 "L</inspect-get-major-version>."
8473 msgstr ""
8474
8475 #. type: =head2
8476 #: ../fish/guestfish-actions.pod:2072
8477 msgid "inspect-get-mountpoints"
8478 msgstr ""
8479
8480 #. type: verbatim
8481 #: ../fish/guestfish-actions.pod:2074
8482 #, no-wrap
8483 msgid ""
8484 " inspect-get-mountpoints root\n"
8485 "\n"
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
8490 msgid ""
8491 "This returns a hash of where we think the filesystems associated with this "
8492 "operating system should be mounted.  Callers should note that this is at "
8493 "best an educated guess made by reading configuration files such as "
8494 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
8495 "are non-existent or not mountable and callers should be prepared to handle "
8496 "or ignore failures if they try to mount them."
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
8501 msgid ""
8502 "Each element in the returned hashtable has a key which is the path of the "
8503 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8504 "mounted there (eg. C</dev/sda1>)."
8505 msgstr ""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
8509 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:2093
8514 msgid ""
8515 "For operating systems like Windows which still use drive letters, this call "
8516 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8517 "information about the mapping of drive letters to partitions, see "
8518 "L</inspect-get-drive-mappings>."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:2099
8523 msgid ""
8524 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8525 "L</inspect-get-filesystems>."
8526 msgstr ""
8527
8528 #. type: =head2
8529 #: ../fish/guestfish-actions.pod:2102
8530 msgid "inspect-get-package-format"
8531 msgstr ""
8532
8533 #. type: verbatim
8534 #: ../fish/guestfish-actions.pod:2104
8535 #, no-wrap
8536 msgid ""
8537 " inspect-get-package-format root\n"
8538 "\n"
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:2106
8543 msgid ""
8544 "This function and L</inspect-get-package-management> return the package "
8545 "format and package management tool used by the inspected operating system.  "
8546 "For example for Fedora these functions would return C<rpm> (package format) "
8547 "and C<yum> (package management)."
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
8552 msgid ""
8553 "This returns the string C<unknown> if we could not determine the package "
8554 "format I<or> if the operating system does not have a real packaging system "
8555 "(eg. Windows)."
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
8560 msgid ""
8561 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8562 "Future versions of libguestfs may return other strings."
8563 msgstr ""
8564
8565 #. type: =head2
8566 #: ../fish/guestfish-actions.pod:2121
8567 msgid "inspect-get-package-management"
8568 msgstr ""
8569
8570 #. type: verbatim
8571 #: ../fish/guestfish-actions.pod:2123
8572 #, no-wrap
8573 msgid ""
8574 " inspect-get-package-management root\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2125
8580 msgid ""
8581 "L</inspect-get-package-format> and this function return the package format "
8582 "and package management tool used by the inspected operating system.  For "
8583 "example for Fedora these functions would return C<rpm> (package format) and "
8584 "C<yum> (package management)."
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
8589 msgid ""
8590 "This returns the string C<unknown> if we could not determine the package "
8591 "management tool I<or> if the operating system does not have a real packaging "
8592 "system (eg. Windows)."
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
8597 msgid ""
8598 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8599 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8600 "libguestfs may return other strings."
8601 msgstr ""
8602
8603 #. type: =head2
8604 #: ../fish/guestfish-actions.pod:2142
8605 msgid "inspect-get-product-name"
8606 msgstr ""
8607
8608 #. type: verbatim
8609 #: ../fish/guestfish-actions.pod:2144
8610 #, no-wrap
8611 msgid ""
8612 " inspect-get-product-name root\n"
8613 "\n"
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
8618 msgid ""
8619 "This returns the product name of the inspected operating system.  The "
8620 "product name is generally some freeform string which can be displayed to the "
8621 "user, but should not be parsed by programs."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
8626 msgid ""
8627 "If the product name could not be determined, then the string C<unknown> is "
8628 "returned."
8629 msgstr ""
8630
8631 #. type: =head2
8632 #: ../fish/guestfish-actions.pod:2156
8633 msgid "inspect-get-product-variant"
8634 msgstr ""
8635
8636 #. type: verbatim
8637 #: ../fish/guestfish-actions.pod:2158
8638 #, no-wrap
8639 msgid ""
8640 " inspect-get-product-variant root\n"
8641 "\n"
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
8646 msgid "This returns the product variant of the inspected operating system."
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
8651 msgid ""
8652 "For Windows guests, this returns the contents of the Registry key "
8653 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8654 "which is usually a string such as C<Client> or C<Server> (other values are "
8655 "possible).  This can be used to distinguish consumer and enterprise versions "
8656 "of Windows that have the same version number (for example, Windows 7 and "
8657 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8658 "the latter is C<Server>)."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
8663 msgid ""
8664 "For enterprise Linux guests, in future we intend this to return the product "
8665 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8666 "implemented at present."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
8671 msgid ""
8672 "If the product variant could not be determined, then the string C<unknown> "
8673 "is returned."
8674 msgstr ""
8675
8676 #. type: textblock
8677 #: ../fish/guestfish-actions.pod:2179
8678 msgid ""
8679 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8680 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8681 msgstr ""
8682
8683 #. type: =head2
8684 #: ../fish/guestfish-actions.pod:2183
8685 msgid "inspect-get-roots"
8686 msgstr ""
8687
8688 #. type: verbatim
8689 #: ../fish/guestfish-actions.pod:2185
8690 #, no-wrap
8691 msgid ""
8692 " inspect-get-roots\n"
8693 "\n"
8694 msgstr ""
8695
8696 #. type: textblock
8697 #: ../fish/guestfish-actions.pod:2187
8698 msgid ""
8699 "This function is a convenient way to get the list of root devices, as "
8700 "returned from a previous call to L</inspect-os>, but without redoing the "
8701 "whole inspection process."
8702 msgstr ""
8703
8704 #. type: textblock
8705 #: ../fish/guestfish-actions.pod:2191
8706 msgid ""
8707 "This returns an empty list if either no root devices were found or the "
8708 "caller has not called L</inspect-os>."
8709 msgstr ""
8710
8711 #. type: =head2
8712 #: ../fish/guestfish-actions.pod:2196
8713 msgid "inspect-get-type"
8714 msgstr ""
8715
8716 #. type: verbatim
8717 #: ../fish/guestfish-actions.pod:2198
8718 #, no-wrap
8719 msgid ""
8720 " inspect-get-type root\n"
8721 "\n"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
8726 msgid ""
8727 "This returns the type of the inspected operating system.  Currently defined "
8728 "types are:"
8729 msgstr ""
8730
8731 #. type: =item
8732 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
8733 msgid "\"linux\""
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
8738 msgid "Any Linux-based operating system."
8739 msgstr ""
8740
8741 #. type: textblock
8742 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
8743 msgid "Any Microsoft Windows operating system."
8744 msgstr ""
8745
8746 #. type: =item
8747 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
8748 msgid "\"freebsd\""
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
8753 msgid "FreeBSD."
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
8758 msgid "The operating system type could not be determined."
8759 msgstr ""
8760
8761 #. type: =head2
8762 #: ../fish/guestfish-actions.pod:2228
8763 msgid "inspect-get-windows-current-control-set"
8764 msgstr ""
8765
8766 #. type: verbatim
8767 #: ../fish/guestfish-actions.pod:2230
8768 #, no-wrap
8769 msgid ""
8770 " inspect-get-windows-current-control-set root\n"
8771 "\n"
8772 msgstr ""
8773
8774 #. type: textblock
8775 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
8776 msgid ""
8777 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8778 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
8783 msgid ""
8784 "This call assumes that the guest is Windows and that the Registry could be "
8785 "examined by inspection.  If this is not the case then an error is returned."
8786 msgstr ""
8787
8788 #. type: =head2
8789 #: ../fish/guestfish-actions.pod:2241
8790 msgid "inspect-get-windows-systemroot"
8791 msgstr ""
8792
8793 #. type: verbatim
8794 #: ../fish/guestfish-actions.pod:2243
8795 #, no-wrap
8796 msgid ""
8797 " inspect-get-windows-systemroot root\n"
8798 "\n"
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
8803 msgid ""
8804 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8805 "is a directory path such as C</WINDOWS>."
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
8810 msgid ""
8811 "This call assumes that the guest is Windows and that the systemroot could be "
8812 "determined by inspection.  If this is not the case then an error is "
8813 "returned."
8814 msgstr ""
8815
8816 #. type: =head2
8817 #: ../fish/guestfish-actions.pod:2254
8818 msgid "inspect-is-live"
8819 msgstr ""
8820
8821 #. type: verbatim
8822 #: ../fish/guestfish-actions.pod:2256
8823 #, no-wrap
8824 msgid ""
8825 " inspect-is-live root\n"
8826 "\n"
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:2258
8831 msgid ""
8832 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8833 "then this returns true if a live image was detected on the disk."
8834 msgstr ""
8835
8836 #. type: =head2
8837 #: ../fish/guestfish-actions.pod:2264
8838 msgid "inspect-is-multipart"
8839 msgstr ""
8840
8841 #. type: verbatim
8842 #: ../fish/guestfish-actions.pod:2266
8843 #, no-wrap
8844 msgid ""
8845 " inspect-is-multipart root\n"
8846 "\n"
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:2268
8851 msgid ""
8852 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8853 "then this returns true if the disk is part of a set."
8854 msgstr ""
8855
8856 #. type: =head2
8857 #: ../fish/guestfish-actions.pod:2274
8858 msgid "inspect-is-netinst"
8859 msgstr ""
8860
8861 #. type: verbatim
8862 #: ../fish/guestfish-actions.pod:2276
8863 #, no-wrap
8864 msgid ""
8865 " inspect-is-netinst root\n"
8866 "\n"
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:2278
8871 msgid ""
8872 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8873 "then this returns true if the disk is a network installer, ie. not a "
8874 "self-contained install CD but one which is likely to require network access "
8875 "to complete the install."
8876 msgstr ""
8877
8878 #. type: =head2
8879 #: ../fish/guestfish-actions.pod:2286
8880 msgid "inspect-list-applications"
8881 msgstr ""
8882
8883 #. type: verbatim
8884 #: ../fish/guestfish-actions.pod:2288
8885 #, no-wrap
8886 msgid ""
8887 " inspect-list-applications root\n"
8888 "\n"
8889 msgstr ""
8890
8891 #. type: textblock
8892 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
8893 msgid "Return the list of applications installed in the operating system."
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:2292
8898 msgid ""
8899 "I<Note:> This call works differently from other parts of the inspection "
8900 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8901 "then mount up the disks, before calling this.  Listing applications is a "
8902 "significantly more difficult operation which requires access to the full "
8903 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8904 "are just returning data cached in the libguestfs handle, this call actually "
8905 "reads parts of the mounted filesystems during the call."
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
8910 msgid ""
8911 "This returns an empty list if the inspection code was not able to determine "
8912 "the list of applications."
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
8917 msgid "The application structure contains the following fields:"
8918 msgstr ""
8919
8920 #. type: =item
8921 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
8922 msgid "C<app_name>"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
8927 msgid ""
8928 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8929 "guests, this is the package name."
8930 msgstr ""
8931
8932 #. type: =item
8933 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
8934 msgid "C<app_display_name>"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
8939 msgid ""
8940 "The display name of the application, sometimes localized to the install "
8941 "language of the guest operating system."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
8946 msgid ""
8947 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8948 "to display something can use C<app_name> instead."
8949 msgstr ""
8950
8951 #. type: =item
8952 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
8953 msgid "C<app_epoch>"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
8958 msgid ""
8959 "For package managers which use epochs, this contains the epoch of the "
8960 "package (an integer).  If unavailable, this is returned as C<0>."
8961 msgstr ""
8962
8963 #. type: =item
8964 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
8965 msgid "C<app_version>"
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
8970 msgid ""
8971 "The version string of the application or package.  If unavailable this is "
8972 "returned as an empty string C<\"\">."
8973 msgstr ""
8974
8975 #. type: =item
8976 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
8977 msgid "C<app_release>"
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
8982 msgid ""
8983 "The release string of the application or package, for package managers that "
8984 "use this.  If unavailable this is returned as an empty string C<\"\">."
8985 msgstr ""
8986
8987 #. type: =item
8988 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
8989 msgid "C<app_install_path>"
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
8994 msgid ""
8995 "The installation path of the application (on operating systems such as "
8996 "Windows which use installation paths).  This path is in the format used by "
8997 "the guest operating system, it is not a libguestfs path."
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9002 msgid "If unavailable this is returned as an empty string C<\"\">."
9003 msgstr ""
9004
9005 #. type: =item
9006 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9007 msgid "C<app_trans_path>"
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9012 msgid ""
9013 "The install path translated into a libguestfs path.  If unavailable this is "
9014 "returned as an empty string C<\"\">."
9015 msgstr ""
9016
9017 #. type: =item
9018 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9019 msgid "C<app_publisher>"
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9024 msgid ""
9025 "The name of the publisher of the application, for package managers that use "
9026 "this.  If unavailable this is returned as an empty string C<\"\">."
9027 msgstr ""
9028
9029 #. type: =item
9030 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9031 msgid "C<app_url>"
9032 msgstr ""
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9036 msgid ""
9037 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9038 "returned as an empty string C<\"\">."
9039 msgstr ""
9040
9041 #. type: =item
9042 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9043 msgid "C<app_source_package>"
9044 msgstr ""
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9048 msgid ""
9049 "For packaging systems which support this, the name of the source package.  "
9050 "If unavailable this is returned as an empty string C<\"\">."
9051 msgstr ""
9052
9053 #. type: =item
9054 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9055 msgid "C<app_summary>"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9060 msgid ""
9061 "A short (usually one line) description of the application or package.  If "
9062 "unavailable this is returned as an empty string C<\"\">."
9063 msgstr ""
9064
9065 #. type: =item
9066 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9067 msgid "C<app_description>"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9072 msgid ""
9073 "A longer description of the application or package.  If unavailable this is "
9074 "returned as an empty string C<\"\">."
9075 msgstr ""
9076
9077 #. type: =head2
9078 #: ../fish/guestfish-actions.pod:2382
9079 msgid "inspect-os"
9080 msgstr ""
9081
9082 #. type: verbatim
9083 #: ../fish/guestfish-actions.pod:2384
9084 #, no-wrap
9085 msgid ""
9086 " inspect-os\n"
9087 "\n"
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9092 msgid ""
9093 "This function uses other libguestfs functions and certain heuristics to "
9094 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9095 "for operating systems."
9096 msgstr ""
9097
9098 #. type: textblock
9099 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9100 msgid "The list returned is empty if no operating systems were found."
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9105 msgid ""
9106 "If one operating system was found, then this returns a list with a single "
9107 "element, which is the name of the root filesystem of this operating system.  "
9108 "It is also possible for this function to return a list containing more than "
9109 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9110 "element being the root filesystem of one of the operating systems."
9111 msgstr ""
9112
9113 #. type: textblock
9114 #: ../fish/guestfish-actions.pod:2399
9115 msgid ""
9116 "You can pass the root string(s) returned to other L</inspect-get-*> "
9117 "functions in order to query further information about each operating system, "
9118 "such as the name and version."
9119 msgstr ""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:2404
9123 msgid ""
9124 "This function uses other libguestfs features such as L</mount-ro> and "
9125 "L</umount-all> in order to mount and unmount filesystems and look at the "
9126 "contents.  This should be called with no disks currently mounted.  The "
9127 "function may also use Augeas, so any existing Augeas handle will be closed."
9128 msgstr ""
9129
9130 #. type: textblock
9131 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
9132 msgid ""
9133 "This function cannot decrypt encrypted disks.  The caller must do that first "
9134 "(supplying the necessary keys) if the disk is encrypted."
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614 ../fish/guestfish-actions.pod:2673
9139 msgid "See also L</list-filesystems>."
9140 msgstr ""
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:2418
9144 msgid "is-blockdev"
9145 msgstr ""
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:2420
9149 #, no-wrap
9150 msgid ""
9151 " is-blockdev path\n"
9152 "\n"
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
9157 msgid ""
9158 "This returns C<true> if and only if there is a block device with the given "
9159 "C<path> name."
9160 msgstr ""
9161
9162 #. type: textblock
9163 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471 ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:2524
9164 msgid "See also L</stat>."
9165 msgstr ""
9166
9167 #. type: =head2
9168 #: ../fish/guestfish-actions.pod:2427
9169 msgid "is-busy"
9170 msgstr ""
9171
9172 #. type: verbatim
9173 #: ../fish/guestfish-actions.pod:2429
9174 #, no-wrap
9175 msgid ""
9176 " is-busy\n"
9177 "\n"
9178 msgstr ""
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
9182 msgid ""
9183 "This returns true iff this handle is busy processing a command (in the "
9184 "C<BUSY> state)."
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:2436
9189 msgid "is-chardev"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:2438
9194 #, no-wrap
9195 msgid ""
9196 " is-chardev path\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
9202 msgid ""
9203 "This returns C<true> if and only if there is a character device with the "
9204 "given C<path> name."
9205 msgstr ""
9206
9207 #. type: =head2
9208 #: ../fish/guestfish-actions.pod:2445
9209 msgid "is-config"
9210 msgstr ""
9211
9212 #. type: verbatim
9213 #: ../fish/guestfish-actions.pod:2447
9214 #, no-wrap
9215 msgid ""
9216 " is-config\n"
9217 "\n"
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
9222 msgid ""
9223 "This returns true iff this handle is being configured (in the C<CONFIG> "
9224 "state)."
9225 msgstr ""
9226
9227 #. type: =head2
9228 #: ../fish/guestfish-actions.pod:2454
9229 msgid "is-dir"
9230 msgstr ""
9231
9232 #. type: verbatim
9233 #: ../fish/guestfish-actions.pod:2456
9234 #, no-wrap
9235 msgid ""
9236 " is-dir path\n"
9237 "\n"
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
9242 msgid ""
9243 "This returns C<true> if and only if there is a directory with the given "
9244 "C<path> name.  Note that it returns false for other objects like files."
9245 msgstr ""
9246
9247 #. type: =head2
9248 #: ../fish/guestfish-actions.pod:2464
9249 msgid "is-fifo"
9250 msgstr ""
9251
9252 #. type: verbatim
9253 #: ../fish/guestfish-actions.pod:2466
9254 #, no-wrap
9255 msgid ""
9256 " is-fifo path\n"
9257 "\n"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
9262 msgid ""
9263 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9264 "given C<path> name."
9265 msgstr ""
9266
9267 #. type: =head2
9268 #: ../fish/guestfish-actions.pod:2473
9269 msgid "is-file"
9270 msgstr ""
9271
9272 #. type: verbatim
9273 #: ../fish/guestfish-actions.pod:2475
9274 #, no-wrap
9275 msgid ""
9276 " is-file path\n"
9277 "\n"
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
9282 msgid ""
9283 "This returns C<true> if and only if there is a regular file with the given "
9284 "C<path> name.  Note that it returns false for other objects like "
9285 "directories."
9286 msgstr ""
9287
9288 #. type: =head2
9289 #: ../fish/guestfish-actions.pod:2483
9290 msgid "is-launching"
9291 msgstr ""
9292
9293 #. type: verbatim
9294 #: ../fish/guestfish-actions.pod:2485
9295 #, no-wrap
9296 msgid ""
9297 " is-launching\n"
9298 "\n"
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
9303 msgid ""
9304 "This returns true iff this handle is launching the subprocess (in the "
9305 "C<LAUNCHING> state)."
9306 msgstr ""
9307
9308 #. type: =head2
9309 #: ../fish/guestfish-actions.pod:2492
9310 msgid "is-lv"
9311 msgstr ""
9312
9313 #. type: verbatim
9314 #: ../fish/guestfish-actions.pod:2494
9315 #, no-wrap
9316 msgid ""
9317 " is-lv device\n"
9318 "\n"
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
9323 msgid ""
9324 "This command tests whether C<device> is a logical volume, and returns true "
9325 "iff this is the case."
9326 msgstr ""
9327
9328 #. type: =head2
9329 #: ../fish/guestfish-actions.pod:2499
9330 msgid "is-ready"
9331 msgstr ""
9332
9333 #. type: verbatim
9334 #: ../fish/guestfish-actions.pod:2501
9335 #, no-wrap
9336 msgid ""
9337 " is-ready\n"
9338 "\n"
9339 msgstr ""
9340
9341 #. type: textblock
9342 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
9343 msgid ""
9344 "This returns true iff this handle is ready to accept commands (in the "
9345 "C<READY> state)."
9346 msgstr ""
9347
9348 #. type: =head2
9349 #: ../fish/guestfish-actions.pod:2508
9350 msgid "is-socket"
9351 msgstr ""
9352
9353 #. type: verbatim
9354 #: ../fish/guestfish-actions.pod:2510
9355 #, no-wrap
9356 msgid ""
9357 " is-socket path\n"
9358 "\n"
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
9363 msgid ""
9364 "This returns C<true> if and only if there is a Unix domain socket with the "
9365 "given C<path> name."
9366 msgstr ""
9367
9368 #. type: =head2
9369 #: ../fish/guestfish-actions.pod:2517
9370 msgid "is-symlink"
9371 msgstr ""
9372
9373 #. type: verbatim
9374 #: ../fish/guestfish-actions.pod:2519
9375 #, no-wrap
9376 msgid ""
9377 " is-symlink path\n"
9378 "\n"
9379 msgstr ""
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
9383 msgid ""
9384 "This returns C<true> if and only if there is a symbolic link with the given "
9385 "C<path> name."
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../fish/guestfish-actions.pod:2526
9390 msgid "is-zero"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:2528
9395 #, no-wrap
9396 msgid ""
9397 " is-zero path\n"
9398 "\n"
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
9403 msgid ""
9404 "This returns true iff the file exists and the file is empty or it contains "
9405 "all zero bytes."
9406 msgstr ""
9407
9408 #. type: =head2
9409 #: ../fish/guestfish-actions.pod:2533
9410 msgid "is-zero-device"
9411 msgstr ""
9412
9413 #. type: verbatim
9414 #: ../fish/guestfish-actions.pod:2535
9415 #, no-wrap
9416 msgid ""
9417 " is-zero-device device\n"
9418 "\n"
9419 msgstr ""
9420
9421 #. type: textblock
9422 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
9423 msgid "This returns true iff the device exists and contains all zero bytes."
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
9428 msgid "Note that for large devices this can take a long time to run."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:2541
9433 msgid "kill-subprocess"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2543
9438 #, no-wrap
9439 msgid ""
9440 " kill-subprocess\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
9446 msgid "This kills the qemu subprocess.  You should never need to call this."
9447 msgstr ""
9448
9449 #. type: =head2
9450 #: ../fish/guestfish-actions.pod:2547
9451 msgid "launch"
9452 msgstr ""
9453
9454 #. type: =head2
9455 #: ../fish/guestfish-actions.pod:2549
9456 msgid "run"
9457 msgstr ""
9458
9459 #. type: verbatim
9460 #: ../fish/guestfish-actions.pod:2551
9461 #, no-wrap
9462 msgid ""
9463 " launch\n"
9464 "\n"
9465 msgstr ""
9466
9467 #. type: textblock
9468 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
9469 msgid ""
9470 "Internally libguestfs is implemented by running a virtual machine using "
9471 "L<qemu(1)>."
9472 msgstr ""
9473
9474 #. type: textblock
9475 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
9476 msgid ""
9477 "You should call this after configuring the handle (eg. adding drives) but "
9478 "before performing any actions."
9479 msgstr ""
9480
9481 #. type: =head2
9482 #: ../fish/guestfish-actions.pod:2559
9483 msgid "lchown"
9484 msgstr ""
9485
9486 #. type: verbatim
9487 #: ../fish/guestfish-actions.pod:2561
9488 #, no-wrap
9489 msgid ""
9490 " lchown owner group path\n"
9491 "\n"
9492 msgstr ""
9493
9494 #. type: textblock
9495 #: ../fish/guestfish-actions.pod:2563
9496 msgid ""
9497 "Change the file owner to C<owner> and group to C<group>.  This is like "
9498 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
9499 "the target."
9500 msgstr ""
9501
9502 #. type: =head2
9503 #: ../fish/guestfish-actions.pod:2571
9504 msgid "lgetxattr"
9505 msgstr ""
9506
9507 #. type: verbatim
9508 #: ../fish/guestfish-actions.pod:2573
9509 #, no-wrap
9510 msgid ""
9511 " lgetxattr path name\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
9517 msgid ""
9518 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9519 "is a symlink, then this call returns an extended attribute from the symlink."
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:2589
9524 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9525 msgstr ""
9526
9527 #. type: =head2
9528 #: ../fish/guestfish-actions.pod:2591
9529 msgid "lgetxattrs"
9530 msgstr ""
9531
9532 #. type: verbatim
9533 #: ../fish/guestfish-actions.pod:2593
9534 #, no-wrap
9535 msgid ""
9536 " lgetxattrs path\n"
9537 "\n"
9538 msgstr ""
9539
9540 #. type: textblock
9541 #: ../fish/guestfish-actions.pod:2595
9542 msgid ""
9543 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9544 "it returns the extended attributes of the link itself."
9545 msgstr ""
9546
9547 #. type: =head2
9548 #: ../fish/guestfish-actions.pod:2599
9549 msgid "list-9p"
9550 msgstr ""
9551
9552 #. type: verbatim
9553 #: ../fish/guestfish-actions.pod:2601
9554 #, no-wrap
9555 msgid ""
9556 " list-9p\n"
9557 "\n"
9558 msgstr ""
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
9562 msgid ""
9563 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9564 "returned."
9565 msgstr ""
9566
9567 #. type: =head2
9568 #: ../fish/guestfish-actions.pod:2606
9569 msgid "list-devices"
9570 msgstr ""
9571
9572 #. type: verbatim
9573 #: ../fish/guestfish-actions.pod:2608
9574 #, no-wrap
9575 msgid ""
9576 " list-devices\n"
9577 "\n"
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
9582 msgid "List all the block devices."
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
9587 msgid "The full block device names are returned, eg. C</dev/sda>."
9588 msgstr ""
9589
9590 #. type: =head2
9591 #: ../fish/guestfish-actions.pod:2616
9592 msgid "list-dm-devices"
9593 msgstr ""
9594
9595 #. type: verbatim
9596 #: ../fish/guestfish-actions.pod:2618
9597 #, no-wrap
9598 msgid ""
9599 " list-dm-devices\n"
9600 "\n"
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
9605 msgid "List all device mapper devices."
9606 msgstr ""
9607
9608 #. type: textblock
9609 #: ../fish/guestfish-actions.pod:2622
9610 msgid ""
9611 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9612 "previous call to L</luks-open>."
9613 msgstr ""
9614
9615 #. type: textblock
9616 #: ../fish/guestfish-actions.pod:2625
9617 msgid ""
9618 "Device mapper devices which correspond to logical volumes are I<not> "
9619 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9620 msgstr ""
9621
9622 #. type: =head2
9623 #: ../fish/guestfish-actions.pod:2629
9624 msgid "list-filesystems"
9625 msgstr ""
9626
9627 #. type: verbatim
9628 #: ../fish/guestfish-actions.pod:2631
9629 #, no-wrap
9630 msgid ""
9631 " list-filesystems\n"
9632 "\n"
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
9637 msgid ""
9638 "This inspection command looks for filesystems on partitions, block devices "
9639 "and logical volumes, returning a list of devices containing filesystems and "
9640 "their type."
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
9645 msgid ""
9646 "The return value is a hash, where the keys are the devices containing "
9647 "filesystems, and the values are the filesystem types.  For example:"
9648 msgstr ""
9649
9650 #. type: verbatim
9651 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
9652 #, no-wrap
9653 msgid ""
9654 " \"/dev/sda1\" => \"ntfs\"\n"
9655 " \"/dev/sda2\" => \"ext2\"\n"
9656 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9657 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9658 "\n"
9659 msgstr ""
9660
9661 #. type: textblock
9662 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
9663 msgid ""
9664 "The value can have the special value \"unknown\", meaning the content of the "
9665 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9666 msgstr ""
9667
9668 #. type: textblock
9669 #: ../fish/guestfish-actions.pod:2650
9670 msgid ""
9671 "This command runs other libguestfs commands, which might include L</mount> "
9672 "and L</umount>, and therefore you should use this soon after launch and only "
9673 "when nothing is mounted."
9674 msgstr ""
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:2654
9678 msgid ""
9679 "Not all of the filesystems returned will be mountable.  In particular, swap "
9680 "partitions are returned in the list.  Also this command does not check that "
9681 "each filesystem found is valid and mountable, and some filesystems might be "
9682 "mountable but require special options.  Filesystems may not all belong to a "
9683 "single logical operating system (use L</inspect-os> to look for OSes)."
9684 msgstr ""
9685
9686 #. type: =head2
9687 #: ../fish/guestfish-actions.pod:2662
9688 msgid "list-partitions"
9689 msgstr ""
9690
9691 #. type: verbatim
9692 #: ../fish/guestfish-actions.pod:2664
9693 #, no-wrap
9694 msgid ""
9695 " list-partitions\n"
9696 "\n"
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
9701 msgid "List all the partitions detected on all block devices."
9702 msgstr ""
9703
9704 #. type: textblock
9705 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
9706 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:2670
9711 msgid ""
9712 "This does not return logical volumes.  For that you will need to call "
9713 "L</lvs>."
9714 msgstr ""
9715
9716 #. type: =head2
9717 #: ../fish/guestfish-actions.pod:2675
9718 msgid "ll"
9719 msgstr ""
9720
9721 #. type: verbatim
9722 #: ../fish/guestfish-actions.pod:2677
9723 #, no-wrap
9724 msgid ""
9725 " ll directory\n"
9726 "\n"
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
9731 msgid ""
9732 "List the files in C<directory> (relative to the root directory, there is no "
9733 "cwd) in the format of 'ls -la'."
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
9738 msgid ""
9739 "This command is mostly useful for interactive sessions.  It is I<not> "
9740 "intended that you try to parse the output string."
9741 msgstr ""
9742
9743 #. type: =head2
9744 #: ../fish/guestfish-actions.pod:2685
9745 msgid "ln"
9746 msgstr ""
9747
9748 #. type: verbatim
9749 #: ../fish/guestfish-actions.pod:2687
9750 #, no-wrap
9751 msgid ""
9752 " ln target linkname\n"
9753 "\n"
9754 msgstr ""
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
9758 msgid "This command creates a hard link using the C<ln> command."
9759 msgstr ""
9760
9761 #. type: =head2
9762 #: ../fish/guestfish-actions.pod:2691
9763 msgid "ln-f"
9764 msgstr ""
9765
9766 #. type: verbatim
9767 #: ../fish/guestfish-actions.pod:2693
9768 #, no-wrap
9769 msgid ""
9770 " ln-f target linkname\n"
9771 "\n"
9772 msgstr ""
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
9776 msgid ""
9777 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9778 "option removes the link (C<linkname>) if it exists already."
9779 msgstr ""
9780
9781 #. type: =head2
9782 #: ../fish/guestfish-actions.pod:2698
9783 msgid "ln-s"
9784 msgstr ""
9785
9786 #. type: verbatim
9787 #: ../fish/guestfish-actions.pod:2700
9788 #, no-wrap
9789 msgid ""
9790 " ln-s target linkname\n"
9791 "\n"
9792 msgstr ""
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
9796 msgid "This command creates a symbolic link using the C<ln -s> command."
9797 msgstr ""
9798
9799 #. type: =head2
9800 #: ../fish/guestfish-actions.pod:2704
9801 msgid "ln-sf"
9802 msgstr ""
9803
9804 #. type: verbatim
9805 #: ../fish/guestfish-actions.pod:2706
9806 #, no-wrap
9807 msgid ""
9808 " ln-sf target linkname\n"
9809 "\n"
9810 msgstr ""
9811
9812 #. type: textblock
9813 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
9814 msgid ""
9815 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9816 "option removes the link (C<linkname>) if it exists already."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:2711
9821 msgid "lremovexattr"
9822 msgstr ""
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:2713
9826 #, no-wrap
9827 msgid ""
9828 " lremovexattr xattr path\n"
9829 "\n"
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:2715
9834 msgid ""
9835 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9836 "it removes an extended attribute of the link itself."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:2719
9841 msgid "ls"
9842 msgstr ""
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:2721
9846 #, no-wrap
9847 msgid ""
9848 " ls directory\n"
9849 "\n"
9850 msgstr ""
9851
9852 #. type: textblock
9853 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
9854 msgid ""
9855 "List the files in C<directory> (relative to the root directory, there is no "
9856 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9857 "shown."
9858 msgstr ""
9859
9860 #. type: textblock
9861 #: ../fish/guestfish-actions.pod:2727
9862 msgid ""
9863 "This command is mostly useful for interactive sessions.  Programs should "
9864 "probably use L</readdir> instead."
9865 msgstr ""
9866
9867 #. type: =head2
9868 #: ../fish/guestfish-actions.pod:2730
9869 msgid "lsetxattr"
9870 msgstr ""
9871
9872 #. type: verbatim
9873 #: ../fish/guestfish-actions.pod:2732
9874 #, no-wrap
9875 msgid ""
9876 " lsetxattr xattr val vallen path\n"
9877 "\n"
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2734
9882 msgid ""
9883 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9884 "sets an extended attribute of the link itself."
9885 msgstr ""
9886
9887 #. type: =head2
9888 #: ../fish/guestfish-actions.pod:2738
9889 msgid "lstat"
9890 msgstr ""
9891
9892 #. type: verbatim
9893 #: ../fish/guestfish-actions.pod:2740
9894 #, no-wrap
9895 msgid ""
9896 " lstat path\n"
9897 "\n"
9898 msgstr ""
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
9902 msgid "Returns file information for the given C<path>."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:2744
9907 msgid ""
9908 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9909 "the link is stat-ed, not the file it refers to."
9910 msgstr ""
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
9914 msgid "This is the same as the C<lstat(2)> system call."
9915 msgstr ""
9916
9917 #. type: =head2
9918 #: ../fish/guestfish-actions.pod:2750
9919 msgid "lstatlist"
9920 msgstr ""
9921
9922 #. type: verbatim
9923 #: ../fish/guestfish-actions.pod:2752
9924 #, no-wrap
9925 msgid ""
9926 " lstatlist path 'names ...'\n"
9927 "\n"
9928 msgstr ""
9929
9930 #. type: textblock
9931 #: ../fish/guestfish-actions.pod:2754
9932 msgid ""
9933 "This call allows you to perform the L</lstat> operation on multiple files, "
9934 "where all files are in the directory C<path>.  C<names> is the list of files "
9935 "from this directory."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
9940 msgid ""
9941 "On return you get a list of stat structs, with a one-to-one correspondence "
9942 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9943 "then the C<ino> field of that structure is set to C<-1>."
9944 msgstr ""
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:2763
9948 msgid ""
9949 "This call is intended for programs that want to efficiently list a directory "
9950 "contents without making many round-trips.  See also L</lxattrlist> for a "
9951 "similarly efficient call for getting extended attributes.  Very long "
9952 "directory listings might cause the protocol message size to be exceeded, "
9953 "causing this call to fail.  The caller must split up such requests into "
9954 "smaller groups of names."
9955 msgstr ""
9956
9957 #. type: =head2
9958 #: ../fish/guestfish-actions.pod:2771
9959 msgid "luks-add-key"
9960 msgstr ""
9961
9962 #. type: verbatim
9963 #: ../fish/guestfish-actions.pod:2773
9964 #, no-wrap
9965 msgid ""
9966 " luks-add-key device keyslot\n"
9967 "\n"
9968 msgstr ""
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
9972 msgid ""
9973 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9974 "existing key, and is used to access the device.  C<newkey> is the new key to "
9975 "add.  C<keyslot> is the key slot that will be replaced."
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:2780
9980 msgid ""
9981 "Note that if C<keyslot> already contains a key, then this command will "
9982 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806 ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833 ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
9987 msgid ""
9988 "This command has one or more key or passphrase parameters.  Guestfish will "
9989 "prompt for these separately."
9990 msgstr ""
9991
9992 #. type: =head2
9993 #: ../fish/guestfish-actions.pod:2787
9994 msgid "luks-close"
9995 msgstr ""
9996
9997 #. type: verbatim
9998 #: ../fish/guestfish-actions.pod:2789
9999 #, no-wrap
10000 msgid ""
10001 " luks-close device\n"
10002 "\n"
10003 msgstr ""
10004
10005 #. type: textblock
10006 #: ../fish/guestfish-actions.pod:2791
10007 msgid ""
10008 "This closes a LUKS device that was created earlier by L</luks-open> or "
10009 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
10010 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10011 "underlying block device."
10012 msgstr ""
10013
10014 #. type: =head2
10015 #: ../fish/guestfish-actions.pod:2797
10016 msgid "luks-format"
10017 msgstr ""
10018
10019 #. type: verbatim
10020 #: ../fish/guestfish-actions.pod:2799
10021 #, no-wrap
10022 msgid ""
10023 " luks-format device keyslot\n"
10024 "\n"
10025 msgstr ""
10026
10027 #. type: textblock
10028 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10029 msgid ""
10030 "This command erases existing data on C<device> and formats the device as a "
10031 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10032 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822 ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560 ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423 ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253 ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10037 msgid ""
10038 "B<This command is dangerous.  Without careful use you can easily destroy all "
10039 "your data>."
10040 msgstr ""
10041
10042 #. type: =head2
10043 #: ../fish/guestfish-actions.pod:2812
10044 msgid "luks-format-cipher"
10045 msgstr ""
10046
10047 #. type: verbatim
10048 #: ../fish/guestfish-actions.pod:2814
10049 #, no-wrap
10050 msgid ""
10051 " luks-format-cipher device keyslot cipher\n"
10052 "\n"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:2816
10057 msgid ""
10058 "This command is the same as L</luks-format> but it also allows you to set "
10059 "the C<cipher> used."
10060 msgstr ""
10061
10062 #. type: =head2
10063 #: ../fish/guestfish-actions.pod:2825
10064 msgid "luks-kill-slot"
10065 msgstr ""
10066
10067 #. type: verbatim
10068 #: ../fish/guestfish-actions.pod:2827
10069 #, no-wrap
10070 msgid ""
10071 " luks-kill-slot device keyslot\n"
10072 "\n"
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
10077 msgid ""
10078 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10079 "device C<device>.  C<key> must be one of the I<other> keys."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:2836
10084 msgid "luks-open"
10085 msgstr ""
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:2838
10089 #, no-wrap
10090 msgid ""
10091 " luks-open device mapname\n"
10092 "\n"
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
10097 msgid ""
10098 "This command opens a block device which has been encrypted according to the "
10099 "Linux Unified Key Setup (LUKS) standard."
10100 msgstr ""
10101
10102 #. type: textblock
10103 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
10104 msgid "C<device> is the encrypted block device or partition."
10105 msgstr ""
10106
10107 #. type: textblock
10108 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
10109 msgid ""
10110 "The caller must supply one of the keys associated with the LUKS block "
10111 "device, in the C<key> parameter."
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
10116 msgid ""
10117 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10118 "writes to this block device are decrypted from and encrypted to the "
10119 "underlying C<device> respectively."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2852
10124 msgid ""
10125 "If this block device contains LVM volume groups, then calling L</vgscan> "
10126 "followed by L</vg-activate-all> will make them visible."
10127 msgstr ""
10128
10129 #. type: textblock
10130 #: ../fish/guestfish-actions.pod:2856
10131 msgid "Use L</list-dm-devices> to list all device mapper devices."
10132 msgstr ""
10133
10134 #. type: =head2
10135 #: ../fish/guestfish-actions.pod:2862
10136 msgid "luks-open-ro"
10137 msgstr ""
10138
10139 #. type: verbatim
10140 #: ../fish/guestfish-actions.pod:2864
10141 #, no-wrap
10142 msgid ""
10143 " luks-open-ro device mapname\n"
10144 "\n"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2866
10149 msgid ""
10150 "This is the same as L</luks-open> except that a read-only mapping is "
10151 "created."
10152 msgstr ""
10153
10154 #. type: =head2
10155 #: ../fish/guestfish-actions.pod:2872
10156 msgid "lvcreate"
10157 msgstr ""
10158
10159 #. type: verbatim
10160 #: ../fish/guestfish-actions.pod:2874
10161 #, no-wrap
10162 msgid ""
10163 " lvcreate logvol volgroup mbytes\n"
10164 "\n"
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
10169 msgid ""
10170 "This creates an LVM logical volume called C<logvol> on the volume group "
10171 "C<volgroup>, with C<size> megabytes."
10172 msgstr ""
10173
10174 #. type: =head2
10175 #: ../fish/guestfish-actions.pod:2879
10176 msgid "lvm-canonical-lv-name"
10177 msgstr ""
10178
10179 #. type: verbatim
10180 #: ../fish/guestfish-actions.pod:2881
10181 #, no-wrap
10182 msgid ""
10183 " lvm-canonical-lv-name lvname\n"
10184 "\n"
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
10189 msgid ""
10190 "This converts alternative naming schemes for LVs that you might find to the "
10191 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10192 "C</dev/VG/LV>."
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
10197 msgid ""
10198 "This command returns an error if the C<lvname> parameter does not refer to a "
10199 "logical volume."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2890
10204 msgid "See also L</is-lv>."
10205 msgstr ""
10206
10207 #. type: =head2
10208 #: ../fish/guestfish-actions.pod:2892
10209 msgid "lvm-clear-filter"
10210 msgstr ""
10211
10212 #. type: verbatim
10213 #: ../fish/guestfish-actions.pod:2894
10214 #, no-wrap
10215 msgid ""
10216 " lvm-clear-filter\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2896
10222 msgid ""
10223 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10224 "block device."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
10229 msgid "This command also clears the LVM cache and performs a volume group scan."
10230 msgstr ""
10231
10232 #. type: =head2
10233 #: ../fish/guestfish-actions.pod:2902
10234 msgid "lvm-remove-all"
10235 msgstr ""
10236
10237 #. type: verbatim
10238 #: ../fish/guestfish-actions.pod:2904
10239 #, no-wrap
10240 msgid ""
10241 " lvm-remove-all\n"
10242 "\n"
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
10247 msgid ""
10248 "This command removes all LVM logical volumes, volume groups and physical "
10249 "volumes."
10250 msgstr ""
10251
10252 #. type: =head2
10253 #: ../fish/guestfish-actions.pod:2912
10254 msgid "lvm-set-filter"
10255 msgstr ""
10256
10257 #. type: verbatim
10258 #: ../fish/guestfish-actions.pod:2914
10259 #, no-wrap
10260 msgid ""
10261 " lvm-set-filter 'devices ...'\n"
10262 "\n"
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
10267 msgid ""
10268 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10269 "block devices in the list C<devices>, and will ignore all other attached "
10270 "block devices."
10271 msgstr ""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
10275 msgid ""
10276 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10277 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10278 "there are two types of duplication possible: either cloned PVs/VGs which "
10279 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10280 "same name.  In normal operation you cannot create this situation, but you "
10281 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10282 "inside the LVM metadata."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
10287 msgid "You can filter whole block devices or individual partitions."
10288 msgstr ""
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
10292 msgid ""
10293 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10294 "filesystem), even if you are not filtering out that VG."
10295 msgstr ""
10296
10297 #. type: =head2
10298 #: ../fish/guestfish-actions.pod:2939
10299 msgid "lvremove"
10300 msgstr ""
10301
10302 #. type: verbatim
10303 #: ../fish/guestfish-actions.pod:2941
10304 #, no-wrap
10305 msgid ""
10306 " lvremove device\n"
10307 "\n"
10308 msgstr ""
10309
10310 #. type: textblock
10311 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
10312 msgid ""
10313 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10314 "LV, such as C</dev/VG/LV>."
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
10319 msgid ""
10320 "You can also remove all LVs in a volume group by specifying the VG name, "
10321 "C</dev/VG>."
10322 msgstr ""
10323
10324 #. type: =head2
10325 #: ../fish/guestfish-actions.pod:2949
10326 msgid "lvrename"
10327 msgstr ""
10328
10329 #. type: verbatim
10330 #: ../fish/guestfish-actions.pod:2951
10331 #, no-wrap
10332 msgid ""
10333 " lvrename logvol newlogvol\n"
10334 "\n"
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
10339 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10340 msgstr ""
10341
10342 #. type: =head2
10343 #: ../fish/guestfish-actions.pod:2955
10344 msgid "lvresize"
10345 msgstr ""
10346
10347 #. type: verbatim
10348 #: ../fish/guestfish-actions.pod:2957
10349 #, no-wrap
10350 msgid ""
10351 " lvresize device mbytes\n"
10352 "\n"
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
10357 msgid ""
10358 "This resizes (expands or shrinks) an existing LVM logical volume to "
10359 "C<mbytes>.  When reducing, data in the reduced part is lost."
10360 msgstr ""
10361
10362 #. type: =head2
10363 #: ../fish/guestfish-actions.pod:2963
10364 msgid "lvresize-free"
10365 msgstr ""
10366
10367 #. type: verbatim
10368 #: ../fish/guestfish-actions.pod:2965
10369 #, no-wrap
10370 msgid ""
10371 " lvresize-free lv percent\n"
10372 "\n"
10373 msgstr ""
10374
10375 #. type: textblock
10376 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
10377 msgid ""
10378 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10379 "remaining free space in the volume group.  Commonly you would call this with "
10380 "pc = 100 which expands the logical volume as much as possible, using all "
10381 "remaining free space in the volume group."
10382 msgstr ""
10383
10384 #. type: =head2
10385 #: ../fish/guestfish-actions.pod:2973
10386 msgid "lvs"
10387 msgstr ""
10388
10389 #. type: verbatim
10390 #: ../fish/guestfish-actions.pod:2975
10391 #, no-wrap
10392 msgid ""
10393 " lvs\n"
10394 "\n"
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
10399 msgid ""
10400 "List all the logical volumes detected.  This is the equivalent of the "
10401 "L<lvs(8)> command."
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
10406 msgid ""
10407 "This returns a list of the logical volume device names "
10408 "(eg. C</dev/VolGroup00/LogVol00>)."
10409 msgstr ""
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2983
10413 msgid "See also L</lvs-full>, L</list-filesystems>."
10414 msgstr ""
10415
10416 #. type: =head2
10417 #: ../fish/guestfish-actions.pod:2985
10418 msgid "lvs-full"
10419 msgstr ""
10420
10421 #. type: verbatim
10422 #: ../fish/guestfish-actions.pod:2987
10423 #, no-wrap
10424 msgid ""
10425 " lvs-full\n"
10426 "\n"
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
10431 msgid ""
10432 "List all the logical volumes detected.  This is the equivalent of the "
10433 "L<lvs(8)> command.  The \"full\" version includes all fields."
10434 msgstr ""
10435
10436 #. type: =head2
10437 #: ../fish/guestfish-actions.pod:2992
10438 msgid "lvuuid"
10439 msgstr ""
10440
10441 #. type: verbatim
10442 #: ../fish/guestfish-actions.pod:2994
10443 #, no-wrap
10444 msgid ""
10445 " lvuuid device\n"
10446 "\n"
10447 msgstr ""
10448
10449 #. type: textblock
10450 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
10451 msgid "This command returns the UUID of the LVM LV C<device>."
10452 msgstr ""
10453
10454 #. type: =head2
10455 #: ../fish/guestfish-actions.pod:2998
10456 msgid "lxattrlist"
10457 msgstr ""
10458
10459 #. type: verbatim
10460 #: ../fish/guestfish-actions.pod:3000
10461 #, no-wrap
10462 msgid ""
10463 " lxattrlist path 'names ...'\n"
10464 "\n"
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
10469 msgid ""
10470 "This call allows you to get the extended attributes of multiple files, where "
10471 "all files are in the directory C<path>.  C<names> is the list of files from "
10472 "this directory."
10473 msgstr ""
10474
10475 #. type: textblock
10476 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
10477 msgid ""
10478 "On return you get a flat list of xattr structs which must be interpreted "
10479 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10480 "C<attrval> in this struct is zero-length to indicate there was an error "
10481 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10482 "number (the number of following attributes for this file, which could be "
10483 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10484 "attributes for the first named file.  This repeats for the second and "
10485 "subsequent files."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:3016
10490 msgid ""
10491 "This call is intended for programs that want to efficiently list a directory "
10492 "contents without making many round-trips.  See also L</lstatlist> for a "
10493 "similarly efficient call for getting standard stats.  Very long directory "
10494 "listings might cause the protocol message size to be exceeded, causing this "
10495 "call to fail.  The caller must split up such requests into smaller groups of "
10496 "names."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:3024
10501 msgid "mkdir"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:3026
10506 #, no-wrap
10507 msgid ""
10508 " mkdir path\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
10514 msgid "Create a directory named C<path>."
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:3030
10519 msgid "mkdir-mode"
10520 msgstr ""
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:3032
10524 #, no-wrap
10525 msgid ""
10526 " mkdir-mode path mode\n"
10527 "\n"
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
10532 msgid ""
10533 "This command creates a directory, setting the initial permissions of the "
10534 "directory to C<mode>."
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
10539 msgid ""
10540 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10541 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10542 "other ways."
10543 msgstr ""
10544
10545 #. type: textblock
10546 #: ../fish/guestfish-actions.pod:3041
10547 msgid "See also L</mkdir>, L</umask>"
10548 msgstr ""
10549
10550 #. type: =head2
10551 #: ../fish/guestfish-actions.pod:3043
10552 msgid "mkdir-p"
10553 msgstr ""
10554
10555 #. type: verbatim
10556 #: ../fish/guestfish-actions.pod:3045
10557 #, no-wrap
10558 msgid ""
10559 " mkdir-p path\n"
10560 "\n"
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
10565 msgid ""
10566 "Create a directory named C<path>, creating any parent directories as "
10567 "necessary.  This is like the C<mkdir -p> shell command."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:3050
10572 msgid "mkdtemp"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:3052
10577 #, no-wrap
10578 msgid ""
10579 " mkdtemp template\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
10585 msgid ""
10586 "This command creates a temporary directory.  The C<template> parameter "
10587 "should be a full pathname for the temporary directory name with the final "
10588 "six characters being \"XXXXXX\"."
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
10593 msgid ""
10594 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10595 "being suitable for Windows filesystems."
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
10600 msgid "The name of the temporary directory that was created is returned."
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
10605 msgid "The temporary directory is created with mode 0700 and is owned by root."
10606 msgstr ""
10607
10608 #. type: textblock
10609 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
10610 msgid ""
10611 "The caller is responsible for deleting the temporary directory and its "
10612 "contents after use."
10613 msgstr ""
10614
10615 #. type: textblock
10616 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
10617 msgid "See also: L<mkdtemp(3)>"
10618 msgstr ""
10619
10620 #. type: =head2
10621 #: ../fish/guestfish-actions.pod:3073
10622 msgid "mke2fs-J"
10623 msgstr ""
10624
10625 #. type: verbatim
10626 #: ../fish/guestfish-actions.pod:3075
10627 #, no-wrap
10628 msgid ""
10629 " mke2fs-J fstype blocksize device journal\n"
10630 "\n"
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
10635 msgid ""
10636 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10637 "C<journal>.  It is equivalent to the command:"
10638 msgstr ""
10639
10640 #. type: verbatim
10641 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
10642 #, no-wrap
10643 msgid ""
10644 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10645 "\n"
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:3083
10650 msgid "See also L</mke2journal>."
10651 msgstr ""
10652
10653 #. type: =head2
10654 #: ../fish/guestfish-actions.pod:3085
10655 msgid "mke2fs-JL"
10656 msgstr ""
10657
10658 #. type: verbatim
10659 #: ../fish/guestfish-actions.pod:3087
10660 #, no-wrap
10661 msgid ""
10662 " mke2fs-JL fstype blocksize device label\n"
10663 "\n"
10664 msgstr ""
10665
10666 #. type: textblock
10667 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
10668 msgid ""
10669 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10670 "the journal labeled C<label>."
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:3092
10675 msgid "See also L</mke2journal-L>."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:3094
10680 msgid "mke2fs-JU"
10681 msgstr ""
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:3096
10685 #, no-wrap
10686 msgid ""
10687 " mke2fs-JU fstype blocksize device uuid\n"
10688 "\n"
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
10693 msgid ""
10694 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10695 "the journal with UUID C<uuid>."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:3101
10700 msgid "See also L</mke2journal-U>."
10701 msgstr ""
10702
10703 #. type: =head2
10704 #: ../fish/guestfish-actions.pod:3103
10705 msgid "mke2journal"
10706 msgstr ""
10707
10708 #. type: verbatim
10709 #: ../fish/guestfish-actions.pod:3105
10710 #, no-wrap
10711 msgid ""
10712 " mke2journal blocksize device\n"
10713 "\n"
10714 msgstr ""
10715
10716 #. type: textblock
10717 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
10718 msgid ""
10719 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10720 "command:"
10721 msgstr ""
10722
10723 #. type: verbatim
10724 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
10725 #, no-wrap
10726 msgid ""
10727 " mke2fs -O journal_dev -b blocksize device\n"
10728 "\n"
10729 msgstr ""
10730
10731 #. type: =head2
10732 #: ../fish/guestfish-actions.pod:3112
10733 msgid "mke2journal-L"
10734 msgstr ""
10735
10736 #. type: verbatim
10737 #: ../fish/guestfish-actions.pod:3114
10738 #, no-wrap
10739 msgid ""
10740 " mke2journal-L blocksize label device\n"
10741 "\n"
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
10746 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10747 msgstr ""
10748
10749 #. type: =head2
10750 #: ../fish/guestfish-actions.pod:3118
10751 msgid "mke2journal-U"
10752 msgstr ""
10753
10754 #. type: verbatim
10755 #: ../fish/guestfish-actions.pod:3120
10756 #, no-wrap
10757 msgid ""
10758 " mke2journal-U blocksize uuid device\n"
10759 "\n"
10760 msgstr ""
10761
10762 #. type: textblock
10763 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
10764 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10765 msgstr ""
10766
10767 #. type: =head2
10768 #: ../fish/guestfish-actions.pod:3124
10769 msgid "mkfifo"
10770 msgstr ""
10771
10772 #. type: verbatim
10773 #: ../fish/guestfish-actions.pod:3126
10774 #, no-wrap
10775 msgid ""
10776 " mkfifo mode path\n"
10777 "\n"
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../fish/guestfish-actions.pod:3128
10782 msgid ""
10783 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10784 "is just a convenient wrapper around L</mknod>."
10785 msgstr ""
10786
10787 #. type: =head2
10788 #: ../fish/guestfish-actions.pod:3134
10789 msgid "mkfs"
10790 msgstr ""
10791
10792 #. type: verbatim
10793 #: ../fish/guestfish-actions.pod:3136
10794 #, no-wrap
10795 msgid ""
10796 " mkfs fstype device\n"
10797 "\n"
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
10802 msgid ""
10803 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10804 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10805 msgstr ""
10806
10807 #. type: =head2
10808 #: ../fish/guestfish-actions.pod:3142
10809 msgid "mkfs-b"
10810 msgstr ""
10811
10812 #. type: verbatim
10813 #: ../fish/guestfish-actions.pod:3144
10814 #, no-wrap
10815 msgid ""
10816 " mkfs-b fstype blocksize device\n"
10817 "\n"
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:3146
10822 msgid ""
10823 "This call is similar to L</mkfs>, but it allows you to control the block "
10824 "size of the resulting filesystem.  Supported block sizes depend on the "
10825 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
10830 msgid ""
10831 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10832 "cluster size."
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:3154
10837 msgid ""
10838 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10839 "instead."
10840 msgstr ""
10841
10842 #. type: =head2
10843 #: ../fish/guestfish-actions.pod:3161
10844 msgid "mkfs-opts"
10845 msgstr ""
10846
10847 #. type: verbatim
10848 #: ../fish/guestfish-actions.pod:3163
10849 #, no-wrap
10850 msgid ""
10851 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10852 "[sectorsize:..]\n"
10853 "\n"
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
10858 msgid ""
10859 "This function creates a filesystem on C<device>.  The filesystem type is "
10860 "C<fstype>, for example C<ext3>."
10861 msgstr ""
10862
10863 #. type: =item
10864 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
10865 msgid "C<blocksize>"
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
10870 msgid ""
10871 "The filesystem block size.  Supported block sizes depend on the filesystem "
10872 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10873 "filesystems."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
10878 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10879 msgstr ""
10880
10881 #. type: =item
10882 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
10883 msgid "C<features>"
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
10888 msgid "This passes the I<-O> parameter to the external mkfs program."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
10893 msgid ""
10894 "For certain filesystem types, this allows extra filesystem features to be "
10895 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
10900 msgid ""
10901 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10902 "type."
10903 msgstr ""
10904
10905 #. type: =item
10906 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
10907 msgid "C<inode>"
10908 msgstr ""
10909
10910 #. type: textblock
10911 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
10912 msgid ""
10913 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10914 "sets the inode size (only for ext2/3/4 filesystems at present)."
10915 msgstr ""
10916
10917 #. type: =item
10918 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
10919 msgid "C<sectorsize>"
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
10924 msgid ""
10925 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10926 "sets sector size for ufs filesystem."
10927 msgstr ""
10928
10929 #. type: =head2
10930 #: ../fish/guestfish-actions.pod:3208
10931 msgid "mkmountpoint"
10932 msgstr ""
10933
10934 #. type: verbatim
10935 #: ../fish/guestfish-actions.pod:3210
10936 #, no-wrap
10937 msgid ""
10938 " mkmountpoint exemptpath\n"
10939 "\n"
10940 msgstr ""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:3212
10944 msgid ""
10945 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10946 "to create extra mountpoints before mounting the first filesystem."
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
10951 msgid ""
10952 "These calls are I<only> necessary in some very limited circumstances, mainly "
10953 "the case where you want to mount a mix of unrelated and/or read-only "
10954 "filesystems together."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
10959 msgid ""
10960 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10961 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10962 "inside that.  You can unpack this as follows in guestfish:"
10963 msgstr ""
10964
10965 #. type: verbatim
10966 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
10967 #, no-wrap
10968 msgid ""
10969 " add-ro Fedora-11-i686-Live.iso\n"
10970 " run\n"
10971 " mkmountpoint /cd\n"
10972 " mkmountpoint /sqsh\n"
10973 " mkmountpoint /ext3fs\n"
10974 " mount /dev/sda /cd\n"
10975 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10976 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10977 "\n"
10978 msgstr ""
10979
10980 #. type: textblock
10981 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
10982 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10983 msgstr ""
10984
10985 #. type: textblock
10986 #: ../fish/guestfish-actions.pod:3236
10987 msgid ""
10988 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10989 "unexpected errors if you try to mix these calls.  It is safest to manually "
10990 "unmount filesystems and remove mountpoints after use."
10991 msgstr ""
10992
10993 #. type: textblock
10994 #: ../fish/guestfish-actions.pod:3240
10995 msgid ""
10996 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10997 "for this to work for manual mountpoints, you must ensure that the innermost "
10998 "mountpoints have the longest pathnames, as in the example code above."
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11003 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:3247
11008 msgid ""
11009 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11010 "L</umount-all> to be called when the handle is closed which can also trigger "
11011 "these issues."
11012 msgstr ""
11013
11014 #. type: =head2
11015 #: ../fish/guestfish-actions.pod:3251
11016 msgid "mknod"
11017 msgstr ""
11018
11019 #. type: verbatim
11020 #: ../fish/guestfish-actions.pod:3253
11021 #, no-wrap
11022 msgid ""
11023 " mknod mode devmajor devminor path\n"
11024 "\n"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
11029 msgid ""
11030 "This call creates block or character special devices, or named pipes "
11031 "(FIFOs)."
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
11036 msgid ""
11037 "The C<mode> parameter should be the mode, using the standard constants.  "
11038 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11039 "used when creating block and character special devices."
11040 msgstr ""
11041
11042 #. type: textblock
11043 #: ../fish/guestfish-actions.pod:3263
11044 msgid ""
11045 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11046 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11047 "regular file).  These constants are available in the standard Linux header "
11048 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11049 "wrappers around this command which bitwise OR in the appropriate constant "
11050 "for you."
11051 msgstr ""
11052
11053 #. type: =head2
11054 #: ../fish/guestfish-actions.pod:3273
11055 msgid "mknod-b"
11056 msgstr ""
11057
11058 #. type: verbatim
11059 #: ../fish/guestfish-actions.pod:3275
11060 #, no-wrap
11061 msgid ""
11062 " mknod-b mode devmajor devminor path\n"
11063 "\n"
11064 msgstr ""
11065
11066 #. type: textblock
11067 #: ../fish/guestfish-actions.pod:3277
11068 msgid ""
11069 "This call creates a block device node called C<path> with mode C<mode> and "
11070 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11071 "wrapper around L</mknod>."
11072 msgstr ""
11073
11074 #. type: =head2
11075 #: ../fish/guestfish-actions.pod:3283
11076 msgid "mknod-c"
11077 msgstr ""
11078
11079 #. type: verbatim
11080 #: ../fish/guestfish-actions.pod:3285
11081 #, no-wrap
11082 msgid ""
11083 " mknod-c mode devmajor devminor path\n"
11084 "\n"
11085 msgstr ""
11086
11087 #. type: textblock
11088 #: ../fish/guestfish-actions.pod:3287
11089 msgid ""
11090 "This call creates a char device node called C<path> with mode C<mode> and "
11091 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11092 "wrapper around L</mknod>."
11093 msgstr ""
11094
11095 #. type: =head2
11096 #: ../fish/guestfish-actions.pod:3293
11097 msgid "mkswap"
11098 msgstr ""
11099
11100 #. type: verbatim
11101 #: ../fish/guestfish-actions.pod:3295
11102 #, no-wrap
11103 msgid ""
11104 " mkswap device\n"
11105 "\n"
11106 msgstr ""
11107
11108 #. type: textblock
11109 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
11110 msgid "Create a swap partition on C<device>."
11111 msgstr ""
11112
11113 #. type: =head2
11114 #: ../fish/guestfish-actions.pod:3299
11115 msgid "mkswap-L"
11116 msgstr ""
11117
11118 #. type: verbatim
11119 #: ../fish/guestfish-actions.pod:3301
11120 #, no-wrap
11121 msgid ""
11122 " mkswap-L label device\n"
11123 "\n"
11124 msgstr ""
11125
11126 #. type: textblock
11127 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
11128 msgid "Create a swap partition on C<device> with label C<label>."
11129 msgstr ""
11130
11131 #. type: textblock
11132 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
11133 msgid ""
11134 "Note that you cannot attach a swap label to a block device "
11135 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11136 "the kernel or swap tools."
11137 msgstr ""
11138
11139 #. type: =head2
11140 #: ../fish/guestfish-actions.pod:3309
11141 msgid "mkswap-U"
11142 msgstr ""
11143
11144 #. type: verbatim
11145 #: ../fish/guestfish-actions.pod:3311
11146 #, no-wrap
11147 msgid ""
11148 " mkswap-U uuid device\n"
11149 "\n"
11150 msgstr ""
11151
11152 #. type: textblock
11153 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
11154 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11155 msgstr ""
11156
11157 #. type: =head2
11158 #: ../fish/guestfish-actions.pod:3315
11159 msgid "mkswap-file"
11160 msgstr ""
11161
11162 #. type: verbatim
11163 #: ../fish/guestfish-actions.pod:3317
11164 #, no-wrap
11165 msgid ""
11166 " mkswap-file path\n"
11167 "\n"
11168 msgstr ""
11169
11170 #. type: textblock
11171 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
11172 msgid "Create a swap file."
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:3321
11177 msgid ""
11178 "This command just writes a swap file signature to an existing file.  To "
11179 "create the file itself, use something like L</fallocate>."
11180 msgstr ""
11181
11182 #. type: =head2
11183 #: ../fish/guestfish-actions.pod:3324
11184 msgid "modprobe"
11185 msgstr ""
11186
11187 #. type: verbatim
11188 #: ../fish/guestfish-actions.pod:3326
11189 #, no-wrap
11190 msgid ""
11191 " modprobe modulename\n"
11192 "\n"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
11197 msgid "This loads a kernel module in the appliance."
11198 msgstr ""
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
11202 msgid ""
11203 "The kernel module must have been whitelisted when libguestfs was built (see "
11204 "C<appliance/kmod.whitelist.in> in the source)."
11205 msgstr ""
11206
11207 #. type: =head2
11208 #: ../fish/guestfish-actions.pod:3333
11209 msgid "mount"
11210 msgstr ""
11211
11212 #. type: verbatim
11213 #: ../fish/guestfish-actions.pod:3335
11214 #, no-wrap
11215 msgid ""
11216 " mount device mountpoint\n"
11217 "\n"
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
11222 msgid ""
11223 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11224 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11225 "those block devices contain partitions, they will have the usual names "
11226 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
11231 msgid ""
11232 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11233 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11234 "mounted on directories which already exist."
11235 msgstr ""
11236
11237 #. type: textblock
11238 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
11239 msgid ""
11240 "The mounted filesystem is writable, if we have sufficient permissions on the "
11241 "underlying device."
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:3351
11246 msgid ""
11247 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
11248 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
11249 "problems for users.  If your program might need to work with older versions "
11250 "of libguestfs, use L</mount-options> instead (using an empty string for the "
11251 "first parameter if you don't want any options)."
11252 msgstr ""
11253
11254 #. type: =head2
11255 #: ../fish/guestfish-actions.pod:3358
11256 msgid "mount-9p"
11257 msgstr ""
11258
11259 #. type: verbatim
11260 #: ../fish/guestfish-actions.pod:3360
11261 #, no-wrap
11262 msgid ""
11263 " mount-9p mounttag mountpoint [options:..]\n"
11264 "\n"
11265 msgstr ""
11266
11267 #. type: textblock
11268 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
11269 msgid ""
11270 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11271 "C<mountpoint>."
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
11276 msgid ""
11277 "If required, C<trans=virtio> will be automatically added to the options.  "
11278 "Any other options required can be passed in the optional C<options> "
11279 "parameter."
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:3371
11284 msgid "mount-loop"
11285 msgstr ""
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:3373
11289 #, no-wrap
11290 msgid ""
11291 " mount-loop file mountpoint\n"
11292 "\n"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
11297 msgid ""
11298 "This command lets you mount C<file> (a filesystem image in a file) on a "
11299 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11300 "mountpoint>."
11301 msgstr ""
11302
11303 #. type: =head2
11304 #: ../fish/guestfish-actions.pod:3379
11305 msgid "mount-options"
11306 msgstr ""
11307
11308 #. type: verbatim
11309 #: ../fish/guestfish-actions.pod:3381
11310 #, no-wrap
11311 msgid ""
11312 " mount-options options device mountpoint\n"
11313 "\n"
11314 msgstr ""
11315
11316 #. type: textblock
11317 #: ../fish/guestfish-actions.pod:3383
11318 msgid ""
11319 "This is the same as the L</mount> command, but it allows you to set the "
11320 "mount options as for the L<mount(8)> I<-o> flag."
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
11325 msgid ""
11326 "If the C<options> parameter is an empty string, then no options are passed "
11327 "(all options default to whatever the filesystem uses)."
11328 msgstr ""
11329
11330 #. type: =head2
11331 #: ../fish/guestfish-actions.pod:3391
11332 msgid "mount-ro"
11333 msgstr ""
11334
11335 #. type: verbatim
11336 #: ../fish/guestfish-actions.pod:3393
11337 #, no-wrap
11338 msgid ""
11339 " mount-ro device mountpoint\n"
11340 "\n"
11341 msgstr ""
11342
11343 #. type: textblock
11344 #: ../fish/guestfish-actions.pod:3395
11345 msgid ""
11346 "This is the same as the L</mount> command, but it mounts the filesystem with "
11347 "the read-only (I<-o ro>) flag."
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../fish/guestfish-actions.pod:3398
11352 msgid "mount-vfs"
11353 msgstr ""
11354
11355 #. type: verbatim
11356 #: ../fish/guestfish-actions.pod:3400
11357 #, no-wrap
11358 msgid ""
11359 " mount-vfs options vfstype device mountpoint\n"
11360 "\n"
11361 msgstr ""
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:3402
11365 msgid ""
11366 "This is the same as the L</mount> command, but it allows you to set both the "
11367 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11368 msgstr ""
11369
11370 #. type: =head2
11371 #: ../fish/guestfish-actions.pod:3406
11372 msgid "mountpoints"
11373 msgstr ""
11374
11375 #. type: verbatim
11376 #: ../fish/guestfish-actions.pod:3408
11377 #, no-wrap
11378 msgid ""
11379 " mountpoints\n"
11380 "\n"
11381 msgstr ""
11382
11383 #. type: textblock
11384 #: ../fish/guestfish-actions.pod:3410
11385 msgid ""
11386 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11387 "This one returns a hash table (map) of device name to directory where the "
11388 "device is mounted."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:3414
11393 msgid "mounts"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:3416
11398 #, no-wrap
11399 msgid ""
11400 " mounts\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
11406 msgid ""
11407 "This returns the list of currently mounted filesystems.  It returns the list "
11408 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11409 msgstr ""
11410
11411 #. type: textblock
11412 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
11413 msgid "Some internal mounts are not shown."
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:3423
11418 msgid "See also: L</mountpoints>"
11419 msgstr ""
11420
11421 #. type: =head2
11422 #: ../fish/guestfish-actions.pod:3425
11423 msgid "mv"
11424 msgstr ""
11425
11426 #. type: verbatim
11427 #: ../fish/guestfish-actions.pod:3427
11428 #, no-wrap
11429 msgid ""
11430 " mv src dest\n"
11431 "\n"
11432 msgstr ""
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
11436 msgid ""
11437 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11438 "destination filename or destination directory."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:3432
11443 msgid "ntfs-3g-probe"
11444 msgstr ""
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:3434
11448 #, no-wrap
11449 msgid ""
11450 " ntfs-3g-probe true|false device\n"
11451 "\n"
11452 msgstr ""
11453
11454 #. type: textblock
11455 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
11456 msgid ""
11457 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11458 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11459 "read-write, and some cannot be mounted at all)."
11460 msgstr ""
11461
11462 #. type: textblock
11463 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
11464 msgid ""
11465 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11466 "can be mounted read-write.  Set it to false if you want to test if the "
11467 "volume can be mounted read-only."
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
11472 msgid ""
11473 "The return value is an integer which C<0> if the operation would succeed, or "
11474 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../fish/guestfish-actions.pod:3448
11479 msgid "ntfsresize"
11480 msgstr ""
11481
11482 #. type: verbatim
11483 #: ../fish/guestfish-actions.pod:3450
11484 #, no-wrap
11485 msgid ""
11486 " ntfsresize device\n"
11487 "\n"
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476 ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
11492 msgid ""
11493 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11494 "size of the underlying device."
11495 msgstr ""
11496
11497 #. type: textblock
11498 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
11499 msgid ""
11500 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11501 "consistency check (for safety).  You have to boot into Windows to perform "
11502 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11503 "resize filesystems which have been marked in this way.  So in effect it is "
11504 "not possible to call ntfsresize multiple times on a single filesystem "
11505 "without booting into Windows between each resize."
11506 msgstr ""
11507
11508 #. type: textblock
11509 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
11510 msgid "See also L<ntfsresize(8)>."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
11515 msgid ""
11516 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11517 "call instead."
11518 msgstr ""
11519
11520 #. type: =head2
11521 #: ../fish/guestfish-actions.pod:3472
11522 msgid "ntfsresize-opts"
11523 msgstr ""
11524
11525 #. type: verbatim
11526 #: ../fish/guestfish-actions.pod:3474
11527 #, no-wrap
11528 msgid ""
11529 " ntfsresize-opts device [size:..] [force:..]\n"
11530 "\n"
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
11535 msgid ""
11536 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11537 "resized to fit the container (eg. partition)."
11538 msgstr ""
11539
11540 #. type: =item
11541 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
11542 msgid "C<force>"
11543 msgstr ""
11544
11545 #. type: textblock
11546 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
11547 msgid ""
11548 "If this option is true, then force the resize of the filesystem even if the "
11549 "filesystem is marked as requiring a consistency check."
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:3493
11554 msgid ""
11555 "After the resize operation, the filesystem is always marked as requiring a "
11556 "consistency check (for safety).  You have to boot into Windows to perform "
11557 "this check and clear this condition.  If you I<don't> set the C<force> "
11558 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11559 "a single filesystem without booting into Windows between each resize."
11560 msgstr ""
11561
11562 #. type: =head2
11563 #: ../fish/guestfish-actions.pod:3506
11564 msgid "ntfsresize-size"
11565 msgstr ""
11566
11567 #. type: verbatim
11568 #: ../fish/guestfish-actions.pod:3508
11569 #, no-wrap
11570 msgid ""
11571 " ntfsresize-size device size\n"
11572 "\n"
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:3510
11577 msgid ""
11578 "This command is the same as L</ntfsresize> except that it allows you to "
11579 "specify the new size (in bytes) explicitly."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:3520
11584 msgid "part-add"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:3522
11589 #, no-wrap
11590 msgid ""
11591 " part-add device prlogex startsect endsect\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3524
11597 msgid ""
11598 "This command adds a partition to C<device>.  If there is no partition table "
11599 "on the device, call L</part-init> first."
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
11604 msgid ""
11605 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11606 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11607 "C<logical>) and C<e> (or C<extended>) partition types."
11608 msgstr ""
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
11612 msgid ""
11613 "C<startsect> and C<endsect> are the start and end of the partition in "
11614 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11615 "from the end of the disk (C<-1> is the last sector)."
11616 msgstr ""
11617
11618 #. type: textblock
11619 #: ../fish/guestfish-actions.pod:3536
11620 msgid ""
11621 "Creating a partition which covers the whole disk is not so easy.  Use "
11622 "L</part-disk> to do that."
11623 msgstr ""
11624
11625 #. type: =head2
11626 #: ../fish/guestfish-actions.pod:3539
11627 msgid "part-del"
11628 msgstr ""
11629
11630 #. type: verbatim
11631 #: ../fish/guestfish-actions.pod:3541
11632 #, no-wrap
11633 msgid ""
11634 " part-del device partnum\n"
11635 "\n"
11636 msgstr ""
11637
11638 #. type: textblock
11639 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
11640 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
11645 msgid ""
11646 "Note that in the case of MBR partitioning, deleting an extended partition "
11647 "also deletes any logical partitions it contains."
11648 msgstr ""
11649
11650 #. type: =head2
11651 #: ../fish/guestfish-actions.pod:3549
11652 msgid "part-disk"
11653 msgstr ""
11654
11655 #. type: verbatim
11656 #: ../fish/guestfish-actions.pod:3551
11657 #, no-wrap
11658 msgid ""
11659 " part-disk device parttype\n"
11660 "\n"
11661 msgstr ""
11662
11663 #. type: textblock
11664 #: ../fish/guestfish-actions.pod:3553
11665 msgid ""
11666 "This command is simply a combination of L</part-init> followed by "
11667 "L</part-add> to create a single primary partition covering the whole disk."
11668 msgstr ""
11669
11670 #. type: textblock
11671 #: ../fish/guestfish-actions.pod:3557
11672 msgid ""
11673 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11674 "possible values are described in L</part-init>."
11675 msgstr ""
11676
11677 #. type: =head2
11678 #: ../fish/guestfish-actions.pod:3563
11679 msgid "part-get-bootable"
11680 msgstr ""
11681
11682 #. type: verbatim
11683 #: ../fish/guestfish-actions.pod:3565
11684 #, no-wrap
11685 msgid ""
11686 " part-get-bootable device partnum\n"
11687 "\n"
11688 msgstr ""
11689
11690 #. type: textblock
11691 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
11692 msgid ""
11693 "This command returns true if the partition C<partnum> on C<device> has the "
11694 "bootable flag set."
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:3570
11699 msgid "See also L</part-set-bootable>."
11700 msgstr ""
11701
11702 #. type: =head2
11703 #: ../fish/guestfish-actions.pod:3572
11704 msgid "part-get-mbr-id"
11705 msgstr ""
11706
11707 #. type: verbatim
11708 #: ../fish/guestfish-actions.pod:3574
11709 #, no-wrap
11710 msgid ""
11711 " part-get-mbr-id device partnum\n"
11712 "\n"
11713 msgstr ""
11714
11715 #. type: textblock
11716 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
11717 msgid ""
11718 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11719 "partition C<partnum>."
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
11724 msgid ""
11725 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11726 "undefined results for other partition table types (see "
11727 "L</part-get-parttype>)."
11728 msgstr ""
11729
11730 #. type: =head2
11731 #: ../fish/guestfish-actions.pod:3583
11732 msgid "part-get-parttype"
11733 msgstr ""
11734
11735 #. type: verbatim
11736 #: ../fish/guestfish-actions.pod:3585
11737 #, no-wrap
11738 msgid ""
11739 " part-get-parttype device\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
11745 msgid ""
11746 "This command examines the partition table on C<device> and returns the "
11747 "partition table type (format) being used."
11748 msgstr ""
11749
11750 #. type: textblock
11751 #: ../fish/guestfish-actions.pod:3590
11752 msgid ""
11753 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11754 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11755 "possible, although unusual.  See L</part-init> for a full list."
11756 msgstr ""
11757
11758 #. type: =head2
11759 #: ../fish/guestfish-actions.pod:3595
11760 msgid "part-init"
11761 msgstr ""
11762
11763 #. type: verbatim
11764 #: ../fish/guestfish-actions.pod:3597
11765 #, no-wrap
11766 msgid ""
11767 " part-init device parttype\n"
11768 "\n"
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
11773 msgid ""
11774 "This creates an empty partition table on C<device> of one of the partition "
11775 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11776 "(for large disks)."
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../fish/guestfish-actions.pod:3603
11781 msgid ""
11782 "Initially there are no partitions.  Following this, you should call "
11783 "L</part-add> for each partition required."
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
11788 msgid "Possible values for C<parttype> are:"
11789 msgstr ""
11790
11791 #. type: =item
11792 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
11793 msgid "B<efi>"
11794 msgstr ""
11795
11796 #. type: =item
11797 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
11798 msgid "B<gpt>"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
11803 msgid "Intel EFI / GPT partition table."
11804 msgstr ""
11805
11806 #. type: textblock
11807 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
11808 msgid ""
11809 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11810 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11811 "the C<mbr> format."
11812 msgstr ""
11813
11814 #. type: =item
11815 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
11816 msgid "B<mbr>"
11817 msgstr ""
11818
11819 #. type: =item
11820 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
11821 msgid "B<msdos>"
11822 msgstr ""
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
11826 msgid ""
11827 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11828 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11829 "TB.  For large disks we recommend using C<gpt>."
11830 msgstr ""
11831
11832 #. type: textblock
11833 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
11834 msgid "Other partition table types that may work but are not supported include:"
11835 msgstr ""
11836
11837 #. type: =item
11838 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
11839 msgid "B<aix>"
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
11844 msgid "AIX disk labels."
11845 msgstr ""
11846
11847 #. type: =item
11848 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
11849 msgid "B<amiga>"
11850 msgstr ""
11851
11852 #. type: =item
11853 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
11854 msgid "B<rdb>"
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
11859 msgid "Amiga \"Rigid Disk Block\" format."
11860 msgstr ""
11861
11862 #. type: =item
11863 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
11864 msgid "B<bsd>"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
11869 msgid "BSD disk labels."
11870 msgstr ""
11871
11872 #. type: =item
11873 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
11874 msgid "B<dasd>"
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
11879 msgid "DASD, used on IBM mainframes."
11880 msgstr ""
11881
11882 #. type: =item
11883 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
11884 msgid "B<dvh>"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
11889 msgid "MIPS/SGI volumes."
11890 msgstr ""
11891
11892 #. type: =item
11893 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
11894 msgid "B<mac>"
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
11899 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11900 msgstr ""
11901
11902 #. type: =item
11903 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
11904 msgid "B<pc98>"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
11909 msgid "NEC PC-98 format, common in Japan apparently."
11910 msgstr ""
11911
11912 #. type: =item
11913 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
11914 msgid "B<sun>"
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
11919 msgid "Sun disk labels."
11920 msgstr ""
11921
11922 #. type: =head2
11923 #: ../fish/guestfish-actions.pod:3672
11924 msgid "part-list"
11925 msgstr ""
11926
11927 #. type: verbatim
11928 #: ../fish/guestfish-actions.pod:3674
11929 #, no-wrap
11930 msgid ""
11931 " part-list device\n"
11932 "\n"
11933 msgstr ""
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
11937 msgid ""
11938 "This command parses the partition table on C<device> and returns the list of "
11939 "partitions found."
11940 msgstr ""
11941
11942 #. type: textblock
11943 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
11944 msgid "The fields in the returned structure are:"
11945 msgstr ""
11946
11947 #. type: =item
11948 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
11949 msgid "B<part_num>"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
11954 msgid "Partition number, counting from 1."
11955 msgstr ""
11956
11957 #. type: =item
11958 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
11959 msgid "B<part_start>"
11960 msgstr ""
11961
11962 #. type: textblock
11963 #: ../fish/guestfish-actions.pod:3689
11964 msgid ""
11965 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11966 "the device's sector size, see L</blockdev-getss>."
11967 msgstr ""
11968
11969 #. type: =item
11970 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
11971 msgid "B<part_end>"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
11976 msgid "End of the partition in bytes."
11977 msgstr ""
11978
11979 #. type: =item
11980 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
11981 msgid "B<part_size>"
11982 msgstr ""
11983
11984 #. type: textblock
11985 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
11986 msgid "Size of the partition in bytes."
11987 msgstr ""
11988
11989 #. type: =head2
11990 #: ../fish/guestfish-actions.pod:3702
11991 msgid "part-set-bootable"
11992 msgstr ""
11993
11994 #. type: verbatim
11995 #: ../fish/guestfish-actions.pod:3704
11996 #, no-wrap
11997 msgid ""
11998 " part-set-bootable device partnum true|false\n"
11999 "\n"
12000 msgstr ""
12001
12002 #. type: textblock
12003 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
12004 msgid ""
12005 "This sets the bootable flag on partition numbered C<partnum> on device "
12006 "C<device>.  Note that partitions are numbered from 1."
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
12011 msgid ""
12012 "The bootable flag is used by some operating systems (notably Windows) to "
12013 "determine which partition to boot from.  It is by no means universally "
12014 "recognized."
12015 msgstr ""
12016
12017 #. type: =head2
12018 #: ../fish/guestfish-actions.pod:3713
12019 msgid "part-set-mbr-id"
12020 msgstr ""
12021
12022 #. type: verbatim
12023 #: ../fish/guestfish-actions.pod:3715
12024 #, no-wrap
12025 msgid ""
12026 " part-set-mbr-id device partnum idbyte\n"
12027 "\n"
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
12032 msgid ""
12033 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12034 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12035 "documentation are in fact hexadecimal numbers, but usually documented "
12036 "without any leading \"0x\" which might be confusing."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:3727
12041 msgid "part-set-name"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3729
12046 #, no-wrap
12047 msgid ""
12048 " part-set-name device partnum name\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
12054 msgid ""
12055 "This sets the partition name on partition numbered C<partnum> on device "
12056 "C<device>.  Note that partitions are numbered from 1."
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
12061 msgid ""
12062 "The partition name can only be set on certain types of partition table.  "
12063 "This works on C<gpt> but not on C<mbr> partitions."
12064 msgstr ""
12065
12066 #. type: =head2
12067 #: ../fish/guestfish-actions.pod:3737
12068 msgid "part-to-dev"
12069 msgstr ""
12070
12071 #. type: verbatim
12072 #: ../fish/guestfish-actions.pod:3739
12073 #, no-wrap
12074 msgid ""
12075 " part-to-dev partition\n"
12076 "\n"
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
12081 msgid ""
12082 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12083 "partition number, returning the device name (eg. \"/dev/sdb\")."
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:3745
12088 msgid ""
12089 "The named partition must exist, for example as a string returned from "
12090 "L</list-partitions>."
12091 msgstr ""
12092
12093 #. type: =head2
12094 #: ../fish/guestfish-actions.pod:3748
12095 msgid "ping-daemon"
12096 msgstr ""
12097
12098 #. type: verbatim
12099 #: ../fish/guestfish-actions.pod:3750
12100 #, no-wrap
12101 msgid ""
12102 " ping-daemon\n"
12103 "\n"
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
12108 msgid ""
12109 "This is a test probe into the guestfs daemon running inside the qemu "
12110 "subprocess.  Calling this function checks that the daemon responds to the "
12111 "ping message, without affecting the daemon or attached block device(s) in "
12112 "any other way."
12113 msgstr ""
12114
12115 #. type: =head2
12116 #: ../fish/guestfish-actions.pod:3757
12117 msgid "pread"
12118 msgstr ""
12119
12120 #. type: verbatim
12121 #: ../fish/guestfish-actions.pod:3759
12122 #, no-wrap
12123 msgid ""
12124 " pread path count offset\n"
12125 "\n"
12126 msgstr ""
12127
12128 #. type: textblock
12129 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
12130 msgid ""
12131 "This command lets you read part of a file.  It reads C<count> bytes of the "
12132 "file, starting at C<offset>, from file C<path>."
12133 msgstr ""
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
12137 msgid ""
12138 "This may read fewer bytes than requested.  For further details see the "
12139 "L<pread(2)> system call."
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../fish/guestfish-actions.pod:3767
12144 msgid "See also L</pwrite>, L</pread-device>."
12145 msgstr ""
12146
12147 #. type: =head2
12148 #: ../fish/guestfish-actions.pod:3772
12149 msgid "pread-device"
12150 msgstr ""
12151
12152 #. type: verbatim
12153 #: ../fish/guestfish-actions.pod:3774
12154 #, no-wrap
12155 msgid ""
12156 " pread-device device count offset\n"
12157 "\n"
12158 msgstr ""
12159
12160 #. type: textblock
12161 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
12162 msgid ""
12163 "This command lets you read part of a file.  It reads C<count> bytes of "
12164 "C<device>, starting at C<offset>."
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../fish/guestfish-actions.pod:3782
12169 msgid "See also L</pread>."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../fish/guestfish-actions.pod:3787
12174 msgid "pvcreate"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../fish/guestfish-actions.pod:3789
12179 #, no-wrap
12180 msgid ""
12181 " pvcreate device\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
12187 msgid ""
12188 "This creates an LVM physical volume on the named C<device>, where C<device> "
12189 "should usually be a partition name such as C</dev/sda1>."
12190 msgstr ""
12191
12192 #. type: =head2
12193 #: ../fish/guestfish-actions.pod:3795
12194 msgid "pvremove"
12195 msgstr ""
12196
12197 #. type: verbatim
12198 #: ../fish/guestfish-actions.pod:3797
12199 #, no-wrap
12200 msgid ""
12201 " pvremove device\n"
12202 "\n"
12203 msgstr ""
12204
12205 #. type: textblock
12206 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
12207 msgid ""
12208 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12209 "it."
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
12214 msgid ""
12215 "The implementation uses the C<pvremove> command which refuses to wipe "
12216 "physical volumes that contain any volume groups, so you have to remove those "
12217 "first."
12218 msgstr ""
12219
12220 #. type: =head2
12221 #: ../fish/guestfish-actions.pod:3806
12222 msgid "pvresize"
12223 msgstr ""
12224
12225 #. type: verbatim
12226 #: ../fish/guestfish-actions.pod:3808
12227 #, no-wrap
12228 msgid ""
12229 " pvresize device\n"
12230 "\n"
12231 msgstr ""
12232
12233 #. type: textblock
12234 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
12235 msgid ""
12236 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12237 "the new size of the underlying device."
12238 msgstr ""
12239
12240 #. type: =head2
12241 #: ../fish/guestfish-actions.pod:3813
12242 msgid "pvresize-size"
12243 msgstr ""
12244
12245 #. type: verbatim
12246 #: ../fish/guestfish-actions.pod:3815
12247 #, no-wrap
12248 msgid ""
12249 " pvresize-size device size\n"
12250 "\n"
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:3817
12255 msgid ""
12256 "This command is the same as L</pvresize> except that it allows you to "
12257 "specify the new size (in bytes) explicitly."
12258 msgstr ""
12259
12260 #. type: =head2
12261 #: ../fish/guestfish-actions.pod:3820
12262 msgid "pvs"
12263 msgstr ""
12264
12265 #. type: verbatim
12266 #: ../fish/guestfish-actions.pod:3822
12267 #, no-wrap
12268 msgid ""
12269 " pvs\n"
12270 "\n"
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
12275 msgid ""
12276 "List all the physical volumes detected.  This is the equivalent of the "
12277 "L<pvs(8)> command."
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
12282 msgid ""
12283 "This returns a list of just the device names that contain PVs "
12284 "(eg. C</dev/sda2>)."
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3830
12289 msgid "See also L</pvs-full>."
12290 msgstr ""
12291
12292 #. type: =head2
12293 #: ../fish/guestfish-actions.pod:3832
12294 msgid "pvs-full"
12295 msgstr ""
12296
12297 #. type: verbatim
12298 #: ../fish/guestfish-actions.pod:3834
12299 #, no-wrap
12300 msgid ""
12301 " pvs-full\n"
12302 "\n"
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
12307 msgid ""
12308 "List all the physical volumes detected.  This is the equivalent of the "
12309 "L<pvs(8)> command.  The \"full\" version includes all fields."
12310 msgstr ""
12311
12312 #. type: =head2
12313 #: ../fish/guestfish-actions.pod:3839
12314 msgid "pvuuid"
12315 msgstr ""
12316
12317 #. type: verbatim
12318 #: ../fish/guestfish-actions.pod:3841
12319 #, no-wrap
12320 msgid ""
12321 " pvuuid device\n"
12322 "\n"
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
12327 msgid "This command returns the UUID of the LVM PV C<device>."
12328 msgstr ""
12329
12330 #. type: =head2
12331 #: ../fish/guestfish-actions.pod:3845
12332 msgid "pwrite"
12333 msgstr ""
12334
12335 #. type: verbatim
12336 #: ../fish/guestfish-actions.pod:3847
12337 #, no-wrap
12338 msgid ""
12339 " pwrite path content offset\n"
12340 "\n"
12341 msgstr ""
12342
12343 #. type: textblock
12344 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
12345 msgid ""
12346 "This command writes to part of a file.  It writes the data buffer C<content> "
12347 "to the file C<path> starting at offset C<offset>."
12348 msgstr ""
12349
12350 #. type: textblock
12351 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
12352 msgid ""
12353 "This command implements the L<pwrite(2)> system call, and like that system "
12354 "call it may not write the full data requested.  The return value is the "
12355 "number of bytes that were actually written to the file.  This could even be "
12356 "0, although short writes are unlikely for regular files in ordinary "
12357 "circumstances."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3858
12362 msgid "See also L</pread>, L</pwrite-device>."
12363 msgstr ""
12364
12365 #. type: =head2
12366 #: ../fish/guestfish-actions.pod:3863
12367 msgid "pwrite-device"
12368 msgstr ""
12369
12370 #. type: verbatim
12371 #: ../fish/guestfish-actions.pod:3865
12372 #, no-wrap
12373 msgid ""
12374 " pwrite-device device content offset\n"
12375 "\n"
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
12380 msgid ""
12381 "This command writes to part of a device.  It writes the data buffer "
12382 "C<content> to C<device> starting at offset C<offset>."
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
12387 msgid ""
12388 "This command implements the L<pwrite(2)> system call, and like that system "
12389 "call it may not write the full data requested (although short writes to disk "
12390 "devices and partitions are probably impossible with standard Linux kernels)."
12391 msgstr ""
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3875
12395 msgid "See also L</pwrite>."
12396 msgstr ""
12397
12398 #. type: =head2
12399 #: ../fish/guestfish-actions.pod:3880
12400 msgid "read-file"
12401 msgstr ""
12402
12403 #. type: verbatim
12404 #: ../fish/guestfish-actions.pod:3882
12405 #, no-wrap
12406 msgid ""
12407 " read-file path\n"
12408 "\n"
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
12413 msgid "This calls returns the contents of the file C<path> as a buffer."
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3887
12418 msgid ""
12419 "Unlike L</cat>, this function can correctly handle files that contain "
12420 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12421 "is limited in the total size of file that can be handled."
12422 msgstr ""
12423
12424 #. type: =head2
12425 #: ../fish/guestfish-actions.pod:3895
12426 msgid "read-lines"
12427 msgstr ""
12428
12429 #. type: verbatim
12430 #: ../fish/guestfish-actions.pod:3897
12431 #, no-wrap
12432 msgid ""
12433 " read-lines path\n"
12434 "\n"
12435 msgstr ""
12436
12437 #. type: textblock
12438 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
12439 msgid ""
12440 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12441 "C<CRLF> character sequences are I<not> returned."
12442 msgstr ""
12443
12444 #. type: textblock
12445 #: ../fish/guestfish-actions.pod:3904
12446 msgid ""
12447 "Note that this function cannot correctly handle binary files (specifically, "
12448 "files containing C<\\0> character which is treated as end of line).  For "
12449 "those you need to use the L</read-file> function which has a more complex "
12450 "interface."
12451 msgstr ""
12452
12453 #. type: =head2
12454 #: ../fish/guestfish-actions.pod:3909
12455 msgid "readdir"
12456 msgstr ""
12457
12458 #. type: verbatim
12459 #: ../fish/guestfish-actions.pod:3911
12460 #, no-wrap
12461 msgid ""
12462 " readdir dir\n"
12463 "\n"
12464 msgstr ""
12465
12466 #. type: textblock
12467 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
12468 msgid "This returns the list of directory entries in directory C<dir>."
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
12473 msgid ""
12474 "All entries in the directory are returned, including C<.> and C<..>.  The "
12475 "entries are I<not> sorted, but returned in the same order as the underlying "
12476 "filesystem."
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
12481 msgid ""
12482 "Also this call returns basic file type information about each file.  The "
12483 "C<ftyp> field will contain one of the following characters:"
12484 msgstr ""
12485
12486 #. type: =item
12487 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
12488 msgid "'b'"
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
12493 msgid "Block special"
12494 msgstr ""
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
12498 msgid "'c'"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
12503 msgid "Char special"
12504 msgstr ""
12505
12506 #. type: =item
12507 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
12508 msgid "'d'"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
12513 msgid "Directory"
12514 msgstr ""
12515
12516 #. type: =item
12517 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
12518 msgid "'f'"
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
12523 msgid "FIFO (named pipe)"
12524 msgstr ""
12525
12526 #. type: =item
12527 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
12528 msgid "'l'"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
12533 msgid "Symbolic link"
12534 msgstr ""
12535
12536 #. type: =item
12537 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
12538 msgid "'r'"
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
12543 msgid "Regular file"
12544 msgstr ""
12545
12546 #. type: =item
12547 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
12548 msgid "'s'"
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
12553 msgid "Socket"
12554 msgstr ""
12555
12556 #. type: =item
12557 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
12558 msgid "'u'"
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
12563 msgid "Unknown file type"
12564 msgstr ""
12565
12566 #. type: =item
12567 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
12568 msgid "'?'"
12569 msgstr ""
12570
12571 #. type: textblock
12572 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
12573 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:3963
12578 msgid ""
12579 "This function is primarily intended for use by programs.  To get a simple "
12580 "list of names, use L</ls>.  To get a printable directory for human "
12581 "consumption, use L</ll>."
12582 msgstr ""
12583
12584 #. type: =head2
12585 #: ../fish/guestfish-actions.pod:3967
12586 msgid "readlink"
12587 msgstr ""
12588
12589 #. type: verbatim
12590 #: ../fish/guestfish-actions.pod:3969
12591 #, no-wrap
12592 msgid ""
12593 " readlink path\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
12599 msgid "This command reads the target of a symbolic link."
12600 msgstr ""
12601
12602 #. type: =head2
12603 #: ../fish/guestfish-actions.pod:3973
12604 msgid "readlinklist"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3975
12609 #, no-wrap
12610 msgid ""
12611 " readlinklist path 'names ...'\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
12617 msgid ""
12618 "This call allows you to do a C<readlink> operation on multiple files, where "
12619 "all files are in the directory C<path>.  C<names> is the list of files from "
12620 "this directory."
12621 msgstr ""
12622
12623 #. type: textblock
12624 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
12625 msgid ""
12626 "On return you get a list of strings, with a one-to-one correspondence to the "
12627 "C<names> list.  Each string is the value of the symbolic link."
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
12632 msgid ""
12633 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12634 "result string is the empty string C<\"\">.  However the whole operation is "
12635 "completed even if there were C<readlink(2)> errors, and so you can call this "
12636 "function with names where you don't know if they are symbolic links already "
12637 "(albeit slightly less efficient)."
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
12642 msgid ""
12643 "This call is intended for programs that want to efficiently list a directory "
12644 "contents without making many round-trips.  Very long directory listings "
12645 "might cause the protocol message size to be exceeded, causing this call to "
12646 "fail.  The caller must split up such requests into smaller groups of names."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3999
12651 msgid "realpath"
12652 msgstr ""
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:4001
12656 #, no-wrap
12657 msgid ""
12658 " realpath path\n"
12659 "\n"
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
12664 msgid ""
12665 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12666 "has no C<.>, C<..> or symbolic link path elements."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../fish/guestfish-actions.pod:4006
12671 msgid "removexattr"
12672 msgstr ""
12673
12674 #. type: verbatim
12675 #: ../fish/guestfish-actions.pod:4008
12676 #, no-wrap
12677 msgid ""
12678 " removexattr xattr path\n"
12679 "\n"
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
12684 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12685 msgstr ""
12686
12687 #. type: textblock
12688 #: ../fish/guestfish-actions.pod:4013
12689 msgid "See also: L</lremovexattr>, L<attr(5)>."
12690 msgstr ""
12691
12692 #. type: =head2
12693 #: ../fish/guestfish-actions.pod:4015
12694 msgid "resize2fs"
12695 msgstr ""
12696
12697 #. type: verbatim
12698 #: ../fish/guestfish-actions.pod:4017
12699 #, no-wrap
12700 msgid ""
12701 " resize2fs device\n"
12702 "\n"
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
12707 msgid ""
12708 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12709 "underlying device."
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:4022
12714 msgid ""
12715 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12716 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12717 "gives an error about this and sometimes not.  In any case, it is always safe "
12718 "to call L</e2fsck-f> before calling this function."
12719 msgstr ""
12720
12721 #. type: =head2
12722 #: ../fish/guestfish-actions.pod:4028
12723 msgid "resize2fs-M"
12724 msgstr ""
12725
12726 #. type: verbatim
12727 #: ../fish/guestfish-actions.pod:4030
12728 #, no-wrap
12729 msgid ""
12730 " resize2fs-M device\n"
12731 "\n"
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:4032
12736 msgid ""
12737 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12738 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12739 "command."
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../fish/guestfish-actions.pod:4036
12744 msgid ""
12745 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12746 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12747 "multiplied together, give the resulting size of the minimal filesystem in "
12748 "bytes."
12749 msgstr ""
12750
12751 #. type: =head2
12752 #: ../fish/guestfish-actions.pod:4041
12753 msgid "resize2fs-size"
12754 msgstr ""
12755
12756 #. type: verbatim
12757 #: ../fish/guestfish-actions.pod:4043
12758 #, no-wrap
12759 msgid ""
12760 " resize2fs-size device size\n"
12761 "\n"
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:4045
12766 msgid ""
12767 "This command is the same as L</resize2fs> except that it allows you to "
12768 "specify the new size (in bytes) explicitly."
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:4048
12773 msgid "rm"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:4050
12778 #, no-wrap
12779 msgid ""
12780 " rm path\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
12786 msgid "Remove the single file C<path>."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../fish/guestfish-actions.pod:4054
12791 msgid "rm-rf"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../fish/guestfish-actions.pod:4056
12796 #, no-wrap
12797 msgid ""
12798 " rm-rf path\n"
12799 "\n"
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
12804 msgid ""
12805 "Remove the file or directory C<path>, recursively removing the contents if "
12806 "its a directory.  This is like the C<rm -rf> shell command."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../fish/guestfish-actions.pod:4062
12811 msgid "rmdir"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../fish/guestfish-actions.pod:4064
12816 #, no-wrap
12817 msgid ""
12818 " rmdir path\n"
12819 "\n"
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
12824 msgid "Remove the single directory C<path>."
12825 msgstr ""
12826
12827 #. type: =head2
12828 #: ../fish/guestfish-actions.pod:4068
12829 msgid "rmmountpoint"
12830 msgstr ""
12831
12832 #. type: verbatim
12833 #: ../fish/guestfish-actions.pod:4070
12834 #, no-wrap
12835 msgid ""
12836 " rmmountpoint exemptpath\n"
12837 "\n"
12838 msgstr ""
12839
12840 #. type: textblock
12841 #: ../fish/guestfish-actions.pod:4072
12842 msgid ""
12843 "This calls removes a mountpoint that was previously created with "
12844 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12845 msgstr ""
12846
12847 #. type: =head2
12848 #: ../fish/guestfish-actions.pod:4076
12849 msgid "scrub-device"
12850 msgstr ""
12851
12852 #. type: verbatim
12853 #: ../fish/guestfish-actions.pod:4078
12854 #, no-wrap
12855 msgid ""
12856 " scrub-device device\n"
12857 "\n"
12858 msgstr ""
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
12862 msgid ""
12863 "This command writes patterns over C<device> to make data retrieval more "
12864 "difficult."
12865 msgstr ""
12866
12867 #. type: textblock
12868 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
12869 msgid ""
12870 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12871 "more details."
12872 msgstr ""
12873
12874 #. type: =head2
12875 #: ../fish/guestfish-actions.pod:4089
12876 msgid "scrub-file"
12877 msgstr ""
12878
12879 #. type: verbatim
12880 #: ../fish/guestfish-actions.pod:4091
12881 #, no-wrap
12882 msgid ""
12883 " scrub-file file\n"
12884 "\n"
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
12889 msgid ""
12890 "This command writes patterns over a file to make data retrieval more "
12891 "difficult."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
12896 msgid "The file is I<removed> after scrubbing."
12897 msgstr ""
12898
12899 #. type: =head2
12900 #: ../fish/guestfish-actions.pod:4101
12901 msgid "scrub-freespace"
12902 msgstr ""
12903
12904 #. type: verbatim
12905 #: ../fish/guestfish-actions.pod:4103
12906 #, no-wrap
12907 msgid ""
12908 " scrub-freespace dir\n"
12909 "\n"
12910 msgstr ""
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:4105
12914 msgid ""
12915 "This command creates the directory C<dir> and then fills it with files until "
12916 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12917 "deletes them.  The intention is to scrub any free space on the partition "
12918 "containing C<dir>."
12919 msgstr ""
12920
12921 #. type: =head2
12922 #: ../fish/guestfish-actions.pod:4114
12923 msgid "set-append"
12924 msgstr ""
12925
12926 #. type: =head2
12927 #: ../fish/guestfish-actions.pod:4116
12928 msgid "append"
12929 msgstr ""
12930
12931 #. type: verbatim
12932 #: ../fish/guestfish-actions.pod:4118
12933 #, no-wrap
12934 msgid ""
12935 " set-append append\n"
12936 "\n"
12937 msgstr ""
12938
12939 #. type: textblock
12940 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
12941 msgid ""
12942 "This function is used to add additional options to the guest kernel command "
12943 "line."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
12948 msgid ""
12949 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12950 "environment variable."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
12955 msgid ""
12956 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12957 "(libguestfs always adds a few of its own)."
12958 msgstr ""
12959
12960 #. type: =head2
12961 #: ../fish/guestfish-actions.pod:4129
12962 msgid "set-attach-method"
12963 msgstr ""
12964
12965 #. type: =head2
12966 #: ../fish/guestfish-actions.pod:4131
12967 msgid "attach-method"
12968 msgstr ""
12969
12970 #. type: verbatim
12971 #: ../fish/guestfish-actions.pod:4133
12972 #, no-wrap
12973 msgid ""
12974 " set-attach-method attachmethod\n"
12975 "\n"
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
12980 msgid ""
12981 "Set the method that libguestfs uses to connect to the back end guestfsd "
12982 "daemon.  Possible methods are:"
12983 msgstr ""
12984
12985 #. type: =item
12986 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325 ../src/guestfs.pod:2830
12987 msgid "C<appliance>"
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
12992 msgid ""
12993 "Launch an appliance and connect to it.  This is the ordinary method and the "
12994 "default."
12995 msgstr ""
12996
12997 #. type: =item
12998 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
12999 msgid "C<unix:I<path>>"
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
13004 msgid "Connect to the Unix domain socket I<path>."
13005 msgstr ""
13006
13007 #. type: textblock
13008 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
13009 msgid ""
13010 "This method lets you connect to an existing daemon or (using virtio-serial) "
13011 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13012 "RUNNING DAEMONS>."
13013 msgstr ""
13014
13015 #. type: =head2
13016 #: ../fish/guestfish-actions.pod:4155
13017 msgid "set-autosync"
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:4157
13022 msgid "autosync"
13023 msgstr ""
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:4159
13027 #, no-wrap
13028 msgid ""
13029 " set-autosync true|false\n"
13030 "\n"
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
13035 msgid ""
13036 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13037 "effort attempt to make filesystems consistent and synchronized when the "
13038 "handle is closed (also if the program exits without closing handles)."
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
13043 msgid ""
13044 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13045 "disabled by default)."
13046 msgstr ""
13047
13048 #. type: =head2
13049 #: ../fish/guestfish-actions.pod:4169
13050 msgid "set-direct"
13051 msgstr ""
13052
13053 #. type: =head2
13054 #: ../fish/guestfish-actions.pod:4171
13055 msgid "direct"
13056 msgstr ""
13057
13058 #. type: verbatim
13059 #: ../fish/guestfish-actions.pod:4173
13060 #, no-wrap
13061 msgid ""
13062 " set-direct true|false\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
13068 msgid ""
13069 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13070 "passed directly through to the appliance once it is launched."
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:4179
13075 msgid ""
13076 "One consequence of this is that log messages aren't caught by the library "
13077 "and handled by L</set-log-message-callback>, but go straight to stdout."
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
13082 msgid "You probably don't want to use this unless you know what you are doing."
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
13087 msgid "The default is disabled."
13088 msgstr ""
13089
13090 #. type: =head2
13091 #: ../fish/guestfish-actions.pod:4188
13092 msgid "set-e2label"
13093 msgstr ""
13094
13095 #. type: verbatim
13096 #: ../fish/guestfish-actions.pod:4190
13097 #, no-wrap
13098 msgid ""
13099 " set-e2label device label\n"
13100 "\n"
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
13105 msgid ""
13106 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13107 "C<label>.  Filesystem labels are limited to 16 characters."
13108 msgstr ""
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:4196
13112 msgid ""
13113 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13114 "label on a filesystem."
13115 msgstr ""
13116
13117 #. type: =head2
13118 #: ../fish/guestfish-actions.pod:4199
13119 msgid "set-e2uuid"
13120 msgstr ""
13121
13122 #. type: verbatim
13123 #: ../fish/guestfish-actions.pod:4201
13124 #, no-wrap
13125 msgid ""
13126 " set-e2uuid device uuid\n"
13127 "\n"
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
13132 msgid ""
13133 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13134 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13135 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:4208
13140 msgid ""
13141 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13142 "UUID of a filesystem."
13143 msgstr ""
13144
13145 #. type: =head2
13146 #: ../fish/guestfish-actions.pod:4211
13147 msgid "set-memsize"
13148 msgstr ""
13149
13150 #. type: =head2
13151 #: ../fish/guestfish-actions.pod:4213
13152 msgid "memsize"
13153 msgstr ""
13154
13155 #. type: verbatim
13156 #: ../fish/guestfish-actions.pod:4215
13157 #, no-wrap
13158 msgid ""
13159 " set-memsize memsize\n"
13160 "\n"
13161 msgstr ""
13162
13163 #. type: textblock
13164 #: ../fish/guestfish-actions.pod:4217
13165 msgid ""
13166 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13167 "This only has any effect if called before L</launch>."
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
13172 msgid ""
13173 "You can also change this by setting the environment variable "
13174 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13175 msgstr ""
13176
13177 #. type: =head2
13178 #: ../fish/guestfish-actions.pod:4228
13179 msgid "set-network"
13180 msgstr ""
13181
13182 #. type: =head2
13183 #: ../fish/guestfish-actions.pod:4230
13184 msgid "network"
13185 msgstr ""
13186
13187 #. type: verbatim
13188 #: ../fish/guestfish-actions.pod:4232
13189 #, no-wrap
13190 msgid ""
13191 " set-network true|false\n"
13192 "\n"
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
13197 msgid ""
13198 "If C<network> is true, then the network is enabled in the libguestfs "
13199 "appliance.  The default is false."
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
13204 msgid ""
13205 "This affects whether commands are able to access the network (see "
13206 "L<guestfs(3)/RUNNING COMMANDS>)."
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:4240
13211 msgid "You must call this before calling L</launch>, otherwise it has no effect."
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:4243
13216 msgid "set-path"
13217 msgstr ""
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:4247
13221 #, no-wrap
13222 msgid ""
13223 " set-path searchpath\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
13229 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13230 msgstr ""
13231
13232 #. type: textblock
13233 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
13234 msgid ""
13235 "The default is C<$libdir/guestfs> unless overridden by setting "
13236 "C<LIBGUESTFS_PATH> environment variable."
13237 msgstr ""
13238
13239 #. type: textblock
13240 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
13241 msgid "Setting C<path> to C<NULL> restores the default path."
13242 msgstr ""
13243
13244 #. type: =head2
13245 #: ../fish/guestfish-actions.pod:4256
13246 msgid "set-pgroup"
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:4258
13251 msgid "pgroup"
13252 msgstr ""
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:4260
13256 #, no-wrap
13257 msgid ""
13258 " set-pgroup true|false\n"
13259 "\n"
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
13264 msgid ""
13265 "If C<pgroup> is true, child processes are placed into their own process "
13266 "group."
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
13271 msgid ""
13272 "The practical upshot of this is that signals like C<SIGINT> (from users "
13273 "pressing C<^C>) won't be received by the child process."
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
13278 msgid ""
13279 "The default for this flag is false, because usually you want C<^C> to kill "
13280 "the subprocess."
13281 msgstr ""
13282
13283 #. type: =head2
13284 #: ../fish/guestfish-actions.pod:4271
13285 msgid "set-qemu"
13286 msgstr ""
13287
13288 #. type: =head2
13289 #: ../fish/guestfish-actions.pod:4273
13290 msgid "qemu"
13291 msgstr ""
13292
13293 #. type: verbatim
13294 #: ../fish/guestfish-actions.pod:4275
13295 #, no-wrap
13296 msgid ""
13297 " set-qemu qemu\n"
13298 "\n"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
13303 msgid "Set the qemu binary that we will use."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
13308 msgid "The default is chosen when the library was compiled by the configure script."
13309 msgstr ""
13310
13311 #. type: textblock
13312 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
13313 msgid ""
13314 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13315 "variable."
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
13320 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13321 msgstr ""
13322
13323 #. type: textblock
13324 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
13325 msgid ""
13326 "Note that you should call this function as early as possible after creating "
13327 "the handle.  This is because some pre-launch operations depend on testing "
13328 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13329 "don't retest features, and so you might see inconsistent results.  Using the "
13330 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13331 "the qemu binary at the same time as the handle is created."
13332 msgstr ""
13333
13334 #. type: =head2
13335 #: ../fish/guestfish-actions.pod:4295
13336 msgid "set-recovery-proc"
13337 msgstr ""
13338
13339 #. type: =head2
13340 #: ../fish/guestfish-actions.pod:4297
13341 msgid "recovery-proc"
13342 msgstr ""
13343
13344 #. type: verbatim
13345 #: ../fish/guestfish-actions.pod:4299
13346 #, no-wrap
13347 msgid ""
13348 " set-recovery-proc true|false\n"
13349 "\n"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:4301
13354 msgid ""
13355 "If this is called with the parameter C<false> then L</launch> does not "
13356 "create a recovery process.  The purpose of the recovery process is to stop "
13357 "runaway qemu processes in the case where the main program aborts abruptly."
13358 msgstr ""
13359
13360 #. type: textblock
13361 #: ../fish/guestfish-actions.pod:4306
13362 msgid ""
13363 "This only has any effect if called before L</launch>, and the default is "
13364 "true."
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
13369 msgid ""
13370 "About the only time when you would want to disable this is if the main "
13371 "process will fork itself into the background (\"daemonize\" itself).  In "
13372 "this case the recovery process thinks that the main program has disappeared "
13373 "and so kills qemu, which is not very helpful."
13374 msgstr ""
13375
13376 #. type: =head2
13377 #: ../fish/guestfish-actions.pod:4315
13378 msgid "set-selinux"
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:4317
13383 msgid "selinux"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:4319
13388 #, no-wrap
13389 msgid ""
13390 " set-selinux true|false\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
13396 msgid ""
13397 "This sets the selinux flag that is passed to the appliance at boot time.  "
13398 "The default is C<selinux=0> (disabled)."
13399 msgstr ""
13400
13401 #. type: textblock
13402 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
13403 msgid ""
13404 "Note that if SELinux is enabled, it is always in Permissive mode "
13405 "(C<enforcing=0>)."
13406 msgstr ""
13407
13408 #. type: =head2
13409 #: ../fish/guestfish-actions.pod:4330
13410 msgid "set-smp"
13411 msgstr ""
13412
13413 #. type: =head2
13414 #: ../fish/guestfish-actions.pod:4332
13415 msgid "smp"
13416 msgstr ""
13417
13418 #. type: verbatim
13419 #: ../fish/guestfish-actions.pod:4334
13420 #, no-wrap
13421 msgid ""
13422 " set-smp smp\n"
13423 "\n"
13424 msgstr ""
13425
13426 #. type: textblock
13427 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
13428 msgid ""
13429 "Change the number of virtual CPUs assigned to the appliance.  The default is "
13430 "C<1>.  Increasing this may improve performance, though often it has no "
13431 "effect."
13432 msgstr ""
13433
13434 #. type: textblock
13435 #: ../fish/guestfish-actions.pod:4340
13436 msgid "This function must be called before L</launch>."
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../fish/guestfish-actions.pod:4342
13441 msgid "set-trace"
13442 msgstr ""
13443
13444 #. type: =head2
13445 #: ../fish/guestfish-actions.pod:4344
13446 msgid "trace"
13447 msgstr ""
13448
13449 #. type: verbatim
13450 #: ../fish/guestfish-actions.pod:4346
13451 #, no-wrap
13452 msgid ""
13453 " set-trace true|false\n"
13454 "\n"
13455 msgstr ""
13456
13457 #. type: textblock
13458 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
13459 msgid ""
13460 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13461 "return values are traced."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
13466 msgid ""
13467 "If you want to trace C API calls into libguestfs (and other libraries) then "
13468 "possibly a better way is to use the external ltrace(1) command."
13469 msgstr ""
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
13473 msgid ""
13474 "Command traces are disabled unless the environment variable "
13475 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:4358
13480 msgid ""
13481 "Trace messages are normally sent to C<stderr>, unless you register a "
13482 "callback to send them somewhere else (see L</set-event-callback>)."
13483 msgstr ""
13484
13485 #. type: =head2
13486 #: ../fish/guestfish-actions.pod:4362
13487 msgid "set-verbose"
13488 msgstr ""
13489
13490 #. type: =head2
13491 #: ../fish/guestfish-actions.pod:4364
13492 msgid "verbose"
13493 msgstr ""
13494
13495 #. type: verbatim
13496 #: ../fish/guestfish-actions.pod:4366
13497 #, no-wrap
13498 msgid ""
13499 " set-verbose true|false\n"
13500 "\n"
13501 msgstr ""
13502
13503 #. type: textblock
13504 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
13505 msgid "If C<verbose> is true, this turns on verbose messages."
13506 msgstr ""
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
13510 msgid ""
13511 "Verbose messages are disabled unless the environment variable "
13512 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4373
13517 msgid ""
13518 "Verbose messages are normally sent to C<stderr>, unless you register a "
13519 "callback to send them somewhere else (see L</set-event-callback>)."
13520 msgstr ""
13521
13522 #. type: =head2
13523 #: ../fish/guestfish-actions.pod:4377
13524 msgid "setcon"
13525 msgstr ""
13526
13527 #. type: verbatim
13528 #: ../fish/guestfish-actions.pod:4379
13529 #, no-wrap
13530 msgid ""
13531 " setcon context\n"
13532 "\n"
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
13537 msgid ""
13538 "This sets the SELinux security context of the daemon to the string "
13539 "C<context>."
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
13544 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13545 msgstr ""
13546
13547 #. type: =head2
13548 #: ../fish/guestfish-actions.pod:4386
13549 msgid "setxattr"
13550 msgstr ""
13551
13552 #. type: verbatim
13553 #: ../fish/guestfish-actions.pod:4388
13554 #, no-wrap
13555 msgid ""
13556 " setxattr xattr val vallen path\n"
13557 "\n"
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
13562 msgid ""
13563 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13564 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:4394
13569 msgid "See also: L</lsetxattr>, L<attr(5)>."
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../fish/guestfish-actions.pod:4396
13574 msgid "sfdisk"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../fish/guestfish-actions.pod:4398
13579 #, no-wrap
13580 msgid ""
13581 " sfdisk device cyls heads sectors 'lines ...'\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
13587 msgid ""
13588 "This is a direct interface to the L<sfdisk(8)> program for creating "
13589 "partitions on block devices."
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
13594 msgid "C<device> should be a block device, for example C</dev/sda>."
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
13599 msgid ""
13600 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13601 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13602 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13603 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13604 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13605 "the kernel) cannot work out the right geometry and you will need to tell it."
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
13610 msgid ""
13611 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13612 "refer to the L<sfdisk(8)> manpage."
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
13617 msgid ""
13618 "To create a single partition occupying the whole disk, you would pass "
13619 "C<lines> as a single element list, when the single element being the string "
13620 "C<,> (comma)."
13621 msgstr ""
13622
13623 #. type: textblock
13624 #: ../fish/guestfish-actions.pod:4420
13625 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13626 msgstr ""
13627
13628 #. type: textblock
13629 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449 ../fish/guestfish-actions.pod:4471
13630 msgid ""
13631 "I<This function is deprecated.> In new code, use the L</part_add> call "
13632 "instead."
13633 msgstr ""
13634
13635 #. type: =head2
13636 #: ../fish/guestfish-actions.pod:4433
13637 msgid "sfdiskM"
13638 msgstr ""
13639
13640 #. type: verbatim
13641 #: ../fish/guestfish-actions.pod:4435
13642 #, no-wrap
13643 msgid ""
13644 " sfdiskM device 'lines ...'\n"
13645 "\n"
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:4437
13650 msgid ""
13651 "This is a simplified interface to the L</sfdisk> command, where partition "
13652 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13653 "you don't need to specify the cyls, heads and sectors parameters which were "
13654 "rarely if ever used anyway."
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:4443
13659 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13660 msgstr ""
13661
13662 #. type: =head2
13663 #: ../fish/guestfish-actions.pod:4456
13664 msgid "sfdisk-N"
13665 msgstr ""
13666
13667 #. type: verbatim
13668 #: ../fish/guestfish-actions.pod:4458
13669 #, no-wrap
13670 msgid ""
13671 " sfdisk-N device partnum cyls heads sectors line\n"
13672 "\n"
13673 msgstr ""
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
13677 msgid ""
13678 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13679 "(note: C<n> counts from 1)."
13680 msgstr ""
13681
13682 #. type: textblock
13683 #: ../fish/guestfish-actions.pod:4463
13684 msgid ""
13685 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13686 "cyls/heads/sectors parameters."
13687 msgstr ""
13688
13689 #. type: textblock
13690 #: ../fish/guestfish-actions.pod:4466
13691 msgid "See also: L</part-add>"
13692 msgstr ""
13693
13694 #. type: =head2
13695 #: ../fish/guestfish-actions.pod:4478
13696 msgid "sfdisk-disk-geometry"
13697 msgstr ""
13698
13699 #. type: verbatim
13700 #: ../fish/guestfish-actions.pod:4480
13701 #, no-wrap
13702 msgid ""
13703 " sfdisk-disk-geometry device\n"
13704 "\n"
13705 msgstr ""
13706
13707 #. type: textblock
13708 #: ../fish/guestfish-actions.pod:4482
13709 msgid ""
13710 "This displays the disk geometry of C<device> read from the partition table.  "
13711 "Especially in the case where the underlying block device has been resized, "
13712 "this can be different from the kernel's idea of the geometry (see "
13713 "L</sfdisk-kernel-geometry>)."
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
13718 msgid "The result is in human-readable format, and not designed to be parsed."
13719 msgstr ""
13720
13721 #. type: =head2
13722 #: ../fish/guestfish-actions.pod:4490
13723 msgid "sfdisk-kernel-geometry"
13724 msgstr ""
13725
13726 #. type: verbatim
13727 #: ../fish/guestfish-actions.pod:4492
13728 #, no-wrap
13729 msgid ""
13730 " sfdisk-kernel-geometry device\n"
13731 "\n"
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
13736 msgid "This displays the kernel's idea of the geometry of C<device>."
13737 msgstr ""
13738
13739 #. type: =head2
13740 #: ../fish/guestfish-actions.pod:4499
13741 msgid "sfdisk-l"
13742 msgstr ""
13743
13744 #. type: verbatim
13745 #: ../fish/guestfish-actions.pod:4501
13746 #, no-wrap
13747 msgid ""
13748 " sfdisk-l device\n"
13749 "\n"
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
13754 msgid ""
13755 "This displays the partition table on C<device>, in the human-readable output "
13756 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../fish/guestfish-actions.pod:4507
13761 msgid "See also: L</part-list>"
13762 msgstr ""
13763
13764 #. type: textblock
13765 #: ../fish/guestfish-actions.pod:4509
13766 msgid ""
13767 "I<This function is deprecated.> In new code, use the L</part_list> call "
13768 "instead."
13769 msgstr ""
13770
13771 #. type: =head2
13772 #: ../fish/guestfish-actions.pod:4516
13773 msgid "sh"
13774 msgstr ""
13775
13776 #. type: verbatim
13777 #: ../fish/guestfish-actions.pod:4518
13778 #, no-wrap
13779 msgid ""
13780 " sh command\n"
13781 "\n"
13782 msgstr ""
13783
13784 #. type: textblock
13785 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
13786 msgid ""
13787 "This call runs a command from the guest filesystem via the guest's "
13788 "C</bin/sh>."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:4523
13793 msgid "This is like L</command>, but passes the command to:"
13794 msgstr ""
13795
13796 #. type: verbatim
13797 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
13798 #, no-wrap
13799 msgid ""
13800 " /bin/sh -c \"command\"\n"
13801 "\n"
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
13806 msgid ""
13807 "Depending on the guest's shell, this usually results in wildcards being "
13808 "expanded, shell expressions being interpolated and so on."
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:4531
13813 msgid "All the provisos about L</command> apply to this call."
13814 msgstr ""
13815
13816 #. type: =head2
13817 #: ../fish/guestfish-actions.pod:4533
13818 msgid "sh-lines"
13819 msgstr ""
13820
13821 #. type: verbatim
13822 #: ../fish/guestfish-actions.pod:4535
13823 #, no-wrap
13824 msgid ""
13825 " sh-lines command\n"
13826 "\n"
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:4537
13831 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:4540
13836 msgid "See also: L</command-lines>"
13837 msgstr ""
13838
13839 #. type: =head2
13840 #: ../fish/guestfish-actions.pod:4542
13841 msgid "sleep"
13842 msgstr ""
13843
13844 #. type: verbatim
13845 #: ../fish/guestfish-actions.pod:4544
13846 #, no-wrap
13847 msgid ""
13848 " sleep secs\n"
13849 "\n"
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
13854 msgid "Sleep for C<secs> seconds."
13855 msgstr ""
13856
13857 #. type: =head2
13858 #: ../fish/guestfish-actions.pod:4548
13859 msgid "stat"
13860 msgstr ""
13861
13862 #. type: verbatim
13863 #: ../fish/guestfish-actions.pod:4550
13864 #, no-wrap
13865 msgid ""
13866 " stat path\n"
13867 "\n"
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
13872 msgid "This is the same as the C<stat(2)> system call."
13873 msgstr ""
13874
13875 #. type: =head2
13876 #: ../fish/guestfish-actions.pod:4556
13877 msgid "statvfs"
13878 msgstr ""
13879
13880 #. type: verbatim
13881 #: ../fish/guestfish-actions.pod:4558
13882 #, no-wrap
13883 msgid ""
13884 " statvfs path\n"
13885 "\n"
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
13890 msgid ""
13891 "Returns file system statistics for any mounted file system.  C<path> should "
13892 "be a file or directory in the mounted file system (typically it is the mount "
13893 "point itself, but it doesn't need to be)."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
13898 msgid "This is the same as the C<statvfs(2)> system call."
13899 msgstr ""
13900
13901 #. type: =head2
13902 #: ../fish/guestfish-actions.pod:4566
13903 msgid "strings"
13904 msgstr ""
13905
13906 #. type: verbatim
13907 #: ../fish/guestfish-actions.pod:4568
13908 #, no-wrap
13909 msgid ""
13910 " strings path\n"
13911 "\n"
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
13916 msgid ""
13917 "This runs the L<strings(1)> command on a file and returns the list of "
13918 "printable strings found."
13919 msgstr ""
13920
13921 #. type: =head2
13922 #: ../fish/guestfish-actions.pod:4576
13923 msgid "strings-e"
13924 msgstr ""
13925
13926 #. type: verbatim
13927 #: ../fish/guestfish-actions.pod:4578
13928 #, no-wrap
13929 msgid ""
13930 " strings-e encoding path\n"
13931 "\n"
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:4580
13936 msgid ""
13937 "This is like the L</strings> command, but allows you to specify the encoding "
13938 "of strings that are looked for in the source file C<path>."
13939 msgstr ""
13940
13941 #. type: textblock
13942 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
13943 msgid "Allowed encodings are:"
13944 msgstr ""
13945
13946 #. type: =item
13947 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
13948 msgid "s"
13949 msgstr ""
13950
13951 #. type: textblock
13952 #: ../fish/guestfish-actions.pod:4590
13953 msgid ""
13954 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13955 "ISO-8859-X (this is what L</strings> uses)."
13956 msgstr ""
13957
13958 #. type: =item
13959 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
13960 msgid "S"
13961 msgstr ""
13962
13963 #. type: textblock
13964 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
13965 msgid "Single 8-bit-byte characters."
13966 msgstr ""
13967
13968 #. type: =item
13969 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
13970 msgid "b"
13971 msgstr ""
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
13975 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13976 msgstr ""
13977
13978 #. type: =item
13979 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
13980 msgid "l (lower case letter L)"
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
13985 msgid ""
13986 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13987 "examining binaries in Windows guests."
13988 msgstr ""
13989
13990 #. type: =item
13991 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
13992 msgid "B"
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
13997 msgid "32-bit big endian such as UCS-4BE."
13998 msgstr ""
13999
14000 #. type: =item
14001 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
14002 msgid "L"
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
14007 msgid "32-bit little endian such as UCS-4LE."
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
14012 msgid "The returned strings are transcoded to UTF-8."
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../fish/guestfish-actions.pod:4622
14017 msgid "swapoff-device"
14018 msgstr ""
14019
14020 #. type: verbatim
14021 #: ../fish/guestfish-actions.pod:4624
14022 #, no-wrap
14023 msgid ""
14024 " swapoff-device device\n"
14025 "\n"
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:4626
14030 msgid ""
14031 "This command disables the libguestfs appliance swap device or partition "
14032 "named C<device>.  See L</swapon-device>."
14033 msgstr ""
14034
14035 #. type: =head2
14036 #: ../fish/guestfish-actions.pod:4630
14037 msgid "swapoff-file"
14038 msgstr ""
14039
14040 #. type: verbatim
14041 #: ../fish/guestfish-actions.pod:4632
14042 #, no-wrap
14043 msgid ""
14044 " swapoff-file file\n"
14045 "\n"
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
14050 msgid "This command disables the libguestfs appliance swap on file."
14051 msgstr ""
14052
14053 #. type: =head2
14054 #: ../fish/guestfish-actions.pod:4636
14055 msgid "swapoff-label"
14056 msgstr ""
14057
14058 #. type: verbatim
14059 #: ../fish/guestfish-actions.pod:4638
14060 #, no-wrap
14061 msgid ""
14062 " swapoff-label label\n"
14063 "\n"
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
14068 msgid ""
14069 "This command disables the libguestfs appliance swap on labeled swap "
14070 "partition."
14071 msgstr ""
14072
14073 #. type: =head2
14074 #: ../fish/guestfish-actions.pod:4643
14075 msgid "swapoff-uuid"
14076 msgstr ""
14077
14078 #. type: verbatim
14079 #: ../fish/guestfish-actions.pod:4645
14080 #, no-wrap
14081 msgid ""
14082 " swapoff-uuid uuid\n"
14083 "\n"
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
14088 msgid ""
14089 "This command disables the libguestfs appliance swap partition with the given "
14090 "UUID."
14091 msgstr ""
14092
14093 #. type: =head2
14094 #: ../fish/guestfish-actions.pod:4650
14095 msgid "swapon-device"
14096 msgstr ""
14097
14098 #. type: verbatim
14099 #: ../fish/guestfish-actions.pod:4652
14100 #, no-wrap
14101 msgid ""
14102 " swapon-device device\n"
14103 "\n"
14104 msgstr ""
14105
14106 #. type: textblock
14107 #: ../fish/guestfish-actions.pod:4654
14108 msgid ""
14109 "This command enables the libguestfs appliance to use the swap device or "
14110 "partition named C<device>.  The increased memory is made available for all "
14111 "commands, for example those run using L</command> or L</sh>."
14112 msgstr ""
14113
14114 #. type: textblock
14115 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
14116 msgid ""
14117 "Note that you should not swap to existing guest swap partitions unless you "
14118 "know what you are doing.  They may contain hibernation information, or other "
14119 "information that the guest doesn't want you to trash.  You also risk leaking "
14120 "information about the host to the guest this way.  Instead, attach a new "
14121 "host device to the guest and swap on that."
14122 msgstr ""
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:4666
14126 msgid "swapon-file"
14127 msgstr ""
14128
14129 #. type: verbatim
14130 #: ../fish/guestfish-actions.pod:4668
14131 #, no-wrap
14132 msgid ""
14133 " swapon-file file\n"
14134 "\n"
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:4670
14139 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
14140 msgstr ""
14141
14142 #. type: =head2
14143 #: ../fish/guestfish-actions.pod:4673
14144 msgid "swapon-label"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:4675
14149 #, no-wrap
14150 msgid ""
14151 " swapon-label label\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4677
14157 msgid ""
14158 "This command enables swap to a labeled swap partition.  See "
14159 "L</swapon-device> for other notes."
14160 msgstr ""
14161
14162 #. type: =head2
14163 #: ../fish/guestfish-actions.pod:4680
14164 msgid "swapon-uuid"
14165 msgstr ""
14166
14167 #. type: verbatim
14168 #: ../fish/guestfish-actions.pod:4682
14169 #, no-wrap
14170 msgid ""
14171 " swapon-uuid uuid\n"
14172 "\n"
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../fish/guestfish-actions.pod:4684
14177 msgid ""
14178 "This command enables swap to a swap partition with the given UUID.  See "
14179 "L</swapon-device> for other notes."
14180 msgstr ""
14181
14182 #. type: =head2
14183 #: ../fish/guestfish-actions.pod:4687
14184 msgid "sync"
14185 msgstr ""
14186
14187 #. type: verbatim
14188 #: ../fish/guestfish-actions.pod:4689
14189 #, no-wrap
14190 msgid ""
14191 " sync\n"
14192 "\n"
14193 msgstr ""
14194
14195 #. type: textblock
14196 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
14197 msgid ""
14198 "This syncs the disk, so that any writes are flushed through to the "
14199 "underlying disk image."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
14204 msgid ""
14205 "You should always call this if you have modified a disk image, before "
14206 "closing the handle."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:4697
14211 msgid "tail"
14212 msgstr ""
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:4699
14216 #, no-wrap
14217 msgid ""
14218 " tail path\n"
14219 "\n"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
14224 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14225 msgstr ""
14226
14227 #. type: =head2
14228 #: ../fish/guestfish-actions.pod:4707
14229 msgid "tail-n"
14230 msgstr ""
14231
14232 #. type: verbatim
14233 #: ../fish/guestfish-actions.pod:4709
14234 #, no-wrap
14235 msgid ""
14236 " tail-n nrlines path\n"
14237 "\n"
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
14242 msgid ""
14243 "If the parameter C<nrlines> is a positive number, this returns the last "
14244 "C<nrlines> lines of the file C<path>."
14245 msgstr ""
14246
14247 #. type: textblock
14248 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
14249 msgid ""
14250 "If the parameter C<nrlines> is a negative number, this returns lines from "
14251 "the file C<path>, starting with the C<-nrlines>th line."
14252 msgstr ""
14253
14254 #. type: =head2
14255 #: ../fish/guestfish-actions.pod:4722
14256 msgid "tar-in"
14257 msgstr ""
14258
14259 #. type: verbatim
14260 #: ../fish/guestfish-actions.pod:4724
14261 #, no-wrap
14262 msgid ""
14263 " tar-in (tarfile|-) directory\n"
14264 "\n"
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
14269 msgid ""
14270 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14271 "tar file) into C<directory>."
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:4729
14276 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14277 msgstr ""
14278
14279 #. type: =head2
14280 #: ../fish/guestfish-actions.pod:4734
14281 msgid "tar-out"
14282 msgstr ""
14283
14284 #. type: verbatim
14285 #: ../fish/guestfish-actions.pod:4736
14286 #, no-wrap
14287 msgid ""
14288 " tar-out directory (tarfile|-)\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
14294 msgid ""
14295 "This command packs the contents of C<directory> and downloads it to local "
14296 "file C<tarfile>."
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:4741
14301 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14302 msgstr ""
14303
14304 #. type: =head2
14305 #: ../fish/guestfish-actions.pod:4746
14306 msgid "tgz-in"
14307 msgstr ""
14308
14309 #. type: verbatim
14310 #: ../fish/guestfish-actions.pod:4748
14311 #, no-wrap
14312 msgid ""
14313 " tgz-in (tarball|-) directory\n"
14314 "\n"
14315 msgstr ""
14316
14317 #. type: textblock
14318 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
14319 msgid ""
14320 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14321 "tar file) into C<directory>."
14322 msgstr ""
14323
14324 #. type: textblock
14325 #: ../fish/guestfish-actions.pod:4753
14326 msgid "To upload an uncompressed tarball, use L</tar-in>."
14327 msgstr ""
14328
14329 #. type: =head2
14330 #: ../fish/guestfish-actions.pod:4757
14331 msgid "tgz-out"
14332 msgstr ""
14333
14334 #. type: verbatim
14335 #: ../fish/guestfish-actions.pod:4759
14336 #, no-wrap
14337 msgid ""
14338 " tgz-out directory (tarball|-)\n"
14339 "\n"
14340 msgstr ""
14341
14342 #. type: textblock
14343 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
14344 msgid ""
14345 "This command packs the contents of C<directory> and downloads it to local "
14346 "file C<tarball>."
14347 msgstr ""
14348
14349 #. type: textblock
14350 #: ../fish/guestfish-actions.pod:4764
14351 msgid "To download an uncompressed tarball, use L</tar-out>."
14352 msgstr ""
14353
14354 #. type: =head2
14355 #: ../fish/guestfish-actions.pod:4768
14356 msgid "touch"
14357 msgstr ""
14358
14359 #. type: verbatim
14360 #: ../fish/guestfish-actions.pod:4770
14361 #, no-wrap
14362 msgid ""
14363 " touch path\n"
14364 "\n"
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
14369 msgid ""
14370 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14371 "timestamps on a file, or, if the file does not exist, to create a new "
14372 "zero-length file."
14373 msgstr ""
14374
14375 #. type: textblock
14376 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
14377 msgid ""
14378 "This command only works on regular files, and will fail on other file types "
14379 "such as directories, symbolic links, block special etc."
14380 msgstr ""
14381
14382 #. type: =head2
14383 #: ../fish/guestfish-actions.pod:4779
14384 msgid "truncate"
14385 msgstr ""
14386
14387 #. type: verbatim
14388 #: ../fish/guestfish-actions.pod:4781
14389 #, no-wrap
14390 msgid ""
14391 " truncate path\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
14397 msgid ""
14398 "This command truncates C<path> to a zero-length file.  The file must exist "
14399 "already."
14400 msgstr ""
14401
14402 #. type: =head2
14403 #: ../fish/guestfish-actions.pod:4786
14404 msgid "truncate-size"
14405 msgstr ""
14406
14407 #. type: verbatim
14408 #: ../fish/guestfish-actions.pod:4788
14409 #, no-wrap
14410 msgid ""
14411 " truncate-size path size\n"
14412 "\n"
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
14417 msgid ""
14418 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14419 "already."
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:4793
14424 msgid ""
14425 "If the current file size is less than C<size> then the file is extended to "
14426 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14427 "blocks are not allocated for the file until you write to it).  To create a "
14428 "non-sparse file of zeroes, use L</fallocate64> instead."
14429 msgstr ""
14430
14431 #. type: =head2
14432 #: ../fish/guestfish-actions.pod:4799
14433 msgid "tune2fs-l"
14434 msgstr ""
14435
14436 #. type: verbatim
14437 #: ../fish/guestfish-actions.pod:4801
14438 #, no-wrap
14439 msgid ""
14440 " tune2fs-l device\n"
14441 "\n"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
14446 msgid ""
14447 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14448 "C<device>."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
14453 msgid ""
14454 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14455 "for more details.  The list of fields returned isn't clearly defined, and "
14456 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14457 "and the filesystem itself."
14458 msgstr ""
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4811
14462 msgid "txz-in"
14463 msgstr ""
14464
14465 #. type: verbatim
14466 #: ../fish/guestfish-actions.pod:4813
14467 #, no-wrap
14468 msgid ""
14469 " txz-in (tarball|-) directory\n"
14470 "\n"
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
14475 msgid ""
14476 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14477 "tar file) into C<directory>."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:4820
14482 msgid "txz-out"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:4822
14487 #, no-wrap
14488 msgid ""
14489 " txz-out directory (tarball|-)\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
14495 msgid ""
14496 "This command packs the contents of C<directory> and downloads it to local "
14497 "file C<tarball> (as an xz compressed tar archive)."
14498 msgstr ""
14499
14500 #. type: =head2
14501 #: ../fish/guestfish-actions.pod:4829
14502 msgid "umask"
14503 msgstr ""
14504
14505 #. type: verbatim
14506 #: ../fish/guestfish-actions.pod:4831
14507 #, no-wrap
14508 msgid ""
14509 " umask mask\n"
14510 "\n"
14511 msgstr ""
14512
14513 #. type: textblock
14514 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
14515 msgid ""
14516 "This function sets the mask used for creating new files and device nodes to "
14517 "C<mask & 0777>."
14518 msgstr ""
14519
14520 #. type: textblock
14521 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
14522 msgid ""
14523 "Typical umask values would be C<022> which creates new files with "
14524 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14525 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14526 msgstr ""
14527
14528 #. type: textblock
14529 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
14530 msgid ""
14531 "The default umask is C<022>.  This is important because it means that "
14532 "directories and device nodes will be created with C<0644> or C<0755> mode "
14533 "even if you specify C<0777>."
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4845
14538 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14539 msgstr ""
14540
14541 #. type: textblock
14542 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
14543 msgid "This call returns the previous umask."
14544 msgstr ""
14545
14546 #. type: =head2
14547 #: ../fish/guestfish-actions.pod:4850
14548 msgid "umount"
14549 msgstr ""
14550
14551 #. type: =head2
14552 #: ../fish/guestfish-actions.pod:4852
14553 msgid "unmount"
14554 msgstr ""
14555
14556 #. type: verbatim
14557 #: ../fish/guestfish-actions.pod:4854
14558 #, no-wrap
14559 msgid ""
14560 " umount pathordevice\n"
14561 "\n"
14562 msgstr ""
14563
14564 #. type: textblock
14565 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
14566 msgid ""
14567 "This unmounts the given filesystem.  The filesystem may be specified either "
14568 "by its mountpoint (path) or the device which contains the filesystem."
14569 msgstr ""
14570
14571 #. type: =head2
14572 #: ../fish/guestfish-actions.pod:4860
14573 msgid "umount-all"
14574 msgstr ""
14575
14576 #. type: =head2
14577 #: ../fish/guestfish-actions.pod:4862
14578 msgid "unmount-all"
14579 msgstr ""
14580
14581 #. type: verbatim
14582 #: ../fish/guestfish-actions.pod:4864
14583 #, no-wrap
14584 msgid ""
14585 " umount-all\n"
14586 "\n"
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
14591 msgid "This unmounts all mounted filesystems."
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
14596 msgid "Some internal mounts are not unmounted by this call."
14597 msgstr ""
14598
14599 #. type: =head2
14600 #: ../fish/guestfish-actions.pod:4870
14601 msgid "upload"
14602 msgstr ""
14603
14604 #. type: verbatim
14605 #: ../fish/guestfish-actions.pod:4872
14606 #, no-wrap
14607 msgid ""
14608 " upload (filename|-) remotefilename\n"
14609 "\n"
14610 msgstr ""
14611
14612 #. type: textblock
14613 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
14614 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14615 msgstr ""
14616
14617 #. type: textblock
14618 #: ../fish/guestfish-actions.pod:4879
14619 msgid "See also L</download>."
14620 msgstr ""
14621
14622 #. type: =head2
14623 #: ../fish/guestfish-actions.pod:4883
14624 msgid "upload-offset"
14625 msgstr ""
14626
14627 #. type: verbatim
14628 #: ../fish/guestfish-actions.pod:4885
14629 #, no-wrap
14630 msgid ""
14631 " upload-offset (filename|-) remotefilename offset\n"
14632 "\n"
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
14637 msgid ""
14638 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14639 "The intention is to overwrite parts of existing files or devices, although "
14640 "if a non-existant file is specified then it is created with a \"hole\" "
14641 "before C<offset>.  The size of the data written is implicit in the size of "
14642 "the source C<filename>."
14643 msgstr ""
14644
14645 #. type: textblock
14646 #: ../fish/guestfish-actions.pod:4897
14647 msgid ""
14648 "Note that there is no limit on the amount of data that can be uploaded with "
14649 "this call, unlike with L</pwrite>, and this call always writes the full "
14650 "amount unless an error occurs."
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:4902
14655 msgid "See also L</upload>, L</pwrite>."
14656 msgstr ""
14657
14658 #. type: =head2
14659 #: ../fish/guestfish-actions.pod:4906
14660 msgid "utimens"
14661 msgstr ""
14662
14663 #. type: verbatim
14664 #: ../fish/guestfish-actions.pod:4908
14665 #, no-wrap
14666 msgid ""
14667 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14668 "\n"
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
14673 msgid "This command sets the timestamps of a file with nanosecond precision."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
14678 msgid ""
14679 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14680 "from the epoch."
14681 msgstr ""
14682
14683 #. type: textblock
14684 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
14685 msgid ""
14686 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14687 "nanoseconds from the epoch."
14688 msgstr ""
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
14692 msgid ""
14693 "If the C<*nsecs> field contains the special value C<-1> then the "
14694 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14695 "ignored in this case)."
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
14700 msgid ""
14701 "If the C<*nsecs> field contains the special value C<-2> then the "
14702 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14703 "in this case)."
14704 msgstr ""
14705
14706 #. type: =head2
14707 #: ../fish/guestfish-actions.pod:4927
14708 msgid "version"
14709 msgstr ""
14710
14711 #. type: verbatim
14712 #: ../fish/guestfish-actions.pod:4929
14713 #, no-wrap
14714 msgid ""
14715 " version\n"
14716 "\n"
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
14721 msgid "Return the libguestfs version number that the program is linked against."
14722 msgstr ""
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
14726 msgid ""
14727 "Note that because of dynamic linking this is not necessarily the version of "
14728 "libguestfs that you compiled against.  You can compile the program, and then "
14729 "at runtime dynamically link against a completely different C<libguestfs.so> "
14730 "library."
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
14735 msgid ""
14736 "This call was added in version C<1.0.58>.  In previous versions of "
14737 "libguestfs there was no way to get the version number.  From C code you can "
14738 "use dynamic linker functions to find out if this symbol exists (if it "
14739 "doesn't, then it's an earlier version)."
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
14744 msgid ""
14745 "The call returns a structure with four elements.  The first three (C<major>, "
14746 "C<minor> and C<release>) are numbers and correspond to the usual version "
14747 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14748 "but may be used for distro-specific information."
14749 msgstr ""
14750
14751 #. type: textblock
14752 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
14753 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14754 msgstr ""
14755
14756 #. type: textblock
14757 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
14758 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4956
14763 msgid ""
14764 "I<Note:> Don't use this call to test for availability of features.  In "
14765 "enterprise distributions we backport features from later versions into "
14766 "earlier versions, making this an unreliable way to test for features.  Use "
14767 "L</available> instead."
14768 msgstr ""
14769
14770 #. type: =head2
14771 #: ../fish/guestfish-actions.pod:4962
14772 msgid "vfs-label"
14773 msgstr ""
14774
14775 #. type: verbatim
14776 #: ../fish/guestfish-actions.pod:4964
14777 #, no-wrap
14778 msgid ""
14779 " vfs-label device\n"
14780 "\n"
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
14785 msgid "This returns the filesystem label of the filesystem on C<device>."
14786 msgstr ""
14787
14788 #. type: textblock
14789 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
14790 msgid "If the filesystem is unlabeled, this returns the empty string."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4971
14795 msgid "To find a filesystem from the label, use L</findfs-label>."
14796 msgstr ""
14797
14798 #. type: =head2
14799 #: ../fish/guestfish-actions.pod:4973
14800 msgid "vfs-type"
14801 msgstr ""
14802
14803 #. type: verbatim
14804 #: ../fish/guestfish-actions.pod:4975
14805 #, no-wrap
14806 msgid ""
14807 " vfs-type device\n"
14808 "\n"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
14813 msgid ""
14814 "This command gets the filesystem type corresponding to the filesystem on "
14815 "C<device>."
14816 msgstr ""
14817
14818 #. type: textblock
14819 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
14820 msgid ""
14821 "For most filesystems, the result is the name of the Linux VFS module which "
14822 "would be used to mount this filesystem if you mounted it without specifying "
14823 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14824 msgstr ""
14825
14826 #. type: =head2
14827 #: ../fish/guestfish-actions.pod:4985
14828 msgid "vfs-uuid"
14829 msgstr ""
14830
14831 #. type: verbatim
14832 #: ../fish/guestfish-actions.pod:4987
14833 #, no-wrap
14834 msgid ""
14835 " vfs-uuid device\n"
14836 "\n"
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
14841 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14842 msgstr ""
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
14846 msgid "If the filesystem does not have a UUID, this returns the empty string."
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:4994
14851 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../fish/guestfish-actions.pod:4996
14856 msgid "vg-activate"
14857 msgstr ""
14858
14859 #. type: verbatim
14860 #: ../fish/guestfish-actions.pod:4998
14861 #, no-wrap
14862 msgid ""
14863 " vg-activate true|false 'volgroups ...'\n"
14864 "\n"
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
14869 msgid ""
14870 "This command activates or (if C<activate> is false) deactivates all logical "
14871 "volumes in the listed volume groups C<volgroups>."
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
14876 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14877 msgstr ""
14878
14879 #. type: textblock
14880 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
14881 msgid ""
14882 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14883 "activated or deactivated."
14884 msgstr ""
14885
14886 #. type: =head2
14887 #: ../fish/guestfish-actions.pod:5008
14888 msgid "vg-activate-all"
14889 msgstr ""
14890
14891 #. type: verbatim
14892 #: ../fish/guestfish-actions.pod:5010
14893 #, no-wrap
14894 msgid ""
14895 " vg-activate-all true|false\n"
14896 "\n"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
14901 msgid ""
14902 "This command activates or (if C<activate> is false) deactivates all logical "
14903 "volumes in all volume groups."
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
14908 msgid "This command is the same as running C<vgchange -a y|n>"
14909 msgstr ""
14910
14911 #. type: =head2
14912 #: ../fish/guestfish-actions.pod:5017
14913 msgid "vgcreate"
14914 msgstr ""
14915
14916 #. type: verbatim
14917 #: ../fish/guestfish-actions.pod:5019
14918 #, no-wrap
14919 msgid ""
14920 " vgcreate volgroup 'physvols ...'\n"
14921 "\n"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
14926 msgid ""
14927 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14928 "of physical volumes C<physvols>."
14929 msgstr ""
14930
14931 #. type: =head2
14932 #: ../fish/guestfish-actions.pod:5024
14933 msgid "vglvuuids"
14934 msgstr ""
14935
14936 #. type: verbatim
14937 #: ../fish/guestfish-actions.pod:5026
14938 #, no-wrap
14939 msgid ""
14940 " vglvuuids vgname\n"
14941 "\n"
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
14946 msgid ""
14947 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14948 "volumes created in this volume group."
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-actions.pod:5031
14953 msgid ""
14954 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14955 "logical volumes and volume groups."
14956 msgstr ""
14957
14958 #. type: textblock
14959 #: ../fish/guestfish-actions.pod:5034
14960 msgid "See also L</vgpvuuids>."
14961 msgstr ""
14962
14963 #. type: =head2
14964 #: ../fish/guestfish-actions.pod:5036
14965 msgid "vgpvuuids"
14966 msgstr ""
14967
14968 #. type: verbatim
14969 #: ../fish/guestfish-actions.pod:5038
14970 #, no-wrap
14971 msgid ""
14972 " vgpvuuids vgname\n"
14973 "\n"
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
14978 msgid ""
14979 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14980 "volumes that this volume group resides on."
14981 msgstr ""
14982
14983 #. type: textblock
14984 #: ../fish/guestfish-actions.pod:5043
14985 msgid ""
14986 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14987 "physical volumes and volume groups."
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:5046
14992 msgid "See also L</vglvuuids>."
14993 msgstr ""
14994
14995 #. type: =head2
14996 #: ../fish/guestfish-actions.pod:5048
14997 msgid "vgremove"
14998 msgstr ""
14999
15000 #. type: verbatim
15001 #: ../fish/guestfish-actions.pod:5050
15002 #, no-wrap
15003 msgid ""
15004 " vgremove vgname\n"
15005 "\n"
15006 msgstr ""
15007
15008 #. type: textblock
15009 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
15010 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
15015 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15016 msgstr ""
15017
15018 #. type: =head2
15019 #: ../fish/guestfish-actions.pod:5057
15020 msgid "vgrename"
15021 msgstr ""
15022
15023 #. type: verbatim
15024 #: ../fish/guestfish-actions.pod:5059
15025 #, no-wrap
15026 msgid ""
15027 " vgrename volgroup newvolgroup\n"
15028 "\n"
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
15033 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:5063
15038 msgid "vgs"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:5065
15043 #, no-wrap
15044 msgid ""
15045 " vgs\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
15051 msgid ""
15052 "List all the volumes groups detected.  This is the equivalent of the "
15053 "L<vgs(8)> command."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
15058 msgid ""
15059 "This returns a list of just the volume group names that were detected "
15060 "(eg. C<VolGroup00>)."
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:5073
15065 msgid "See also L</vgs-full>."
15066 msgstr ""
15067
15068 #. type: =head2
15069 #: ../fish/guestfish-actions.pod:5075
15070 msgid "vgs-full"
15071 msgstr ""
15072
15073 #. type: verbatim
15074 #: ../fish/guestfish-actions.pod:5077
15075 #, no-wrap
15076 msgid ""
15077 " vgs-full\n"
15078 "\n"
15079 msgstr ""
15080
15081 #. type: textblock
15082 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
15083 msgid ""
15084 "List all the volumes groups detected.  This is the equivalent of the "
15085 "L<vgs(8)> command.  The \"full\" version includes all fields."
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:5082
15090 msgid "vgscan"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:5084
15095 #, no-wrap
15096 msgid ""
15097 " vgscan\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
15103 msgid ""
15104 "This rescans all block devices and rebuilds the list of LVM physical "
15105 "volumes, volume groups and logical volumes."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:5089
15110 msgid "vguuid"
15111 msgstr ""
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:5091
15115 #, no-wrap
15116 msgid ""
15117 " vguuid vgname\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
15123 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:5095
15128 msgid "wc-c"
15129 msgstr ""
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:5097
15133 #, no-wrap
15134 msgid ""
15135 " wc-c path\n"
15136 "\n"
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
15141 msgid ""
15142 "This command counts the characters in a file, using the C<wc -c> external "
15143 "command."
15144 msgstr ""
15145
15146 #. type: =head2
15147 #: ../fish/guestfish-actions.pod:5102
15148 msgid "wc-l"
15149 msgstr ""
15150
15151 #. type: verbatim
15152 #: ../fish/guestfish-actions.pod:5104
15153 #, no-wrap
15154 msgid ""
15155 " wc-l path\n"
15156 "\n"
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
15161 msgid ""
15162 "This command counts the lines in a file, using the C<wc -l> external "
15163 "command."
15164 msgstr ""
15165
15166 #. type: =head2
15167 #: ../fish/guestfish-actions.pod:5109
15168 msgid "wc-w"
15169 msgstr ""
15170
15171 #. type: verbatim
15172 #: ../fish/guestfish-actions.pod:5111
15173 #, no-wrap
15174 msgid ""
15175 " wc-w path\n"
15176 "\n"
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
15181 msgid ""
15182 "This command counts the words in a file, using the C<wc -w> external "
15183 "command."
15184 msgstr ""
15185
15186 #. type: =head2
15187 #: ../fish/guestfish-actions.pod:5116
15188 msgid "write"
15189 msgstr ""
15190
15191 #. type: verbatim
15192 #: ../fish/guestfish-actions.pod:5118
15193 #, no-wrap
15194 msgid ""
15195 " write path content\n"
15196 "\n"
15197 msgstr ""
15198
15199 #. type: textblock
15200 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
15201 msgid ""
15202 "This call creates a file called C<path>.  The content of the file is the "
15203 "string C<content> (which can contain any 8 bit data)."
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:5123
15208 msgid "See also L</write-append>."
15209 msgstr ""
15210
15211 #. type: =head2
15212 #: ../fish/guestfish-actions.pod:5128
15213 msgid "write-append"
15214 msgstr ""
15215
15216 #. type: verbatim
15217 #: ../fish/guestfish-actions.pod:5130
15218 #, no-wrap
15219 msgid ""
15220 " write-append path content\n"
15221 "\n"
15222 msgstr ""
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
15226 msgid ""
15227 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15228 "not exist, then a new file is created."
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:5135
15233 msgid "See also L</write>."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:5140
15238 msgid "write-file"
15239 msgstr ""
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:5142
15243 #, no-wrap
15244 msgid ""
15245 " write-file path content size\n"
15246 "\n"
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
15251 msgid ""
15252 "This call creates a file called C<path>.  The contents of the file is the "
15253 "string C<content> (which can contain any 8 bit data), with length C<size>."
15254 msgstr ""
15255
15256 #. type: textblock
15257 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
15258 msgid ""
15259 "As a special case, if C<size> is C<0> then the length is calculated using "
15260 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15261 msgstr ""
15262
15263 #. type: textblock
15264 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
15265 msgid ""
15266 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15267 "I<not> work, even if the length is specified."
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-actions.pod:5158
15272 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
15273 msgstr ""
15274
15275 #. type: =head2
15276 #: ../fish/guestfish-actions.pod:5165
15277 msgid "zegrep"
15278 msgstr ""
15279
15280 #. type: verbatim
15281 #: ../fish/guestfish-actions.pod:5167
15282 #, no-wrap
15283 msgid ""
15284 " zegrep regex path\n"
15285 "\n"
15286 msgstr ""
15287
15288 #. type: textblock
15289 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
15290 msgid "This calls the external C<zegrep> program and returns the matching lines."
15291 msgstr ""
15292
15293 #. type: =head2
15294 #: ../fish/guestfish-actions.pod:5175
15295 msgid "zegrepi"
15296 msgstr ""
15297
15298 #. type: verbatim
15299 #: ../fish/guestfish-actions.pod:5177
15300 #, no-wrap
15301 msgid ""
15302 " zegrepi regex path\n"
15303 "\n"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
15308 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15309 msgstr ""
15310
15311 #. type: =head2
15312 #: ../fish/guestfish-actions.pod:5185
15313 msgid "zero"
15314 msgstr ""
15315
15316 #. type: verbatim
15317 #: ../fish/guestfish-actions.pod:5187
15318 #, no-wrap
15319 msgid ""
15320 " zero device\n"
15321 "\n"
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
15326 msgid "This command writes zeroes over the first few blocks of C<device>."
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
15331 msgid ""
15332 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15333 "securely wipe the device).  It should be sufficient to remove any partition "
15334 "tables, filesystem superblocks and so on."
15335 msgstr ""
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
15339 msgid ""
15340 "If blocks are already zero, then this command avoids writing zeroes.  This "
15341 "prevents the underlying device from becoming non-sparse or growing "
15342 "unnecessarily."
15343 msgstr ""
15344
15345 #. type: textblock
15346 #: ../fish/guestfish-actions.pod:5199
15347 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15348 msgstr ""
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:5202
15352 msgid "zero-device"
15353 msgstr ""
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:5204
15357 #, no-wrap
15358 msgid ""
15359 " zero-device device\n"
15360 "\n"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:5206
15365 msgid ""
15366 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15367 "which just zeroes the first few blocks of a device."
15368 msgstr ""
15369
15370 #. type: =head2
15371 #: ../fish/guestfish-actions.pod:5217
15372 msgid "zerofree"
15373 msgstr ""
15374
15375 #. type: verbatim
15376 #: ../fish/guestfish-actions.pod:5219
15377 #, no-wrap
15378 msgid ""
15379 " zerofree device\n"
15380 "\n"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
15385 msgid ""
15386 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15387 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15388 "possible to compress the filesystem more effectively."
15389 msgstr ""
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
15393 msgid "You should B<not> run this program if the filesystem is mounted."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
15398 msgid ""
15399 "It is possible that using this program can damage the filesystem or data on "
15400 "the filesystem."
15401 msgstr ""
15402
15403 #. type: =head2
15404 #: ../fish/guestfish-actions.pod:5232
15405 msgid "zfgrep"
15406 msgstr ""
15407
15408 #. type: verbatim
15409 #: ../fish/guestfish-actions.pod:5234
15410 #, no-wrap
15411 msgid ""
15412 " zfgrep pattern path\n"
15413 "\n"
15414 msgstr ""
15415
15416 #. type: textblock
15417 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
15418 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-actions.pod:5242
15423 msgid "zfgrepi"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-actions.pod:5244
15428 #, no-wrap
15429 msgid ""
15430 " zfgrepi pattern path\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
15436 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15437 msgstr ""
15438
15439 #. type: =head2
15440 #: ../fish/guestfish-actions.pod:5252
15441 msgid "zfile"
15442 msgstr ""
15443
15444 #. type: verbatim
15445 #: ../fish/guestfish-actions.pod:5254
15446 #, no-wrap
15447 msgid ""
15448 " zfile meth path\n"
15449 "\n"
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
15454 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15455 msgstr ""
15456
15457 #. type: textblock
15458 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
15459 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15460 msgstr ""
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-actions.pod:5261
15464 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:5264
15469 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-actions.pod:5271
15474 msgid "zgrep"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../fish/guestfish-actions.pod:5273
15479 #, no-wrap
15480 msgid ""
15481 " zgrep regex path\n"
15482 "\n"
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
15487 msgid "This calls the external C<zgrep> program and returns the matching lines."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:5281
15492 msgid "zgrepi"
15493 msgstr ""
15494
15495 #. type: verbatim
15496 #: ../fish/guestfish-actions.pod:5283
15497 #, no-wrap
15498 msgid ""
15499 " zgrepi regex path\n"
15500 "\n"
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
15505 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15506 msgstr ""
15507
15508 #. type: =head2
15509 #: ../fish/guestfish-commands.pod:1
15510 msgid "alloc"
15511 msgstr ""
15512
15513 #. type: =head2
15514 #: ../fish/guestfish-commands.pod:3
15515 msgid "allocate"
15516 msgstr ""
15517
15518 #. type: verbatim
15519 #: ../fish/guestfish-commands.pod:5
15520 #, no-wrap
15521 msgid ""
15522 " alloc filename size\n"
15523 "\n"
15524 msgstr ""
15525
15526 #. type: textblock
15527 #: ../fish/guestfish-commands.pod:7
15528 msgid ""
15529 "This creates an empty (zeroed) file of the given size, and then adds so it "
15530 "can be further examined."
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15535 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15540 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-commands.pod:14
15545 msgid ""
15546 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15547 "image, see L</PREPARED DISK IMAGES>."
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../fish/guestfish-commands.pod:17
15552 msgid "copy-in"
15553 msgstr ""
15554
15555 #. type: verbatim
15556 #: ../fish/guestfish-commands.pod:19
15557 #, no-wrap
15558 msgid ""
15559 " copy-in local [local ...] /remotedir\n"
15560 "\n"
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-commands.pod:21
15565 msgid ""
15566 "C<copy-in> copies local files or directories recursively into the disk "
15567 "image, placing them in the directory called C</remotedir> (which must "
15568 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15569 "other commands as necessary."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-commands.pod:26
15574 msgid ""
15575 "Multiple local files and directories can be specified, but the last "
15576 "parameter must always be a remote directory.  Wildcards cannot be used."
15577 msgstr ""
15578
15579 #. type: =head2
15580 #: ../fish/guestfish-commands.pod:30
15581 msgid "copy-out"
15582 msgstr ""
15583
15584 #. type: verbatim
15585 #: ../fish/guestfish-commands.pod:32
15586 #, no-wrap
15587 msgid ""
15588 " copy-out remote [remote ...] localdir\n"
15589 "\n"
15590 msgstr ""
15591
15592 #. type: textblock
15593 #: ../fish/guestfish-commands.pod:34
15594 msgid ""
15595 "C<copy-out> copies remote files or directories recursively out of the disk "
15596 "image, placing them on the host disk in a local directory called C<localdir> "
15597 "(which must exist).  This guestfish meta-command turns into a sequence of "
15598 "L</download>, L</tar-out> and other commands as necessary."
15599 msgstr ""
15600
15601 #. type: textblock
15602 #: ../fish/guestfish-commands.pod:40
15603 msgid ""
15604 "Multiple remote files and directories can be specified, but the last "
15605 "parameter must always be a local directory.  To download to the current "
15606 "directory, use C<.> as in:"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-commands.pod:44
15611 #, no-wrap
15612 msgid ""
15613 " copy-out /home .\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-commands.pod:46
15619 msgid ""
15620 "Wildcards cannot be used in the ordinary command, but you can use them with "
15621 "the help of L</glob> like this:"
15622 msgstr ""
15623
15624 #. type: verbatim
15625 #: ../fish/guestfish-commands.pod:49
15626 #, no-wrap
15627 msgid ""
15628 " glob copy-out /home/* .\n"
15629 "\n"
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../fish/guestfish-commands.pod:51
15634 msgid "display"
15635 msgstr ""
15636
15637 #. type: verbatim
15638 #: ../fish/guestfish-commands.pod:53
15639 #, no-wrap
15640 msgid ""
15641 " display filename\n"
15642 "\n"
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-commands.pod:55
15647 msgid ""
15648 "Use C<display> (a graphical display program) to display an image file.  It "
15649 "downloads the file, and runs C<display> on it."
15650 msgstr ""
15651
15652 #. type: textblock
15653 #: ../fish/guestfish-commands.pod:58
15654 msgid ""
15655 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15656 "environment variable.  For example to use the GNOME display program:"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-commands.pod:61
15661 #, no-wrap
15662 msgid ""
15663 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-commands.pod:63
15669 msgid "See also L<display(1)>."
15670 msgstr ""
15671
15672 #. type: =head2
15673 #: ../fish/guestfish-commands.pod:65
15674 msgid "echo"
15675 msgstr ""
15676
15677 #. type: verbatim
15678 #: ../fish/guestfish-commands.pod:67
15679 #, no-wrap
15680 msgid ""
15681 " echo [params ...]\n"
15682 "\n"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-commands.pod:69
15687 msgid "This echos the parameters to the terminal."
15688 msgstr ""
15689
15690 #. type: =head2
15691 #: ../fish/guestfish-commands.pod:71
15692 msgid "edit"
15693 msgstr ""
15694
15695 #. type: =head2
15696 #: ../fish/guestfish-commands.pod:73
15697 msgid "vi"
15698 msgstr ""
15699
15700 #. type: =head2
15701 #: ../fish/guestfish-commands.pod:75
15702 msgid "emacs"
15703 msgstr ""
15704
15705 #. type: verbatim
15706 #: ../fish/guestfish-commands.pod:77
15707 #, no-wrap
15708 msgid ""
15709 " edit filename\n"
15710 "\n"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-commands.pod:79
15715 msgid ""
15716 "This is used to edit a file.  It downloads the file, edits it locally using "
15717 "your editor, then uploads the result."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-commands.pod:82
15722 msgid ""
15723 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15724 "or C<emacs> you will get those corresponding editors."
15725 msgstr ""
15726
15727 #. type: =head2
15728 #: ../fish/guestfish-commands.pod:86
15729 msgid "glob"
15730 msgstr ""
15731
15732 #. type: verbatim
15733 #: ../fish/guestfish-commands.pod:88
15734 #, no-wrap
15735 msgid ""
15736 " glob command args...\n"
15737 "\n"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish-commands.pod:90
15742 msgid ""
15743 "Expand wildcards in any paths in the args list, and run C<command> "
15744 "repeatedly on each matching path."
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-commands.pod:93
15749 msgid "See L</WILDCARDS AND GLOBBING>."
15750 msgstr ""
15751
15752 #. type: =head2
15753 #: ../fish/guestfish-commands.pod:95
15754 msgid "hexedit"
15755 msgstr ""
15756
15757 #. type: verbatim
15758 #: ../fish/guestfish-commands.pod:97
15759 #, no-wrap
15760 msgid ""
15761 " hexedit <filename|device>\n"
15762 " hexedit <filename|device> <max>\n"
15763 " hexedit <filename|device> <start> <max>\n"
15764 "\n"
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-commands.pod:101
15769 msgid ""
15770 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15771 "device."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-commands.pod:104
15776 msgid ""
15777 "This command works by downloading potentially the whole file or device, "
15778 "editing it locally, then uploading it.  If the file or device is large, you "
15779 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15780 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15781 "usual modifiers allowed such as C<1M> (1 megabyte)."
15782 msgstr ""
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-commands.pod:111
15786 msgid "For example to edit the first few sectors of a disk you might do:"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../fish/guestfish-commands.pod:114
15791 #, no-wrap
15792 msgid ""
15793 " hexedit /dev/sda 1M\n"
15794 "\n"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-commands.pod:116
15799 msgid ""
15800 "which would allow you to edit anywhere within the first megabyte of the "
15801 "disk."
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish-commands.pod:119
15806 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15807 msgstr ""
15808
15809 #. type: verbatim
15810 #: ../fish/guestfish-commands.pod:121
15811 #, no-wrap
15812 msgid ""
15813 " hexedit /dev/sda1 0x400 0x400\n"
15814 "\n"
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-commands.pod:123
15819 msgid "(assuming the superblock is in the standard location)."
15820 msgstr ""
15821
15822 #. type: textblock
15823 #: ../fish/guestfish-commands.pod:125
15824 msgid ""
15825 "This command requires the external L<hexedit(1)> program.  You can specify "
15826 "another program to use by setting the C<HEXEDITOR> environment variable."
15827 msgstr ""
15828
15829 #. type: textblock
15830 #: ../fish/guestfish-commands.pod:129
15831 msgid "See also L</hexdump>."
15832 msgstr ""
15833
15834 #. type: =head2
15835 #: ../fish/guestfish-commands.pod:131
15836 msgid "lcd"
15837 msgstr ""
15838
15839 #. type: verbatim
15840 #: ../fish/guestfish-commands.pod:133
15841 #, no-wrap
15842 msgid ""
15843 " lcd directory\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-commands.pod:135
15849 msgid "Change the local directory, ie. the current directory of guestfish itself."
15850 msgstr ""
15851
15852 #. type: textblock
15853 #: ../fish/guestfish-commands.pod:138
15854 msgid "Note that C<!cd> won't do what you might expect."
15855 msgstr ""
15856
15857 #. type: =head2
15858 #: ../fish/guestfish-commands.pod:140
15859 msgid "man"
15860 msgstr ""
15861
15862 #. type: =head2
15863 #: ../fish/guestfish-commands.pod:142
15864 msgid "manual"
15865 msgstr ""
15866
15867 #. type: verbatim
15868 #: ../fish/guestfish-commands.pod:144
15869 #, no-wrap
15870 msgid ""
15871 "  man\n"
15872 "\n"
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-commands.pod:146
15877 msgid "Opens the manual page for guestfish."
15878 msgstr ""
15879
15880 #. type: =head2
15881 #: ../fish/guestfish-commands.pod:148
15882 msgid "more"
15883 msgstr ""
15884
15885 #. type: =head2
15886 #: ../fish/guestfish-commands.pod:150
15887 msgid "less"
15888 msgstr ""
15889
15890 #. type: verbatim
15891 #: ../fish/guestfish-commands.pod:152
15892 #, no-wrap
15893 msgid ""
15894 " more filename\n"
15895 "\n"
15896 msgstr ""
15897
15898 #. type: verbatim
15899 #: ../fish/guestfish-commands.pod:154
15900 #, no-wrap
15901 msgid ""
15902 " less filename\n"
15903 "\n"
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-commands.pod:156
15908 msgid "This is used to view a file."
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-commands.pod:158
15913 msgid ""
15914 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15915 "C<less> you will get the C<less> command specifically."
15916 msgstr ""
15917
15918 #. type: =head2
15919 #: ../fish/guestfish-commands.pod:161
15920 msgid "reopen"
15921 msgstr ""
15922
15923 #. type: verbatim
15924 #: ../fish/guestfish-commands.pod:163
15925 #, no-wrap
15926 msgid ""
15927 "  reopen\n"
15928 "\n"
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-commands.pod:165
15933 msgid ""
15934 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15935 "normally, because the handle is closed properly when guestfish exits.  "
15936 "However this is occasionally useful for testing."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-commands.pod:169
15941 msgid "setenv"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish-commands.pod:171
15946 #, no-wrap
15947 msgid ""
15948 "  setenv VAR value\n"
15949 "\n"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-commands.pod:173
15954 msgid "Set the environment variable C<VAR> to the string C<value>."
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-commands.pod:175
15959 msgid "To print the value of an environment variable use a shell command such as:"
15960 msgstr ""
15961
15962 #. type: verbatim
15963 #: ../fish/guestfish-commands.pod:178
15964 #, no-wrap
15965 msgid ""
15966 " !echo $VAR\n"
15967 "\n"
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../fish/guestfish-commands.pod:180
15972 msgid "sparse"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish-commands.pod:182
15977 #, no-wrap
15978 msgid ""
15979 " sparse filename size\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-commands.pod:184
15985 msgid ""
15986 "This creates an empty sparse file of the given size, and then adds so it can "
15987 "be further examined."
15988 msgstr ""
15989
15990 #. type: textblock
15991 #: ../fish/guestfish-commands.pod:187
15992 msgid ""
15993 "In all respects it works the same as the L</alloc> command, except that the "
15994 "image file is allocated sparsely, which means that disk blocks are not "
15995 "assigned to the file until they are needed.  Sparse disk files only use "
15996 "space when written to, but they are slower and there is a danger you could "
15997 "run out of real disk space during a write operation."
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-commands.pod:197
16002 msgid "supported"
16003 msgstr ""
16004
16005 #. type: verbatim
16006 #: ../fish/guestfish-commands.pod:199
16007 #, no-wrap
16008 msgid ""
16009 " supported\n"
16010 "\n"
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-commands.pod:201
16015 msgid ""
16016 "This command returns a list of the optional groups known to the daemon, and "
16017 "indicates which ones are supported by this build of the libguestfs "
16018 "appliance."
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-commands.pod:205
16023 msgid "See also L<guestfs(3)/AVAILABILITY>."
16024 msgstr ""
16025
16026 #. type: =head2
16027 #: ../fish/guestfish-commands.pod:207
16028 msgid "time"
16029 msgstr ""
16030
16031 #. type: verbatim
16032 #: ../fish/guestfish-commands.pod:209
16033 #, no-wrap
16034 msgid ""
16035 " time command args...\n"
16036 "\n"
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-commands.pod:211
16041 msgid ""
16042 "Run the command as usual, but print the elapsed time afterwards.  This can "
16043 "be useful for benchmarking operations."
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../fish/guestfish-commands.pod:214
16048 msgid "unsetenv"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../fish/guestfish-commands.pod:216
16053 #, no-wrap
16054 msgid ""
16055 "  unsetenv VAR\n"
16056 "\n"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-commands.pod:218
16061 msgid "Remove C<VAR> from the environment."
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../fish/guestfish.pod:5
16066 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16067 msgstr ""
16068
16069 #. type: verbatim
16070 #: ../fish/guestfish.pod:9
16071 #, no-wrap
16072 msgid ""
16073 " guestfish [--options] [commands]\n"
16074 "\n"
16075 msgstr ""
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish.pod:11
16079 #, no-wrap
16080 msgid ""
16081 " guestfish\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: verbatim
16086 #: ../fish/guestfish.pod:13
16087 #, no-wrap
16088 msgid ""
16089 " guestfish [--ro|--rw] -a disk.img\n"
16090 "\n"
16091 msgstr ""
16092
16093 #. type: verbatim
16094 #: ../fish/guestfish.pod:15
16095 #, no-wrap
16096 msgid ""
16097 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16098 "\n"
16099 msgstr ""
16100
16101 #. type: verbatim
16102 #: ../fish/guestfish.pod:17
16103 #, no-wrap
16104 msgid ""
16105 " guestfish -d libvirt-domain\n"
16106 "\n"
16107 msgstr ""
16108
16109 #. type: verbatim
16110 #: ../fish/guestfish.pod:19
16111 #, no-wrap
16112 msgid ""
16113 " guestfish [--ro|--rw] -a disk.img -i\n"
16114 "\n"
16115 msgstr ""
16116
16117 #. type: verbatim
16118 #: ../fish/guestfish.pod:21
16119 #, no-wrap
16120 msgid ""
16121 " guestfish -d libvirt-domain -i\n"
16122 "\n"
16123 msgstr ""
16124
16125 #. type: textblock
16126 #: ../fish/guestfish.pod:25
16127 msgid ""
16128 "Using guestfish in read/write mode on live virtual machines can be "
16129 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16130 "option to use guestfish safely if the disk image or virtual machine might be "
16131 "live."
16132 msgstr ""
16133
16134 #. type: textblock
16135 #: ../fish/guestfish.pod:32
16136 msgid ""
16137 "Guestfish is a shell and command-line tool for examining and modifying "
16138 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16139 "functionality of the guestfs API, see L<guestfs(3)>."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish.pod:36
16144 msgid ""
16145 "Guestfish gives you structured access to the libguestfs API, from shell "
16146 "scripts or the command line or interactively.  If you want to rescue a "
16147 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16148 "command."
16149 msgstr ""
16150
16151 #. type: =head2
16152 #: ../fish/guestfish.pod:43
16153 msgid "As an interactive shell"
16154 msgstr ""
16155
16156 #. type: verbatim
16157 #: ../fish/guestfish.pod:45
16158 #, no-wrap
16159 msgid ""
16160 " $ guestfish\n"
16161 " \n"
16162 msgstr ""
16163
16164 #. type: verbatim
16165 #: ../fish/guestfish.pod:47
16166 #, no-wrap
16167 msgid ""
16168 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16169 " editing virtual machine filesystems.\n"
16170 " \n"
16171 msgstr ""
16172
16173 #. type: verbatim
16174 #: ../fish/guestfish.pod:50
16175 #, no-wrap
16176 msgid ""
16177 " Type: 'help' for a list of commands\n"
16178 "       'man' to read the manual\n"
16179 "       'quit' to quit the shell\n"
16180 " \n"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish.pod:54
16185 #, no-wrap
16186 msgid ""
16187 " ><fs> add-ro disk.img\n"
16188 " ><fs> run\n"
16189 " ><fs> list-filesystems\n"
16190 " /dev/sda1: ext4\n"
16191 " /dev/vg_guest/lv_root: ext4\n"
16192 " /dev/vg_guest/lv_swap: swap\n"
16193 " ><fs> mount /dev/vg_guest/lv_root /\n"
16194 " ><fs> cat /etc/fstab\n"
16195 " # /etc/fstab\n"
16196 " # Created by anaconda\n"
16197 " [...]\n"
16198 " ><fs> exit\n"
16199 "\n"
16200 msgstr ""
16201
16202 #. type: =head2
16203 #: ../fish/guestfish.pod:67
16204 msgid "From shell scripts"
16205 msgstr ""
16206
16207 #. type: textblock
16208 #: ../fish/guestfish.pod:69
16209 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16210 msgstr ""
16211
16212 #. type: verbatim
16213 #: ../fish/guestfish.pod:71
16214 #, no-wrap
16215 msgid ""
16216 " guestfish <<_EOF_\n"
16217 " add disk.img\n"
16218 " run\n"
16219 " mount /dev/vg_guest/lv_root /\n"
16220 " write /etc/motd \"Welcome, new users\"\n"
16221 " _EOF_\n"
16222 "\n"
16223 msgstr ""
16224
16225 #. type: textblock
16226 #: ../fish/guestfish.pod:78
16227 msgid "List the LVM logical volumes in a disk image:"
16228 msgstr ""
16229
16230 #. type: verbatim
16231 #: ../fish/guestfish.pod:80
16232 #, no-wrap
16233 msgid ""
16234 " guestfish -a disk.img --ro <<_EOF_\n"
16235 " run\n"
16236 " lvs\n"
16237 " _EOF_\n"
16238 "\n"
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:85
16243 msgid "List all the filesystems in a disk image:"
16244 msgstr ""
16245
16246 #. type: verbatim
16247 #: ../fish/guestfish.pod:87
16248 #, no-wrap
16249 msgid ""
16250 " guestfish -a disk.img --ro <<_EOF_\n"
16251 " run\n"
16252 " list-filesystems\n"
16253 " _EOF_\n"
16254 "\n"
16255 msgstr ""
16256
16257 #. type: =head2
16258 #: ../fish/guestfish.pod:92
16259 msgid "On one command line"
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16264 msgid "Update C</etc/resolv.conf> in a guest:"
16265 msgstr ""
16266
16267 #. type: verbatim
16268 #: ../fish/guestfish.pod:96
16269 #, no-wrap
16270 msgid ""
16271 " guestfish \\\n"
16272 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16273 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16274 "\n"
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../fish/guestfish.pod:100
16279 msgid "Edit C</boot/grub/grub.conf> interactively:"
16280 msgstr ""
16281
16282 #. type: verbatim
16283 #: ../fish/guestfish.pod:102
16284 #, no-wrap
16285 msgid ""
16286 " guestfish --rw --add disk.img \\\n"
16287 "   --mount /dev/vg_guest/lv_root \\\n"
16288 "   --mount /dev/sda1:/boot \\\n"
16289 "   edit /boot/grub/grub.conf\n"
16290 "\n"
16291 msgstr ""
16292
16293 #. type: =head2
16294 #: ../fish/guestfish.pod:107
16295 msgid "Mount disks automatically"
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish.pod:109
16300 msgid ""
16301 "Use the I<-i> option to automatically mount the disks from a virtual "
16302 "machine:"
16303 msgstr ""
16304
16305 #. type: verbatim
16306 #: ../fish/guestfish.pod:112
16307 #, no-wrap
16308 msgid ""
16309 " guestfish --ro -a disk.img -i cat /etc/group\n"
16310 "\n"
16311 msgstr ""
16312
16313 #. type: verbatim
16314 #: ../fish/guestfish.pod:114
16315 #, no-wrap
16316 msgid ""
16317 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16318 "\n"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish.pod:116
16323 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16324 msgstr ""
16325
16326 #. type: verbatim
16327 #: ../fish/guestfish.pod:118
16328 #, no-wrap
16329 msgid ""
16330 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16331 "\n"
16332 msgstr ""
16333
16334 #. type: =head2
16335 #: ../fish/guestfish.pod:120
16336 msgid "As a script interpreter"
16337 msgstr ""
16338
16339 #. type: textblock
16340 #: ../fish/guestfish.pod:122
16341 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16342 msgstr ""
16343
16344 #. type: verbatim
16345 #: ../fish/guestfish.pod:124
16346 #, no-wrap
16347 msgid ""
16348 " #!/usr/bin/guestfish -f\n"
16349 " sparse test1.img 100M\n"
16350 " run\n"
16351 " part-disk /dev/sda mbr\n"
16352 " mkfs ext2 /dev/sda1\n"
16353 "\n"
16354 msgstr ""
16355
16356 #. type: =head2
16357 #: ../fish/guestfish.pod:130
16358 msgid "Start with a prepared disk"
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../fish/guestfish.pod:132
16363 msgid ""
16364 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16365 "single ext2-formatted partition:"
16366 msgstr ""
16367
16368 #. type: verbatim
16369 #: ../fish/guestfish.pod:135
16370 #, no-wrap
16371 msgid ""
16372 " guestfish -N fs\n"
16373 "\n"
16374 msgstr ""
16375
16376 #. type: textblock
16377 #: ../fish/guestfish.pod:137
16378 msgid "To list what is available do:"
16379 msgstr ""
16380
16381 #. type: verbatim
16382 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16383 #, no-wrap
16384 msgid ""
16385 " guestfish -N help | less\n"
16386 "\n"
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../fish/guestfish.pod:141
16391 msgid "Remote control"
16392 msgstr ""
16393
16394 #. type: verbatim
16395 #: ../fish/guestfish.pod:143
16396 #, no-wrap
16397 msgid ""
16398 " eval \"`guestfish --listen`\"\n"
16399 " guestfish --remote add-ro disk.img\n"
16400 " guestfish --remote run\n"
16401 " guestfish --remote lvs\n"
16402 "\n"
16403 msgstr ""
16404
16405 #. type: textblock
16406 #: ../fish/guestfish.pod:154
16407 msgid "Displays general help on options."
16408 msgstr ""
16409
16410 #. type: =item
16411 #: ../fish/guestfish.pod:158
16412 msgid "B<--cmd-help>"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish.pod:160
16417 msgid "Lists all available guestfish commands."
16418 msgstr ""
16419
16420 #. type: =item
16421 #: ../fish/guestfish.pod:162
16422 msgid "B<-h cmd>"
16423 msgstr ""
16424
16425 #. type: =item
16426 #: ../fish/guestfish.pod:164
16427 msgid "B<--cmd-help cmd>"
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish.pod:166
16432 msgid "Displays detailed help on a single command C<cmd>."
16433 msgstr ""
16434
16435 #. type: =item
16436 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16437 msgid "B<-a image>"
16438 msgstr ""
16439
16440 #. type: =item
16441 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16442 msgid "B<--add image>"
16443 msgstr ""
16444
16445 #. type: textblock
16446 #: ../fish/guestfish.pod:172
16447 msgid "Add a block device or virtual machine image to the shell."
16448 msgstr ""
16449
16450 #. type: textblock
16451 #: ../fish/guestfish.pod:177
16452 msgid ""
16453 "Using this flag is mostly equivalent to using the C<add> command, with "
16454 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16455 "the I<--format=...> flag was given."
16456 msgstr ""
16457
16458 #. type: textblock
16459 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16460 msgid ""
16461 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16462 "URI to use.  The default is to use the default libvirt connection."
16463 msgstr ""
16464
16465 #. type: =item
16466 #: ../fish/guestfish.pod:189
16467 msgid "B<--csh>"
16468 msgstr ""
16469
16470 #. type: textblock
16471 #: ../fish/guestfish.pod:191
16472 msgid ""
16473 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16474 "section L</REMOTE CONTROL AND CSH> below."
16475 msgstr ""
16476
16477 #. type: =item
16478 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16479 msgid "B<-d libvirt-domain>"
16480 msgstr ""
16481
16482 #. type: =item
16483 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16484 msgid "B<--domain libvirt-domain>"
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16489 msgid ""
16490 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16491 "used, then any libvirt domain can be used.  However in write mode, only "
16492 "libvirt domains which are shut down can be named here."
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16497 msgid "Domain UUIDs can be used instead of names."
16498 msgstr ""
16499
16500 #. type: textblock
16501 #: ../fish/guestfish.pod:204
16502 msgid ""
16503 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16504 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16505 "if the I<--format:...> flag was given."
16506 msgstr ""
16507
16508 #. type: =item
16509 #: ../fish/guestfish.pod:208
16510 msgid "B<-D>"
16511 msgstr ""
16512
16513 #. type: =item
16514 #: ../fish/guestfish.pod:210
16515 msgid "B<--no-dest-paths>"
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish.pod:212
16520 msgid ""
16521 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16522 "to hit the tab key to complete paths on the guest filesystem, but this "
16523 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16524 "allow this feature to be disabled."
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16529 msgid ""
16530 "When prompting for keys and passphrases, guestfish normally turns echoing "
16531 "off so you cannot see what you are typing.  If you are not worried about "
16532 "Tempest attacks and there is no one else in the room you can specify this "
16533 "flag to see what you are typing."
16534 msgstr ""
16535
16536 #. type: =item
16537 #: ../fish/guestfish.pod:224
16538 msgid "B<-f file>"
16539 msgstr ""
16540
16541 #. type: =item
16542 #: ../fish/guestfish.pod:226
16543 msgid "B<--file file>"
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish.pod:228
16548 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16549 msgstr ""
16550
16551 #. type: verbatim
16552 #: ../fish/guestfish.pod:231
16553 #, no-wrap
16554 msgid ""
16555 " #!/usr/bin/guestfish -f\n"
16556 "\n"
16557 msgstr ""
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish.pod:244
16561 #, no-wrap
16562 msgid ""
16563 " guestfish --format=raw -a disk.img\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish.pod:248
16569 #, no-wrap
16570 msgid ""
16571 " guestfish --format=raw -a disk.img --format -a another.img\n"
16572 "\n"
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../fish/guestfish.pod:253
16577 msgid ""
16578 "If you have untrusted raw-format guest disk images, you should use this "
16579 "option to specify the disk format.  This avoids a possible security problem "
16580 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16581 msgstr ""
16582
16583 #. type: =item
16584 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16585 msgid "B<--inspector>"
16586 msgstr ""
16587
16588 #. type: textblock
16589 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16590 msgid ""
16591 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16592 "system and mount filesystems as they would be mounted on the real virtual "
16593 "machine."
16594 msgstr ""
16595
16596 #. type: textblock
16597 #: ../fish/guestfish.pod:266
16598 msgid "Typical usage is either:"
16599 msgstr ""
16600
16601 #. type: verbatim
16602 #: ../fish/guestfish.pod:268
16603 #, no-wrap
16604 msgid ""
16605 " guestfish -d myguest -i\n"
16606 "\n"
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish.pod:270
16611 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16612 msgstr ""
16613
16614 #. type: verbatim
16615 #: ../fish/guestfish.pod:272
16616 #, no-wrap
16617 msgid ""
16618 " guestfish --ro -d myguest -i\n"
16619 "\n"
16620 msgstr ""
16621
16622 #. type: textblock
16623 #: ../fish/guestfish.pod:274
16624 msgid "(for active domains, readonly), or specify the block device directly:"
16625 msgstr ""
16626
16627 #. type: verbatim
16628 #: ../fish/guestfish.pod:276
16629 #, no-wrap
16630 msgid ""
16631 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16632 "\n"
16633 msgstr ""
16634
16635 #. type: textblock
16636 #: ../fish/guestfish.pod:278
16637 msgid ""
16638 "Note that the command line syntax changed slightly over older versions of "
16639 "guestfish.  You can still use the old syntax:"
16640 msgstr ""
16641
16642 #. type: verbatim
16643 #: ../fish/guestfish.pod:281
16644 #, no-wrap
16645 msgid ""
16646 " guestfish [--ro] -i disk.img\n"
16647 "\n"
16648 msgstr ""
16649
16650 #. type: verbatim
16651 #: ../fish/guestfish.pod:283
16652 #, no-wrap
16653 msgid ""
16654 " guestfish [--ro] -i libvirt-domain\n"
16655 "\n"
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish.pod:285
16660 msgid ""
16661 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16662 "then using other commands to mount the filesystems that were found."
16663 msgstr ""
16664
16665 #. type: =item
16666 #: ../fish/guestfish.pod:294
16667 msgid "B<--listen>"
16668 msgstr ""
16669
16670 #. type: textblock
16671 #: ../fish/guestfish.pod:296
16672 msgid ""
16673 "Fork into the background and listen for remote commands.  See section "
16674 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16675 msgstr ""
16676
16677 #. type: =item
16678 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16679 msgid "B<--live>"
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16684 msgid ""
16685 "Connect to a live virtual machine.  (Experimental, see "
16686 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16687 msgstr ""
16688
16689 #. type: =item
16690 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16691 msgid "B<-m dev[:mountpoint[:options]]>"
16692 msgstr ""
16693
16694 #. type: =item
16695 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16696 msgid "B<--mount dev[:mountpoint[:options]]>"
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish.pod:308
16701 msgid "Mount the named partition or logical volume on the given mountpoint."
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish.pod:310
16706 msgid "If the mountpoint is omitted, it defaults to C</>."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish.pod:312
16711 msgid "You have to mount something on C</> before most commands will work."
16712 msgstr ""
16713
16714 #. type: textblock
16715 #: ../fish/guestfish.pod:314
16716 msgid ""
16717 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16718 "launched."
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish.pod:317
16723 msgid ""
16724 "If you don't know what filesystems a disk image contains, you can either run "
16725 "guestfish without this option, then list the partitions, filesystems and LVs "
16726 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16727 "commands), or you can use the L<virt-filesystems(1)> program."
16728 msgstr ""
16729
16730 #. type: textblock
16731 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16732 msgid ""
16733 "The third (and rarely used) part of the mount parameter is the list of mount "
16734 "options used to mount the underlying filesystem.  If this is not given, then "
16735 "the mount options are either the empty string or C<ro> (the latter if the "
16736 "I<--ro> flag is used).  By specifying the mount options, you override this "
16737 "default choice.  Probably the only time you would use this is to enable ACLs "
16738 "and/or extended attributes if the filesystem can support them:"
16739 msgstr ""
16740
16741 #. type: verbatim
16742 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16743 #, no-wrap
16744 msgid ""
16745 " -m /dev/sda1:/:acl,user_xattr\n"
16746 "\n"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish.pod:333
16751 msgid "Using this flag is equivalent to using the C<mount-options> command."
16752 msgstr ""
16753
16754 #. type: =item
16755 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:358
16756 msgid "B<-n>"
16757 msgstr ""
16758
16759 #. type: =item
16760 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16761 msgid "B<--no-sync>"
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish.pod:339
16766 msgid ""
16767 "Disable autosync.  This is enabled by default.  See the discussion of "
16768 "autosync in the L<guestfs(3)> manpage."
16769 msgstr ""
16770
16771 #. type: =item
16772 #: ../fish/guestfish.pod:342
16773 msgid "B<-N type>"
16774 msgstr ""
16775
16776 #. type: =item
16777 #: ../fish/guestfish.pod:344
16778 msgid "B<--new type>"
16779 msgstr ""
16780
16781 #. type: =item
16782 #: ../fish/guestfish.pod:346
16783 msgid "B<-N help>"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish.pod:348
16788 msgid ""
16789 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16790 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16791 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16792 "IMAGES> below."
16793 msgstr ""
16794
16795 #. type: =item
16796 #: ../fish/guestfish.pod:353
16797 msgid "B<--progress-bars>"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish.pod:355
16802 msgid "Enable progress bars, even when guestfish is used non-interactively."
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish.pod:357
16807 msgid ""
16808 "Progress bars are enabled by default when guestfish is used as an "
16809 "interactive shell."
16810 msgstr ""
16811
16812 #. type: =item
16813 #: ../fish/guestfish.pod:360
16814 msgid "B<--no-progress-bars>"
16815 msgstr ""
16816
16817 #. type: textblock
16818 #: ../fish/guestfish.pod:362
16819 msgid "Disable progress bars."
16820 msgstr ""
16821
16822 #. type: =item
16823 #: ../fish/guestfish.pod:364
16824 msgid "B<--remote[=pid]>"
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../fish/guestfish.pod:366
16829 msgid ""
16830 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16831 "CONTROL GUESTFISH OVER A SOCKET> below."
16832 msgstr ""
16833
16834 #. type: =item
16835 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16836 msgid "B<-r>"
16837 msgstr ""
16838
16839 #. type: =item
16840 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16841 msgid "B<--ro>"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish.pod:373
16846 msgid ""
16847 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16848 "mounts are done read-only."
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16853 msgid ""
16854 "The option must always be used if the disk image or virtual machine might be "
16855 "running, and is generally recommended in cases where you don't need write "
16856 "access to the disk."
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish.pod:380
16861 msgid ""
16862 "Note that prepared disk images created with I<-N> are not affected by this "
16863 "option.  Also commands like C<add> are not affected - you have to specify "
16864 "the C<readonly:true> option explicitly if you need it."
16865 msgstr ""
16866
16867 #. type: textblock
16868 #: ../fish/guestfish.pod:384
16869 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16870 msgstr ""
16871
16872 #. type: =item
16873 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16874 msgid "B<--selinux>"
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish.pod:388
16879 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish.pod:394
16884 msgid ""
16885 "Enable very verbose messages.  This is particularly useful if you find a "
16886 "bug."
16887 msgstr ""
16888
16889 #. type: textblock
16890 #: ../fish/guestfish.pod:401
16891 msgid "Display the guestfish / libguestfs version number and exit."
16892 msgstr ""
16893
16894 #. type: =item
16895 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:194
16896 msgid "B<-w>"
16897 msgstr ""
16898
16899 #. type: =item
16900 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:196
16901 msgid "B<--rw>"
16902 msgstr ""
16903
16904 #. type: textblock
16905 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16906 msgid ""
16907 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16908 "mounts are done read-write."
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish.pod:410
16913 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish.pod:414
16918 msgid "Echo each command before executing it."
16919 msgstr ""
16920
16921 #. type: =head1
16922 #: ../fish/guestfish.pod:418
16923 msgid "COMMANDS ON COMMAND LINE"
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish.pod:420
16928 msgid "Any additional (non-option) arguments are treated as commands to execute."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish.pod:423
16933 msgid ""
16934 "Commands to execute should be separated by a colon (C<:>), where the colon "
16935 "is a separate parameter.  Thus:"
16936 msgstr ""
16937
16938 #. type: verbatim
16939 #: ../fish/guestfish.pod:426
16940 #, no-wrap
16941 msgid ""
16942 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16943 "\n"
16944 msgstr ""
16945
16946 #. type: textblock
16947 #: ../fish/guestfish.pod:428
16948 msgid ""
16949 "If there are no additional arguments, then we enter a shell, either an "
16950 "interactive shell with a prompt (if the input is a terminal) or a "
16951 "non-interactive shell."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish.pod:432
16956 msgid ""
16957 "In either command line mode or non-interactive shell, the first command that "
16958 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16959 "prompt) if a command fails, you can continue to enter commands."
16960 msgstr ""
16961
16962 #. type: =head1
16963 #: ../fish/guestfish.pod:437
16964 msgid "USING launch (OR run)"
16965 msgstr ""
16966
16967 #. type: textblock
16968 #: ../fish/guestfish.pod:439
16969 msgid ""
16970 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16971 "then launch it, then mount any disks you need, and finally issue "
16972 "actions/commands.  So the general order of the day is:"
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../fish/guestfish.pod:447
16977 msgid "add or -a/--add"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish.pod:451
16982 msgid "launch (aka run)"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish.pod:455
16987 msgid "mount or -m/--mount"
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish.pod:459
16992 msgid "any other commands"
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../fish/guestfish.pod:463
16997 msgid ""
16998 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16999 "guest before mounting or performing any other commands."
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish.pod:466
17004 msgid ""
17005 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17006 "I<--new> options were given then C<run> is done automatically, simply "
17007 "because guestfish can't perform the action you asked for without doing this."
17008 msgstr ""
17009
17010 #. type: =head1
17011 #: ../fish/guestfish.pod:471
17012 msgid "OPENING DISKS FOR READ AND WRITE"
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish.pod:473
17017 msgid ""
17018 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17019 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17020 "I<-i> and I<-m> open disk images read-only or for writing."
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../fish/guestfish.pod:478
17025 msgid ""
17026 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17027 "opening disk images supplied on the command line for write.  To open a disk "
17028 "image read-only you have to do I<-a image --ro>."
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish.pod:482
17033 msgid ""
17034 "This matters: If you accidentally open a live VM disk image writable then "
17035 "you will cause irreversible disk corruption."
17036 msgstr ""
17037
17038 #. type: textblock
17039 #: ../fish/guestfish.pod:485
17040 msgid ""
17041 "In a future libguestfs we intend to change the default the other way.  Disk "
17042 "images will be opened read-only.  You will have to either specify "
17043 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17044 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17045 "access for disk images specified by those other command line options."
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish.pod:492
17050 msgid ""
17051 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17052 "which does nothing (it is already the default).  However it is highly "
17053 "recommended that you use this option to indicate that you need write access, "
17054 "and prepare your scripts for the day when this option will be required for "
17055 "write access."
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish.pod:498
17060 msgid ""
17061 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17062 "other libguestfs program apart from guestfish and guestmount."
17063 msgstr ""
17064
17065 #. type: =head1
17066 #: ../fish/guestfish.pod:501
17067 msgid "QUOTING"
17068 msgstr ""
17069
17070 #. type: textblock
17071 #: ../fish/guestfish.pod:503
17072 msgid ""
17073 "You can quote ordinary parameters using either single or double quotes.  For "
17074 "example:"
17075 msgstr ""
17076
17077 #. type: verbatim
17078 #: ../fish/guestfish.pod:506
17079 #, no-wrap
17080 msgid ""
17081 " add \"file with a space.img\"\n"
17082 "\n"
17083 msgstr ""
17084
17085 #. type: verbatim
17086 #: ../fish/guestfish.pod:508
17087 #, no-wrap
17088 msgid ""
17089 " rm '/file name'\n"
17090 "\n"
17091 msgstr ""
17092
17093 #. type: verbatim
17094 #: ../fish/guestfish.pod:510
17095 #, no-wrap
17096 msgid ""
17097 " rm '/\"'\n"
17098 "\n"
17099 msgstr ""
17100
17101 #. type: textblock
17102 #: ../fish/guestfish.pod:512
17103 msgid ""
17104 "A few commands require a list of strings to be passed.  For these, use a "
17105 "whitespace-separated list, enclosed in quotes.  Strings containing "
17106 "whitespace to be passed through must be enclosed in single quotes.  A "
17107 "literal single quote must be escaped with a backslash."
17108 msgstr ""
17109
17110 #. type: verbatim
17111 #: ../fish/guestfish.pod:517
17112 #, no-wrap
17113 msgid ""
17114 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17115 " command \"/bin/echo 'foo      bar'\"\n"
17116 " command \"/bin/echo \\'foo\\'\"\n"
17117 "\n"
17118 msgstr ""
17119
17120 #. type: =head2
17121 #: ../fish/guestfish.pod:521
17122 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish.pod:523
17127 msgid ""
17128 "In double-quoted arguments (only) use backslash to insert special "
17129 "characters:"
17130 msgstr ""
17131
17132 #. type: =item
17133 #: ../fish/guestfish.pod:528
17134 msgid "C<\\a>"
17135 msgstr ""
17136
17137 #. type: textblock
17138 #: ../fish/guestfish.pod:530
17139 msgid "Alert (bell) character."
17140 msgstr ""
17141
17142 #. type: =item
17143 #: ../fish/guestfish.pod:532
17144 msgid "C<\\b>"
17145 msgstr ""
17146
17147 #. type: textblock
17148 #: ../fish/guestfish.pod:534
17149 msgid "Backspace character."
17150 msgstr ""
17151
17152 #. type: =item
17153 #: ../fish/guestfish.pod:536
17154 msgid "C<\\f>"
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../fish/guestfish.pod:538
17159 msgid "Form feed character."
17160 msgstr ""
17161
17162 #. type: =item
17163 #: ../fish/guestfish.pod:540
17164 msgid "C<\\n>"
17165 msgstr ""
17166
17167 #. type: textblock
17168 #: ../fish/guestfish.pod:542
17169 msgid "Newline character."
17170 msgstr ""
17171
17172 #. type: =item
17173 #: ../fish/guestfish.pod:544
17174 msgid "C<\\r>"
17175 msgstr ""
17176
17177 #. type: textblock
17178 #: ../fish/guestfish.pod:546
17179 msgid "Carriage return character."
17180 msgstr ""
17181
17182 #. type: =item
17183 #: ../fish/guestfish.pod:548
17184 msgid "C<\\t>"
17185 msgstr ""
17186
17187 #. type: textblock
17188 #: ../fish/guestfish.pod:550
17189 msgid "Horizontal tab character."
17190 msgstr ""
17191
17192 #. type: =item
17193 #: ../fish/guestfish.pod:552
17194 msgid "C<\\v>"
17195 msgstr ""
17196
17197 #. type: textblock
17198 #: ../fish/guestfish.pod:554
17199 msgid "Vertical tab character."
17200 msgstr ""
17201
17202 #. type: =item
17203 #: ../fish/guestfish.pod:556
17204 msgid "C<\\\">"
17205 msgstr ""
17206
17207 #. type: textblock
17208 #: ../fish/guestfish.pod:558
17209 msgid "A literal double quote character."
17210 msgstr ""
17211
17212 #. type: =item
17213 #: ../fish/guestfish.pod:560
17214 msgid "C<\\ooo>"
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish.pod:562
17219 msgid ""
17220 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17221 "(unlike C)."
17222 msgstr ""
17223
17224 #. type: =item
17225 #: ../fish/guestfish.pod:565
17226 msgid "C<\\xhh>"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish.pod:567
17231 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish.pod:570
17236 msgid ""
17237 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17238 "strings."
17239 msgstr ""
17240
17241 #. type: =item
17242 #: ../fish/guestfish.pod:573
17243 msgid "C<\\\\>"
17244 msgstr ""
17245
17246 #. type: textblock
17247 #: ../fish/guestfish.pod:575
17248 msgid "A literal backslash character."
17249 msgstr ""
17250
17251 #. type: =head1
17252 #: ../fish/guestfish.pod:579
17253 msgid "OPTIONAL ARGUMENTS"
17254 msgstr ""
17255
17256 #. type: textblock
17257 #: ../fish/guestfish.pod:581
17258 msgid ""
17259 "Some commands take optional arguments.  These arguments appear in this "
17260 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17261 msgstr ""
17262
17263 #. type: verbatim
17264 #: ../fish/guestfish.pod:585
17265 #, no-wrap
17266 msgid ""
17267 " add-drive-opts filename\n"
17268 "\n"
17269 msgstr ""
17270
17271 #. type: verbatim
17272 #: ../fish/guestfish.pod:587
17273 #, no-wrap
17274 msgid ""
17275 " add-drive-opts filename readonly:true\n"
17276 "\n"
17277 msgstr ""
17278
17279 #. type: verbatim
17280 #: ../fish/guestfish.pod:589
17281 #, no-wrap
17282 msgid ""
17283 " add-drive-opts filename format:qcow2 readonly:false\n"
17284 "\n"
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish.pod:591
17289 msgid ""
17290 "Each optional argument can appear at most once.  All optional arguments must "
17291 "appear after the required ones."
17292 msgstr ""
17293
17294 #. type: =head1
17295 #: ../fish/guestfish.pod:594
17296 msgid "NUMBERS"
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish.pod:596
17301 msgid "This section applies to all commands which can take integers as parameters."
17302 msgstr ""
17303
17304 #. type: =head2
17305 #: ../fish/guestfish.pod:599
17306 msgid "SIZE SUFFIX"
17307 msgstr ""
17308
17309 #. type: textblock
17310 #: ../fish/guestfish.pod:601
17311 msgid ""
17312 "When the command takes a parameter measured in bytes, you can use one of the "
17313 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17314 msgstr ""
17315
17316 #. type: =item
17317 #: ../fish/guestfish.pod:607
17318 msgid "B<k> or B<K> or B<KiB>"
17319 msgstr ""
17320
17321 #. type: textblock
17322 #: ../fish/guestfish.pod:609
17323 msgid "The size in kilobytes (multiplied by 1024)."
17324 msgstr ""
17325
17326 #. type: =item
17327 #: ../fish/guestfish.pod:611
17328 msgid "B<KB>"
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish.pod:613
17333 msgid "The size in SI 1000 byte units."
17334 msgstr ""
17335
17336 #. type: =item
17337 #: ../fish/guestfish.pod:615
17338 msgid "B<M> or B<MiB>"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../fish/guestfish.pod:617
17343 msgid "The size in megabytes (multiplied by 1048576)."
17344 msgstr ""
17345
17346 #. type: =item
17347 #: ../fish/guestfish.pod:619
17348 msgid "B<MB>"
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish.pod:621
17353 msgid "The size in SI 1000000 byte units."
17354 msgstr ""
17355
17356 #. type: =item
17357 #: ../fish/guestfish.pod:623
17358 msgid "B<G> or B<GiB>"
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../fish/guestfish.pod:625
17363 msgid "The size in gigabytes (multiplied by 2**30)."
17364 msgstr ""
17365
17366 #. type: =item
17367 #: ../fish/guestfish.pod:627
17368 msgid "B<GB>"
17369 msgstr ""
17370
17371 #. type: textblock
17372 #: ../fish/guestfish.pod:629
17373 msgid "The size in SI 10**9 byte units."
17374 msgstr ""
17375
17376 #. type: =item
17377 #: ../fish/guestfish.pod:631
17378 msgid "B<T> or B<TiB>"
17379 msgstr ""
17380
17381 #. type: textblock
17382 #: ../fish/guestfish.pod:633
17383 msgid "The size in terabytes (multiplied by 2**40)."
17384 msgstr ""
17385
17386 #. type: =item
17387 #: ../fish/guestfish.pod:635
17388 msgid "B<TB>"
17389 msgstr ""
17390
17391 #. type: textblock
17392 #: ../fish/guestfish.pod:637
17393 msgid "The size in SI 10**12 byte units."
17394 msgstr ""
17395
17396 #. type: =item
17397 #: ../fish/guestfish.pod:639
17398 msgid "B<P> or B<PiB>"
17399 msgstr ""
17400
17401 #. type: textblock
17402 #: ../fish/guestfish.pod:641
17403 msgid "The size in petabytes (multiplied by 2**50)."
17404 msgstr ""
17405
17406 #. type: =item
17407 #: ../fish/guestfish.pod:643
17408 msgid "B<PB>"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish.pod:645
17413 msgid "The size in SI 10**15 byte units."
17414 msgstr ""
17415
17416 #. type: =item
17417 #: ../fish/guestfish.pod:647
17418 msgid "B<E> or B<EiB>"
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish.pod:649
17423 msgid "The size in exabytes (multiplied by 2**60)."
17424 msgstr ""
17425
17426 #. type: =item
17427 #: ../fish/guestfish.pod:651
17428 msgid "B<EB>"
17429 msgstr ""
17430
17431 #. type: textblock
17432 #: ../fish/guestfish.pod:653
17433 msgid "The size in SI 10**18 byte units."
17434 msgstr ""
17435
17436 #. type: =item
17437 #: ../fish/guestfish.pod:655
17438 msgid "B<Z> or B<ZiB>"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish.pod:657
17443 msgid "The size in zettabytes (multiplied by 2**70)."
17444 msgstr ""
17445
17446 #. type: =item
17447 #: ../fish/guestfish.pod:659
17448 msgid "B<ZB>"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:661
17453 msgid "The size in SI 10**21 byte units."
17454 msgstr ""
17455
17456 #. type: =item
17457 #: ../fish/guestfish.pod:663
17458 msgid "B<Y> or B<YiB>"
17459 msgstr ""
17460
17461 #. type: textblock
17462 #: ../fish/guestfish.pod:665
17463 msgid "The size in yottabytes (multiplied by 2**80)."
17464 msgstr ""
17465
17466 #. type: =item
17467 #: ../fish/guestfish.pod:667
17468 msgid "B<YB>"
17469 msgstr ""
17470
17471 #. type: textblock
17472 #: ../fish/guestfish.pod:669
17473 msgid "The size in SI 10**24 byte units."
17474 msgstr ""
17475
17476 #. type: verbatim
17477 #: ../fish/guestfish.pod:675
17478 #, no-wrap
17479 msgid ""
17480 " truncate-size /file 1G\n"
17481 "\n"
17482 msgstr ""
17483
17484 #. type: textblock
17485 #: ../fish/guestfish.pod:677
17486 msgid "would truncate the file to 1 gigabyte."
17487 msgstr ""
17488
17489 #. type: textblock
17490 #: ../fish/guestfish.pod:679
17491 msgid ""
17492 "Be careful because a few commands take sizes in kilobytes or megabytes "
17493 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17494 "Adding a suffix will probably not do what you expect."
17495 msgstr ""
17496
17497 #. type: =head2
17498 #: ../fish/guestfish.pod:683
17499 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../fish/guestfish.pod:685
17504 msgid ""
17505 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17506 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish.pod:688
17511 #, no-wrap
17512 msgid ""
17513 " 1234      decimal number 1234\n"
17514 " 02322     octal number, equivalent to decimal 1234\n"
17515 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17516 "\n"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:692
17521 msgid ""
17522 "When using the C<chmod> command, you almost always want to specify an octal "
17523 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17524 "L<chmod(1)> program):"
17525 msgstr ""
17526
17527 #. type: verbatim
17528 #: ../fish/guestfish.pod:696
17529 #, no-wrap
17530 msgid ""
17531 " chmod 0777 /public  # OK\n"
17532 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17533 "\n"
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../fish/guestfish.pod:699
17538 msgid ""
17539 "Commands that return numbers usually print them in decimal, but some "
17540 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17541 "octal, preceeded by C<0>)."
17542 msgstr ""
17543
17544 #. type: =head1
17545 #: ../fish/guestfish.pod:703
17546 msgid "WILDCARDS AND GLOBBING"
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish.pod:705
17551 msgid ""
17552 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17553 "(globbing) by default.  So for example the following will not do what you "
17554 "expect:"
17555 msgstr ""
17556
17557 #. type: verbatim
17558 #: ../fish/guestfish.pod:709
17559 #, no-wrap
17560 msgid ""
17561 " rm-rf /home/*\n"
17562 "\n"
17563 msgstr ""
17564
17565 #. type: textblock
17566 #: ../fish/guestfish.pod:711
17567 msgid ""
17568 "Assuming you don't have a directory called literally C</home/*> then the "
17569 "above command will return an error."
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish.pod:714
17574 msgid "To perform wildcard expansion, use the C<glob> command."
17575 msgstr ""
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish.pod:716
17579 #, no-wrap
17580 msgid ""
17581 " glob rm-rf /home/*\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish.pod:718
17587 msgid ""
17588 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17589 "many times), equivalent to:"
17590 msgstr ""
17591
17592 #. type: verbatim
17593 #: ../fish/guestfish.pod:721
17594 #, no-wrap
17595 msgid ""
17596 " rm-rf /home/jim\n"
17597 " rm-rf /home/joe\n"
17598 " rm-rf /home/mary\n"
17599 "\n"
17600 msgstr ""
17601
17602 #. type: textblock
17603 #: ../fish/guestfish.pod:725
17604 msgid "C<glob> only works on simple guest paths and not on device names."
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish.pod:727
17609 msgid ""
17610 "If you have several parameters, each containing a wildcard, then glob will "
17611 "perform a Cartesian product."
17612 msgstr ""
17613
17614 #. type: =head1
17615 #: ../fish/guestfish.pod:730
17616 msgid "COMMENTS"
17617 msgstr ""
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:732
17621 msgid ""
17622 "Any line which starts with a I<#> character is treated as a comment and "
17623 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17624 "a command.  For example:"
17625 msgstr ""
17626
17627 #. type: verbatim
17628 #: ../fish/guestfish.pod:736
17629 #, no-wrap
17630 msgid ""
17631 " # this is a comment\n"
17632 "         # this is a comment\n"
17633 " foo # NOT a comment\n"
17634 "\n"
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish.pod:740
17639 msgid "Blank lines are also ignored."
17640 msgstr ""
17641
17642 #. type: =head1
17643 #: ../fish/guestfish.pod:742
17644 msgid "RUNNING COMMANDS LOCALLY"
17645 msgstr ""
17646
17647 #. type: textblock
17648 #: ../fish/guestfish.pod:744
17649 msgid ""
17650 "Any line which starts with a I<!> character is treated as a command sent to "
17651 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish.pod:748
17656 #, no-wrap
17657 msgid ""
17658 " !mkdir local\n"
17659 " tgz-out /remote local/remote-data.tar.gz\n"
17660 "\n"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:751
17665 msgid ""
17666 "will create a directory C<local> on the host, and then export the contents "
17667 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17668 "(See C<tgz-out>)."
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../fish/guestfish.pod:755
17673 msgid ""
17674 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17675 "effect, due to the way that subprocesses work in Unix."
17676 msgstr ""
17677
17678 #. type: =head2
17679 #: ../fish/guestfish.pod:758
17680 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:760
17685 msgid ""
17686 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17687 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17688 "and executed as guestfish commands."
17689 msgstr ""
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:764
17693 msgid ""
17694 "Thus you can use shell script to construct arbitrary guestfish commands "
17695 "which are then parsed by guestfish."
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish.pod:767
17700 msgid ""
17701 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17702 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17703 "if we use a shell script to create the guestfish commands for us:"
17704 msgstr ""
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish.pod:772
17708 #, no-wrap
17709 msgid ""
17710 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17711 "\n"
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish.pod:774
17716 msgid "or with names like C</foo.001>:"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish.pod:776
17721 #, no-wrap
17722 msgid ""
17723 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:778
17729 msgid ""
17730 "When using guestfish interactively it can be helpful to just run the shell "
17731 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17732 "ordinary I<!> local command), see what guestfish commands it would run, and "
17733 "when you are happy with those prepend the C<E<lt>> character to run the "
17734 "guestfish commands for real."
17735 msgstr ""
17736
17737 #. type: =head1
17738 #: ../fish/guestfish.pod:784
17739 msgid "PIPES"
17740 msgstr ""
17741
17742 #. type: textblock
17743 #: ../fish/guestfish.pod:786
17744 msgid ""
17745 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17746 "command (a guestfish command) to the second command (any host command).  For "
17747 "example:"
17748 msgstr ""
17749
17750 #. type: verbatim
17751 #: ../fish/guestfish.pod:790
17752 #, no-wrap
17753 msgid ""
17754 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17755 "\n"
17756 msgstr ""
17757
17758 #. type: textblock
17759 #: ../fish/guestfish.pod:792
17760 msgid ""
17761 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17762 "program).  The above command would list all accounts in the guest filesystem "
17763 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17764 msgstr ""
17765
17766 #. type: verbatim
17767 #: ../fish/guestfish.pod:797
17768 #, no-wrap
17769 msgid ""
17770 " hexdump /bin/ls | head\n"
17771 " list-devices | tail -1\n"
17772 " tgz-out / - | tar ztf -\n"
17773 "\n"
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish.pod:801
17778 msgid ""
17779 "The space before the pipe symbol is required, any space after the pipe "
17780 "symbol is optional.  Everything after the pipe symbol is just passed "
17781 "straight to the host shell, so it can contain redirections, globs and "
17782 "anything else that makes sense on the host side."
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../fish/guestfish.pod:806
17787 msgid ""
17788 "To use a literal argument which begins with a pipe symbol, you have to quote "
17789 "it, eg:"
17790 msgstr ""
17791
17792 #. type: verbatim
17793 #: ../fish/guestfish.pod:809
17794 #, no-wrap
17795 msgid ""
17796 " echo \"|\"\n"
17797 "\n"
17798 msgstr ""
17799
17800 #. type: =head1
17801 #: ../fish/guestfish.pod:811
17802 msgid "HOME DIRECTORIES"
17803 msgstr ""
17804
17805 #. type: textblock
17806 #: ../fish/guestfish.pod:813
17807 msgid ""
17808 "If a parameter starts with the character C<~> then the tilde may be expanded "
17809 "as a home directory path (either C<~> for the current user's home directory, "
17810 "or C<~user> for another user)."
17811 msgstr ""
17812
17813 #. type: textblock
17814 #: ../fish/guestfish.pod:817
17815 msgid ""
17816 "Note that home directory expansion happens for users known I<on the host>, "
17817 "not in the guest filesystem."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:820
17822 msgid ""
17823 "To use a literal argument which begins with a tilde, you have to quote it, "
17824 "eg:"
17825 msgstr ""
17826
17827 #. type: verbatim
17828 #: ../fish/guestfish.pod:823
17829 #, no-wrap
17830 msgid ""
17831 " echo \"~\"\n"
17832 "\n"
17833 msgstr ""
17834
17835 #. type: =head2
17836 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17837 msgid "ENCRYPTED DISKS"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../fish/guestfish.pod:827
17842 msgid ""
17843 "Libguestfs has some support for Linux guests encrypted according to the "
17844 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17845 "disk encryption systems used by modern Linux guests.  Currently only "
17846 "LVM-on-LUKS is supported."
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish.pod:832
17851 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17852 msgstr ""
17853
17854 #. type: verbatim
17855 #: ../fish/guestfish.pod:834
17856 #, no-wrap
17857 msgid ""
17858 " ><fs> vfs-type /dev/sda2\n"
17859 " crypto_LUKS\n"
17860 "\n"
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish.pod:837
17865 msgid ""
17866 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17867 "device called C</dev/mapper/luksdev>."
17868 msgstr ""
17869
17870 #. type: verbatim
17871 #: ../fish/guestfish.pod:840
17872 #, no-wrap
17873 msgid ""
17874 " ><fs> luks-open /dev/sda2 luksdev\n"
17875 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish.pod:843
17881 msgid ""
17882 "Finally you have to tell LVM to scan for volume groups on the newly created "
17883 "mapper device:"
17884 msgstr ""
17885
17886 #. type: verbatim
17887 #: ../fish/guestfish.pod:846
17888 #, no-wrap
17889 msgid ""
17890 " vgscan\n"
17891 " vg-activate-all true\n"
17892 "\n"
17893 msgstr ""
17894
17895 #. type: textblock
17896 #: ../fish/guestfish.pod:849
17897 msgid "The logical volume(s) can now be mounted in the usual way."
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../fish/guestfish.pod:851
17902 msgid ""
17903 "Before closing a LUKS device you must unmount any logical volumes on it and "
17904 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17905 "one.  Then you can close the mapper device:"
17906 msgstr ""
17907
17908 #. type: verbatim
17909 #: ../fish/guestfish.pod:855
17910 #, no-wrap
17911 msgid ""
17912 " vg-activate false /dev/VG\n"
17913 " luks-close /dev/mapper/luksdev\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: textblock
17918 #: ../fish/guestfish.pod:860
17919 msgid ""
17920 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17921 "letters and paths (with some limitations).  The following commands are "
17922 "equivalent:"
17923 msgstr ""
17924
17925 #. type: verbatim
17926 #: ../fish/guestfish.pod:864
17927 #, no-wrap
17928 msgid ""
17929 " file /WINDOWS/system32/config/system.LOG\n"
17930 "\n"
17931 msgstr ""
17932
17933 #. type: verbatim
17934 #: ../fish/guestfish.pod:866
17935 #, no-wrap
17936 msgid ""
17937 " file win:\\windows\\system32\\config\\system.log\n"
17938 "\n"
17939 msgstr ""
17940
17941 #. type: verbatim
17942 #: ../fish/guestfish.pod:868
17943 #, no-wrap
17944 msgid ""
17945 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17946 "\n"
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish.pod:870
17951 msgid ""
17952 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17953 "where the drive is mounted, prepending that to the path, changing all "
17954 "backslash characters to forward slash, then resolving the result using "
17955 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17956 "then the parameter might be rewritten like this:"
17957 msgstr ""
17958
17959 #. type: verbatim
17960 #: ../fish/guestfish.pod:876
17961 #, no-wrap
17962 msgid ""
17963 " win:e:\\foo\\bar => /e/FOO/bar\n"
17964 "\n"
17965 msgstr ""
17966
17967 #. type: textblock
17968 #: ../fish/guestfish.pod:878
17969 msgid "This only works in argument positions that expect a path."
17970 msgstr ""
17971
17972 #. type: =head1
17973 #: ../fish/guestfish.pod:880
17974 msgid "UPLOADING AND DOWNLOADING FILES"
17975 msgstr ""
17976
17977 #. type: textblock
17978 #: ../fish/guestfish.pod:882
17979 msgid ""
17980 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17981 "others which upload from or download to a local file, you can use the "
17982 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17983 msgstr ""
17984
17985 #. type: verbatim
17986 #: ../fish/guestfish.pod:886
17987 #, no-wrap
17988 msgid ""
17989 " upload - /foo\n"
17990 "\n"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish.pod:888
17995 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17996 msgstr ""
17997
17998 #. type: verbatim
17999 #: ../fish/guestfish.pod:891
18000 #, no-wrap
18001 msgid ""
18002 " tar-out /etc - | tar tf -\n"
18003 "\n"
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../fish/guestfish.pod:893
18008 msgid ""
18009 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18010 "command (see L</PIPES>)."
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish.pod:896
18015 msgid ""
18016 "When using C<-> to read from stdin, the input is read up to the end of "
18017 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18018 "some arbitrary end marker:"
18019 msgstr ""
18020
18021 #. type: verbatim
18022 #: ../fish/guestfish.pod:900
18023 #, no-wrap
18024 msgid ""
18025 " upload -<<END /foo\n"
18026 " input line 1\n"
18027 " input line 2\n"
18028 " input line 3\n"
18029 " END\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:906
18035 msgid ""
18036 "Any string of characters can be used instead of C<END>.  The end marker must "
18037 "appear on a line of its own, without any preceeding or following characters "
18038 "(not even spaces)."
18039 msgstr ""
18040
18041 #. type: textblock
18042 #: ../fish/guestfish.pod:910
18043 msgid ""
18044 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18045 "upload local files (so-called \"FileIn\" parameters in the generator)."
18046 msgstr ""
18047
18048 #. type: =head1
18049 #: ../fish/guestfish.pod:913
18050 msgid "EXIT ON ERROR BEHAVIOUR"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../fish/guestfish.pod:915
18055 msgid ""
18056 "By default, guestfish will ignore any errors when in interactive mode "
18057 "(ie. taking commands from a human over a tty), and will exit on the first "
18058 "error in non-interactive mode (scripts, commands given on the command line)."
18059 msgstr ""
18060
18061 #. type: textblock
18062 #: ../fish/guestfish.pod:920
18063 msgid ""
18064 "If you prefix a command with a I<-> character, then that command will not "
18065 "cause guestfish to exit, even if that (one) command returns an error."
18066 msgstr ""
18067
18068 #. type: =head1
18069 #: ../fish/guestfish.pod:924
18070 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18071 msgstr ""
18072
18073 #. type: textblock
18074 #: ../fish/guestfish.pod:926
18075 msgid ""
18076 "Guestfish can be remote-controlled over a socket.  This is useful "
18077 "particularly in shell scripts where you want to make several different "
18078 "changes to a filesystem, but you don't want the overhead of starting up a "
18079 "guestfish process each time."
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish.pod:931
18084 msgid "Start a guestfish server process using:"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish.pod:933
18089 #, no-wrap
18090 msgid ""
18091 " eval \"`guestfish --listen`\"\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish.pod:935
18097 msgid "and then send it commands by doing:"
18098 msgstr ""
18099
18100 #. type: verbatim
18101 #: ../fish/guestfish.pod:937
18102 #, no-wrap
18103 msgid ""
18104 " guestfish --remote cmd [...]\n"
18105 "\n"
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish.pod:939
18110 msgid "To cause the server to exit, send it the exit command:"
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish.pod:943
18115 msgid ""
18116 "Note that the server will normally exit if there is an error in a command.  "
18117 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18118 "BEHAVIOUR>."
18119 msgstr ""
18120
18121 #. type: =head2
18122 #: ../fish/guestfish.pod:947
18123 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:949
18128 msgid ""
18129 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18130 "is how the I<--remote> option knows where to send the commands.  You can "
18131 "have several guestfish listener processes running using:"
18132 msgstr ""
18133
18134 #. type: verbatim
18135 #: ../fish/guestfish.pod:953
18136 #, no-wrap
18137 msgid ""
18138 " eval \"`guestfish --listen`\"\n"
18139 " pid1=$GUESTFISH_PID\n"
18140 " eval \"`guestfish --listen`\"\n"
18141 " pid2=$GUESTFISH_PID\n"
18142 " ...\n"
18143 " guestfish --remote=$pid1 cmd\n"
18144 " guestfish --remote=$pid2 cmd\n"
18145 "\n"
18146 msgstr ""
18147
18148 #. type: =head2
18149 #: ../fish/guestfish.pod:961
18150 msgid "REMOTE CONTROL AND CSH"
18151 msgstr ""
18152
18153 #. type: textblock
18154 #: ../fish/guestfish.pod:963
18155 msgid ""
18156 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18157 "option:"
18158 msgstr ""
18159
18160 #. type: verbatim
18161 #: ../fish/guestfish.pod:966
18162 #, no-wrap
18163 msgid ""
18164 " eval \"`guestfish --listen --csh`\"\n"
18165 "\n"
18166 msgstr ""
18167
18168 #. type: =head2
18169 #: ../fish/guestfish.pod:968
18170 msgid "REMOTE CONTROL DETAILS"
18171 msgstr ""
18172
18173 #. type: textblock
18174 #: ../fish/guestfish.pod:970
18175 msgid ""
18176 "Remote control happens over a Unix domain socket called "
18177 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18178 "of the process, and C<$PID> is the process ID of the server."
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish.pod:974
18183 msgid "Guestfish client and server versions must match exactly."
18184 msgstr ""
18185
18186 #. type: =head2
18187 #: ../fish/guestfish.pod:976
18188 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:978
18193 msgid ""
18194 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18195 "context hangs, ie. don't do (note the backquotes):"
18196 msgstr ""
18197
18198 #. type: verbatim
18199 #: ../fish/guestfish.pod:981
18200 #, no-wrap
18201 msgid ""
18202 " a=`guestfish --remote run`\n"
18203 "\n"
18204 msgstr ""
18205
18206 #. type: textblock
18207 #: ../fish/guestfish.pod:983
18208 msgid ""
18209 "Since the C<run> command produces no output on stdout, this is not useful "
18210 "anyway.  For further information see "
18211 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
18212 msgstr ""
18213
18214 #. type: =head1
18215 #: ../fish/guestfish.pod:987
18216 msgid "PREPARED DISK IMAGES"
18217 msgstr ""
18218
18219 #. type: textblock
18220 #: ../fish/guestfish.pod:989
18221 msgid ""
18222 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18223 "preformatted disk images that guestfish can make for you to save typing.  "
18224 "This is particularly useful for testing purposes.  This option is used "
18225 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18226 "can be mixed with I<-a>)."
18227 msgstr ""
18228
18229 #. type: textblock
18230 #: ../fish/guestfish.pod:995
18231 msgid ""
18232 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18233 "the second and so on.  Existing files in the current directory are "
18234 "I<overwritten>."
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish.pod:999
18239 msgid ""
18240 "The type briefly describes how the disk should be sized, partitioned, how "
18241 "filesystem(s) should be created, and how content should be added.  "
18242 "Optionally the type can be followed by extra parameters, separated by C<:> "
18243 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18244 "sparsely-allocated disk, containing a single partition, with the partition "
18245 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18246 "on a 1GB disk instead."
18247 msgstr ""
18248
18249 #. type: textblock
18250 #: ../fish/guestfish.pod:1007
18251 msgid "To list the available types and any extra parameters they take, run:"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:1011
18256 msgid ""
18257 "Note that the prepared filesystem is not mounted.  You would usually have to "
18258 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:1015
18263 msgid ""
18264 "If any I<-N> or I<--new> options are given, the guest is automatically "
18265 "launched."
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish.pod:1020
18270 msgid "Create a 100MB disk with an ext4-formatted partition:"
18271 msgstr ""
18272
18273 #. type: verbatim
18274 #: ../fish/guestfish.pod:1022
18275 #, no-wrap
18276 msgid ""
18277 " guestfish -N fs:ext4\n"
18278 "\n"
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish.pod:1024
18283 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18284 msgstr ""
18285
18286 #. type: verbatim
18287 #: ../fish/guestfish.pod:1026
18288 #, no-wrap
18289 msgid ""
18290 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18291 "\n"
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/guestfish.pod:1028
18296 msgid "Create a blank 200MB disk:"
18297 msgstr ""
18298
18299 #. type: verbatim
18300 #: ../fish/guestfish.pod:1030
18301 #, no-wrap
18302 msgid ""
18303 " guestfish -N disk:200M\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: =head1
18308 #: ../fish/guestfish.pod:1032
18309 msgid "PROGRESS BARS"
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../fish/guestfish.pod:1034
18314 msgid ""
18315 "Some (not all) long-running commands send progress notification messages as "
18316 "they are running.  Guestfish turns these messages into progress bars."
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish.pod:1038
18321 msgid ""
18322 "When a command that supports progress bars takes longer than two seconds to "
18323 "run, and if progress bars are enabled, then you will see one appearing below "
18324 "the command:"
18325 msgstr ""
18326
18327 #. type: verbatim
18328 #: ../fish/guestfish.pod:1042
18329 #, no-wrap
18330 msgid ""
18331 " ><fs> copy-size /large-file /another-file 2048M\n"
18332 " / 10% [#####-----------------------------------------] 00:30\n"
18333 "\n"
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish.pod:1045
18338 msgid ""
18339 "The spinner on the left hand side moves round once for every progress "
18340 "notification received from the backend.  This is a (reasonably) golden "
18341 "assurance that the command is \"doing something\" even if the progress bar "
18342 "is not moving, because the command is able to send the progress "
18343 "notifications.  When the bar reaches 100% and the command finishes, the "
18344 "spinner disappears."
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish.pod:1052
18349 msgid ""
18350 "Progress bars are enabled by default when guestfish is used interactively.  "
18351 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18352 "and you can disable them completely using I<--no-progress-bars>."
18353 msgstr ""
18354
18355 #. type: =head1
18356 #: ../fish/guestfish.pod:1057
18357 msgid "GUESTFISH COMMANDS"
18358 msgstr ""
18359
18360 #. type: textblock
18361 #: ../fish/guestfish.pod:1059
18362 msgid ""
18363 "The commands in this section are guestfish convenience commands, in other "
18364 "words, they are not part of the L<guestfs(3)> API."
18365 msgstr ""
18366
18367 #. type: =head2
18368 #: ../fish/guestfish.pod:1062
18369 msgid "help"
18370 msgstr ""
18371
18372 #. type: verbatim
18373 #: ../fish/guestfish.pod:1064
18374 #, no-wrap
18375 msgid ""
18376 " help\n"
18377 " help cmd\n"
18378 "\n"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish.pod:1067
18383 msgid "Without any parameter, this provides general help."
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish.pod:1069
18388 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18389 msgstr ""
18390
18391 #. type: =head2
18392 #: ../fish/guestfish.pod:1071
18393 msgid "quit | exit"
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/guestfish.pod:1073
18398 msgid "This exits guestfish.  You can also use C<^D> key."
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:1075
18403 msgid "@FISH_COMMANDS@"
18404 msgstr ""
18405
18406 #. type: =head1
18407 #: ../fish/guestfish.pod:1077
18408 msgid "COMMANDS"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
18413 msgid "@ACTIONS@"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish.pod:1083
18418 msgid ""
18419 "guestfish returns 0 if the commands completed without error, or 1 if there "
18420 "was an error."
18421 msgstr ""
18422
18423 #. type: =item
18424 #: ../fish/guestfish.pod:1090
18425 msgid "EDITOR"
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish.pod:1092
18430 msgid ""
18431 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18432 "C<vi>."
18433 msgstr ""
18434
18435 #. type: =item
18436 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3122
18437 msgid "FEBOOTSTRAP_KERNEL"
18438 msgstr ""
18439
18440 #. type: =item
18441 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3124
18442 msgid "FEBOOTSTRAP_MODULES"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3126
18447 msgid ""
18448 "These two environment variables allow the kernel that libguestfs uses in the "
18449 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18450 "most recent host kernel is chosen.  For more information about kernel "
18451 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18452 "available in febootstrap E<ge> 3.8."
18453 msgstr ""
18454
18455 #. type: =item
18456 #: ../fish/guestfish.pod:1105
18457 msgid "GUESTFISH_DISPLAY_IMAGE"
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish.pod:1107
18462 msgid ""
18463 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18464 "If not set, it uses L<display(1)>."
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:1110
18469 msgid "GUESTFISH_PID"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:1112
18474 msgid ""
18475 "Used with the I<--remote> option to specify the remote guestfish process to "
18476 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18477 msgstr ""
18478
18479 #. type: =item
18480 #: ../fish/guestfish.pod:1116
18481 msgid "HEXEDITOR"
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../fish/guestfish.pod:1118
18486 msgid ""
18487 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18488 "not specified, the external L<hexedit(1)> program is used."
18489 msgstr ""
18490
18491 #. type: =item
18492 #: ../fish/guestfish.pod:1122
18493 msgid "HOME"
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish.pod:1124
18498 msgid ""
18499 "If compiled with GNU readline support, various files in the home directory "
18500 "can be used.  See L</FILES>."
18501 msgstr ""
18502
18503 #. type: =item
18504 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3132
18505 msgid "LIBGUESTFS_APPEND"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3134
18510 msgid "Pass additional options to the guest kernel."
18511 msgstr ""
18512
18513 #. type: =item
18514 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3136
18515 msgid "LIBGUESTFS_DEBUG"
18516 msgstr ""
18517
18518 #. type: textblock
18519 #: ../fish/guestfish.pod:1133
18520 msgid ""
18521 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18522 "effect as using the B<-v> option."
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3141
18527 msgid "LIBGUESTFS_MEMSIZE"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3143
18532 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
18533 msgstr ""
18534
18535 #. type: verbatim
18536 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3146
18537 #, no-wrap
18538 msgid ""
18539 " LIBGUESTFS_MEMSIZE=700\n"
18540 "\n"
18541 msgstr ""
18542
18543 #. type: =item
18544 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3148
18545 msgid "LIBGUESTFS_PATH"
18546 msgstr ""
18547
18548 #. type: textblock
18549 #: ../fish/guestfish.pod:1145
18550 msgid ""
18551 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18552 "the discussion of paths in L<guestfs(3)>."
18553 msgstr ""
18554
18555 #. type: =item
18556 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3153
18557 msgid "LIBGUESTFS_QEMU"
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3155
18562 msgid ""
18563 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18564 "which was found at compile time by the configure script is used."
18565 msgstr ""
18566
18567 #. type: =item
18568 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3161
18569 msgid "LIBGUESTFS_TRACE"
18570 msgstr ""
18571
18572 #. type: textblock
18573 #: ../fish/guestfish.pod:1156
18574 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18575 msgstr ""
18576
18577 #. type: =item
18578 #: ../fish/guestfish.pod:1158
18579 msgid "PAGER"
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:1160
18584 msgid ""
18585 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18586 "C<more>."
18587 msgstr ""
18588
18589 #. type: =item
18590 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3166
18591 msgid "TMPDIR"
18592 msgstr ""
18593
18594 #. type: textblock
18595 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3168
18596 msgid ""
18597 "Location of temporary directory, defaults to C</tmp> except for the cached "
18598 "supermin appliance which defaults to C</var/tmp>."
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3171
18603 msgid ""
18604 "If libguestfs was compiled to use the supermin appliance then the real "
18605 "appliance is cached in this directory, shared between all handles belonging "
18606 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18607 "use in case C</var/tmp> is not large enough."
18608 msgstr ""
18609
18610 #. type: =head1
18611 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:273
18612 msgid "FILES"
18613 msgstr ""
18614
18615 #. type: =item
18616 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:277
18617 msgid "$HOME/.libguestfs-tools.rc"
18618 msgstr ""
18619
18620 #. type: =item
18621 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:279
18622 msgid "/etc/libguestfs-tools.conf"
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:281
18627 msgid ""
18628 "This configuration file controls the default read-only or read-write mode "
18629 "(I<--ro> or I<--rw>)."
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../fish/guestfish.pod:1187
18634 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18635 msgstr ""
18636
18637 #. type: =item
18638 #: ../fish/guestfish.pod:1189
18639 msgid "$HOME/.guestfish"
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/guestfish.pod:1191
18644 msgid ""
18645 "If compiled with GNU readline support, then the command history is saved in "
18646 "this file."
18647 msgstr ""
18648
18649 #. type: =item
18650 #: ../fish/guestfish.pod:1194
18651 msgid "$HOME/.inputrc"
18652 msgstr ""
18653
18654 #. type: =item
18655 #: ../fish/guestfish.pod:1196
18656 msgid "/etc/inputrc"
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/guestfish.pod:1198
18661 msgid ""
18662 "If compiled with GNU readline support, then these files can be used to "
18663 "configure readline.  For further information, please see "
18664 "L<readline(3)/INITIALIZATION FILE>."
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:1202
18669 msgid "To write rules which only apply to guestfish, use:"
18670 msgstr ""
18671
18672 #. type: verbatim
18673 #: ../fish/guestfish.pod:1204
18674 #, no-wrap
18675 msgid ""
18676 " $if guestfish\n"
18677 " ...\n"
18678 " $endif\n"
18679 "\n"
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish.pod:1208
18684 msgid ""
18685 "Variables that you can set in inputrc that change the behaviour of guestfish "
18686 "in useful ways include:"
18687 msgstr ""
18688
18689 #. type: =item
18690 #: ../fish/guestfish.pod:1213
18691 msgid "completion-ignore-case (default: on)"
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/guestfish.pod:1215
18696 msgid ""
18697 "By default, guestfish will ignore case when tab-completing paths on the "
18698 "disk.  Use:"
18699 msgstr ""
18700
18701 #. type: verbatim
18702 #: ../fish/guestfish.pod:1218
18703 #, no-wrap
18704 msgid ""
18705 " set completion-ignore-case off\n"
18706 "\n"
18707 msgstr ""
18708
18709 #. type: textblock
18710 #: ../fish/guestfish.pod:1220
18711 msgid "to make guestfish case sensitive."
18712 msgstr ""
18713
18714 #. type: =item
18715 #: ../fish/guestfish.pod:1224
18716 msgid "test1.img"
18717 msgstr ""
18718
18719 #. type: =item
18720 #: ../fish/guestfish.pod:1226
18721 msgid "test2.img (etc)"
18722 msgstr ""
18723
18724 #. type: textblock
18725 #: ../fish/guestfish.pod:1228
18726 msgid ""
18727 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18728 "will be created in the file C<test1.img> in the current directory.  The "
18729 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18730 "the same name will be overwritten."
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:1237
18735 msgid ""
18736 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
18737 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
18738 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18739 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18740 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
18741 "L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
18742 "L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18743 "L<febootstrap-supermin-helper(8)>."
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/guestfish.pod:1268 ../src/guestfs.pod:3261 ../test-tool/libguestfs-test-tool.pod:112
18748 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/virt-copy-in.pod:5
18753 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18754 msgstr ""
18755
18756 #. type: verbatim
18757 #: ../fish/virt-copy-in.pod:9
18758 #, no-wrap
18759 msgid ""
18760 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18761 "\n"
18762 msgstr ""
18763
18764 #. type: verbatim
18765 #: ../fish/virt-copy-in.pod:11
18766 #, no-wrap
18767 msgid ""
18768 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18769 "\n"
18770 msgstr ""
18771
18772 #. type: textblock
18773 #: ../fish/virt-copy-in.pod:15
18774 msgid ""
18775 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18776 "causing disk corruption.  The virtual machine must be shut down before you "
18777 "use this command."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/virt-copy-in.pod:21
18782 msgid ""
18783 "C<virt-copy-in> copies files and directories from the local disk into a "
18784 "virtual machine disk image or named libvirt domain."
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/virt-copy-in.pod:24
18789 msgid ""
18790 "You can give one of more filenames and directories on the command line.  "
18791 "Directories are copied in recursively.  The final parameter must be the "
18792 "destination directory in the disk image which must be an absolute path "
18793 "starting with a C</> character."
18794 msgstr ""
18795
18796 #. type: verbatim
18797 #: ../fish/virt-copy-in.pod:33
18798 #, no-wrap
18799 msgid ""
18800 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18801 "\n"
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18806 msgid "Upload a home directory to a guest:"
18807 msgstr ""
18808
18809 #. type: verbatim
18810 #: ../fish/virt-copy-in.pod:37
18811 #, no-wrap
18812 msgid ""
18813 " virt-copy-in -d MyGuest skel /home\n"
18814 "\n"
18815 msgstr ""
18816
18817 #. type: =head1
18818 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18819 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../fish/virt-copy-in.pod:41
18824 msgid ""
18825 "This command is just a simple shell script wrapper around the "
18826 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18827 "trivial copy, you are probably better off using guestfish directly."
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18832 msgid ""
18833 "Since the shell script just passes options straight to guestfish, read "
18834 "L<guestfish(1)> to see the full list of options."
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/virt-copy-in.pod:52
18839 msgid ""
18840 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18841 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18842 msgstr ""
18843
18844 #. type: textblock
18845 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18846 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18847 msgstr ""
18848
18849 #. type: textblock
18850 #: ../fish/virt-copy-out.pod:5
18851 msgid ""
18852 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18853 "image."
18854 msgstr ""
18855
18856 #. type: verbatim
18857 #: ../fish/virt-copy-out.pod:9
18858 #, no-wrap
18859 msgid ""
18860 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18861 "\n"
18862 msgstr ""
18863
18864 #. type: verbatim
18865 #: ../fish/virt-copy-out.pod:11
18866 #, no-wrap
18867 msgid ""
18868 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18869 "\n"
18870 msgstr ""
18871
18872 #. type: textblock
18873 #: ../fish/virt-copy-out.pod:15
18874 msgid ""
18875 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18876 "image or named libvirt domain."
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/virt-copy-out.pod:18
18881 msgid ""
18882 "You can give one of more filenames and directories on the command line.  "
18883 "Directories are copied out recursively."
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/virt-copy-out.pod:23
18888 msgid "Download the home directories from a virtual machine:"
18889 msgstr ""
18890
18891 #. type: verbatim
18892 #: ../fish/virt-copy-out.pod:25
18893 #, no-wrap
18894 msgid ""
18895 " mkdir homes\n"
18896 " virt-copy-out -d MyGuest /home homes\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/virt-copy-out.pod:30
18902 msgid ""
18903 "This command is just a simple shell script wrapper around the "
18904 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18905 "trivial copy, you are probably better off using guestfish directly."
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/virt-copy-out.pod:41
18910 msgid ""
18911 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18912 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18913 msgstr ""
18914
18915 #. type: textblock
18916 #: ../fish/virt-tar-in.pod:5
18917 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18918 msgstr ""
18919
18920 #. type: verbatim
18921 #: ../fish/virt-tar-in.pod:9
18922 #, no-wrap
18923 msgid ""
18924 " virt-tar-in -a disk.img data.tar /destination\n"
18925 "\n"
18926 msgstr ""
18927
18928 #. type: verbatim
18929 #: ../fish/virt-tar-in.pod:11
18930 #, no-wrap
18931 msgid ""
18932 " virt-tar-in -d domain data.tar /destination\n"
18933 "\n"
18934 msgstr ""
18935
18936 #. type: verbatim
18937 #: ../fish/virt-tar-in.pod:13
18938 #, no-wrap
18939 msgid ""
18940 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18941 "\n"
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/virt-tar-in.pod:17
18946 msgid ""
18947 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18948 "causing disk corruption.  The virtual machine must be shut down before you "
18949 "use this command."
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/virt-tar-in.pod:23
18954 msgid ""
18955 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18956 "image or named libvirt domain."
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/virt-tar-in.pod:26
18961 msgid ""
18962 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18963 "standard input.  The second parameter is the absolute target directory to "
18964 "unpack into."
18965 msgstr ""
18966
18967 #. type: verbatim
18968 #: ../fish/virt-tar-in.pod:34
18969 #, no-wrap
18970 msgid ""
18971 " virt-tar-in -d MyGuest homes.tar /home\n"
18972 "\n"
18973 msgstr ""
18974
18975 #. type: textblock
18976 #: ../fish/virt-tar-in.pod:38
18977 msgid ""
18978 "This command is just a simple shell script wrapper around the "
18979 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18980 "copy, you are probably better off using guestfish directly."
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/virt-tar-in.pod:49
18985 msgid ""
18986 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18987 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18988 "L<http://libguestfs.org/>."
18989 msgstr ""
18990
18991 #. type: textblock
18992 #: ../fish/virt-tar-out.pod:5
18993 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18994 msgstr ""
18995
18996 #. type: verbatim
18997 #: ../fish/virt-tar-out.pod:9
18998 #, no-wrap
18999 msgid ""
19000 " virt-tar-out -a disk.img /dir files.tar\n"
19001 "\n"
19002 msgstr ""
19003
19004 #. type: verbatim
19005 #: ../fish/virt-tar-out.pod:11
19006 #, no-wrap
19007 msgid ""
19008 " virt-tar-out -d domain /dir files.tar\n"
19009 "\n"
19010 msgstr ""
19011
19012 #. type: verbatim
19013 #: ../fish/virt-tar-out.pod:13
19014 #, no-wrap
19015 msgid ""
19016 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19017 "\n"
19018 msgstr ""
19019
19020 #. type: textblock
19021 #: ../fish/virt-tar-out.pod:17
19022 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19023 msgstr ""
19024
19025 #. type: textblock
19026 #: ../fish/virt-tar-out.pod:20
19027 msgid ""
19028 "The first parameter is the absolute path of the virtual machine directory.  "
19029 "The second parameter is the tar file to write.  Use C<-> to write to "
19030 "standard output."
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../fish/virt-tar-out.pod:26
19035 msgid "Download the home directories from a guest:"
19036 msgstr ""
19037
19038 #. type: verbatim
19039 #: ../fish/virt-tar-out.pod:28
19040 #, no-wrap
19041 msgid ""
19042 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19043 "\n"
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/virt-tar-out.pod:32
19048 msgid ""
19049 "This command is just a simple shell script wrapper around the "
19050 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
19051 "trivial copy, you are probably better off using guestfish directly."
19052 msgstr ""
19053
19054 #. type: textblock
19055 #: ../fish/virt-tar-out.pod:43
19056 msgid ""
19057 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19058 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19059 msgstr ""
19060
19061 #. type: textblock
19062 #: ../fuse/guestmount.pod:5
19063 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19064 msgstr ""
19065
19066 #. type: verbatim
19067 #: ../fuse/guestmount.pod:9
19068 #, no-wrap
19069 msgid ""
19070 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19071 "\n"
19072 msgstr ""
19073
19074 #. type: verbatim
19075 #: ../fuse/guestmount.pod:11
19076 #, no-wrap
19077 msgid ""
19078 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19079 "\n"
19080 msgstr ""
19081
19082 #. type: verbatim
19083 #: ../fuse/guestmount.pod:13
19084 #, no-wrap
19085 msgid ""
19086 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19087 "\n"
19088 msgstr ""
19089
19090 #. type: textblock
19091 #: ../fuse/guestmount.pod:17
19092 msgid ""
19093 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19094 "machines.  If you do this, you risk disk corruption in the VM."
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fuse/guestmount.pod:22
19099 msgid ""
19100 "The guestmount program can be used to mount virtual machine filesystems and "
19101 "other disk images on the host.  It uses libguestfs for access to the guest "
19102 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19103 "a mountable device."
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../fuse/guestmount.pod:27
19108 msgid ""
19109 "Along with other options, you have to give at least one device (I<-a> "
19110 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19111 "option) or use the I<-i> inspection option.  How this works is better "
19112 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19113 "below."
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fuse/guestmount.pod:33
19118 msgid ""
19119 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19120 "by you, and the filesystem will not be visible to any other users unless you "
19121 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19122 "the filesystem, use the C<fusermount -u> command."
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fuse/guestmount.pod:41
19127 msgid ""
19128 "For a typical Windows guest which has its main filesystem on the first "
19129 "partition:"
19130 msgstr ""
19131
19132 #. type: verbatim
19133 #: ../fuse/guestmount.pod:44
19134 #, no-wrap
19135 msgid ""
19136 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19137 "\n"
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fuse/guestmount.pod:46
19142 msgid ""
19143 "For a typical Linux guest which has a /boot filesystem on the first "
19144 "partition, and the root filesystem on a logical volume:"
19145 msgstr ""
19146
19147 #. type: verbatim
19148 #: ../fuse/guestmount.pod:49
19149 #, no-wrap
19150 msgid ""
19151 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19152 "\n"
19153 msgstr ""
19154
19155 #. type: textblock
19156 #: ../fuse/guestmount.pod:51
19157 msgid "To get libguestfs to detect guest mountpoints for you:"
19158 msgstr ""
19159
19160 #. type: verbatim
19161 #: ../fuse/guestmount.pod:53
19162 #, no-wrap
19163 msgid ""
19164 " guestmount -a guest.img -i --ro /mnt\n"
19165 "\n"
19166 msgstr ""
19167
19168 #. type: textblock
19169 #: ../fuse/guestmount.pod:55
19170 msgid "For a libvirt guest called \"Guest\" you could do:"
19171 msgstr ""
19172
19173 #. type: verbatim
19174 #: ../fuse/guestmount.pod:57
19175 #, no-wrap
19176 msgid ""
19177 " guestmount -d Guest -i --ro /mnt\n"
19178 "\n"
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fuse/guestmount.pod:59
19183 msgid ""
19184 "If you don't know what filesystems are contained in a guest or disk image, "
19185 "use L<virt-filesystems(1)> first:"
19186 msgstr ""
19187
19188 #. type: verbatim
19189 #: ../fuse/guestmount.pod:62
19190 #, no-wrap
19191 msgid ""
19192 " virt-filesystems MyGuest\n"
19193 "\n"
19194 msgstr ""
19195
19196 #. type: textblock
19197 #: ../fuse/guestmount.pod:64
19198 msgid ""
19199 "If you want to trace the libguestfs calls but without excessive debugging "
19200 "information, we recommend:"
19201 msgstr ""
19202
19203 #. type: verbatim
19204 #: ../fuse/guestmount.pod:67
19205 #, no-wrap
19206 msgid ""
19207 " guestmount [...] --trace /mnt\n"
19208 "\n"
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fuse/guestmount.pod:69
19213 msgid "If you want to debug the program, we recommend:"
19214 msgstr ""
19215
19216 #. type: verbatim
19217 #: ../fuse/guestmount.pod:71
19218 #, no-wrap
19219 msgid ""
19220 " guestmount [...] --trace --verbose /mnt\n"
19221 "\n"
19222 msgstr ""
19223
19224 #. type: =head1
19225 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
19226 msgid "NOTES"
19227 msgstr ""
19228
19229 #. type: =head2
19230 #: ../fuse/guestmount.pod:75
19231 msgid "Other users cannot see the filesystem by default"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fuse/guestmount.pod:77
19236 msgid ""
19237 "If you mount a filesystem as one user (eg. root), then other users will not "
19238 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19239 "option when mounting:"
19240 msgstr ""
19241
19242 #. type: verbatim
19243 #: ../fuse/guestmount.pod:81
19244 #, no-wrap
19245 msgid ""
19246 " sudo guestmount [...] -o allow_other /mnt\n"
19247 "\n"
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fuse/guestmount.pod:91
19252 msgid "Add a block device or virtual machine image."
19253 msgstr ""
19254
19255 #. type: =item
19256 #: ../fuse/guestmount.pod:114
19257 msgid "B<--dir-cache-timeout N>"
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fuse/guestmount.pod:116
19262 msgid ""
19263 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19264 "seconds.  The readdir cache [actually, there are several semi-independent "
19265 "caches] is populated after a readdir(2) call with the stat and extended "
19266 "attributes of the files in the directory, in anticipation that they will be "
19267 "requested soon after."
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fuse/guestmount.pod:122
19272 msgid ""
19273 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19274 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19275 "requests, only cache existing ones."
19276 msgstr ""
19277
19278 #. type: textblock
19279 #: ../fuse/guestmount.pod:142
19280 msgid ""
19281 "If you have untrusted raw-format guest disk images, you should use this "
19282 "option to specify the disk format.  This avoids a possible security problem "
19283 "with malicious guests (CVE-2010-3851).  See also "
19284 "L<guestfs(3)/guestfs_add_drive_opts>."
19285 msgstr ""
19286
19287 #. type: =item
19288 #: ../fuse/guestmount.pod:147
19289 msgid "B<--fuse-help>"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fuse/guestmount.pod:149
19294 msgid "Display help on special FUSE options (see I<-o> below)."
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fuse/guestmount.pod:153
19299 msgid "Display brief help and exit."
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../fuse/guestmount.pod:177
19304 msgid ""
19305 "Mount the named partition or logical volume on the given mountpoint B<in the "
19306 "guest> (this has nothing to do with mountpoints in the host)."
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../fuse/guestmount.pod:180
19311 msgid ""
19312 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19313 "something on C</>."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fuse/guestmount.pod:197
19318 msgid ""
19319 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19320 "unmounted.  If you specify this option, then we don't attempt to sync the "
19321 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19322 msgstr ""
19323
19324 #. type: =item
19325 #: ../fuse/guestmount.pod:202
19326 msgid "B<-o option>"
19327 msgstr ""
19328
19329 #. type: =item
19330 #: ../fuse/guestmount.pod:204
19331 msgid "B<--option option>"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fuse/guestmount.pod:206
19336 msgid "Pass extra options to FUSE."
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fuse/guestmount.pod:208
19341 msgid ""
19342 "To get a list of all the extra options supported by FUSE, use the command "
19343 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19344 "of them are a good idea."
19345 msgstr ""
19346
19347 #. type: verbatim
19348 #: ../fuse/guestmount.pod:212
19349 #, no-wrap
19350 msgid ""
19351 " guestmount --fuse-help\n"
19352 "\n"
19353 msgstr ""
19354
19355 #. type: textblock
19356 #: ../fuse/guestmount.pod:214
19357 msgid "Some potentially useful FUSE options:"
19358 msgstr ""
19359
19360 #. type: =item
19361 #: ../fuse/guestmount.pod:218
19362 msgid "B<-o allow_other>"
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fuse/guestmount.pod:220
19367 msgid "Allow other users to see the filesystem."
19368 msgstr ""
19369
19370 #. type: =item
19371 #: ../fuse/guestmount.pod:222
19372 msgid "B<-o attr_timeout=N>"
19373 msgstr ""
19374
19375 #. type: textblock
19376 #: ../fuse/guestmount.pod:224
19377 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19378 msgstr ""
19379
19380 #. type: =item
19381 #: ../fuse/guestmount.pod:226
19382 msgid "B<-o kernel_cache>"
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../fuse/guestmount.pod:228
19387 msgid ""
19388 "Allow the kernel to cache files (reduces the number of reads that have to go "
19389 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19390 "afford the extra memory usage."
19391 msgstr ""
19392
19393 #. type: =item
19394 #: ../fuse/guestmount.pod:232
19395 msgid "B<-o uid=N> B<-o gid=N>"
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fuse/guestmount.pod:234
19400 msgid ""
19401 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19402 "the chosen values."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fuse/guestmount.pod:243
19407 msgid ""
19408 "Add devices and mount everything read-only.  Also disallow writes and make "
19409 "the disk appear read-only to FUSE."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fuse/guestmount.pod:246
19414 msgid ""
19415 "This is highly recommended if you are not going to edit the guest disk.  If "
19416 "the guest is running and this option is I<not> supplied, then there is a "
19417 "strong risk of disk corruption in the guest.  We try to prevent this from "
19418 "happening, but it is not always possible."
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19423 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../fuse/guestmount.pod:255
19428 msgid "Enable SELinux support for the guest."
19429 msgstr ""
19430
19431 #. type: textblock
19432 #: ../fuse/guestmount.pod:261
19433 msgid "Enable verbose messages from underlying libguestfs."
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fuse/guestmount.pod:267
19438 msgid "Display the program version and exit."
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
19443 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19444 msgstr ""
19445
19446 #. type: =item
19447 #: ../fuse/guestmount.pod:280
19448 msgid "B<--trace>"
19449 msgstr ""
19450
19451 #. type: textblock
19452 #: ../fuse/guestmount.pod:282
19453 msgid "Trace libguestfs calls and entry into each FUSE function."
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fuse/guestmount.pod:284
19458 msgid "This also stops the daemon from forking into the background."
19459 msgstr ""
19460
19461 #. type: textblock
19462 #: ../fuse/guestmount.pod:310
19463 msgid ""
19464 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19465 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
19466 "L<http://fuse.sf.net/>."
19467 msgstr ""
19468
19469 #. type: textblock
19470 #: ../fuse/guestmount.pod:325
19471 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../inspector/virt-inspector.pod:5
19476 msgid ""
19477 "virt-inspector - Display operating system version and other information "
19478 "about a virtual machine"
19479 msgstr ""
19480
19481 #. type: verbatim
19482 #: ../inspector/virt-inspector.pod:9
19483 #, no-wrap
19484 msgid ""
19485 " virt-inspector [--options] -d domname\n"
19486 "\n"
19487 msgstr ""
19488
19489 #. type: verbatim
19490 #: ../inspector/virt-inspector.pod:11
19491 #, no-wrap
19492 msgid ""
19493 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19494 "\n"
19495 msgstr ""
19496
19497 #. type: verbatim
19498 #: ../inspector/virt-inspector.pod:15
19499 #, no-wrap
19500 msgid ""
19501 " virt-inspector domname\n"
19502 "\n"
19503 msgstr ""
19504
19505 #. type: verbatim
19506 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19507 #, no-wrap
19508 msgid ""
19509 " virt-inspector disk.img [disk.img ...]\n"
19510 "\n"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../inspector/virt-inspector.pod:21
19515 msgid ""
19516 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19517 "determine the version of the operating system and other information about "
19518 "the virtual machine."
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../inspector/virt-inspector.pod:25
19523 msgid "Virt-inspector produces XML output for feeding into other programs."
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../inspector/virt-inspector.pod:27
19528 msgid ""
19529 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19530 "the libvirt domain (see: C<virsh list --all>)."
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../inspector/virt-inspector.pod:30
19535 msgid ""
19536 "You can also run virt-inspector directly on disk images from a single "
19537 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19538 "has several block devices, in which case you should list several I<-a> "
19539 "options one after another, with the first corresponding to the guest's "
19540 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../inspector/virt-inspector.pod:37
19545 msgid ""
19546 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19547 "keys and similar."
19548 msgstr ""
19549
19550 #. type: textblock
19551 #: ../inspector/virt-inspector.pod:40
19552 msgid ""
19553 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19554 "inspect several virtual machines, you have to run virt-inspector several "
19555 "times (for example, from a shell script for-loop)."
19556 msgstr ""
19557
19558 #. type: textblock
19559 #: ../inspector/virt-inspector.pod:45
19560 msgid ""
19561 "Because virt-inspector needs direct access to guest images, it won't "
19562 "normally work over remote libvirt connections."
19563 msgstr ""
19564
19565 #. type: textblock
19566 #: ../inspector/virt-inspector.pod:48
19567 msgid ""
19568 "All of the information available from virt-inspector is also available "
19569 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19570 "The same information can also be fetched using guestfish or via libguestfs "
19571 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19572 "WITH OTHER PROGRAMMING LANGUAGES>)."
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../inspector/virt-inspector.pod:81
19577 msgid ""
19578 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19579 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19580 "at all."
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../inspector/virt-inspector.pod:94
19585 msgid ""
19586 "When prompting for keys and passphrases, virt-inspector normally turns "
19587 "echoing off so you cannot see what you are typing.  If you are not worried "
19588 "about Tempest attacks and there is no one else in the room you can specify "
19589 "this flag to see what you are typing."
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93 ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143 ../tools/virt-win-reg.pl:144
19594 msgid ""
19595 "Specify the format of disk images given on the command line.  If this is "
19596 "omitted then the format is autodetected from the content of the disk image."
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97 ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147 ../tools/virt-win-reg.pl:148
19601 msgid ""
19602 "If disk images are requested from libvirt, then this program asks libvirt "
19603 "for this information.  In this case, the value of the format parameter is "
19604 "ignored."
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
19609 msgid ""
19610 "If working with untrusted raw-format guest disk images, you should ensure "
19611 "the format is always specified."
19612 msgstr ""
19613
19614 #. type: textblock
19615 #: ../inspector/virt-inspector.pod:139
19616 msgid "Previous versions of virt-inspector allowed you to write either:"
19617 msgstr ""
19618
19619 #. type: verbatim
19620 #: ../inspector/virt-inspector.pod:145
19621 #, no-wrap
19622 msgid ""
19623 " virt-inspector guestname\n"
19624 "\n"
19625 msgstr ""
19626
19627 #. type: =head1
19628 #: ../inspector/virt-inspector.pod:153
19629 msgid "XML FORMAT"
19630 msgstr ""
19631
19632 #. type: textblock
19633 #: ../inspector/virt-inspector.pod:155
19634 msgid ""
19635 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19636 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19637 "just an overview."
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../inspector/virt-inspector.pod:159
19642 msgid ""
19643 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19644 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19645 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19646 "which is vanishingly rare in real world VMs."
19647 msgstr ""
19648
19649 #. type: =head2
19650 #: ../inspector/virt-inspector.pod:164
19651 msgid "E<lt>operatingsystemE<gt>"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../inspector/virt-inspector.pod:166
19656 msgid ""
19657 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19658 "describe the operating system, its architecture, the descriptive \"product "
19659 "name\" string, the type of OS and so on, as in this example:"
19660 msgstr ""
19661
19662 #. type: verbatim
19663 #: ../inspector/virt-inspector.pod:170
19664 #, no-wrap
19665 msgid ""
19666 " <operatingsystems>\n"
19667 "   <operatingsystem>\n"
19668 "     <root>/dev/sda2</root>\n"
19669 "     <name>windows</name>\n"
19670 "     <arch>i386</arch>\n"
19671 "     <distro>windows</distro>\n"
19672 "     <product_name>Windows 7 Enterprise</product_name>\n"
19673 "     <product_variant>Client</product_variant>\n"
19674 "     <major_version>6</major_version>\n"
19675 "     <minor_version>1</minor_version>\n"
19676 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19677 "     <format>installed</format>\n"
19678 "\n"
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../inspector/virt-inspector.pod:183
19683 msgid ""
19684 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19685 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19686 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19687 "architecture.  The other fields are fairly self-explanatory, but because "
19688 "these fields are taken directly from the libguestfs inspection API you can "
19689 "find precise information from L<guestfs(3)/INSPECTION>."
19690 msgstr ""
19691
19692 #. type: textblock
19693 #: ../inspector/virt-inspector.pod:191
19694 msgid ""
19695 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19696 "of view of libguestfs (block devices may have completely different names "
19697 "inside the VM itself)."
19698 msgstr ""
19699
19700 #. type: =head2
19701 #: ../inspector/virt-inspector.pod:195
19702 msgid "E<lt>mountpointsE<gt>"
19703 msgstr ""
19704
19705 #. type: textblock
19706 #: ../inspector/virt-inspector.pod:197
19707 msgid ""
19708 "Un*x-like guests typically have multiple filesystems which are mounted at "
19709 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19710 "element which looks like this:"
19711 msgstr ""
19712
19713 #. type: verbatim
19714 #: ../inspector/virt-inspector.pod:201
19715 #, no-wrap
19716 msgid ""
19717 " <operatingsystems>\n"
19718 "   <operatingsystem>\n"
19719 "     ...\n"
19720 "     <mountpoints>\n"
19721 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19722 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19723 "     </mountpoints>\n"
19724 "\n"
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../inspector/virt-inspector.pod:209
19729 msgid ""
19730 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19731 "and may have completely different names inside the guest.  Only mountable "
19732 "filesystems appear in this list, not things like swap devices."
19733 msgstr ""
19734
19735 #. type: =head2
19736 #: ../inspector/virt-inspector.pod:214
19737 msgid "E<lt>filesystemsE<gt>"
19738 msgstr ""
19739
19740 #. type: textblock
19741 #: ../inspector/virt-inspector.pod:216
19742 msgid ""
19743 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19744 "filesystems belonging to the guest, including swap and empty partitions.  "
19745 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19746 "this OS or shared with this OS and other OSes)."
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../inspector/virt-inspector.pod:222
19751 msgid "You might see something like this:"
19752 msgstr ""
19753
19754 #. type: verbatim
19755 #: ../inspector/virt-inspector.pod:224
19756 #, no-wrap
19757 msgid ""
19758 " <operatingsystems>\n"
19759 "   <operatingsystem>\n"
19760 "     ...\n"
19761 "     <filesystems>\n"
19762 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19763 "         <type>ext4</type>\n"
19764 "         <label>Fedora-13-x86_64</label>\n"
19765 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19766 "       </filesystem>\n"
19767 "\n"
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../inspector/virt-inspector.pod:234
19772 msgid ""
19773 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19774 "the label, and the UUID."
19775 msgstr ""
19776
19777 #. type: =head2
19778 #: ../inspector/virt-inspector.pod:237
19779 msgid "E<lt>applicationsE<gt>"
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../inspector/virt-inspector.pod:239
19784 msgid ""
19785 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19786 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19787 "machine."
19788 msgstr ""
19789
19790 #. type: textblock
19791 #: ../inspector/virt-inspector.pod:243
19792 msgid ""
19793 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19794 "Typical values would be C<rpm> and C<deb>."
19795 msgstr ""
19796
19797 #. type: textblock
19798 #: ../inspector/virt-inspector.pod:246
19799 msgid ""
19800 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19801 "Typical values include C<yum>, C<up2date> and C<apt>"
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../inspector/virt-inspector.pod:249
19806 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19807 msgstr ""
19808
19809 #. type: verbatim
19810 #: ../inspector/virt-inspector.pod:252
19811 #, no-wrap
19812 msgid ""
19813 " <operatingsystems>\n"
19814 "   <operatingsystem>\n"
19815 "     ...\n"
19816 "     <applications>\n"
19817 "       <application>\n"
19818 "         <name>coreutils</name>\n"
19819 "         <version>8.5</version>\n"
19820 "         <release>1</release>\n"
19821 "       </application>\n"
19822 "\n"
19823 msgstr ""
19824
19825 #. type: textblock
19826 #: ../inspector/virt-inspector.pod:262
19827 msgid ""
19828 "The version and release fields may not be available for some types guests.  "
19829 "Other fields are possible, see "
19830 "L<guestfs(3)/guestfs_inspect_list_applications>."
19831 msgstr ""
19832
19833 #. type: =head2
19834 #: ../inspector/virt-inspector.pod:266
19835 msgid "E<lt>drive_mappingsE<gt>"
19836 msgstr ""
19837
19838 #. type: textblock
19839 #: ../inspector/virt-inspector.pod:268
19840 msgid ""
19841 "For operating systems like Windows which use drive letters, virt-inspector "
19842 "is able to find out how drive letters map to filesystems."
19843 msgstr ""
19844
19845 #. type: verbatim
19846 #: ../inspector/virt-inspector.pod:272
19847 #, no-wrap
19848 msgid ""
19849 " <operatingsystems>\n"
19850 "   <operatingsystem>\n"
19851 "     ...\n"
19852 "     <drive_mappings>\n"
19853 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19854 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19855 "     </drive_mappings>\n"
19856 "\n"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../inspector/virt-inspector.pod:280
19861 msgid ""
19862 "In the example above, drive C maps to the filesystem on the second partition "
19863 "on the first disk, and drive E maps to the filesystem on the first partition "
19864 "on the second disk."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../inspector/virt-inspector.pod:284
19869 msgid ""
19870 "Note that this only covers permanent local filesystem mappings, not things "
19871 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19872 "here."
19873 msgstr ""
19874
19875 #. type: =head2
19876 #: ../inspector/virt-inspector.pod:288
19877 msgid "E<lt>iconE<gt>"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../inspector/virt-inspector.pod:290
19882 msgid ""
19883 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19884 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19885 "very large and high quality."
19886 msgstr ""
19887
19888 #. type: verbatim
19889 #: ../inspector/virt-inspector.pod:294
19890 #, no-wrap
19891 msgid ""
19892 " <operatingsystems>\n"
19893 "   <operatingsystem>\n"
19894 "     ...\n"
19895 "     <icon>\n"
19896 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19897 "       [... many lines of base64 data ...]\n"
19898 "     </icon>\n"
19899 "\n"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../inspector/virt-inspector.pod:302
19904 msgid ""
19905 "To display the icon, you have to extract it and convert the base64 data back "
19906 "to a binary file.  Use an XPath query or simply an editor to extract the "
19907 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19908 "to a PNG file:"
19909 msgstr ""
19910
19911 #. type: verbatim
19912 #: ../inspector/virt-inspector.pod:307
19913 #, no-wrap
19914 msgid ""
19915 " base64 -i -d < icon.data > icon.png\n"
19916 "\n"
19917 msgstr ""
19918
19919 #. type: =head2
19920 #: ../inspector/virt-inspector.pod:309
19921 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19922 msgstr ""
19923
19924 #. type: textblock
19925 #: ../inspector/virt-inspector.pod:311
19926 msgid ""
19927 "Virt-inspector can detect some operating system installers on install disks, "
19928 "live CDs, bootable USB keys and more."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../inspector/virt-inspector.pod:314
19933 msgid ""
19934 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19935 "fields may be present to indicate a live CD, network installer, or one part "
19936 "of a multipart CD.  For example:"
19937 msgstr ""
19938
19939 #. type: verbatim
19940 #: ../inspector/virt-inspector.pod:318
19941 #, no-wrap
19942 msgid ""
19943 " <operatingsystems>\n"
19944 "   <operatingsystem>\n"
19945 "     <root>/dev/sda</root>\n"
19946 "     <name>linux</name>\n"
19947 "     <arch>i386</arch>\n"
19948 "     <distro>ubuntu</distro>\n"
19949 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19950 "Meerkat&quot;</product_name>\n"
19951 "     <major_version>10</major_version>\n"
19952 "     <minor_version>10</minor_version>\n"
19953 "     <format>installer</format>\n"
19954 "     <live/>\n"
19955 "\n"
19956 msgstr ""
19957
19958 #. type: =head1
19959 #: ../inspector/virt-inspector.pod:330
19960 msgid "USING XPATH"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../inspector/virt-inspector.pod:332
19965 msgid ""
19966 "You can use the XPath query language to select parts of the XML.  We "
19967 "recommend using C<xmlstarlet> to perform XPath queries from the command "
19968 "line."
19969 msgstr ""
19970
19971 #. type: verbatim
19972 #: ../inspector/virt-inspector.pod:338
19973 #, no-wrap
19974 msgid ""
19975 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19976 " <filesystems>\n"
19977 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19978 "        <type>ext4</type>\n"
19979 " [...]\n"
19980 "\n"
19981 msgstr ""
19982
19983 #. type: verbatim
19984 #: ../inspector/virt-inspector.pod:344
19985 #, no-wrap
19986 msgid ""
19987 " $ virt-inspector -d Guest | \\\n"
19988 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19989 " ext4\n"
19990 "\n"
19991 msgstr ""
19992
19993 #. type: verbatim
19994 #: ../inspector/virt-inspector.pod:348
19995 #, no-wrap
19996 msgid ""
19997 " $ virt-inspector -d Guest | \\\n"
19998 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19999 " [displays the guest icon, if there is one]\n"
20000 "\n"
20001 msgstr ""
20002
20003 #. type: =head1
20004 #: ../inspector/virt-inspector.pod:359
20005 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../inspector/virt-inspector.pod:361
20010 msgid ""
20011 "Early versions of libguestfs shipped with a different virt-inspector program "
20012 "written in Perl (the current version is written in C).  The XML output of "
20013 "the Perl virt-inspector was different and it could also output in other "
20014 "formats like text."
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../inspector/virt-inspector.pod:366
20019 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
20020 msgstr ""
20021
20022 #. type: textblock
20023 #: ../inspector/virt-inspector.pod:369
20024 msgid ""
20025 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20026 "versions of virt-inspector with different names:"
20027 msgstr ""
20028
20029 #. type: verbatim
20030 #: ../inspector/virt-inspector.pod:372
20031 #, no-wrap
20032 msgid ""
20033 " virt-inspector     Old Perl version.\n"
20034 " virt-inspector2    New C version.\n"
20035 "\n"
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../inspector/virt-inspector.pod:382
20040 msgid ""
20041 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
20042 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../inspector/virt-inspector.pod:399
20047 msgid "Matthew Booth L<mbooth@redhat.com>"
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../java/examples/guestfs-java.pod:5
20052 msgid "guestfs-java - How to use libguestfs from Java"
20053 msgstr ""
20054
20055 #. type: verbatim
20056 #: ../java/examples/guestfs-java.pod:9
20057 #, no-wrap
20058 msgid ""
20059 " import com.redhat.et.libguestfs.*;\n"
20060 " \n"
20061 msgstr ""
20062
20063 #. type: verbatim
20064 #: ../java/examples/guestfs-java.pod:11
20065 #, no-wrap
20066 msgid ""
20067 " GuestFS g = new GuestFS ();\n"
20068 " g.add_drive_opts (\"disk.img\", null);\n"
20069 " g.launch ();\n"
20070 "\n"
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../java/examples/guestfs-java.pod:17
20075 msgid ""
20076 "This manual page documents how to call libguestfs from the Java programming "
20077 "language.  This page just documents the differences from the C API and gives "
20078 "some examples.  If you are not familiar with using libguestfs, you also need "
20079 "to read L<guestfs(3)>."
20080 msgstr ""
20081
20082 #. type: =head2
20083 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20084 msgid "CLOSING THE HANDLE"
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../java/examples/guestfs-java.pod:24
20089 msgid ""
20090 "The handle is closed when it is reaped by the garbage collector.  Because "
20091 "libguestfs handles include a lot of state, it is also possible to close (and "
20092 "hence free) them explicitly by calling the C<close> method."
20093 msgstr ""
20094
20095 #. type: =head2
20096 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
20097 msgid "EXCEPTIONS"
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../java/examples/guestfs-java.pod:31
20102 msgid ""
20103 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20104 "exception.  This has a single parameter which is the error message (a "
20105 "C<String>)."
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../java/examples/guestfs-java.pod:35
20110 msgid "Calling any method on a closed handle raises the same exception."
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../java/examples/guestfs-java.pod:47
20115 msgid ""
20116 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
20117 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
20118 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
20119 "L<http://caml.inria.fr/>."
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../ocaml/examples/guestfs-ocaml.pod:5
20124 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../ocaml/examples/guestfs-ocaml.pod:9
20129 msgid "Module style:"
20130 msgstr ""
20131
20132 #. type: verbatim
20133 #: ../ocaml/examples/guestfs-ocaml.pod:11
20134 #, no-wrap
20135 msgid ""
20136 " let g = Guestfs.create () in\n"
20137 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20138 " Guestfs.launch g;\n"
20139 "\n"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../ocaml/examples/guestfs-ocaml.pod:15
20144 msgid "Object-oriented style:"
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../ocaml/examples/guestfs-ocaml.pod:17
20149 #, no-wrap
20150 msgid ""
20151 " let g = new Guestfs.guestfs () in\n"
20152 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20153 " g#launch ();\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: verbatim
20158 #: ../ocaml/examples/guestfs-ocaml.pod:21
20159 #, no-wrap
20160 msgid ""
20161 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20162 "or:\n"
20163 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20164 "\n"
20165 msgstr ""
20166
20167 #. type: textblock
20168 #: ../ocaml/examples/guestfs-ocaml.pod:27
20169 msgid ""
20170 "This manual page documents how to call libguestfs from the OCaml programming "
20171 "language.  This page just documents the differences from the C API and gives "
20172 "some examples.  If you are not familiar with using libguestfs, you also need "
20173 "to read L<guestfs(3)>."
20174 msgstr ""
20175
20176 #. type: =head2
20177 #: ../ocaml/examples/guestfs-ocaml.pod:32
20178 msgid "PROGRAMMING STYLES"
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../ocaml/examples/guestfs-ocaml.pod:34
20183 msgid ""
20184 "There are two different programming styles supported by the OCaml bindings.  "
20185 "You can use a module style, with each C function mapped to an OCaml "
20186 "function:"
20187 msgstr ""
20188
20189 #. type: verbatim
20190 #: ../ocaml/examples/guestfs-ocaml.pod:38
20191 #, no-wrap
20192 msgid ""
20193 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20194 "\n"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../ocaml/examples/guestfs-ocaml.pod:40
20199 msgid "becomes:"
20200 msgstr ""
20201
20202 #. type: verbatim
20203 #: ../ocaml/examples/guestfs-ocaml.pod:42
20204 #, no-wrap
20205 msgid ""
20206 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20207 "\n"
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../ocaml/examples/guestfs-ocaml.pod:44
20212 msgid ""
20213 "Alternately you can use an object-oriented style, calling methods on the "
20214 "class C<Guestfs.guestfs>:"
20215 msgstr ""
20216
20217 #. type: verbatim
20218 #: ../ocaml/examples/guestfs-ocaml.pod:47
20219 #, no-wrap
20220 msgid ""
20221 " method set_verbose : bool -> unit\n"
20222 "\n"
20223 msgstr ""
20224
20225 #. type: textblock
20226 #: ../ocaml/examples/guestfs-ocaml.pod:49
20227 msgid ""
20228 "The object-oriented style is usually briefer, and the minor performance "
20229 "penalty isn't noticable in the general overhead of performing libguestfs "
20230 "functions."
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../ocaml/examples/guestfs-ocaml.pod:55
20235 msgid ""
20236 "The handle is closed when it is reaped by the garbage collector.  Because "
20237 "libguestfs handles include a lot of state, it is also possible to close (and "
20238 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20239 "method."
20240 msgstr ""
20241
20242 #. type: textblock
20243 #: ../ocaml/examples/guestfs-ocaml.pod:62
20244 msgid ""
20245 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20246 "exception.  This has a single parameter which is the error message (a "
20247 "string)."
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../ocaml/examples/guestfs-ocaml.pod:66
20252 msgid ""
20253 "Calling any function/method on a closed handle raises "
20254 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
20255 "that you called."
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../ocaml/examples/guestfs-ocaml.pod:80
20260 msgid ""
20261 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
20262 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
20263 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
20264 "L<http://caml.inria.fr/>."
20265 msgstr ""
20266
20267 #. type: textblock
20268 #: ../perl/examples/guestfs-perl.pod:5
20269 msgid "guestfs-perl - How to use libguestfs from Perl"
20270 msgstr ""
20271
20272 #. type: verbatim
20273 #: ../perl/examples/guestfs-perl.pod:9
20274 #, no-wrap
20275 msgid ""
20276 " use Sys::Guestfs;\n"
20277 " \n"
20278 msgstr ""
20279
20280 #. type: verbatim
20281 #: ../perl/examples/guestfs-perl.pod:11
20282 #, no-wrap
20283 msgid ""
20284 " my $h = Sys::Guestfs->new ();\n"
20285 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20286 " $h->launch ();\n"
20287 " $h->mount_options ('', '/dev/sda1', '/');\n"
20288 " $h->touch ('/hello');\n"
20289 " $h->sync ();\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../perl/examples/guestfs-perl.pod:20
20295 msgid ""
20296 "This manual page documents how to call libguestfs from the Perl programming "
20297 "language.  This page just documents the differences from the C API and gives "
20298 "some examples.  If you are not familiar with using libguestfs, you also need "
20299 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20300 msgstr ""
20301
20302 #. type: =head2
20303 #: ../perl/examples/guestfs-perl.pod:26
20304 msgid "ERRORS"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../perl/examples/guestfs-perl.pod:28
20309 msgid ""
20310 "Errors from libguestfs functions turn into calls to C<croak> (see "
20311 "L<Carp(3)>)."
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../perl/examples/guestfs-perl.pod:41
20316 msgid ""
20317 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
20318 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
20319 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
20320 "L<http://libguestfs.org/>."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../python/examples/guestfs-python.pod:5
20325 msgid "guestfs-python - How to use libguestfs from Python"
20326 msgstr ""
20327
20328 #. type: verbatim
20329 #: ../python/examples/guestfs-python.pod:9
20330 #, no-wrap
20331 msgid ""
20332 " import guestfs\n"
20333 " g = guestfs.GuestFS ()\n"
20334 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20335 " g.launch\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../python/examples/guestfs-python.pod:16
20341 msgid ""
20342 "This manual page documents how to call libguestfs from the Python "
20343 "programming language.  This page just documents the differences from the C "
20344 "API and gives some examples.  If you are not familiar with using libguestfs, "
20345 "you also need to read L<guestfs(3)>."
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../python/examples/guestfs-python.pod:23
20350 msgid ""
20351 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20352 "single string argument which is the error message."
20353 msgstr ""
20354
20355 #. type: =head2
20356 #: ../python/examples/guestfs-python.pod:26
20357 msgid "MORE DOCUMENTATION"
20358 msgstr ""
20359
20360 #. type: textblock
20361 #: ../python/examples/guestfs-python.pod:28
20362 msgid "Type:"
20363 msgstr ""
20364
20365 #. type: verbatim
20366 #: ../python/examples/guestfs-python.pod:30
20367 #, no-wrap
20368 msgid ""
20369 " $ python\n"
20370 " >>> import guestfs\n"
20371 " >>> help (guestfs)\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../python/examples/guestfs-python.pod:44
20377 msgid ""
20378 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
20379 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
20380 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../rescue/virt-rescue.pod:5
20385 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20386 msgstr ""
20387
20388 #. type: verbatim
20389 #: ../rescue/virt-rescue.pod:9
20390 #, no-wrap
20391 msgid ""
20392 " virt-rescue [--options] -d domname\n"
20393 "\n"
20394 msgstr ""
20395
20396 #. type: verbatim
20397 #: ../rescue/virt-rescue.pod:11
20398 #, no-wrap
20399 msgid ""
20400 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20401 "\n"
20402 msgstr ""
20403
20404 #. type: verbatim
20405 #: ../rescue/virt-rescue.pod:15
20406 #, no-wrap
20407 msgid ""
20408 " virt-rescue [--options] domname\n"
20409 "\n"
20410 msgstr ""
20411
20412 #. type: verbatim
20413 #: ../rescue/virt-rescue.pod:17
20414 #, no-wrap
20415 msgid ""
20416 " virt-rescue [--options] disk.img [disk.img ...]\n"
20417 "\n"
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../rescue/virt-rescue.pod:21
20422 msgid ""
20423 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20424 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20425 "you from doing this, but doesn't catch all cases."
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../rescue/virt-rescue.pod:25
20430 msgid ""
20431 "However if you use the I<--ro> (read only) option, then you can attach a "
20432 "shell to a live virtual machine.  The results might be strange or "
20433 "inconsistent at times but you won't get disk corruption."
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../rescue/virt-rescue.pod:31
20438 msgid ""
20439 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20440 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20441 "recovery tools which you can use to examine or rescue a virtual machine or "
20442 "disk image."
20443 msgstr ""
20444
20445 #. type: textblock
20446 #: ../rescue/virt-rescue.pod:36
20447 msgid ""
20448 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20449 "on disk image(s):"
20450 msgstr ""
20451
20452 #. type: verbatim
20453 #: ../rescue/virt-rescue.pod:39
20454 #, no-wrap
20455 msgid ""
20456 " virt-rescue -d GuestName\n"
20457 "\n"
20458 msgstr ""
20459
20460 #. type: verbatim
20461 #: ../rescue/virt-rescue.pod:41
20462 #, no-wrap
20463 msgid ""
20464 " virt-rescue --ro -a /path/to/disk.img\n"
20465 "\n"
20466 msgstr ""
20467
20468 #. type: verbatim
20469 #: ../rescue/virt-rescue.pod:43
20470 #, no-wrap
20471 msgid ""
20472 " virt-rescue -a /dev/sdc\n"
20473 "\n"
20474 msgstr ""
20475
20476 #. type: textblock
20477 #: ../rescue/virt-rescue.pod:45
20478 msgid "For live VMs you I<must> use the --ro option."
20479 msgstr ""
20480
20481 #. type: textblock
20482 #: ../rescue/virt-rescue.pod:47
20483 msgid ""
20484 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20485 "in an interactive bash shell where you can use many ordinary Linux "
20486 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20487 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20488 "is an empty directory called C</sysroot> where you can mount filesystems."
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../rescue/virt-rescue.pod:54
20493 msgid ""
20494 "In the example below, we list logical volumes, then choose one to mount "
20495 "under C</sysroot>:"
20496 msgstr ""
20497
20498 #. type: verbatim
20499 #: ../rescue/virt-rescue.pod:57
20500 #, no-wrap
20501 msgid ""
20502 " ><rescue> lvs\n"
20503 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20504 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20505 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20506 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20507 " ><rescue> ls /sysroot\n"
20508 "\n"
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../rescue/virt-rescue.pod:64
20513 msgid ""
20514 "If you don't know what filesystems are available on the virtual machine then "
20515 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../rescue/virt-rescue.pod:70
20520 msgid ""
20521 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20522 "virtual machine.  For example you can use it on a blank file if you want to "
20523 "partition that file (although we would recommend using L<guestfish(1)> "
20524 "instead as it is more suitable for this purpose).  You can even use "
20525 "virt-rescue on things like SD cards."
20526 msgstr ""
20527
20528 #. type: textblock
20529 #: ../rescue/virt-rescue.pod:76
20530 msgid ""
20531 "Virt-rescue does not require root.  You only need to run it as root if you "
20532 "need root to open the disk image."
20533 msgstr ""
20534
20535 #. type: textblock
20536 #: ../rescue/virt-rescue.pod:79
20537 msgid ""
20538 "This tool is just designed for quick interactive hacking on a virtual "
20539 "machine.  For more structured access to a virtual machine disk image, you "
20540 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20541 "make scripted changes to guests, use L<guestfish(1)>."
20542 msgstr ""
20543
20544 #. type: =item
20545 #: ../rescue/virt-rescue.pod:103
20546 msgid "B<--append kernelopts>"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../rescue/virt-rescue.pod:105
20551 msgid "Pass additional options to the rescue kernel."
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../rescue/virt-rescue.pod:135
20556 #, no-wrap
20557 msgid ""
20558 " virt-rescue --format=raw -a disk.img\n"
20559 "\n"
20560 msgstr ""
20561
20562 #. type: verbatim
20563 #: ../rescue/virt-rescue.pod:139
20564 #, no-wrap
20565 msgid ""
20566 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20567 "\n"
20568 msgstr ""
20569
20570 #. type: =item
20571 #: ../rescue/virt-rescue.pod:148
20572 msgid "B<-m MB>"
20573 msgstr ""
20574
20575 #. type: =item
20576 #: ../rescue/virt-rescue.pod:150
20577 msgid "B<--memsize MB>"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../rescue/virt-rescue.pod:152
20582 msgid ""
20583 "Change the amount of memory allocated to the rescue system.  The default is "
20584 "set by libguestfs and is small but adequate for running system tools.  The "
20585 "occasional program might need more memory.  The parameter is specified in "
20586 "megabytes."
20587 msgstr ""
20588
20589 #. type: =item
20590 #: ../rescue/virt-rescue.pod:157
20591 msgid "B<--network>"
20592 msgstr ""
20593
20594 #. type: textblock
20595 #: ../rescue/virt-rescue.pod:159
20596 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../rescue/virt-rescue.pod:165
20601 msgid "Open the image read-only."
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../rescue/virt-rescue.pod:175
20606 msgid ""
20607 "Enable SELinux in the rescue appliance.  You should read "
20608 "L<guestfs(3)/SELINUX> before using this option."
20609 msgstr ""
20610
20611 #. type: =item
20612 #: ../rescue/virt-rescue.pod:178
20613 msgid "B<--smp> N"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../rescue/virt-rescue.pod:180
20618 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../rescue/virt-rescue.pod:198
20623 msgid ""
20624 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20625 "are done read-write."
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../rescue/virt-rescue.pod:211
20630 msgid "Previous versions of virt-rescue allowed you to write either:"
20631 msgstr ""
20632
20633 #. type: verbatim
20634 #: ../rescue/virt-rescue.pod:213
20635 #, no-wrap
20636 msgid ""
20637 " virt-rescue disk.img [disk.img ...]\n"
20638 "\n"
20639 msgstr ""
20640
20641 #. type: verbatim
20642 #: ../rescue/virt-rescue.pod:217
20643 #, no-wrap
20644 msgid ""
20645 " virt-rescue guestname\n"
20646 "\n"
20647 msgstr ""
20648
20649 #. type: =head1
20650 #: ../rescue/virt-rescue.pod:225
20651 msgid "NETWORK"
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../rescue/virt-rescue.pod:227
20656 msgid ""
20657 "Adding the I<--network> option enables QEMU user networking in the rescue "
20658 "appliance.  There are some differences between user networking and ordinary "
20659 "networking:"
20660 msgstr ""
20661
20662 #. type: =item
20663 #: ../rescue/virt-rescue.pod:233
20664 msgid "ping does not work"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../rescue/virt-rescue.pod:235
20669 msgid ""
20670 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20671 "send the ping packets, and because virt-rescue must be able to run as "
20672 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20673 "command.  The ping command will appear to resolve addresses but will not be "
20674 "able to send or receive any packets.  This does not mean that the network is "
20675 "not working."
20676 msgstr ""
20677
20678 #. type: =item
20679 #: ../rescue/virt-rescue.pod:242
20680 msgid "cannot receive connections"
20681 msgstr ""
20682
20683 #. type: textblock
20684 #: ../rescue/virt-rescue.pod:244
20685 msgid "QEMU user networking cannot receive incoming connections."
20686 msgstr ""
20687
20688 #. type: =item
20689 #: ../rescue/virt-rescue.pod:246
20690 msgid "making TCP connections"
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../rescue/virt-rescue.pod:248
20695 msgid ""
20696 "The virt-rescue appliance needs to be small and so does not include many "
20697 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20698 "make TCP connections from the shell using the magical "
20699 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../rescue/virt-rescue.pod:253
20704 #, no-wrap
20705 msgid ""
20706 " exec 3<>/dev/tcp/redhat.com/80\n"
20707 " echo \"GET /\" >&3\n"
20708 " cat <&3\n"
20709 "\n"
20710 msgstr ""
20711
20712 #. type: textblock
20713 #: ../rescue/virt-rescue.pod:257
20714 msgid "See L<bash(1)> for more details."
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../rescue/virt-rescue.pod:263
20719 msgid ""
20720 "Several environment variables affect virt-rescue.  See "
20721 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../rescue/virt-rescue.pod:290
20726 msgid ""
20727 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20728 "L<http://libguestfs.org/>."
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../resize/virt-resize.pod:5
20733 msgid "virt-resize - Resize a virtual machine disk"
20734 msgstr ""
20735
20736 #. type: verbatim
20737 #: ../resize/virt-resize.pod:9
20738 #, no-wrap
20739 msgid ""
20740 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20741 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20742 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../resize/virt-resize.pod:15
20748 msgid ""
20749 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20750 "larger or smaller overall, and resizing or deleting any partitions contained "
20751 "within."
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../resize/virt-resize.pod:19
20756 msgid ""
20757 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20758 "not> be used on live virtual machines - for consistent results, shut the "
20759 "virtual machine down before resizing it."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../resize/virt-resize.pod:23
20764 msgid ""
20765 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20766 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20767 msgstr ""
20768
20769 #. type: =item
20770 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520 ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
20771 msgid "1."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../resize/virt-resize.pod:33
20776 msgid ""
20777 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20778 "fill the extra 5GB of space."
20779 msgstr ""
20780
20781 #. type: verbatim
20782 #: ../resize/virt-resize.pod:36
20783 #, no-wrap
20784 msgid ""
20785 " virt-filesystems --long -h --all -a olddisk\n"
20786 " \n"
20787 msgstr ""
20788
20789 #. type: verbatim
20790 #: ../resize/virt-resize.pod:38
20791 #, no-wrap
20792 msgid ""
20793 " truncate -r olddisk newdisk\n"
20794 " truncate -s +5G newdisk\n"
20795 " \n"
20796 msgstr ""
20797
20798 #. type: verbatim
20799 #: ../resize/virt-resize.pod:41
20800 #, no-wrap
20801 msgid ""
20802 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20803 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20804 "\n"
20805 msgstr ""
20806
20807 #. type: =item
20808 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527 ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
20809 msgid "2."
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../resize/virt-resize.pod:46
20814 msgid ""
20815 "As above, but make the /boot partition 200MB bigger, while giving the "
20816 "remaining space to /dev/sda2:"
20817 msgstr ""
20818
20819 #. type: verbatim
20820 #: ../resize/virt-resize.pod:49
20821 #, no-wrap
20822 msgid ""
20823 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20824 "   olddisk newdisk\n"
20825 "\n"
20826 msgstr ""
20827
20828 #. type: =item
20829 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
20830 msgid "3."
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../resize/virt-resize.pod:54
20835 msgid ""
20836 "As in the first example, but expand a logical volume as the final step.  "
20837 "This is what you would typically use for Linux guests that use LVM:"
20838 msgstr ""
20839
20840 #. type: verbatim
20841 #: ../resize/virt-resize.pod:58
20842 #, no-wrap
20843 msgid ""
20844 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20845 "   olddisk newdisk\n"
20846 "\n"
20847 msgstr ""
20848
20849 #. type: =item
20850 #: ../resize/virt-resize.pod:61
20851 msgid "4."
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../resize/virt-resize.pod:63
20856 msgid ""
20857 "As in the first example, but the output format will be qcow2 instead of a "
20858 "raw disk:"
20859 msgstr ""
20860
20861 #. type: verbatim
20862 #: ../resize/virt-resize.pod:66
20863 #, no-wrap
20864 msgid ""
20865 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20866 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: =head1
20871 #: ../resize/virt-resize.pod:71
20872 msgid "DETAILED USAGE"
20873 msgstr ""
20874
20875 #. type: =head2
20876 #: ../resize/virt-resize.pod:73
20877 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20878 msgstr ""
20879
20880 #. type: =item
20881 #: ../resize/virt-resize.pod:77
20882 msgid "1. Shut down the virtual machine"
20883 msgstr ""
20884
20885 #. type: =item
20886 #: ../resize/virt-resize.pod:79
20887 msgid "2. Locate input disk image"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../resize/virt-resize.pod:81
20892 msgid ""
20893 "Locate the input disk image (ie. the file or device on the host containing "
20894 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20895 "dumpxml> like this to find the disk image name:"
20896 msgstr ""
20897
20898 #. type: verbatim
20899 #: ../resize/virt-resize.pod:85
20900 #, no-wrap
20901 msgid ""
20902 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20903 " Found 1 nodes:\n"
20904 " -- NODE --\n"
20905 " <source dev=\"/dev/vg/lv_guest\" />\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: =item
20910 #: ../resize/virt-resize.pod:90
20911 msgid "3. Look at current sizing"
20912 msgstr ""
20913
20914 #. type: textblock
20915 #: ../resize/virt-resize.pod:92
20916 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20917 msgstr ""
20918
20919 #. type: verbatim
20920 #: ../resize/virt-resize.pod:95
20921 #, no-wrap
20922 msgid ""
20923 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20924 " Name       Type       Size  Parent\n"
20925 " /dev/sda1  partition  101M  /dev/sda\n"
20926 " /dev/sda2  partition  7.9G  /dev/sda\n"
20927 " /dev/sda   device     8.0G  -\n"
20928 "\n"
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../resize/virt-resize.pod:101
20933 msgid ""
20934 "(This example is a virtual machine with an 8 GB disk which we would like to "
20935 "expand up to 10 GB)."
20936 msgstr ""
20937
20938 #. type: =item
20939 #: ../resize/virt-resize.pod:104
20940 msgid "4. Create output disk"
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../resize/virt-resize.pod:106
20945 msgid ""
20946 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20947 "to store the resized output disk."
20948 msgstr ""
20949
20950 #. type: textblock
20951 #: ../resize/virt-resize.pod:109
20952 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20953 msgstr ""
20954
20955 #. type: verbatim
20956 #: ../resize/virt-resize.pod:112
20957 #, no-wrap
20958 msgid ""
20959 " # rm -f outdisk\n"
20960 " # truncate -s 10G outdisk\n"
20961 "\n"
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../resize/virt-resize.pod:115
20966 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20967 msgstr ""
20968
20969 #. type: verbatim
20970 #: ../resize/virt-resize.pod:117
20971 #, no-wrap
20972 msgid ""
20973 " # lvcreate -L 10G -n lv_name vg_name\n"
20974 "\n"
20975 msgstr ""
20976
20977 #. type: textblock
20978 #: ../resize/virt-resize.pod:119
20979 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../resize/virt-resize.pod:121
20984 #, no-wrap
20985 msgid ""
20986 " # virsh pool-list\n"
20987 " # virsh vol-create-as poolname newvol 10G\n"
20988 "\n"
20989 msgstr ""
20990
20991 #. type: =item
20992 #: ../resize/virt-resize.pod:124
20993 msgid "5. Resize"
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../resize/virt-resize.pod:126
20998 msgid ""
20999 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21000 "file) and the output disk.  The output disk is the one created in the "
21001 "previous step."
21002 msgstr ""
21003
21004 #. type: verbatim
21005 #: ../resize/virt-resize.pod:130
21006 #, no-wrap
21007 msgid ""
21008 " # virt-resize indisk outdisk\n"
21009 "\n"
21010 msgstr ""
21011
21012 #. type: textblock
21013 #: ../resize/virt-resize.pod:132
21014 msgid ""
21015 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21016 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21017 "larger, then an extra, empty partition is created at the end of the disk "
21018 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21019 "error."
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../resize/virt-resize.pod:138
21024 msgid ""
21025 "More realistically you'd want to expand existing partitions in the disk "
21026 "image by passing extra options (for the full list see the L</OPTIONS> "
21027 "section below)."
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../resize/virt-resize.pod:142
21032 msgid ""
21033 "L</--expand> is the most useful option.  It expands the named partition "
21034 "within the disk to fill any extra space:"
21035 msgstr ""
21036
21037 #. type: verbatim
21038 #: ../resize/virt-resize.pod:145
21039 #, no-wrap
21040 msgid ""
21041 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21042 "\n"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../resize/virt-resize.pod:147
21047 msgid ""
21048 "(In this case, an extra partition is I<not> created at the end of the disk, "
21049 "because there will be no unused space)."
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../resize/virt-resize.pod:150
21054 msgid ""
21055 "L</--resize> is the other commonly used option.  The following would "
21056 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21057 "rest of the available space:"
21058 msgstr ""
21059
21060 #. type: verbatim
21061 #: ../resize/virt-resize.pod:154
21062 #, no-wrap
21063 msgid ""
21064 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21065 "     indisk outdisk\n"
21066 "\n"
21067 msgstr ""
21068
21069 #. type: textblock
21070 #: ../resize/virt-resize.pod:157
21071 msgid ""
21072 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21073 "if virt-resize knows how, it will resize the contents, the equivalent of "
21074 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21075 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21076 "filesystems, so you would have to online resize them after booting the "
21077 "guest."
21078 msgstr ""
21079
21080 #. type: textblock
21081 #: ../resize/virt-resize.pod:164
21082 msgid "Other options are covered below."
21083 msgstr ""
21084
21085 #. type: =item
21086 #: ../resize/virt-resize.pod:166
21087 msgid "6. Test"
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../resize/virt-resize.pod:168
21092 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../resize/virt-resize.pod:170
21097 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21098 msgstr ""
21099
21100 #. type: verbatim
21101 #: ../resize/virt-resize.pod:172
21102 #, no-wrap
21103 msgid ""
21104 " # virsh edit guestname\n"
21105 "\n"
21106 msgstr ""
21107
21108 #. type: textblock
21109 #: ../resize/virt-resize.pod:174
21110 msgid ""
21111 "Change E<lt>source ...E<gt>, see "
21112 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../resize/virt-resize.pod:177
21117 msgid "Then start up the domain with the new, resized disk:"
21118 msgstr ""
21119
21120 #. type: verbatim
21121 #: ../resize/virt-resize.pod:179
21122 #, no-wrap
21123 msgid ""
21124 " # virsh start guestname\n"
21125 "\n"
21126 msgstr ""
21127
21128 #. type: textblock
21129 #: ../resize/virt-resize.pod:181
21130 msgid ""
21131 "and check that it still works.  See also the L</NOTES> section below for "
21132 "additional information."
21133 msgstr ""
21134
21135 #. type: =item
21136 #: ../resize/virt-resize.pod:184
21137 msgid "7. Resize LVs etc inside the guest"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../resize/virt-resize.pod:186
21142 msgid "(This can also be done offline using L<guestfish(1)>)"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../resize/virt-resize.pod:188
21147 msgid ""
21148 "Once the guest has booted you should see the new space available, at least "
21149 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21150 "may need to resize LVs inside PVs, and also resize filesystem types that "
21151 "virt-resize does not know how to expand."
21152 msgstr ""
21153
21154 #. type: =head2
21155 #: ../resize/virt-resize.pod:195
21156 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21157 msgstr ""
21158
21159 #. type: textblock
21160 #: ../resize/virt-resize.pod:197
21161 msgid ""
21162 "Shrinking is somewhat more complex than expanding, and only an overview is "
21163 "given here."
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../resize/virt-resize.pod:200
21168 msgid ""
21169 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21170 "filesystems).  The user has to shrink content before passing the disk image "
21171 "to virt-resize, and virt-resize will check that the content has been shrunk "
21172 "properly."
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../resize/virt-resize.pod:205
21177 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../resize/virt-resize.pod:207
21182 msgid ""
21183 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21184 "steps 3 and 4 above to allocate a new disk image."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../resize/virt-resize.pod:210
21189 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21190 msgstr ""
21191
21192 #. type: =head2
21193 #: ../resize/virt-resize.pod:213
21194 msgid "IGNORING OR DELETING PARTITIONS"
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../resize/virt-resize.pod:215
21199 msgid ""
21200 "virt-resize also gives a convenient way to ignore or delete partitions when "
21201 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21202 "up the copy where you don't care about the existing contents of a "
21203 "partition.  Deleting a partition removes it completely, but note that it "
21204 "also renumbers any partitions after the one which is deleted, which can "
21205 "leave some guests unbootable."
21206 msgstr ""
21207
21208 #. type: =head2
21209 #: ../resize/virt-resize.pod:222
21210 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../resize/virt-resize.pod:224
21215 msgid ""
21216 "If the input disk is in qcow2 format, then you may prefer that the output is "
21217 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21218 "the fly.  The output format is simply determined by the format of the empty "
21219 "output container that you provide.  Thus to create qcow2 output, use:"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../resize/virt-resize.pod:230
21224 #, no-wrap
21225 msgid ""
21226 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../resize/virt-resize.pod:232
21232 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../resize/virt-resize.pod:234
21237 msgid "Similarly, to get non-sparse raw output use:"
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../resize/virt-resize.pod:236
21242 #, no-wrap
21243 msgid ""
21244 " fallocate -l size outdisk\n"
21245 "\n"
21246 msgstr ""
21247
21248 #. type: textblock
21249 #: ../resize/virt-resize.pod:238
21250 msgid ""
21251 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
21252 "if=/dev/zero of=outdisk bs=1M count=..>)"
21253 msgstr ""
21254
21255 #. type: textblock
21256 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
21257 msgid "Display help."
21258 msgstr ""
21259
21260 #. type: =item
21261 #: ../resize/virt-resize.pod:249
21262 msgid "B<-d>"
21263 msgstr ""
21264
21265 #. type: =item
21266 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
21267 msgid "B<--debug>"
21268 msgstr ""
21269
21270 #. type: textblock
21271 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21272 msgid "Enable debugging messages."
21273 msgstr ""
21274
21275 #. type: =item
21276 #: ../resize/virt-resize.pod:255
21277 msgid "B<--delete part>"
21278 msgstr ""
21279
21280 #. type: textblock
21281 #: ../resize/virt-resize.pod:257
21282 msgid ""
21283 "Delete the named partition.  It would be more accurate to describe this as "
21284 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21285 "the original disk image is left intact."
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../resize/virt-resize.pod:261
21290 msgid ""
21291 "Note that when you delete a partition, then anything contained in the "
21292 "partition is also deleted.  Furthermore, this causes any partitions that "
21293 "come after to be I<renumbered>, which can easily make your guest unbootable."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
21298 msgid "You can give this option multiple times."
21299 msgstr ""
21300
21301 #. type: =item
21302 #: ../resize/virt-resize.pod:268
21303 msgid "B<--expand part>"
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../resize/virt-resize.pod:270
21308 msgid ""
21309 "Expand the named partition so it uses up all extra space (space left over "
21310 "after any other resize changes that you request have been done)."
21311 msgstr ""
21312
21313 #. type: textblock
21314 #: ../resize/virt-resize.pod:273
21315 msgid ""
21316 "If virt-resize knows how, it will expand the direct content of the "
21317 "partition.  For example, if the partition is an LVM PV, it will expand the "
21318 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21319 "content it doesn't know about alone."
21320 msgstr ""
21321
21322 #. type: textblock
21323 #: ../resize/virt-resize.pod:278
21324 msgid "Currently virt-resize can resize:"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../resize/virt-resize.pod:284
21329 msgid "ext2, ext3 and ext4 filesystems."
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../resize/virt-resize.pod:288
21334 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../resize/virt-resize.pod:290
21339 msgid ""
21340 "The filesystem must have been shut down consistently last time it was used.  "
21341 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21342 "consistency check, so at the first boot after resizing Windows will check "
21343 "the disk."
21344 msgstr ""
21345
21346 #. type: textblock
21347 #: ../resize/virt-resize.pod:297
21348 msgid ""
21349 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21350 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21351 "resize LVs as desired after boot."
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../resize/virt-resize.pod:303
21356 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21357 msgstr ""
21358
21359 #. type: textblock
21360 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21361 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21362 msgstr ""
21363
21364 #. type: =item
21365 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
21366 msgid "B<--format> raw"
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
21371 msgid ""
21372 "Specify the format of the input disk image.  If this flag is not given then "
21373 "it is auto-detected from the image itself."
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../resize/virt-resize.pod:317
21378 msgid ""
21379 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21380 "AND NON-SPARSE RAW FORMATS>."
21381 msgstr ""
21382
21383 #. type: =item
21384 #: ../resize/virt-resize.pod:320
21385 msgid "B<--ignore part>"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../resize/virt-resize.pod:322
21390 msgid ""
21391 "Ignore the named partition.  Effectively this means the partition is "
21392 "allocated on the destination disk, but the content is not copied across from "
21393 "the source disk.  The content of the partition will be blank (all zero "
21394 "bytes)."
21395 msgstr ""
21396
21397 #. type: =item
21398 #: ../resize/virt-resize.pod:329
21399 msgid "B<--LV-expand logvol>"
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../resize/virt-resize.pod:331
21404 msgid ""
21405 "This takes the logical volume and, as a final step, expands it to fill all "
21406 "the space available in its volume group.  A typical usage, assuming a Linux "
21407 "guest with a single PV C</dev/sda2> and a root device called "
21408 "C</dev/vg_guest/lv_root> would be:"
21409 msgstr ""
21410
21411 #. type: verbatim
21412 #: ../resize/virt-resize.pod:336
21413 #, no-wrap
21414 msgid ""
21415 " virt-resize indisk outdisk \\\n"
21416 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21417 "\n"
21418 msgstr ""
21419
21420 #. type: textblock
21421 #: ../resize/virt-resize.pod:339
21422 msgid ""
21423 "This would first expand the partition (and PV), and then expand the root "
21424 "device to fill the extra space in the PV."
21425 msgstr ""
21426
21427 #. type: textblock
21428 #: ../resize/virt-resize.pod:342
21429 msgid ""
21430 "The contents of the LV are also resized if virt-resize knows how to do "
21431 "that.  You can stop virt-resize from trying to expand the content by using "
21432 "the option I<--no-expand-content>."
21433 msgstr ""
21434
21435 #. type: textblock
21436 #: ../resize/virt-resize.pod:346
21437 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../resize/virt-resize.pod:348
21442 msgid ""
21443 "You can give this option multiple times, I<but> it doesn't make sense to do "
21444 "this unless the logical volumes you specify are all in different volume "
21445 "groups."
21446 msgstr ""
21447
21448 #. type: =item
21449 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
21450 msgid "B<--machine-readable>"
21451 msgstr ""
21452
21453 #. type: textblock
21454 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
21455 msgid ""
21456 "This option is used to make the output more machine friendly when being "
21457 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21458 msgstr ""
21459
21460 #. type: =item
21461 #: ../resize/virt-resize.pod:360
21462 msgid "B<--dryrun>"
21463 msgstr ""
21464
21465 #. type: textblock
21466 #: ../resize/virt-resize.pod:362
21467 msgid "Print a summary of what would be done, but don't do anything."
21468 msgstr ""
21469
21470 #. type: =item
21471 #: ../resize/virt-resize.pod:364
21472 msgid "B<--no-copy-boot-loader>"
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../resize/virt-resize.pod:366
21477 msgid ""
21478 "By default, virt-resize copies over some sectors at the start of the disk "
21479 "(up to the beginning of the first partition).  Commonly these sectors "
21480 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21481 "in order for the guest to boot correctly."
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../resize/virt-resize.pod:371
21486 msgid ""
21487 "If you specify this flag, then this initial copy is not done.  You may need "
21488 "to reinstall the boot loader in this case."
21489 msgstr ""
21490
21491 #. type: =item
21492 #: ../resize/virt-resize.pod:374
21493 msgid "B<--no-extra-partition>"
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../resize/virt-resize.pod:376
21498 msgid ""
21499 "By default, virt-resize creates an extra partition if there is any extra, "
21500 "unused space after all resizing has happened.  Use this option to prevent "
21501 "the extra partition from being created.  If you do this then the extra space "
21502 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21503 "tool in the guest."
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../resize/virt-resize.pod:382
21508 msgid ""
21509 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21510 "will be created."
21511 msgstr ""
21512
21513 #. type: =item
21514 #: ../resize/virt-resize.pod:385
21515 msgid "B<--no-expand-content>"
21516 msgstr ""
21517
21518 #. type: textblock
21519 #: ../resize/virt-resize.pod:387
21520 msgid ""
21521 "By default, virt-resize will try to expand the direct contents of "
21522 "partitions, if it knows how (see I<--expand> option above)."
21523 msgstr ""
21524
21525 #. type: textblock
21526 #: ../resize/virt-resize.pod:390
21527 msgid ""
21528 "If you give the I<--no-expand-content> option then virt-resize will not "
21529 "attempt this."
21530 msgstr ""
21531
21532 #. type: =item
21533 #: ../resize/virt-resize.pod:393
21534 msgid "B<--ntfsresize-force>"
21535 msgstr ""
21536
21537 #. type: textblock
21538 #: ../resize/virt-resize.pod:395
21539 msgid ""
21540 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21541 "the NTFS disk is marked as needing a consistency check.  You have to use "
21542 "this option if you want to resize a Windows guest multiple times without "
21543 "booting into Windows between each resize."
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../resize/virt-resize.pod:401
21548 msgid "B<--output-format> raw"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../resize/virt-resize.pod:403
21553 msgid ""
21554 "Specify the format of the output disk image.  If this flag is not given then "
21555 "it is auto-detected from the image itself."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../resize/virt-resize.pod:409
21560 msgid ""
21561 "Note that this option I<does not create> the output format.  This option "
21562 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21563 "need to create the output disk with the right format.  See L</QCOW2 AND "
21564 "NON-SPARSE RAW FORMATS>."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../resize/virt-resize.pod:418
21569 msgid "Don't print the summary."
21570 msgstr ""
21571
21572 #. type: =item
21573 #: ../resize/virt-resize.pod:420
21574 msgid "B<--resize part=size>"
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../resize/virt-resize.pod:422
21579 msgid ""
21580 "Resize the named partition (expanding or shrinking it) so that it has the "
21581 "given size."
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../resize/virt-resize.pod:425
21586 msgid ""
21587 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21588 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21589 "size; or as a relative number or percentage.  For example:"
21590 msgstr ""
21591
21592 #. type: verbatim
21593 #: ../resize/virt-resize.pod:431
21594 #, no-wrap
21595 msgid ""
21596 " --resize /dev/sda2=10G\n"
21597 "\n"
21598 msgstr ""
21599
21600 #. type: verbatim
21601 #: ../resize/virt-resize.pod:433
21602 #, no-wrap
21603 msgid ""
21604 " --resize /dev/sda4=90%\n"
21605 "\n"
21606 msgstr ""
21607
21608 #. type: verbatim
21609 #: ../resize/virt-resize.pod:435
21610 #, no-wrap
21611 msgid ""
21612 " --resize /dev/sda2=+1G\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: verbatim
21617 #: ../resize/virt-resize.pod:437
21618 #, no-wrap
21619 msgid ""
21620 " --resize /dev/sda2=-200M\n"
21621 "\n"
21622 msgstr ""
21623
21624 #. type: verbatim
21625 #: ../resize/virt-resize.pod:439
21626 #, no-wrap
21627 msgid ""
21628 " --resize /dev/sda1=+128K\n"
21629 "\n"
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../resize/virt-resize.pod:441
21634 #, no-wrap
21635 msgid ""
21636 " --resize /dev/sda1=+10%\n"
21637 "\n"
21638 msgstr ""
21639
21640 #. type: verbatim
21641 #: ../resize/virt-resize.pod:443
21642 #, no-wrap
21643 msgid ""
21644 " --resize /dev/sda1=-10%\n"
21645 "\n"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../resize/virt-resize.pod:445
21650 msgid ""
21651 "You can increase the size of any partition.  Virt-resize will expand the "
21652 "direct content of the partition if it knows how (see I<--expand> below)."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../resize/virt-resize.pod:449
21657 msgid ""
21658 "You can only I<decrease> the size of partitions that contain filesystems or "
21659 "PVs which have already been shrunk.  Virt-resize will check this has been "
21660 "done before proceeding, or else will print an error (see also "
21661 "I<--resize-force>)."
21662 msgstr ""
21663
21664 #. type: =item
21665 #: ../resize/virt-resize.pod:456
21666 msgid "B<--resize-force part=size>"
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../resize/virt-resize.pod:458
21671 msgid ""
21672 "This is the same as I<--resize> except that it will let you decrease the "
21673 "size of any partition.  Generally this means you will lose any data which "
21674 "was at the end of the partition you shrink, but you may not care about that "
21675 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21676 "as a swap partition)."
21677 msgstr ""
21678
21679 #. type: textblock
21680 #: ../resize/virt-resize.pod:464
21681 msgid "See also the I<--ignore> option."
21682 msgstr ""
21683
21684 #. type: =item
21685 #: ../resize/virt-resize.pod:466
21686 msgid "B<--shrink part>"
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../resize/virt-resize.pod:468
21691 msgid ""
21692 "Shrink the named partition until the overall disk image fits in the "
21693 "destination.  The named partition B<must> contain a filesystem or PV which "
21694 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21695 "online tools).  Virt-resize will check this and give an error if it has not "
21696 "been done."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../resize/virt-resize.pod:474
21701 msgid ""
21702 "The amount by which the overall disk must be shrunk (after carrying out all "
21703 "other operations requested by the user) is called the \"deficit\".  For "
21704 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21705 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21706 "would give an error unless the user specified a partition to shrink and that "
21707 "partition had more than a gigabyte of free space."
21708 msgstr ""
21709
21710 #. type: =head1
21711 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
21712 msgid "MACHINE READABLE OUTPUT"
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../resize/virt-resize.pod:494
21717 msgid ""
21718 "The I<--machine-readable> option can be used to make the output more machine "
21719 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21720 "etc."
21721 msgstr ""
21722
21723 #. type: textblock
21724 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
21725 msgid "There are two ways to use this option."
21726 msgstr ""
21727
21728 #. type: textblock
21729 #: ../resize/virt-resize.pod:500
21730 msgid ""
21731 "Firstly use the option on its own to query the capabilities of the "
21732 "virt-resize binary.  Typical output looks like this:"
21733 msgstr ""
21734
21735 #. type: verbatim
21736 #: ../resize/virt-resize.pod:503
21737 #, no-wrap
21738 msgid ""
21739 " $ virt-resize --machine-readable\n"
21740 " virt-resize\n"
21741 " ntfsresize-force\n"
21742 " 32bitok\n"
21743 " ntfs\n"
21744 " btrfs\n"
21745 "\n"
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
21750 msgid ""
21751 "A list of features is printed, one per line, and the program exits with "
21752 "status 0."
21753 msgstr ""
21754
21755 #. type: textblock
21756 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
21757 msgid ""
21758 "Secondly use the option in conjunction with other options to make the "
21759 "regular program output more machine friendly."
21760 msgstr ""
21761
21762 #. type: textblock
21763 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
21764 msgid "At the moment this means:"
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
21769 msgid ""
21770 "Progress bar messages can be parsed from stdout by looking for this regular "
21771 "expression:"
21772 msgstr ""
21773
21774 #. type: verbatim
21775 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
21776 #, no-wrap
21777 msgid ""
21778 " ^[0-9]+/[0-9]+$\n"
21779 "\n"
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
21784 msgid ""
21785 "The calling program should treat messages sent to stdout (except for "
21786 "progress bar messages) as status messages.  They can be logged and/or "
21787 "displayed to the user."
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../resize/virt-resize.pod:535
21792 msgid ""
21793 "The calling program should treat messages sent to stderr as error messages.  "
21794 "In addition, virt-resize exits with a non-zero status code if there was a "
21795 "fatal error."
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../resize/virt-resize.pod:541
21800 msgid ""
21801 "Versions of the program prior to 1.13.9 did not support the "
21802 "I<--machine-readable> option and will return an error."
21803 msgstr ""
21804
21805 #. type: =head2
21806 #: ../resize/virt-resize.pod:546
21807 msgid "\"Partition 1 does not end on cylinder boundary.\""
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../resize/virt-resize.pod:548
21812 msgid ""
21813 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21814 "means the partitions will not be aligned to the ancient CHS geometry.  "
21815 "However CHS geometry is meaningless for disks manufactured since the early "
21816 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21817 "cylinders is not required by any modern operating system."
21818 msgstr ""
21819
21820 #. type: =head2
21821 #: ../resize/virt-resize.pod:555
21822 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21823 msgstr ""
21824
21825 #. type: textblock
21826 #: ../resize/virt-resize.pod:557
21827 msgid ""
21828 "In Windows Vista and later versions, Microsoft switched to using a separate "
21829 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21830 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21831 "the boot partition.  Doing so seems to break the guest completely.  However "
21832 "expanding the second partition (ie. C: drive) should work."
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../resize/virt-resize.pod:564
21837 msgid ""
21838 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21839 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21840 "it find errors) is nothing to worry about."
21841 msgstr ""
21842
21843 #. type: =head2
21844 #: ../resize/virt-resize.pod:568
21845 msgid "GUEST BOOT STUCK AT \"GRUB\""
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../resize/virt-resize.pod:570
21850 msgid ""
21851 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21852 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21853 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21854 "although we think is to do with partition alignment."
21855 msgstr ""
21856
21857 #. type: verbatim
21858 #: ../resize/virt-resize.pod:575
21859 #, no-wrap
21860 msgid ""
21861 " guestfish -i -a newdisk\n"
21862 " ><fs> cat /boot/grub/device.map\n"
21863 " # check the contents of this file are sensible or\n"
21864 " # edit the file if necessary\n"
21865 " ><fs> grub-install / /dev/vda\n"
21866 " ><fs> exit\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: textblock
21871 #: ../resize/virt-resize.pod:582
21872 msgid ""
21873 "For more flexible guest reconfiguration, including if you need to specify "
21874 "other parameters to grub-install, use L<virt-rescue(1)>."
21875 msgstr ""
21876
21877 #. type: =head1
21878 #: ../resize/virt-resize.pod:585
21879 msgid "ALTERNATIVE TOOLS"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../resize/virt-resize.pod:587
21884 msgid ""
21885 "There are several proprietary tools for resizing partitions.  We won't "
21886 "mention any here."
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../resize/virt-resize.pod:590
21891 msgid ""
21892 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21893 "operations on disk images.  They can resize and move partitions, but I don't "
21894 "think they can do anything with the contents, and they certainly don't "
21895 "understand LVM."
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../resize/virt-resize.pod:595
21900 msgid ""
21901 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21902 "but at a much lower level.  You will probably end up hand-calculating sector "
21903 "offsets, which is something that virt-resize was designed to avoid.  If you "
21904 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21905 "I<--debug> flag."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../resize/virt-resize.pod:615
21910 msgid ""
21911 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21912 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21913 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21914 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21915 "L<virt-sparsify(1)>, L<http://libguestfs.org/>."
21916 msgstr ""
21917
21918 #. type: textblock
21919 #: ../ruby/examples/guestfs-ruby.pod:5
21920 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21921 msgstr ""
21922
21923 #. type: verbatim
21924 #: ../ruby/examples/guestfs-ruby.pod:9
21925 #, no-wrap
21926 msgid ""
21927 " require 'guestfs'\n"
21928 " g = Guestfs::Guestfs.new()\n"
21929 " g.add_drive_opts(\"disk.img\",\n"
21930 "                  :readonly => 1, :format => \"raw\")\n"
21931 " g.launch()\n"
21932 "\n"
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../ruby/examples/guestfs-ruby.pod:17
21937 msgid ""
21938 "This manual page documents how to call libguestfs from the Ruby programming "
21939 "language.  This page just documents the differences from the C API and gives "
21940 "some examples.  If you are not familiar with using libguestfs, you also need "
21941 "to read L<guestfs(3)>."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../ruby/examples/guestfs-ruby.pod:24
21946 msgid ""
21947 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21948 "This has a single parameter which is the error message (a string)."
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../ruby/examples/guestfs-ruby.pod:38
21953 msgid ""
21954 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21955 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21956 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../sparsify/virt-sparsify.pod:5
21961 msgid "virt-sparsify - Make a virtual machine disk sparse"
21962 msgstr ""
21963
21964 #. type: verbatim
21965 #: ../sparsify/virt-sparsify.pod:9
21966 #, no-wrap
21967 msgid ""
21968 " virt-sparsify [--options] indisk outdisk\n"
21969 "\n"
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../sparsify/virt-sparsify.pod:13
21974 msgid ""
21975 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
21976 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
21977 "the disk image can be converted back to free space on the host."
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../sparsify/virt-sparsify.pod:18
21982 msgid ""
21983 "Virt-sparsify can locate and sparsify free space in most filesystems "
21984 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../sparsify/virt-sparsify.pod:21
21989 msgid ""
21990 "Virt-sparsify can also convert between some disk formats, for example "
21991 "converting a raw disk image to a thin-provisioned qcow2 image."
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../sparsify/virt-sparsify.pod:24
21996 msgid ""
21997 "Virt-sparsify can operate on any disk image, not just ones from virtual "
21998 "machines.  If a virtual machine has more than one attached disk, you must "
21999 "sparsify each one separately."
22000 msgstr ""
22001
22002 #. type: =head2
22003 #: ../sparsify/virt-sparsify.pod:28
22004 msgid "IMPORTANT LIMITATIONS"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../sparsify/virt-sparsify.pod:34
22009 msgid ""
22010 "Virt-sparsify does not do in-place modifications.  It copies from a source "
22011 "image to a destination image, leaving the source unchanged.  I<Check that "
22012 "the sparsification was successful before deleting the source image>."
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../sparsify/virt-sparsify.pod:41
22017 msgid "The virtual machine I<must be shut down> before using this tool."
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../sparsify/virt-sparsify.pod:45
22022 msgid ""
22023 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
22024 "(1 temporary copy + 1 destination image).  This is in the worst case and "
22025 "usually much less space is required."
22026 msgstr ""
22027
22028 #. type: textblock
22029 #: ../sparsify/virt-sparsify.pod:51
22030 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../sparsify/virt-sparsify.pod:56
22035 msgid "Virt-sparsify cannot handle encrypted disks."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../sparsify/virt-sparsify.pod:60
22040 msgid ""
22041 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
22042 "this space is often used for critical items like bootloaders so it's not "
22043 "really unused."
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../sparsify/virt-sparsify.pod:66
22048 msgid ""
22049 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
22050 "to do this unless we can be sure there is no hibernation data, so at the "
22051 "moment swap partitions are ignored."
22052 msgstr ""
22053
22054 #. type: textblock
22055 #: ../sparsify/virt-sparsify.pod:72
22056 msgid ""
22057 "You may also want to read the manual pages for the associated tools "
22058 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../sparsify/virt-sparsify.pod:77
22063 msgid "Typical usage is:"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../sparsify/virt-sparsify.pod:79
22068 #, no-wrap
22069 msgid ""
22070 " virt-sparsify indisk outdisk\n"
22071 "\n"
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../sparsify/virt-sparsify.pod:81
22076 msgid ""
22077 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
22078 "is created, or overwritten if it already exists.  The format of the input "
22079 "disk is detected (eg. qcow2) and the same format is used for the output "
22080 "disk."
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../sparsify/virt-sparsify.pod:86
22085 msgid "To convert between formats, use the I<--convert> option:"
22086 msgstr ""
22087
22088 #. type: verbatim
22089 #: ../sparsify/virt-sparsify.pod:88
22090 #, no-wrap
22091 msgid ""
22092 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
22093 "\n"
22094 msgstr ""
22095
22096 #. type: textblock
22097 #: ../sparsify/virt-sparsify.pod:90
22098 msgid ""
22099 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
22100 "can find within the source disk image.  You can get it to ignore (don't zero "
22101 "free space on) certain filesystems by doing:"
22102 msgstr ""
22103
22104 #. type: verbatim
22105 #: ../sparsify/virt-sparsify.pod:94
22106 #, no-wrap
22107 msgid ""
22108 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
22109 "\n"
22110 msgstr ""
22111
22112 #. type: textblock
22113 #: ../sparsify/virt-sparsify.pod:96
22114 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
22115 msgstr ""
22116
22117 #. type: =item
22118 #: ../sparsify/virt-sparsify.pod:107
22119 msgid "B<--convert> raw"
22120 msgstr ""
22121
22122 #. type: =item
22123 #: ../sparsify/virt-sparsify.pod:109
22124 msgid "B<--convert> qcow2"
22125 msgstr ""
22126
22127 #. type: =item
22128 #: ../sparsify/virt-sparsify.pod:111
22129 msgid "B<--convert> [other formats]"
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../sparsify/virt-sparsify.pod:113
22134 msgid ""
22135 "Use C<output-format> as the format for the destination image.  If this is "
22136 "not specified, then the input format is used."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../sparsify/virt-sparsify.pod:116
22141 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
22142 msgstr ""
22143
22144 #. type: textblock
22145 #: ../sparsify/virt-sparsify.pod:118
22146 msgid ""
22147 "You can also use any format supported by the L<qemu-img(1)> program, "
22148 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../sparsify/virt-sparsify.pod:122
22153 msgid ""
22154 "Specifying the I<--convert> option is usually a good idea, because then "
22155 "virt-sparsify doesn't need to try to guess the input format."
22156 msgstr ""
22157
22158 #. type: =item
22159 #: ../sparsify/virt-sparsify.pod:127
22160 msgid "B<--format> qcow2"
22161 msgstr ""
22162
22163 #. type: =item
22164 #: ../sparsify/virt-sparsify.pod:135
22165 msgid "B<--ignore> filesystem"
22166 msgstr ""
22167
22168 #. type: =item
22169 #: ../sparsify/virt-sparsify.pod:137
22170 msgid "B<--ignore> volgroup"
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../sparsify/virt-sparsify.pod:139
22175 msgid ""
22176 "Ignore the named filesystem.  Free space on the filesystem will not be "
22177 "zeroed, but existing blocks of zeroes will still be sparsified."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../sparsify/virt-sparsify.pod:142
22182 msgid ""
22183 "In the second form, this ignores the named volume group.  Use the volume "
22184 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
22185 msgstr ""
22186
22187 #. type: textblock
22188 #: ../sparsify/virt-sparsify.pod:157
22189 msgid "This disables progress bars and other unnecessary output."
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../sparsify/virt-sparsify.pod:179
22194 msgid ""
22195 "The I<--machine-readable> option can be used to make the output more machine "
22196 "friendly, which is useful when calling virt-sparsify from other programs, "
22197 "GUIs etc."
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../sparsify/virt-sparsify.pod:185
22202 msgid ""
22203 "Firstly use the option on its own to query the capabilities of the "
22204 "virt-sparsify binary.  Typical output looks like this:"
22205 msgstr ""
22206
22207 #. type: verbatim
22208 #: ../sparsify/virt-sparsify.pod:188
22209 #, no-wrap
22210 msgid ""
22211 " $ virt-sparsify --machine-readable\n"
22212 " virt-sparsify\n"
22213 " ntfs\n"
22214 " btrfs\n"
22215 "\n"
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../sparsify/virt-sparsify.pod:218
22220 msgid ""
22221 "The calling program should treat messages sent to stderr as error messages.  "
22222 "In addition, virt-sparsify exits with a non-zero status code if there was a "
22223 "fatal error."
22224 msgstr ""
22225
22226 #. type: textblock
22227 #: ../sparsify/virt-sparsify.pod:224
22228 msgid ""
22229 "All versions of virt-sparsify have supported the I<--machine-readable> "
22230 "option."
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../sparsify/virt-sparsify.pod:238
22235 msgid ""
22236 "Location of the temporary directory used for the potentially large temporary "
22237 "overlay file."
22238 msgstr ""
22239
22240 #. type: textblock
22241 #: ../sparsify/virt-sparsify.pod:241
22242 msgid ""
22243 "You should ensure there is enough free space in the worst case for a full "
22244 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
22245 "to another directory that has enough space."
22246 msgstr ""
22247
22248 #. type: textblock
22249 #: ../sparsify/virt-sparsify.pod:245
22250 msgid "This defaults to C</tmp>."
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../sparsify/virt-sparsify.pod:249
22255 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../sparsify/virt-sparsify.pod:253
22260 msgid ""
22261 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
22262 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
22263 "L<qemu-img(1)>, L<http://libguestfs.org/>."
22264 msgstr ""
22265
22266 #. type: =head2
22267 #: ../src/guestfs-actions.pod:1
22268 msgid "guestfs_add_cdrom"
22269 msgstr ""
22270
22271 #. type: verbatim
22272 #: ../src/guestfs-actions.pod:3
22273 #, no-wrap
22274 msgid ""
22275 " int\n"
22276 " guestfs_add_cdrom (guestfs_h *g,\n"
22277 "                    const char *filename);\n"
22278 "\n"
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
22283 msgid ""
22284 "I<This function is deprecated.> In new code, use the "
22285 "L</guestfs_add_drive_opts> call instead."
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../src/guestfs-actions.pod:24
22290 msgid ""
22291 "This call checks for the existence of C<filename>.  This stops you from "
22292 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22293 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22294 "instead."
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../src/guestfs-actions.pod:31
22299 msgid ""
22300 "If you just want to add an ISO file (often you use this as an efficient way "
22301 "to transfer large files into the guest), then you should probably use "
22302 "C<guestfs_add_drive_ro> instead."
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652 ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084 ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330 ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982 ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445 ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399 ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522 ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702 ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364 ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465 ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596 ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723 ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819 ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872 ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959 ../src/guestfs-actions.pod:7988
22307 msgid "This function returns 0 on success or -1 on error."
22308 msgstr ""
22309
22310 #. type: textblock
22311 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7765
22312 msgid "(Added in 0.3)"
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../src/guestfs-actions.pod:41
22317 msgid "guestfs_add_domain"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../src/guestfs-actions.pod:43
22322 #, no-wrap
22323 msgid ""
22324 " int\n"
22325 " guestfs_add_domain (guestfs_h *g,\n"
22326 "                     const char *dom,\n"
22327 "                     ...);\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104 ../src/guestfs-actions.pod:5321
22333 msgid ""
22334 "You may supply a list of optional arguments to this call.  Use zero or more "
22335 "of the following pairs of parameters, and terminate the list with C<-1> on "
22336 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22337 msgstr ""
22338
22339 #. type: verbatim
22340 #: ../src/guestfs-actions.pod:53
22341 #, no-wrap
22342 msgid ""
22343 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22344 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22345 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22346 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22347 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../src/guestfs-actions.pod:59
22353 msgid ""
22354 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22355 "It works by connecting to libvirt, requesting the domain and domain XML from "
22356 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22357 "one."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../src/guestfs-actions.pod:94
22362 msgid ""
22363 "The other optional parameters are passed directly through to "
22364 "C<guestfs_add_drive_opts>."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
22369 msgid "On error this function returns -1."
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../src/guestfs-actions.pod:99
22374 msgid "(Added in 1.7.4)"
22375 msgstr ""
22376
22377 #. type: =head2
22378 #: ../src/guestfs-actions.pod:101
22379 msgid "guestfs_add_domain_va"
22380 msgstr ""
22381
22382 #. type: verbatim
22383 #: ../src/guestfs-actions.pod:103
22384 #, no-wrap
22385 msgid ""
22386 " int\n"
22387 " guestfs_add_domain_va (guestfs_h *g,\n"
22388 "                        const char *dom,\n"
22389 "                        va_list args);\n"
22390 "\n"
22391 msgstr ""
22392
22393 #. type: textblock
22394 #: ../src/guestfs-actions.pod:108
22395 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075 ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
22400 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22401 msgstr ""
22402
22403 #. type: =head2
22404 #: ../src/guestfs-actions.pod:112
22405 msgid "guestfs_add_domain_argv"
22406 msgstr ""
22407
22408 #. type: verbatim
22409 #: ../src/guestfs-actions.pod:114
22410 #, no-wrap
22411 msgid ""
22412 " int\n"
22413 " guestfs_add_domain_argv (guestfs_h *g,\n"
22414 "                          const char *dom,\n"
22415 "                          const struct guestfs_add_domain_argv *optargs);\n"
22416 "\n"
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../src/guestfs-actions.pod:119
22421 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22422 msgstr ""
22423
22424 #. type: =head2
22425 #: ../src/guestfs-actions.pod:123
22426 msgid "guestfs_add_drive"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../src/guestfs-actions.pod:125
22431 #, no-wrap
22432 msgid ""
22433 " int\n"
22434 " guestfs_add_drive (guestfs_h *g,\n"
22435 "                    const char *filename);\n"
22436 "\n"
22437 msgstr ""
22438
22439 #. type: textblock
22440 #: ../src/guestfs-actions.pod:129
22441 msgid ""
22442 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22443 "optional parameters, so the disk is added writable, with the format being "
22444 "detected automatically."
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../src/guestfs-actions.pod:133
22449 msgid ""
22450 "Automatic detection of the format opens you up to a potential security hole "
22451 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22452 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22453 "you should think about replacing calls to this function with calls to "
22454 "C<guestfs_add_drive_opts>, and specifying the format."
22455 msgstr ""
22456
22457 #. type: =head2
22458 #: ../src/guestfs-actions.pod:144
22459 msgid "guestfs_add_drive_opts"
22460 msgstr ""
22461
22462 #. type: verbatim
22463 #: ../src/guestfs-actions.pod:146
22464 #, no-wrap
22465 msgid ""
22466 " int\n"
22467 " guestfs_add_drive_opts (guestfs_h *g,\n"
22468 "                         const char *filename,\n"
22469 "                         ...);\n"
22470 "\n"
22471 msgstr ""
22472
22473 #. type: verbatim
22474 #: ../src/guestfs-actions.pod:156
22475 #, no-wrap
22476 msgid ""
22477 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22478 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22479 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22480 "\n"
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../src/guestfs-actions.pod:185
22485 msgid ""
22486 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22487 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22488 "Possible formats include C<raw> and C<qcow2>."
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../src/guestfs-actions.pod:196
22493 msgid ""
22494 "This rarely-used option lets you emulate the behaviour of the deprecated "
22495 "C<guestfs_add_drive_with_if> call (q.v.)"
22496 msgstr ""
22497
22498 #. type: textblock
22499 #: ../src/guestfs-actions.pod:203
22500 msgid "(Added in 1.5.23)"
22501 msgstr ""
22502
22503 #. type: =head2
22504 #: ../src/guestfs-actions.pod:205
22505 msgid "guestfs_add_drive_opts_va"
22506 msgstr ""
22507
22508 #. type: verbatim
22509 #: ../src/guestfs-actions.pod:207
22510 #, no-wrap
22511 msgid ""
22512 " int\n"
22513 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22514 "                            const char *filename,\n"
22515 "                            va_list args);\n"
22516 "\n"
22517 msgstr ""
22518
22519 #. type: textblock
22520 #: ../src/guestfs-actions.pod:212
22521 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22522 msgstr ""
22523
22524 #. type: =head2
22525 #: ../src/guestfs-actions.pod:216
22526 msgid "guestfs_add_drive_opts_argv"
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../src/guestfs-actions.pod:218
22531 #, no-wrap
22532 msgid ""
22533 " int\n"
22534 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22535 "                              const char *filename,\n"
22536 "                              const struct guestfs_add_drive_opts_argv "
22537 "*optargs);\n"
22538 "\n"
22539 msgstr ""
22540
22541 #. type: textblock
22542 #: ../src/guestfs-actions.pod:223
22543 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22544 msgstr ""
22545
22546 #. type: =head2
22547 #: ../src/guestfs-actions.pod:227
22548 msgid "guestfs_add_drive_ro"
22549 msgstr ""
22550
22551 #. type: verbatim
22552 #: ../src/guestfs-actions.pod:229
22553 #, no-wrap
22554 msgid ""
22555 " int\n"
22556 " guestfs_add_drive_ro (guestfs_h *g,\n"
22557 "                       const char *filename);\n"
22558 "\n"
22559 msgstr ""
22560
22561 #. type: textblock
22562 #: ../src/guestfs-actions.pod:233
22563 msgid ""
22564 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22565 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22566 "disk is added read-only, with the format being detected automatically."
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../src/guestfs-actions.pod:240
22571 msgid "(Added in 1.0.38)"
22572 msgstr ""
22573
22574 #. type: =head2
22575 #: ../src/guestfs-actions.pod:242
22576 msgid "guestfs_add_drive_ro_with_if"
22577 msgstr ""
22578
22579 #. type: verbatim
22580 #: ../src/guestfs-actions.pod:244
22581 #, no-wrap
22582 msgid ""
22583 " int\n"
22584 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22585 "                               const char *filename,\n"
22586 "                               const char *iface);\n"
22587 "\n"
22588 msgstr ""
22589
22590 #. type: textblock
22591 #: ../src/guestfs-actions.pod:256
22592 msgid ""
22593 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22594 "QEMU interface emulation to use at run time."
22595 msgstr ""
22596
22597 #. type: textblock
22598 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2580
22599 msgid "(Added in 1.0.84)"
22600 msgstr ""
22601
22602 #. type: =head2
22603 #: ../src/guestfs-actions.pod:263
22604 msgid "guestfs_add_drive_with_if"
22605 msgstr ""
22606
22607 #. type: verbatim
22608 #: ../src/guestfs-actions.pod:265
22609 #, no-wrap
22610 msgid ""
22611 " int\n"
22612 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22613 "                            const char *filename,\n"
22614 "                            const char *iface);\n"
22615 "\n"
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../src/guestfs-actions.pod:277
22620 msgid ""
22621 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22622 "QEMU interface emulation to use at run time."
22623 msgstr ""
22624
22625 #. type: =head2
22626 #: ../src/guestfs-actions.pod:284
22627 msgid "guestfs_aug_clear"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../src/guestfs-actions.pod:286
22632 #, no-wrap
22633 msgid ""
22634 " int\n"
22635 " guestfs_aug_clear (guestfs_h *g,\n"
22636 "                    const char *augpath);\n"
22637 "\n"
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
22642 msgid "(Added in 1.3.4)"
22643 msgstr ""
22644
22645 #. type: =head2
22646 #: ../src/guestfs-actions.pod:297
22647 msgid "guestfs_aug_close"
22648 msgstr ""
22649
22650 #. type: verbatim
22651 #: ../src/guestfs-actions.pod:299
22652 #, no-wrap
22653 msgid ""
22654 " int\n"
22655 " guestfs_aug_close (guestfs_h *g);\n"
22656 "\n"
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../src/guestfs-actions.pod:302
22661 msgid ""
22662 "Close the current Augeas handle and free up any resources used by it.  After "
22663 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22664 "any other Augeas functions."
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494 ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522 ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554 ../src/guestfs-actions.pod:5989
22669 msgid "(Added in 0.7)"
22670 msgstr ""
22671
22672 #. type: =head2
22673 #: ../src/guestfs-actions.pod:311
22674 msgid "guestfs_aug_defnode"
22675 msgstr ""
22676
22677 #. type: verbatim
22678 #: ../src/guestfs-actions.pod:313
22679 #, no-wrap
22680 msgid ""
22681 " struct guestfs_int_bool *\n"
22682 " guestfs_aug_defnode (guestfs_h *g,\n"
22683 "                      const char *name,\n"
22684 "                      const char *expr,\n"
22685 "                      const char *val);\n"
22686 "\n"
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../src/guestfs-actions.pod:322
22691 msgid ""
22692 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22693 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22694 "containing that single node."
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../src/guestfs-actions.pod:330
22699 msgid ""
22700 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22701 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22702 msgstr ""
22703
22704 #. type: =head2
22705 #: ../src/guestfs-actions.pod:336
22706 msgid "guestfs_aug_defvar"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../src/guestfs-actions.pod:338
22711 #, no-wrap
22712 msgid ""
22713 " int\n"
22714 " guestfs_aug_defvar (guestfs_h *g,\n"
22715 "                     const char *name,\n"
22716 "                     const char *expr);\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: =head2
22721 #: ../src/guestfs-actions.pod:354
22722 msgid "guestfs_aug_get"
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../src/guestfs-actions.pod:356
22727 #, no-wrap
22728 msgid ""
22729 " char *\n"
22730 " guestfs_aug_get (guestfs_h *g,\n"
22731 "                  const char *augpath);\n"
22732 "\n"
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005 ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015 ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180 ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561 ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
22737 msgid ""
22738 "This function returns a string, or NULL on error.  I<The caller must free "
22739 "the returned string after use>."
22740 msgstr ""
22741
22742 #. type: =head2
22743 #: ../src/guestfs-actions.pod:368
22744 msgid "guestfs_aug_init"
22745 msgstr ""
22746
22747 #. type: verbatim
22748 #: ../src/guestfs-actions.pod:370
22749 #, no-wrap
22750 msgid ""
22751 " int\n"
22752 " guestfs_aug_init (guestfs_h *g,\n"
22753 "                   const char *root,\n"
22754 "                   int flags);\n"
22755 "\n"
22756 msgstr ""
22757
22758 #. type: textblock
22759 #: ../src/guestfs-actions.pod:379
22760 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22761 msgstr ""
22762
22763 #. type: textblock
22764 #: ../src/guestfs-actions.pod:404
22765 msgid ""
22766 "This option is only useful when debugging Augeas lenses.  Use of this option "
22767 "may require additional memory for the libguestfs appliance.  You may need to "
22768 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22769 "C<guestfs_set_memsize>."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../src/guestfs-actions.pod:419
22774 msgid "Do not load the tree in C<guestfs_aug_init>."
22775 msgstr ""
22776
22777 #. type: textblock
22778 #: ../src/guestfs-actions.pod:423
22779 msgid "To close the handle, you can call C<guestfs_aug_close>."
22780 msgstr ""
22781
22782 #. type: =head2
22783 #: ../src/guestfs-actions.pod:431
22784 msgid "guestfs_aug_insert"
22785 msgstr ""
22786
22787 #. type: verbatim
22788 #: ../src/guestfs-actions.pod:433
22789 #, no-wrap
22790 msgid ""
22791 " int\n"
22792 " guestfs_aug_insert (guestfs_h *g,\n"
22793 "                     const char *augpath,\n"
22794 "                     const char *label,\n"
22795 "                     int before);\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: =head2
22800 #: ../src/guestfs-actions.pod:451
22801 msgid "guestfs_aug_load"
22802 msgstr ""
22803
22804 #. type: verbatim
22805 #: ../src/guestfs-actions.pod:453
22806 #, no-wrap
22807 msgid ""
22808 " int\n"
22809 " guestfs_aug_load (guestfs_h *g);\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: =head2
22814 #: ../src/guestfs-actions.pod:465
22815 msgid "guestfs_aug_ls"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../src/guestfs-actions.pod:467
22820 #, no-wrap
22821 msgid ""
22822 " char **\n"
22823 " guestfs_aug_ls (guestfs_h *g,\n"
22824 "                 const char *augpath);\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../src/guestfs-actions.pod:471
22830 msgid ""
22831 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22832 "sorting the resulting nodes into alphabetical order."
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647 ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985 ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067 ../src/guestfs-actions.pod:8086
22837 msgid ""
22838 "This function returns a NULL-terminated array of strings (like "
22839 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
22840 "strings and the array after use>."
22841 msgstr ""
22842
22843 #. type: textblock
22844 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366 ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612 ../src/guestfs-actions.pod:7877
22845 msgid "(Added in 0.8)"
22846 msgstr ""
22847
22848 #. type: =head2
22849 #: ../src/guestfs-actions.pod:480
22850 msgid "guestfs_aug_match"
22851 msgstr ""
22852
22853 #. type: verbatim
22854 #: ../src/guestfs-actions.pod:482
22855 #, no-wrap
22856 msgid ""
22857 " char **\n"
22858 " guestfs_aug_match (guestfs_h *g,\n"
22859 "                    const char *augpath);\n"
22860 "\n"
22861 msgstr ""
22862
22863 #. type: =head2
22864 #: ../src/guestfs-actions.pod:496
22865 msgid "guestfs_aug_mv"
22866 msgstr ""
22867
22868 #. type: verbatim
22869 #: ../src/guestfs-actions.pod:498
22870 #, no-wrap
22871 msgid ""
22872 " int\n"
22873 " guestfs_aug_mv (guestfs_h *g,\n"
22874 "                 const char *src,\n"
22875 "                 const char *dest);\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: =head2
22880 #: ../src/guestfs-actions.pod:510
22881 msgid "guestfs_aug_rm"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../src/guestfs-actions.pod:512
22886 #, no-wrap
22887 msgid ""
22888 " int\n"
22889 " guestfs_aug_rm (guestfs_h *g,\n"
22890 "                 const char *augpath);\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: =head2
22895 #: ../src/guestfs-actions.pod:524
22896 msgid "guestfs_aug_save"
22897 msgstr ""
22898
22899 #. type: verbatim
22900 #: ../src/guestfs-actions.pod:526
22901 #, no-wrap
22902 msgid ""
22903 " int\n"
22904 " guestfs_aug_save (guestfs_h *g);\n"
22905 "\n"
22906 msgstr ""
22907
22908 #. type: textblock
22909 #: ../src/guestfs-actions.pod:531
22910 msgid ""
22911 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22912 "are saved."
22913 msgstr ""
22914
22915 #. type: =head2
22916 #: ../src/guestfs-actions.pod:538
22917 msgid "guestfs_aug_set"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../src/guestfs-actions.pod:540
22922 #, no-wrap
22923 msgid ""
22924 " int\n"
22925 " guestfs_aug_set (guestfs_h *g,\n"
22926 "                  const char *augpath,\n"
22927 "                  const char *val);\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:547
22933 msgid ""
22934 "In the Augeas API, it is possible to clear a node by setting the value to "
22935 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22936 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22937 msgstr ""
22938
22939 #. type: =head2
22940 #: ../src/guestfs-actions.pod:556
22941 msgid "guestfs_available"
22942 msgstr ""
22943
22944 #. type: verbatim
22945 #: ../src/guestfs-actions.pod:558
22946 #, no-wrap
22947 msgid ""
22948 " int\n"
22949 " guestfs_available (guestfs_h *g,\n"
22950 "                    char *const *groups);\n"
22951 "\n"
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../src/guestfs-actions.pod:566
22956 msgid ""
22957 "The libguestfs groups, and the functions that those groups correspond to, "
22958 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22959 "runtime by calling C<guestfs_available_all_groups>."
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../src/guestfs-actions.pod:590
22964 msgid "You must call C<guestfs_launch> before calling this function."
22965 msgstr ""
22966
22967 #. type: textblock
22968 #: ../src/guestfs-actions.pod:612
22969 msgid ""
22970 "This call was added in version C<1.0.80>.  In previous versions of "
22971 "libguestfs all you could do would be to speculatively execute a command to "
22972 "find out if the daemon implemented it.  See also C<guestfs_version>."
22973 msgstr ""
22974
22975 #. type: textblock
22976 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
22977 msgid "(Added in 1.0.80)"
22978 msgstr ""
22979
22980 #. type: =head2
22981 #: ../src/guestfs-actions.pod:623
22982 msgid "guestfs_available_all_groups"
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../src/guestfs-actions.pod:625
22987 #, no-wrap
22988 msgid ""
22989 " char **\n"
22990 " guestfs_available_all_groups (guestfs_h *g);\n"
22991 "\n"
22992 msgstr ""
22993
22994 #. type: textblock
22995 #: ../src/guestfs-actions.pod:628
22996 msgid ""
22997 "This command returns a list of all optional groups that this daemon knows "
22998 "about.  Note this returns both supported and unsupported groups.  To find "
22999 "out which ones the daemon can actually support you have to call "
23000 "C<guestfs_available> on each member of the returned list."
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../src/guestfs-actions.pod:634
23005 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../src/guestfs-actions.pod:640
23010 msgid "(Added in 1.3.15)"
23011 msgstr ""
23012
23013 #. type: =head2
23014 #: ../src/guestfs-actions.pod:642
23015 msgid "guestfs_base64_in"
23016 msgstr ""
23017
23018 #. type: verbatim
23019 #: ../src/guestfs-actions.pod:644
23020 #, no-wrap
23021 msgid ""
23022 " int\n"
23023 " guestfs_base64_in (guestfs_h *g,\n"
23024 "                    const char *base64file,\n"
23025 "                    const char *filename);\n"
23026 "\n"
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23031 msgid "(Added in 1.3.5)"
23032 msgstr ""
23033
23034 #. type: =head2
23035 #: ../src/guestfs-actions.pod:656
23036 msgid "guestfs_base64_out"
23037 msgstr ""
23038
23039 #. type: verbatim
23040 #: ../src/guestfs-actions.pod:658
23041 #, no-wrap
23042 msgid ""
23043 " int\n"
23044 " guestfs_base64_out (guestfs_h *g,\n"
23045 "                     const char *filename,\n"
23046 "                     const char *base64file);\n"
23047 "\n"
23048 msgstr ""
23049
23050 #. type: =head2
23051 #: ../src/guestfs-actions.pod:670
23052 msgid "guestfs_blockdev_flushbufs"
23053 msgstr ""
23054
23055 #. type: verbatim
23056 #: ../src/guestfs-actions.pod:672
23057 #, no-wrap
23058 msgid ""
23059 " int\n"
23060 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23061 "                             const char *device);\n"
23062 "\n"
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23067 msgid "(Added in 0.9.3)"
23068 msgstr ""
23069
23070 #. type: =head2
23071 #: ../src/guestfs-actions.pod:685
23072 msgid "guestfs_blockdev_getbsz"
23073 msgstr ""
23074
23075 #. type: verbatim
23076 #: ../src/guestfs-actions.pod:687
23077 #, no-wrap
23078 msgid ""
23079 " int\n"
23080 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23081 "                          const char *device);\n"
23082 "\n"
23083 msgstr ""
23084
23085 #. type: =head2
23086 #: ../src/guestfs-actions.pod:702
23087 msgid "guestfs_blockdev_getro"
23088 msgstr ""
23089
23090 #. type: verbatim
23091 #: ../src/guestfs-actions.pod:704
23092 #, no-wrap
23093 msgid ""
23094 " int\n"
23095 " guestfs_blockdev_getro (guestfs_h *g,\n"
23096 "                         const char *device);\n"
23097 "\n"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679 ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:5482
23102 msgid "This function returns a C truth value on success or -1 on error."
23103 msgstr ""
23104
23105 #. type: =head2
23106 #: ../src/guestfs-actions.pod:717
23107 msgid "guestfs_blockdev_getsize64"
23108 msgstr ""
23109
23110 #. type: verbatim
23111 #: ../src/guestfs-actions.pod:719
23112 #, no-wrap
23113 msgid ""
23114 " int64_t\n"
23115 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23116 "                             const char *device);\n"
23117 "\n"
23118 msgstr ""
23119
23120 #. type: textblock
23121 #: ../src/guestfs-actions.pod:725
23122 msgid "See also C<guestfs_blockdev_getsz>."
23123 msgstr ""
23124
23125 #. type: =head2
23126 #: ../src/guestfs-actions.pod:733
23127 msgid "guestfs_blockdev_getss"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../src/guestfs-actions.pod:735
23132 #, no-wrap
23133 msgid ""
23134 " int\n"
23135 " guestfs_blockdev_getss (guestfs_h *g,\n"
23136 "                         const char *device);\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../src/guestfs-actions.pod:742
23142 msgid ""
23143 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23144 "that)."
23145 msgstr ""
23146
23147 #. type: =head2
23148 #: ../src/guestfs-actions.pod:751
23149 msgid "guestfs_blockdev_getsz"
23150 msgstr ""
23151
23152 #. type: verbatim
23153 #: ../src/guestfs-actions.pod:753
23154 #, no-wrap
23155 msgid ""
23156 " int64_t\n"
23157 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23158 "                         const char *device);\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../src/guestfs-actions.pod:760
23164 msgid ""
23165 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23166 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23167 msgstr ""
23168
23169 #. type: =head2
23170 #: ../src/guestfs-actions.pod:770
23171 msgid "guestfs_blockdev_rereadpt"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../src/guestfs-actions.pod:772
23176 #, no-wrap
23177 msgid ""
23178 " int\n"
23179 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23180 "                            const char *device);\n"
23181 "\n"
23182 msgstr ""
23183
23184 #. type: =head2
23185 #: ../src/guestfs-actions.pod:784
23186 msgid "guestfs_blockdev_setbsz"
23187 msgstr ""
23188
23189 #. type: verbatim
23190 #: ../src/guestfs-actions.pod:786
23191 #, no-wrap
23192 msgid ""
23193 " int\n"
23194 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23195 "                          const char *device,\n"
23196 "                          int blocksize);\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: =head2
23201 #: ../src/guestfs-actions.pod:802
23202 msgid "guestfs_blockdev_setro"
23203 msgstr ""
23204
23205 #. type: verbatim
23206 #: ../src/guestfs-actions.pod:804
23207 #, no-wrap
23208 msgid ""
23209 " int\n"
23210 " guestfs_blockdev_setro (guestfs_h *g,\n"
23211 "                         const char *device);\n"
23212 "\n"
23213 msgstr ""
23214
23215 #. type: =head2
23216 #: ../src/guestfs-actions.pod:816
23217 msgid "guestfs_blockdev_setrw"
23218 msgstr ""
23219
23220 #. type: verbatim
23221 #: ../src/guestfs-actions.pod:818
23222 #, no-wrap
23223 msgid ""
23224 " int\n"
23225 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23226 "                         const char *device);\n"
23227 "\n"
23228 msgstr ""
23229
23230 #. type: =head2
23231 #: ../src/guestfs-actions.pod:830
23232 msgid "guestfs_btrfs_filesystem_resize"
23233 msgstr ""
23234
23235 #. type: verbatim
23236 #: ../src/guestfs-actions.pod:832
23237 #, no-wrap
23238 msgid ""
23239 " int\n"
23240 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23241 "                                  const char *mountpoint,\n"
23242 "                                  ...);\n"
23243 "\n"
23244 msgstr ""
23245
23246 #. type: verbatim
23247 #: ../src/guestfs-actions.pod:842
23248 #, no-wrap
23249 msgid ""
23250 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23251 "\n"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../src/guestfs-actions.pod:865
23256 msgid "(Added in 1.11.17)"
23257 msgstr ""
23258
23259 #. type: =head2
23260 #: ../src/guestfs-actions.pod:867
23261 msgid "guestfs_btrfs_filesystem_resize_va"
23262 msgstr ""
23263
23264 #. type: verbatim
23265 #: ../src/guestfs-actions.pod:869
23266 #, no-wrap
23267 msgid ""
23268 " int\n"
23269 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23270 "                                     const char *mountpoint,\n"
23271 "                                     va_list args);\n"
23272 "\n"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../src/guestfs-actions.pod:874
23277 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23278 msgstr ""
23279
23280 #. type: =head2
23281 #: ../src/guestfs-actions.pod:878
23282 msgid "guestfs_btrfs_filesystem_resize_argv"
23283 msgstr ""
23284
23285 #. type: verbatim
23286 #: ../src/guestfs-actions.pod:880
23287 #, no-wrap
23288 msgid ""
23289 " int\n"
23290 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23291 "                                       const char *mountpoint,\n"
23292 "                                       const struct "
23293 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23294 "\n"
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../src/guestfs-actions.pod:885
23299 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23300 msgstr ""
23301
23302 #. type: =head2
23303 #: ../src/guestfs-actions.pod:889
23304 msgid "guestfs_case_sensitive_path"
23305 msgstr ""
23306
23307 #. type: verbatim
23308 #: ../src/guestfs-actions.pod:891
23309 #, no-wrap
23310 msgid ""
23311 " char *\n"
23312 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23313 "                              const char *path);\n"
23314 "\n"
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../src/guestfs-actions.pod:917
23319 msgid ""
23320 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
23321 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23322 "how the directories were originally created under Windows)."
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../src/guestfs-actions.pod:925
23327 msgid "See also C<guestfs_realpath>."
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
23332 msgid "(Added in 1.0.75)"
23333 msgstr ""
23334
23335 #. type: =head2
23336 #: ../src/guestfs-actions.pod:932
23337 msgid "guestfs_cat"
23338 msgstr ""
23339
23340 #. type: verbatim
23341 #: ../src/guestfs-actions.pod:934
23342 #, no-wrap
23343 msgid ""
23344 " char *\n"
23345 " guestfs_cat (guestfs_h *g,\n"
23346 "              const char *path);\n"
23347 "\n"
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../src/guestfs-actions.pod:940
23352 msgid ""
23353 "Note that this function cannot correctly handle binary files (specifically, "
23354 "files containing C<\\0> character which is treated as end of string).  For "
23355 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23356 "functions which have a more complex interface."
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699 ../src/guestfs-actions.pod:7713
23361 msgid "(Added in 0.4)"
23362 msgstr ""
23363
23364 #. type: =head2
23365 #: ../src/guestfs-actions.pod:953
23366 msgid "guestfs_checksum"
23367 msgstr ""
23368
23369 #. type: verbatim
23370 #: ../src/guestfs-actions.pod:955
23371 #, no-wrap
23372 msgid ""
23373 " char *\n"
23374 " guestfs_checksum (guestfs_h *g,\n"
23375 "                   const char *csumtype,\n"
23376 "                   const char *path);\n"
23377 "\n"
23378 msgstr ""
23379
23380 #. type: textblock
23381 #: ../src/guestfs-actions.pod:1001
23382 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../src/guestfs-actions.pod:1003
23387 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23388 msgstr ""
23389
23390 #. type: textblock
23391 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
23392 msgid "(Added in 1.0.2)"
23393 msgstr ""
23394
23395 #. type: =head2
23396 #: ../src/guestfs-actions.pod:1010
23397 msgid "guestfs_checksum_device"
23398 msgstr ""
23399
23400 #. type: verbatim
23401 #: ../src/guestfs-actions.pod:1012
23402 #, no-wrap
23403 msgid ""
23404 " char *\n"
23405 " guestfs_checksum_device (guestfs_h *g,\n"
23406 "                          const char *csumtype,\n"
23407 "                          const char *device);\n"
23408 "\n"
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../src/guestfs-actions.pod:1017
23413 msgid ""
23414 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23415 "device named C<device>.  For the types of checksums supported see the "
23416 "C<guestfs_checksum> command."
23417 msgstr ""
23418
23419 #. type: textblock
23420 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7725
23421 msgid "(Added in 1.3.2)"
23422 msgstr ""
23423
23424 #. type: =head2
23425 #: ../src/guestfs-actions.pod:1026
23426 msgid "guestfs_checksums_out"
23427 msgstr ""
23428
23429 #. type: verbatim
23430 #: ../src/guestfs-actions.pod:1028
23431 #, no-wrap
23432 msgid ""
23433 " int\n"
23434 " guestfs_checksums_out (guestfs_h *g,\n"
23435 "                        const char *csumtype,\n"
23436 "                        const char *directory,\n"
23437 "                        const char *sumsfile);\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../src/guestfs-actions.pod:1048
23443 msgid "(Added in 1.3.7)"
23444 msgstr ""
23445
23446 #. type: =head2
23447 #: ../src/guestfs-actions.pod:1050
23448 msgid "guestfs_chmod"
23449 msgstr ""
23450
23451 #. type: verbatim
23452 #: ../src/guestfs-actions.pod:1052
23453 #, no-wrap
23454 msgid ""
23455 " int\n"
23456 " guestfs_chmod (guestfs_h *g,\n"
23457 "                int mode,\n"
23458 "                const char *path);\n"
23459 "\n"
23460 msgstr ""
23461
23462 #. type: =head2
23463 #: ../src/guestfs-actions.pod:1070
23464 msgid "guestfs_chown"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../src/guestfs-actions.pod:1072
23469 #, no-wrap
23470 msgid ""
23471 " int\n"
23472 " guestfs_chown (guestfs_h *g,\n"
23473 "                int owner,\n"
23474 "                int group,\n"
23475 "                const char *path);\n"
23476 "\n"
23477 msgstr ""
23478
23479 #. type: =head2
23480 #: ../src/guestfs-actions.pod:1088
23481 msgid "guestfs_command"
23482 msgstr ""
23483
23484 #. type: verbatim
23485 #: ../src/guestfs-actions.pod:1090
23486 #, no-wrap
23487 msgid ""
23488 " char *\n"
23489 " guestfs_command (guestfs_h *g,\n"
23490 "                  char *const *arguments);\n"
23491 "\n"
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../src/guestfs-actions.pod:1099
23496 msgid ""
23497 "The single parameter is an argv-style list of arguments.  The first element "
23498 "is the name of the program to run.  Subsequent elements are parameters.  The "
23499 "list must be non-empty (ie. must contain a program name).  Note that the "
23500 "command runs directly, and is I<not> invoked via the shell (see "
23501 "C<guestfs_sh>)."
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1726
23506 msgid "(Added in 0.9.1)"
23507 msgstr ""
23508
23509 #. type: =head2
23510 #: ../src/guestfs-actions.pod:1132
23511 msgid "guestfs_command_lines"
23512 msgstr ""
23513
23514 #. type: verbatim
23515 #: ../src/guestfs-actions.pod:1134
23516 #, no-wrap
23517 msgid ""
23518 " char **\n"
23519 " guestfs_command_lines (guestfs_h *g,\n"
23520 "                        char *const *arguments);\n"
23521 "\n"
23522 msgstr ""
23523
23524 #. type: textblock
23525 #: ../src/guestfs-actions.pod:1138
23526 msgid ""
23527 "This is the same as C<guestfs_command>, but splits the result into a list of "
23528 "lines."
23529 msgstr ""
23530
23531 #. type: textblock
23532 #: ../src/guestfs-actions.pod:1141
23533 msgid "See also: C<guestfs_sh_lines>"
23534 msgstr ""
23535
23536 #. type: =head2
23537 #: ../src/guestfs-actions.pod:1152
23538 msgid "guestfs_compress_device_out"
23539 msgstr ""
23540
23541 #. type: verbatim
23542 #: ../src/guestfs-actions.pod:1154
23543 #, no-wrap
23544 msgid ""
23545 " int\n"
23546 " guestfs_compress_device_out (guestfs_h *g,\n"
23547 "                              const char *ctype,\n"
23548 "                              const char *device,\n"
23549 "                              const char *zdevice,\n"
23550 "                              ...);\n"
23551 "\n"
23552 msgstr ""
23553
23554 #. type: verbatim
23555 #: ../src/guestfs-actions.pod:1166
23556 #, no-wrap
23557 msgid ""
23558 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
23559 "\n"
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../src/guestfs-actions.pod:1171
23564 msgid ""
23565 "The C<ctype> and optional C<level> parameters have the same meaning as in "
23566 "C<guestfs_compress_out>."
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
23571 msgid "(Added in 1.13.15)"
23572 msgstr ""
23573
23574 #. type: =head2
23575 #: ../src/guestfs-actions.pod:1178
23576 msgid "guestfs_compress_device_out_va"
23577 msgstr ""
23578
23579 #. type: verbatim
23580 #: ../src/guestfs-actions.pod:1180
23581 #, no-wrap
23582 msgid ""
23583 " int\n"
23584 " guestfs_compress_device_out_va (guestfs_h *g,\n"
23585 "                                 const char *ctype,\n"
23586 "                                 const char *device,\n"
23587 "                                 const char *zdevice,\n"
23588 "                                 va_list args);\n"
23589 "\n"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../src/guestfs-actions.pod:1187
23594 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
23595 msgstr ""
23596
23597 #. type: =head2
23598 #: ../src/guestfs-actions.pod:1191
23599 msgid "guestfs_compress_device_out_argv"
23600 msgstr ""
23601
23602 #. type: verbatim
23603 #: ../src/guestfs-actions.pod:1193
23604 #, no-wrap
23605 msgid ""
23606 " int\n"
23607 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
23608 "                                   const char *ctype,\n"
23609 "                                   const char *device,\n"
23610 "                                   const char *zdevice,\n"
23611 "                                   const struct "
23612 "guestfs_compress_device_out_argv *optargs);\n"
23613 "\n"
23614 msgstr ""
23615
23616 #. type: textblock
23617 #: ../src/guestfs-actions.pod:1200
23618 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
23619 msgstr ""
23620
23621 #. type: =head2
23622 #: ../src/guestfs-actions.pod:1204
23623 msgid "guestfs_compress_out"
23624 msgstr ""
23625
23626 #. type: verbatim
23627 #: ../src/guestfs-actions.pod:1206
23628 #, no-wrap
23629 msgid ""
23630 " int\n"
23631 " guestfs_compress_out (guestfs_h *g,\n"
23632 "                       const char *ctype,\n"
23633 "                       const char *file,\n"
23634 "                       const char *zfile,\n"
23635 "                       ...);\n"
23636 "\n"
23637 msgstr ""
23638
23639 #. type: verbatim
23640 #: ../src/guestfs-actions.pod:1218
23641 #, no-wrap
23642 msgid ""
23643 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
23644 "\n"
23645 msgstr ""
23646
23647 #. type: =head2
23648 #: ../src/guestfs-actions.pod:1237
23649 msgid "guestfs_compress_out_va"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../src/guestfs-actions.pod:1239
23654 #, no-wrap
23655 msgid ""
23656 " int\n"
23657 " guestfs_compress_out_va (guestfs_h *g,\n"
23658 "                          const char *ctype,\n"
23659 "                          const char *file,\n"
23660 "                          const char *zfile,\n"
23661 "                          va_list args);\n"
23662 "\n"
23663 msgstr ""
23664
23665 #. type: textblock
23666 #: ../src/guestfs-actions.pod:1246
23667 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
23668 msgstr ""
23669
23670 #. type: =head2
23671 #: ../src/guestfs-actions.pod:1250
23672 msgid "guestfs_compress_out_argv"
23673 msgstr ""
23674
23675 #. type: verbatim
23676 #: ../src/guestfs-actions.pod:1252
23677 #, no-wrap
23678 msgid ""
23679 " int\n"
23680 " guestfs_compress_out_argv (guestfs_h *g,\n"
23681 "                            const char *ctype,\n"
23682 "                            const char *file,\n"
23683 "                            const char *zfile,\n"
23684 "                            const struct guestfs_compress_out_argv "
23685 "*optargs);\n"
23686 "\n"
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../src/guestfs-actions.pod:1259
23691 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
23692 msgstr ""
23693
23694 #. type: =head2
23695 #: ../src/guestfs-actions.pod:1263
23696 msgid "guestfs_config"
23697 msgstr ""
23698
23699 #. type: verbatim
23700 #: ../src/guestfs-actions.pod:1265
23701 #, no-wrap
23702 msgid ""
23703 " int\n"
23704 " guestfs_config (guestfs_h *g,\n"
23705 "                 const char *qemuparam,\n"
23706 "                 const char *qemuvalue);\n"
23707 "\n"
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:1283
23712 msgid "guestfs_copy_size"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:1285
23717 #, no-wrap
23718 msgid ""
23719 " int\n"
23720 " guestfs_copy_size (guestfs_h *g,\n"
23721 "                    const char *src,\n"
23722 "                    const char *dest,\n"
23723 "                    int64_t size);\n"
23724 "\n"
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397 ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7961
23729 msgid ""
23730 "This long-running command can generate progress notification messages so "
23731 "that the caller can display a progress bar or indicator.  To receive these "
23732 "messages, the caller must register a progress event callback.  See "
23733 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
23738 msgid "(Added in 1.0.87)"
23739 msgstr ""
23740
23741 #. type: =head2
23742 #: ../src/guestfs-actions.pod:1306
23743 msgid "guestfs_cp"
23744 msgstr ""
23745
23746 #. type: verbatim
23747 #: ../src/guestfs-actions.pod:1308
23748 #, no-wrap
23749 msgid ""
23750 " int\n"
23751 " guestfs_cp (guestfs_h *g,\n"
23752 "             const char *src,\n"
23753 "             const char *dest);\n"
23754 "\n"
23755 msgstr ""
23756
23757 #. type: textblock
23758 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5734
23759 msgid "(Added in 1.0.18)"
23760 msgstr ""
23761
23762 #. type: =head2
23763 #: ../src/guestfs-actions.pod:1320
23764 msgid "guestfs_cp_a"
23765 msgstr ""
23766
23767 #. type: verbatim
23768 #: ../src/guestfs-actions.pod:1322
23769 #, no-wrap
23770 msgid ""
23771 " int\n"
23772 " guestfs_cp_a (guestfs_h *g,\n"
23773 "               const char *src,\n"
23774 "               const char *dest);\n"
23775 "\n"
23776 msgstr ""
23777
23778 #. type: =head2
23779 #: ../src/guestfs-actions.pod:1334
23780 msgid "guestfs_dd"
23781 msgstr ""
23782
23783 #. type: verbatim
23784 #: ../src/guestfs-actions.pod:1336
23785 #, no-wrap
23786 msgid ""
23787 " int\n"
23788 " guestfs_dd (guestfs_h *g,\n"
23789 "             const char *src,\n"
23790 "             const char *dest);\n"
23791 "\n"
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../src/guestfs-actions.pod:1346
23796 msgid ""
23797 "If the destination is a device, it must be as large or larger than the "
23798 "source file or device, otherwise the copy will fail.  This command cannot do "
23799 "partial copies (see C<guestfs_copy_size>)."
23800 msgstr ""
23801
23802 #. type: =head2
23803 #: ../src/guestfs-actions.pod:1354
23804 msgid "guestfs_df"
23805 msgstr ""
23806
23807 #. type: verbatim
23808 #: ../src/guestfs-actions.pod:1356
23809 #, no-wrap
23810 msgid ""
23811 " char *\n"
23812 " guestfs_df (guestfs_h *g);\n"
23813 "\n"
23814 msgstr ""
23815
23816 #. type: textblock
23817 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
23818 msgid ""
23819 "This command is mostly useful for interactive sessions.  It is I<not> "
23820 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23821 "from programs."
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
23826 msgid "(Added in 1.0.54)"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../src/guestfs-actions.pod:1370
23831 msgid "guestfs_df_h"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../src/guestfs-actions.pod:1372
23836 #, no-wrap
23837 msgid ""
23838 " char *\n"
23839 " guestfs_df_h (guestfs_h *g);\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: =head2
23844 #: ../src/guestfs-actions.pod:1387
23845 msgid "guestfs_dmesg"
23846 msgstr ""
23847
23848 #. type: verbatim
23849 #: ../src/guestfs-actions.pod:1389
23850 #, no-wrap
23851 msgid ""
23852 " char *\n"
23853 " guestfs_dmesg (guestfs_h *g);\n"
23854 "\n"
23855 msgstr ""
23856
23857 #. type: textblock
23858 #: ../src/guestfs-actions.pod:1396
23859 msgid ""
23860 "Another way to get the same information is to enable verbose messages with "
23861 "C<guestfs_set_verbose> or by setting the environment variable "
23862 "C<LIBGUESTFS_DEBUG=1> before running the program."
23863 msgstr ""
23864
23865 #. type: =head2
23866 #: ../src/guestfs-actions.pod:1406
23867 msgid "guestfs_download"
23868 msgstr ""
23869
23870 #. type: verbatim
23871 #: ../src/guestfs-actions.pod:1408
23872 #, no-wrap
23873 msgid ""
23874 " int\n"
23875 " guestfs_download (guestfs_h *g,\n"
23876 "                   const char *remotefilename,\n"
23877 "                   const char *filename);\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../src/guestfs-actions.pod:1418
23883 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23884 msgstr ""
23885
23886 #. type: =head2
23887 #: ../src/guestfs-actions.pod:1429
23888 msgid "guestfs_download_offset"
23889 msgstr ""
23890
23891 #. type: verbatim
23892 #: ../src/guestfs-actions.pod:1431
23893 #, no-wrap
23894 msgid ""
23895 " int\n"
23896 " guestfs_download_offset (guestfs_h *g,\n"
23897 "                          const char *remotefilename,\n"
23898 "                          const char *filename,\n"
23899 "                          int64_t offset,\n"
23900 "                          int64_t size);\n"
23901 "\n"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../src/guestfs-actions.pod:1444
23906 msgid ""
23907 "Note that there is no limit on the amount of data that can be downloaded "
23908 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23909 "full amount unless an error occurs."
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../src/guestfs-actions.pod:1449
23914 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
23919 msgid "(Added in 1.5.17)"
23920 msgstr ""
23921
23922 #. type: =head2
23923 #: ../src/guestfs-actions.pod:1460
23924 msgid "guestfs_drop_caches"
23925 msgstr ""
23926
23927 #. type: verbatim
23928 #: ../src/guestfs-actions.pod:1462
23929 #, no-wrap
23930 msgid ""
23931 " int\n"
23932 " guestfs_drop_caches (guestfs_h *g,\n"
23933 "                      int whattodrop);\n"
23934 "\n"
23935 msgstr ""
23936
23937 #. type: =head2
23938 #: ../src/guestfs-actions.pod:1480
23939 msgid "guestfs_du"
23940 msgstr ""
23941
23942 #. type: verbatim
23943 #: ../src/guestfs-actions.pod:1482
23944 #, no-wrap
23945 msgid ""
23946 " int64_t\n"
23947 " guestfs_du (guestfs_h *g,\n"
23948 "             const char *path);\n"
23949 "\n"
23950 msgstr ""
23951
23952 #. type: =head2
23953 #: ../src/guestfs-actions.pod:1505
23954 msgid "guestfs_e2fsck_f"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../src/guestfs-actions.pod:1507
23959 #, no-wrap
23960 msgid ""
23961 " int\n"
23962 " guestfs_e2fsck_f (guestfs_h *g,\n"
23963 "                   const char *device);\n"
23964 "\n"
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../src/guestfs-actions.pod:1515
23969 msgid ""
23970 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23971 "Normally you should use C<guestfs_fsck>."
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../src/guestfs-actions.pod:1520
23976 msgid "(Added in 1.0.29)"
23977 msgstr ""
23978
23979 #. type: =head2
23980 #: ../src/guestfs-actions.pod:1522
23981 msgid "guestfs_echo_daemon"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../src/guestfs-actions.pod:1524
23986 #, no-wrap
23987 msgid ""
23988 " char *\n"
23989 " guestfs_echo_daemon (guestfs_h *g,\n"
23990 "                      char *const *words);\n"
23991 "\n"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../src/guestfs-actions.pod:1533
23996 msgid "See also C<guestfs_ping_daemon>."
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6607
24001 msgid "(Added in 1.0.69)"
24002 msgstr ""
24003
24004 #. type: =head2
24005 #: ../src/guestfs-actions.pod:1540
24006 msgid "guestfs_egrep"
24007 msgstr ""
24008
24009 #. type: verbatim
24010 #: ../src/guestfs-actions.pod:1542
24011 #, no-wrap
24012 msgid ""
24013 " char **\n"
24014 " guestfs_egrep (guestfs_h *g,\n"
24015 "                const char *regex,\n"
24016 "                const char *path);\n"
24017 "\n"
24018 msgstr ""
24019
24020 #. type: textblock
24021 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005 ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
24022 msgid "(Added in 1.0.66)"
24023 msgstr ""
24024
24025 #. type: =head2
24026 #: ../src/guestfs-actions.pod:1559
24027 msgid "guestfs_egrepi"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../src/guestfs-actions.pod:1561
24032 #, no-wrap
24033 msgid ""
24034 " char **\n"
24035 " guestfs_egrepi (guestfs_h *g,\n"
24036 "                 const char *regex,\n"
24037 "                 const char *path);\n"
24038 "\n"
24039 msgstr ""
24040
24041 #. type: =head2
24042 #: ../src/guestfs-actions.pod:1578
24043 msgid "guestfs_equal"
24044 msgstr ""
24045
24046 #. type: verbatim
24047 #: ../src/guestfs-actions.pod:1580
24048 #, no-wrap
24049 msgid ""
24050 " int\n"
24051 " guestfs_equal (guestfs_h *g,\n"
24052 "                const char *file1,\n"
24053 "                const char *file2);\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: =head2
24058 #: ../src/guestfs-actions.pod:1594
24059 msgid "guestfs_exists"
24060 msgstr ""
24061
24062 #. type: verbatim
24063 #: ../src/guestfs-actions.pod:1596
24064 #, no-wrap
24065 msgid ""
24066 " int\n"
24067 " guestfs_exists (guestfs_h *g,\n"
24068 "                 const char *path);\n"
24069 "\n"
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../src/guestfs-actions.pod:1603
24074 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../src/guestfs-actions.pod:1609
24079 msgid "guestfs_fallocate"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../src/guestfs-actions.pod:1611
24084 #, no-wrap
24085 msgid ""
24086 " int\n"
24087 " guestfs_fallocate (guestfs_h *g,\n"
24088 "                    const char *path,\n"
24089 "                    int len);\n"
24090 "\n"
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../src/guestfs-actions.pod:1616
24095 msgid ""
24096 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24097 "call instead."
24098 msgstr ""
24099
24100 #. type: =head2
24101 #: ../src/guestfs-actions.pod:1635
24102 msgid "guestfs_fallocate64"
24103 msgstr ""
24104
24105 #. type: verbatim
24106 #: ../src/guestfs-actions.pod:1637
24107 #, no-wrap
24108 msgid ""
24109 " int\n"
24110 " guestfs_fallocate64 (guestfs_h *g,\n"
24111 "                      const char *path,\n"
24112 "                      int64_t len);\n"
24113 "\n"
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../src/guestfs-actions.pod:1646
24118 msgid ""
24119 "Note that this call allocates disk blocks for the file.  To create a sparse "
24120 "file use C<guestfs_truncate_size> instead."
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../src/guestfs-actions.pod:1649
24125 msgid ""
24126 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24127 "oversight it only allowed 30 bit lengths to be specified, effectively "
24128 "limiting the maximum size of files created through that call to 1GB."
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../src/guestfs-actions.pod:1660
24133 msgid "(Added in 1.3.17)"
24134 msgstr ""
24135
24136 #. type: =head2
24137 #: ../src/guestfs-actions.pod:1662
24138 msgid "guestfs_fgrep"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../src/guestfs-actions.pod:1664
24143 #, no-wrap
24144 msgid ""
24145 " char **\n"
24146 " guestfs_fgrep (guestfs_h *g,\n"
24147 "                const char *pattern,\n"
24148 "                const char *path);\n"
24149 "\n"
24150 msgstr ""
24151
24152 #. type: =head2
24153 #: ../src/guestfs-actions.pod:1681
24154 msgid "guestfs_fgrepi"
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../src/guestfs-actions.pod:1683
24159 #, no-wrap
24160 msgid ""
24161 " char **\n"
24162 " guestfs_fgrepi (guestfs_h *g,\n"
24163 "                 const char *pattern,\n"
24164 "                 const char *path);\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: =head2
24169 #: ../src/guestfs-actions.pod:1700
24170 msgid "guestfs_file"
24171 msgstr ""
24172
24173 #. type: verbatim
24174 #: ../src/guestfs-actions.pod:1702
24175 #, no-wrap
24176 msgid ""
24177 " char *\n"
24178 " guestfs_file (guestfs_h *g,\n"
24179 "               const char *path);\n"
24180 "\n"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../src/guestfs-actions.pod:1720
24185 msgid ""
24186 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24187 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24188 msgstr ""
24189
24190 #. type: =head2
24191 #: ../src/guestfs-actions.pod:1728
24192 msgid "guestfs_file_architecture"
24193 msgstr ""
24194
24195 #. type: verbatim
24196 #: ../src/guestfs-actions.pod:1730
24197 #, no-wrap
24198 msgid ""
24199 " char *\n"
24200 " guestfs_file_architecture (guestfs_h *g,\n"
24201 "                            const char *filename);\n"
24202 "\n"
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117 ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562 ../src/guestfs-actions.pod:3694
24207 msgid "(Added in 1.5.3)"
24208 msgstr ""
24209
24210 #. type: =head2
24211 #: ../src/guestfs-actions.pod:1840
24212 msgid "guestfs_filesize"
24213 msgstr ""
24214
24215 #. type: verbatim
24216 #: ../src/guestfs-actions.pod:1842
24217 #, no-wrap
24218 msgid ""
24219 " int64_t\n"
24220 " guestfs_filesize (guestfs_h *g,\n"
24221 "                   const char *file);\n"
24222 "\n"
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../src/guestfs-actions.pod:1848
24227 msgid ""
24228 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24229 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24230 "devices, use C<guestfs_blockdev_getsize64>."
24231 msgstr ""
24232
24233 #. type: textblock
24234 #: ../src/guestfs-actions.pod:1854
24235 msgid "(Added in 1.0.82)"
24236 msgstr ""
24237
24238 #. type: =head2
24239 #: ../src/guestfs-actions.pod:1856
24240 msgid "guestfs_fill"
24241 msgstr ""
24242
24243 #. type: verbatim
24244 #: ../src/guestfs-actions.pod:1858
24245 #, no-wrap
24246 msgid ""
24247 " int\n"
24248 " guestfs_fill (guestfs_h *g,\n"
24249 "               int c,\n"
24250 "               int len,\n"
24251 "               const char *path);\n"
24252 "\n"
24253 msgstr ""
24254
24255 #. type: textblock
24256 #: ../src/guestfs-actions.pod:1868
24257 msgid ""
24258 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24259 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24260 "bytes use C<guestfs_fill_pattern>."
24261 msgstr ""
24262
24263 #. type: textblock
24264 #: ../src/guestfs-actions.pod:1880
24265 msgid "(Added in 1.0.79)"
24266 msgstr ""
24267
24268 #. type: =head2
24269 #: ../src/guestfs-actions.pod:1882
24270 msgid "guestfs_fill_pattern"
24271 msgstr ""
24272
24273 #. type: verbatim
24274 #: ../src/guestfs-actions.pod:1884
24275 #, no-wrap
24276 msgid ""
24277 " int\n"
24278 " guestfs_fill_pattern (guestfs_h *g,\n"
24279 "                       const char *pattern,\n"
24280 "                       int len,\n"
24281 "                       const char *path);\n"
24282 "\n"
24283 msgstr ""
24284
24285 #. type: textblock
24286 #: ../src/guestfs-actions.pod:1890
24287 msgid ""
24288 "This function is like C<guestfs_fill> except that it creates a new file of "
24289 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24290 "pattern is truncated if necessary to ensure the length of the file is "
24291 "exactly C<len> bytes."
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../src/guestfs-actions.pod:1902
24296 msgid "(Added in 1.3.12)"
24297 msgstr ""
24298
24299 #. type: =head2
24300 #: ../src/guestfs-actions.pod:1904
24301 msgid "guestfs_find"
24302 msgstr ""
24303
24304 #. type: verbatim
24305 #: ../src/guestfs-actions.pod:1906
24306 #, no-wrap
24307 msgid ""
24308 " char **\n"
24309 " guestfs_find (guestfs_h *g,\n"
24310 "               const char *directory);\n"
24311 "\n"
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../src/guestfs-actions.pod:1922
24316 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../src/guestfs-actions.pod:1935
24321 msgid "See also C<guestfs_find0>."
24322 msgstr ""
24323
24324 #. type: textblock
24325 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:6152
24326 msgid "(Added in 1.0.27)"
24327 msgstr ""
24328
24329 #. type: =head2
24330 #: ../src/guestfs-actions.pod:1946
24331 msgid "guestfs_find0"
24332 msgstr ""
24333
24334 #. type: verbatim
24335 #: ../src/guestfs-actions.pod:1948
24336 #, no-wrap
24337 msgid ""
24338 " int\n"
24339 " guestfs_find0 (guestfs_h *g,\n"
24340 "                const char *directory,\n"
24341 "                const char *files);\n"
24342 "\n"
24343 msgstr ""
24344
24345 #. type: textblock
24346 #: ../src/guestfs-actions.pod:1957
24347 msgid ""
24348 "This command works the same way as C<guestfs_find> with the following "
24349 "exceptions:"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../src/guestfs-actions.pod:1984
24354 msgid "(Added in 1.0.74)"
24355 msgstr ""
24356
24357 #. type: =head2
24358 #: ../src/guestfs-actions.pod:1986
24359 msgid "guestfs_findfs_label"
24360 msgstr ""
24361
24362 #. type: verbatim
24363 #: ../src/guestfs-actions.pod:1988
24364 #, no-wrap
24365 msgid ""
24366 " char *\n"
24367 " guestfs_findfs_label (guestfs_h *g,\n"
24368 "                       const char *label);\n"
24369 "\n"
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../src/guestfs-actions.pod:1996
24374 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24375 msgstr ""
24376
24377 #. type: =head2
24378 #: ../src/guestfs-actions.pod:2003
24379 msgid "guestfs_findfs_uuid"
24380 msgstr ""
24381
24382 #. type: verbatim
24383 #: ../src/guestfs-actions.pod:2005
24384 #, no-wrap
24385 msgid ""
24386 " char *\n"
24387 " guestfs_findfs_uuid (guestfs_h *g,\n"
24388 "                      const char *uuid);\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../src/guestfs-actions.pod:2013
24394 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24395 msgstr ""
24396
24397 #. type: =head2
24398 #: ../src/guestfs-actions.pod:2020
24399 msgid "guestfs_fsck"
24400 msgstr ""
24401
24402 #. type: verbatim
24403 #: ../src/guestfs-actions.pod:2022
24404 #, no-wrap
24405 msgid ""
24406 " int\n"
24407 " guestfs_fsck (guestfs_h *g,\n"
24408 "               const char *fstype,\n"
24409 "               const char *device);\n"
24410 "\n"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
24415 msgid "(Added in 1.0.16)"
24416 msgstr ""
24417
24418 #. type: =head2
24419 #: ../src/guestfs-actions.pod:2059
24420 msgid "guestfs_get_append"
24421 msgstr ""
24422
24423 #. type: verbatim
24424 #: ../src/guestfs-actions.pod:2061
24425 #, no-wrap
24426 msgid ""
24427 " const char *\n"
24428 " guestfs_get_append (guestfs_h *g);\n"
24429 "\n"
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../src/guestfs-actions.pod:2069
24434 msgid ""
24435 "This function returns a string which may be NULL.  There is no way to return "
24436 "an error from this function.  The string is owned by the guest handle and "
24437 "must I<not> be freed."
24438 msgstr ""
24439
24440 #. type: textblock
24441 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
24442 msgid "(Added in 1.0.26)"
24443 msgstr ""
24444
24445 #. type: =head2
24446 #: ../src/guestfs-actions.pod:2075
24447 msgid "guestfs_get_attach_method"
24448 msgstr ""
24449
24450 #. type: verbatim
24451 #: ../src/guestfs-actions.pod:2077
24452 #, no-wrap
24453 msgid ""
24454 " char *\n"
24455 " guestfs_get_attach_method (guestfs_h *g);\n"
24456 "\n"
24457 msgstr ""
24458
24459 #. type: textblock
24460 #: ../src/guestfs-actions.pod:2080
24461 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
24466 msgid "(Added in 1.9.8)"
24467 msgstr ""
24468
24469 #. type: =head2
24470 #: ../src/guestfs-actions.pod:2087
24471 msgid "guestfs_get_autosync"
24472 msgstr ""
24473
24474 #. type: verbatim
24475 #: ../src/guestfs-actions.pod:2089
24476 #, no-wrap
24477 msgid ""
24478 " int\n"
24479 " guestfs_get_autosync (guestfs_h *g);\n"
24480 "\n"
24481 msgstr ""
24482
24483 #. type: =head2
24484 #: ../src/guestfs-actions.pod:2098
24485 msgid "guestfs_get_direct"
24486 msgstr ""
24487
24488 #. type: verbatim
24489 #: ../src/guestfs-actions.pod:2100
24490 #, no-wrap
24491 msgid ""
24492 " int\n"
24493 " guestfs_get_direct (guestfs_h *g);\n"
24494 "\n"
24495 msgstr ""
24496
24497 #. type: textblock
24498 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
24499 msgid "(Added in 1.0.72)"
24500 msgstr ""
24501
24502 #. type: =head2
24503 #: ../src/guestfs-actions.pod:2109
24504 msgid "guestfs_get_e2label"
24505 msgstr ""
24506
24507 #. type: verbatim
24508 #: ../src/guestfs-actions.pod:2111
24509 #, no-wrap
24510 msgid ""
24511 " char *\n"
24512 " guestfs_get_e2label (guestfs_h *g,\n"
24513 "                      const char *device);\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../src/guestfs-actions.pod:2115
24519 msgid ""
24520 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24521 "call instead."
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
24526 msgid "(Added in 1.0.15)"
24527 msgstr ""
24528
24529 #. type: =head2
24530 #: ../src/guestfs-actions.pod:2130
24531 msgid "guestfs_get_e2uuid"
24532 msgstr ""
24533
24534 #. type: verbatim
24535 #: ../src/guestfs-actions.pod:2132
24536 #, no-wrap
24537 msgid ""
24538 " char *\n"
24539 " guestfs_get_e2uuid (guestfs_h *g,\n"
24540 "                     const char *device);\n"
24541 "\n"
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../src/guestfs-actions.pod:2136
24546 msgid ""
24547 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24548 "call instead."
24549 msgstr ""
24550
24551 #. type: =head2
24552 #: ../src/guestfs-actions.pod:2151
24553 msgid "guestfs_get_memsize"
24554 msgstr ""
24555
24556 #. type: verbatim
24557 #: ../src/guestfs-actions.pod:2153
24558 #, no-wrap
24559 msgid ""
24560 " int\n"
24561 " guestfs_get_memsize (guestfs_h *g);\n"
24562 "\n"
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../src/guestfs-actions.pod:2159
24567 msgid ""
24568 "If C<guestfs_set_memsize> was not called on this handle, and if "
24569 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24570 "value for memsize."
24571 msgstr ""
24572
24573 #. type: textblock
24574 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
24575 msgid "(Added in 1.0.55)"
24576 msgstr ""
24577
24578 #. type: =head2
24579 #: ../src/guestfs-actions.pod:2170
24580 msgid "guestfs_get_network"
24581 msgstr ""
24582
24583 #. type: verbatim
24584 #: ../src/guestfs-actions.pod:2172
24585 #, no-wrap
24586 msgid ""
24587 " int\n"
24588 " guestfs_get_network (guestfs_h *g);\n"
24589 "\n"
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
24594 msgid "(Added in 1.5.4)"
24595 msgstr ""
24596
24597 #. type: =head2
24598 #: ../src/guestfs-actions.pod:2181
24599 msgid "guestfs_get_path"
24600 msgstr ""
24601
24602 #. type: verbatim
24603 #: ../src/guestfs-actions.pod:2183
24604 #, no-wrap
24605 msgid ""
24606 " const char *\n"
24607 " guestfs_get_path (guestfs_h *g);\n"
24608 "\n"
24609 msgstr ""
24610
24611 #. type: textblock
24612 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
24613 msgid ""
24614 "This function returns a string, or NULL on error.  The string is owned by "
24615 "the guest handle and must I<not> be freed."
24616 msgstr ""
24617
24618 #. type: =head2
24619 #: ../src/guestfs-actions.pod:2196
24620 msgid "guestfs_get_pgroup"
24621 msgstr ""
24622
24623 #. type: verbatim
24624 #: ../src/guestfs-actions.pod:2198
24625 #, no-wrap
24626 msgid ""
24627 " int\n"
24628 " guestfs_get_pgroup (guestfs_h *g);\n"
24629 "\n"
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:7844
24634 msgid "(Added in 1.11.18)"
24635 msgstr ""
24636
24637 #. type: =head2
24638 #: ../src/guestfs-actions.pod:2207
24639 msgid "guestfs_get_pid"
24640 msgstr ""
24641
24642 #. type: verbatim
24643 #: ../src/guestfs-actions.pod:2209
24644 #, no-wrap
24645 msgid ""
24646 " int\n"
24647 " guestfs_get_pid (guestfs_h *g);\n"
24648 "\n"
24649 msgstr ""
24650
24651 #. type: textblock
24652 #: ../src/guestfs-actions.pod:2219
24653 msgid "(Added in 1.0.56)"
24654 msgstr ""
24655
24656 #. type: =head2
24657 #: ../src/guestfs-actions.pod:2221
24658 msgid "guestfs_get_qemu"
24659 msgstr ""
24660
24661 #. type: verbatim
24662 #: ../src/guestfs-actions.pod:2223
24663 #, no-wrap
24664 msgid ""
24665 " const char *\n"
24666 " guestfs_get_qemu (guestfs_h *g);\n"
24667 "\n"
24668 msgstr ""
24669
24670 #. type: textblock
24671 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
24672 msgid "(Added in 1.0.6)"
24673 msgstr ""
24674
24675 #. type: =head2
24676 #: ../src/guestfs-actions.pod:2236
24677 msgid "guestfs_get_recovery_proc"
24678 msgstr ""
24679
24680 #. type: verbatim
24681 #: ../src/guestfs-actions.pod:2238
24682 #, no-wrap
24683 msgid ""
24684 " int\n"
24685 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24686 "\n"
24687 msgstr ""
24688
24689 #. type: textblock
24690 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7467
24691 msgid "(Added in 1.0.77)"
24692 msgstr ""
24693
24694 #. type: =head2
24695 #: ../src/guestfs-actions.pod:2247
24696 msgid "guestfs_get_selinux"
24697 msgstr ""
24698
24699 #. type: verbatim
24700 #: ../src/guestfs-actions.pod:2249
24701 #, no-wrap
24702 msgid ""
24703 " int\n"
24704 " guestfs_get_selinux (guestfs_h *g);\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:2252
24710 msgid ""
24711 "This returns the current setting of the selinux flag which is passed to the "
24712 "appliance at boot time.  See C<guestfs_set_selinux>."
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
24717 msgid "(Added in 1.0.67)"
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../src/guestfs-actions.pod:2262
24722 msgid "guestfs_get_smp"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../src/guestfs-actions.pod:2264
24727 #, no-wrap
24728 msgid ""
24729 " int\n"
24730 " guestfs_get_smp (guestfs_h *g);\n"
24731 "\n"
24732 msgstr ""
24733
24734 #. type: =head2
24735 #: ../src/guestfs-actions.pod:2273
24736 msgid "guestfs_get_state"
24737 msgstr ""
24738
24739 #. type: verbatim
24740 #: ../src/guestfs-actions.pod:2275
24741 #, no-wrap
24742 msgid ""
24743 " int\n"
24744 " guestfs_get_state (guestfs_h *g);\n"
24745 "\n"
24746 msgstr ""
24747
24748 #. type: =head2
24749 #: ../src/guestfs-actions.pod:2287
24750 msgid "guestfs_get_trace"
24751 msgstr ""
24752
24753 #. type: verbatim
24754 #: ../src/guestfs-actions.pod:2289
24755 #, no-wrap
24756 msgid ""
24757 " int\n"
24758 " guestfs_get_trace (guestfs_h *g);\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: =head2
24763 #: ../src/guestfs-actions.pod:2298
24764 msgid "guestfs_get_umask"
24765 msgstr ""
24766
24767 #. type: verbatim
24768 #: ../src/guestfs-actions.pod:2300
24769 #, no-wrap
24770 msgid ""
24771 " int\n"
24772 " guestfs_get_umask (guestfs_h *g);\n"
24773 "\n"
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../src/guestfs-actions.pod:2303
24778 msgid ""
24779 "Return the current umask.  By default the umask is C<022> unless it has been "
24780 "set by calling C<guestfs_umask>."
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../src/guestfs-actions.pod:2310
24785 msgid "guestfs_get_verbose"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../src/guestfs-actions.pod:2312
24790 #, no-wrap
24791 msgid ""
24792 " int\n"
24793 " guestfs_get_verbose (guestfs_h *g);\n"
24794 "\n"
24795 msgstr ""
24796
24797 #. type: =head2
24798 #: ../src/guestfs-actions.pod:2321
24799 msgid "guestfs_getcon"
24800 msgstr ""
24801
24802 #. type: verbatim
24803 #: ../src/guestfs-actions.pod:2323
24804 #, no-wrap
24805 msgid ""
24806 " char *\n"
24807 " guestfs_getcon (guestfs_h *g);\n"
24808 "\n"
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:2328
24813 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24814 msgstr ""
24815
24816 #. type: =head2
24817 #: ../src/guestfs-actions.pod:2336
24818 msgid "guestfs_getxattr"
24819 msgstr ""
24820
24821 #. type: verbatim
24822 #: ../src/guestfs-actions.pod:2338
24823 #, no-wrap
24824 msgid ""
24825 " char *\n"
24826 " guestfs_getxattr (guestfs_h *g,\n"
24827 "                   const char *path,\n"
24828 "                   const char *name,\n"
24829 "                   size_t *size_r);\n"
24830 "\n"
24831 msgstr ""
24832
24833 #. type: textblock
24834 #: ../src/guestfs-actions.pod:2344
24835 msgid ""
24836 "Get a single extended attribute from file C<path> named C<name>.  This call "
24837 "follows symlinks.  If you want to lookup an extended attribute for the "
24838 "symlink itself, use C<guestfs_lgetxattr>."
24839 msgstr ""
24840
24841 #. type: textblock
24842 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
24843 msgid ""
24844 "Normally it is better to get all extended attributes from a file in one go "
24845 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24846 "implementations are buggy and do not provide a way to list out attributes.  "
24847 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24848 "extended attributes you want in advance and call this function."
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../src/guestfs-actions.pod:2358
24853 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5960
24858 msgid ""
24859 "This function returns a buffer, or NULL on error.  The size of the returned "
24860 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24861 "after use>."
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
24866 msgid "(Added in 1.7.24)"
24867 msgstr ""
24868
24869 #. type: =head2
24870 #: ../src/guestfs-actions.pod:2366
24871 msgid "guestfs_getxattrs"
24872 msgstr ""
24873
24874 #. type: verbatim
24875 #: ../src/guestfs-actions.pod:2368
24876 #, no-wrap
24877 msgid ""
24878 " struct guestfs_xattr_list *\n"
24879 " guestfs_getxattrs (guestfs_h *g,\n"
24880 "                    const char *path);\n"
24881 "\n"
24882 msgstr ""
24883
24884 #. type: textblock
24885 #: ../src/guestfs-actions.pod:2378
24886 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858 ../src/guestfs-actions.pod:4546
24891 msgid ""
24892 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24893 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:8055
24898 msgid "(Added in 1.0.59)"
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../src/guestfs-actions.pod:2386
24903 msgid "guestfs_glob_expand"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../src/guestfs-actions.pod:2388
24908 #, no-wrap
24909 msgid ""
24910 " char **\n"
24911 " guestfs_glob_expand (guestfs_h *g,\n"
24912 "                      const char *pattern);\n"
24913 "\n"
24914 msgstr ""
24915
24916 #. type: textblock
24917 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853 ../src/guestfs-actions.pod:6870
24918 msgid "(Added in 1.0.50)"
24919 msgstr ""
24920
24921 #. type: =head2
24922 #: ../src/guestfs-actions.pod:2409
24923 msgid "guestfs_grep"
24924 msgstr ""
24925
24926 #. type: verbatim
24927 #: ../src/guestfs-actions.pod:2411
24928 #, no-wrap
24929 msgid ""
24930 " char **\n"
24931 " guestfs_grep (guestfs_h *g,\n"
24932 "               const char *regex,\n"
24933 "               const char *path);\n"
24934 "\n"
24935 msgstr ""
24936
24937 #. type: =head2
24938 #: ../src/guestfs-actions.pod:2428
24939 msgid "guestfs_grepi"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../src/guestfs-actions.pod:2430
24944 #, no-wrap
24945 msgid ""
24946 " char **\n"
24947 " guestfs_grepi (guestfs_h *g,\n"
24948 "                const char *regex,\n"
24949 "                const char *path);\n"
24950 "\n"
24951 msgstr ""
24952
24953 #. type: =head2
24954 #: ../src/guestfs-actions.pod:2447
24955 msgid "guestfs_grub_install"
24956 msgstr ""
24957
24958 #. type: verbatim
24959 #: ../src/guestfs-actions.pod:2449
24960 #, no-wrap
24961 msgid ""
24962 " int\n"
24963 " guestfs_grub_install (guestfs_h *g,\n"
24964 "                       const char *root,\n"
24965 "                       const char *device);\n"
24966 "\n"
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../src/guestfs-actions.pod:2492
24971 msgid "(Added in 1.0.17)"
24972 msgstr ""
24973
24974 #. type: =head2
24975 #: ../src/guestfs-actions.pod:2494
24976 msgid "guestfs_head"
24977 msgstr ""
24978
24979 #. type: verbatim
24980 #: ../src/guestfs-actions.pod:2496
24981 #, no-wrap
24982 msgid ""
24983 " char **\n"
24984 " guestfs_head (guestfs_h *g,\n"
24985 "               const char *path);\n"
24986 "\n"
24987 msgstr ""
24988
24989 #. type: =head2
24990 #: ../src/guestfs-actions.pod:2512
24991 msgid "guestfs_head_n"
24992 msgstr ""
24993
24994 #. type: verbatim
24995 #: ../src/guestfs-actions.pod:2514
24996 #, no-wrap
24997 msgid ""
24998 " char **\n"
24999 " guestfs_head_n (guestfs_h *g,\n"
25000 "                 int nrlines,\n"
25001 "                 const char *path);\n"
25002 "\n"
25003 msgstr ""
25004
25005 #. type: =head2
25006 #: ../src/guestfs-actions.pod:2536
25007 msgid "guestfs_hexdump"
25008 msgstr ""
25009
25010 #. type: verbatim
25011 #: ../src/guestfs-actions.pod:2538
25012 #, no-wrap
25013 msgid ""
25014 " char *\n"
25015 " guestfs_hexdump (guestfs_h *g,\n"
25016 "                  const char *path);\n"
25017 "\n"
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934 ../src/guestfs-actions.pod:6989
25022 msgid "(Added in 1.0.22)"
25023 msgstr ""
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:2553
25027 msgid "guestfs_initrd_cat"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:2555
25032 #, no-wrap
25033 msgid ""
25034 " char *\n"
25035 " guestfs_initrd_cat (guestfs_h *g,\n"
25036 "                     const char *initrdpath,\n"
25037 "                     const char *filename,\n"
25038 "                     size_t *size_r);\n"
25039 "\n"
25040 msgstr ""
25041
25042 #. type: textblock
25043 #: ../src/guestfs-actions.pod:2571
25044 msgid "See also C<guestfs_initrd_list>."
25045 msgstr ""
25046
25047 #. type: =head2
25048 #: ../src/guestfs-actions.pod:2582
25049 msgid "guestfs_initrd_list"
25050 msgstr ""
25051
25052 #. type: verbatim
25053 #: ../src/guestfs-actions.pod:2584
25054 #, no-wrap
25055 msgid ""
25056 " char **\n"
25057 " guestfs_initrd_list (guestfs_h *g,\n"
25058 "                      const char *path);\n"
25059 "\n"
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../src/guestfs-actions.pod:2604
25064 msgid "guestfs_inotify_add_watch"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../src/guestfs-actions.pod:2606
25069 #, no-wrap
25070 msgid ""
25071 " int64_t\n"
25072 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25073 "                            const char *path,\n"
25074 "                            int mask);\n"
25075 "\n"
25076 msgstr ""
25077
25078 #. type: =head2
25079 #: ../src/guestfs-actions.pod:2625
25080 msgid "guestfs_inotify_close"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../src/guestfs-actions.pod:2627
25085 #, no-wrap
25086 msgid ""
25087 " int\n"
25088 " guestfs_inotify_close (guestfs_h *g);\n"
25089 "\n"
25090 msgstr ""
25091
25092 #. type: =head2
25093 #: ../src/guestfs-actions.pod:2638
25094 msgid "guestfs_inotify_files"
25095 msgstr ""
25096
25097 #. type: verbatim
25098 #: ../src/guestfs-actions.pod:2640
25099 #, no-wrap
25100 msgid ""
25101 " char **\n"
25102 " guestfs_inotify_files (guestfs_h *g);\n"
25103 "\n"
25104 msgstr ""
25105
25106 #. type: textblock
25107 #: ../src/guestfs-actions.pod:2643
25108 msgid ""
25109 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25110 "returns a list of pathnames of objects that were touched.  The returned "
25111 "pathnames are sorted and deduplicated."
25112 msgstr ""
25113
25114 #. type: =head2
25115 #: ../src/guestfs-actions.pod:2653
25116 msgid "guestfs_inotify_init"
25117 msgstr ""
25118
25119 #. type: verbatim
25120 #: ../src/guestfs-actions.pod:2655
25121 #, no-wrap
25122 msgid ""
25123 " int\n"
25124 " guestfs_inotify_init (guestfs_h *g,\n"
25125 "                       int maxevents);\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../src/guestfs-actions.pod:2663
25131 msgid ""
25132 "C<maxevents> is the maximum number of events which will be queued up between "
25133 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25134 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25135 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25136 "throws away events, but records the fact that it threw them away by setting "
25137 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25138 "C<guestfs_inotify_read>)."
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../src/guestfs-actions.pod:2673
25143 msgid ""
25144 "Before any events are generated, you have to add some watches to the "
25145 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25146 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25147 msgstr ""
25148
25149 #. type: textblock
25150 #: ../src/guestfs-actions.pod:2679
25151 msgid ""
25152 "Queued up events should be read periodically by calling "
25153 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25154 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25155 "often enough then you risk the internal queue overflowing."
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../src/guestfs-actions.pod:2686
25160 msgid ""
25161 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25162 "This also removes any watches automatically."
25163 msgstr ""
25164
25165 #. type: =head2
25166 #: ../src/guestfs-actions.pod:2699
25167 msgid "guestfs_inotify_read"
25168 msgstr ""
25169
25170 #. type: verbatim
25171 #: ../src/guestfs-actions.pod:2701
25172 #, no-wrap
25173 msgid ""
25174 " struct guestfs_inotify_event_list *\n"
25175 " guestfs_inotify_read (guestfs_h *g);\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../src/guestfs-actions.pod:2715
25181 msgid ""
25182 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25183 "there was an error.  I<The caller must call "
25184 "C<guestfs_free_inotify_event_list> after use>."
25185 msgstr ""
25186
25187 #. type: =head2
25188 #: ../src/guestfs-actions.pod:2721
25189 msgid "guestfs_inotify_rm_watch"
25190 msgstr ""
25191
25192 #. type: verbatim
25193 #: ../src/guestfs-actions.pod:2723
25194 #, no-wrap
25195 msgid ""
25196 " int\n"
25197 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25198 "                           int wd);\n"
25199 "\n"
25200 msgstr ""
25201
25202 #. type: textblock
25203 #: ../src/guestfs-actions.pod:2727
25204 msgid ""
25205 "Remove a previously defined inotify watch.  See "
25206 "C<guestfs_inotify_add_watch>."
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../src/guestfs-actions.pod:2734
25211 msgid "guestfs_inspect_get_arch"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../src/guestfs-actions.pod:2736
25216 #, no-wrap
25217 msgid ""
25218 " char *\n"
25219 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25220 "                           const char *root);\n"
25221 "\n"
25222 msgstr ""
25223
25224 #. type: textblock
25225 #: ../src/guestfs-actions.pod:2740
25226 msgid ""
25227 "This returns the architecture of the inspected operating system.  The "
25228 "possible return values are listed under C<guestfs_file_architecture>."
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../src/guestfs-actions.pod:2754
25233 msgid "guestfs_inspect_get_distro"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../src/guestfs-actions.pod:2756
25238 #, no-wrap
25239 msgid ""
25240 " char *\n"
25241 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25242 "                             const char *root);\n"
25243 "\n"
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../src/guestfs-actions.pod:2848
25248 msgid "guestfs_inspect_get_drive_mappings"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../src/guestfs-actions.pod:2850
25253 #, no-wrap
25254 msgid ""
25255 " char **\n"
25256 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25257 "                                     const char *root);\n"
25258 "\n"
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../src/guestfs-actions.pod:2879
25263 msgid ""
25264 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25265 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25266 msgstr ""
25267
25268 #. type: textblock
25269 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:7291
25270 msgid ""
25271 "This function returns a NULL-terminated array of strings, or NULL if there "
25272 "was an error.  The array of strings will always have length C<2n+1>, where "
25273 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25274 "caller must free the strings and the array after use>."
25275 msgstr ""
25276
25277 #. type: textblock
25278 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
25279 msgid "(Added in 1.9.17)"
25280 msgstr ""
25281
25282 #. type: =head2
25283 #: ../src/guestfs-actions.pod:2891
25284 msgid "guestfs_inspect_get_filesystems"
25285 msgstr ""
25286
25287 #. type: verbatim
25288 #: ../src/guestfs-actions.pod:2893
25289 #, no-wrap
25290 msgid ""
25291 " char **\n"
25292 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25293 "                                  const char *root);\n"
25294 "\n"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../src/guestfs-actions.pod:2905
25299 msgid ""
25300 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25301 "C<guestfs_inspect_get_mountpoints>."
25302 msgstr ""
25303
25304 #. type: =head2
25305 #: ../src/guestfs-actions.pod:2914
25306 msgid "guestfs_inspect_get_format"
25307 msgstr ""
25308
25309 #. type: verbatim
25310 #: ../src/guestfs-actions.pod:2916
25311 #, no-wrap
25312 msgid ""
25313 " char *\n"
25314 " guestfs_inspect_get_format (guestfs_h *g,\n"
25315 "                             const char *root);\n"
25316 "\n"
25317 msgstr ""
25318
25319 #. type: textblock
25320 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:6171
25321 msgid "(Added in 1.9.4)"
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../src/guestfs-actions.pod:2952
25326 msgid "guestfs_inspect_get_hostname"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../src/guestfs-actions.pod:2954
25331 #, no-wrap
25332 msgid ""
25333 " char *\n"
25334 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25335 "                               const char *root);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:2969
25341 msgid "(Added in 1.7.9)"
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../src/guestfs-actions.pod:2971
25346 msgid "guestfs_inspect_get_icon"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../src/guestfs-actions.pod:2973
25351 #, no-wrap
25352 msgid ""
25353 " char *\n"
25354 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25355 "                           const char *root,\n"
25356 "                           size_t *size_r,\n"
25357 "                           ...);\n"
25358 "\n"
25359 msgstr ""
25360
25361 #. type: verbatim
25362 #: ../src/guestfs-actions.pod:2984
25363 #, no-wrap
25364 msgid ""
25365 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25366 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25367 "\n"
25368 msgstr ""
25369
25370 #. type: textblock
25371 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:5120
25372 msgid "(Added in 1.11.12)"
25373 msgstr ""
25374
25375 #. type: =head2
25376 #: ../src/guestfs-actions.pod:3053
25377 msgid "guestfs_inspect_get_icon_va"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../src/guestfs-actions.pod:3055
25382 #, no-wrap
25383 msgid ""
25384 " char *\n"
25385 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25386 "                              const char *root,\n"
25387 "                              size_t *size_r,\n"
25388 "                              va_list args);\n"
25389 "\n"
25390 msgstr ""
25391
25392 #. type: textblock
25393 #: ../src/guestfs-actions.pod:3061
25394 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25395 msgstr ""
25396
25397 #. type: =head2
25398 #: ../src/guestfs-actions.pod:3065
25399 msgid "guestfs_inspect_get_icon_argv"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../src/guestfs-actions.pod:3067
25404 #, no-wrap
25405 msgid ""
25406 " char *\n"
25407 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25408 "                                const char *root,\n"
25409 "                                size_t *size_r,\n"
25410 "                                const struct guestfs_inspect_get_icon_argv "
25411 "*optargs);\n"
25412 "\n"
25413 msgstr ""
25414
25415 #. type: textblock
25416 #: ../src/guestfs-actions.pod:3073
25417 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25418 msgstr ""
25419
25420 #. type: =head2
25421 #: ../src/guestfs-actions.pod:3077
25422 msgid "guestfs_inspect_get_major_version"
25423 msgstr ""
25424
25425 #. type: verbatim
25426 #: ../src/guestfs-actions.pod:3079
25427 #, no-wrap
25428 msgid ""
25429 " int\n"
25430 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25431 "                                    const char *root);\n"
25432 "\n"
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:3101
25437 msgid "guestfs_inspect_get_minor_version"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:3103
25442 #, no-wrap
25443 msgid ""
25444 " int\n"
25445 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25446 "                                    const char *root);\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../src/guestfs-actions.pod:3112
25452 msgid ""
25453 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25454 "C<guestfs_inspect_get_major_version>."
25455 msgstr ""
25456
25457 #. type: =head2
25458 #: ../src/guestfs-actions.pod:3119
25459 msgid "guestfs_inspect_get_mountpoints"
25460 msgstr ""
25461
25462 #. type: verbatim
25463 #: ../src/guestfs-actions.pod:3121
25464 #, no-wrap
25465 msgid ""
25466 " char **\n"
25467 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25468 "                                  const char *root);\n"
25469 "\n"
25470 msgstr ""
25471
25472 #. type: textblock
25473 #: ../src/guestfs-actions.pod:3142
25474 msgid ""
25475 "For operating systems like Windows which still use drive letters, this call "
25476 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25477 "information about the mapping of drive letters to partitions, see "
25478 "C<guestfs_inspect_get_drive_mappings>."
25479 msgstr ""
25480
25481 #. type: textblock
25482 #: ../src/guestfs-actions.pod:3148
25483 msgid ""
25484 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25485 "C<guestfs_inspect_get_filesystems>."
25486 msgstr ""
25487
25488 #. type: =head2
25489 #: ../src/guestfs-actions.pod:3159
25490 msgid "guestfs_inspect_get_package_format"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../src/guestfs-actions.pod:3161
25495 #, no-wrap
25496 msgid ""
25497 " char *\n"
25498 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25499 "                                     const char *root);\n"
25500 "\n"
25501 msgstr ""
25502
25503 #. type: textblock
25504 #: ../src/guestfs-actions.pod:3165
25505 msgid ""
25506 "This function and C<guestfs_inspect_get_package_management> return the "
25507 "package format and package management tool used by the inspected operating "
25508 "system.  For example for Fedora these functions would return C<rpm> (package "
25509 "format) and C<yum> (package management)."
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
25514 msgid "(Added in 1.7.5)"
25515 msgstr ""
25516
25517 #. type: =head2
25518 #: ../src/guestfs-actions.pod:3185
25519 msgid "guestfs_inspect_get_package_management"
25520 msgstr ""
25521
25522 #. type: verbatim
25523 #: ../src/guestfs-actions.pod:3187
25524 #, no-wrap
25525 msgid ""
25526 " char *\n"
25527 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25528 "                                         const char *root);\n"
25529 "\n"
25530 msgstr ""
25531
25532 #. type: textblock
25533 #: ../src/guestfs-actions.pod:3191
25534 msgid ""
25535 "C<guestfs_inspect_get_package_format> and this function return the package "
25536 "format and package management tool used by the inspected operating system.  "
25537 "For example for Fedora these functions would return C<rpm> (package format) "
25538 "and C<yum> (package management)."
25539 msgstr ""
25540
25541 #. type: =head2
25542 #: ../src/guestfs-actions.pod:3213
25543 msgid "guestfs_inspect_get_product_name"
25544 msgstr ""
25545
25546 #. type: verbatim
25547 #: ../src/guestfs-actions.pod:3215
25548 #, no-wrap
25549 msgid ""
25550 " char *\n"
25551 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25552 "                                   const char *root);\n"
25553 "\n"
25554 msgstr ""
25555
25556 #. type: =head2
25557 #: ../src/guestfs-actions.pod:3234
25558 msgid "guestfs_inspect_get_product_variant"
25559 msgstr ""
25560
25561 #. type: verbatim
25562 #: ../src/guestfs-actions.pod:3236
25563 #, no-wrap
25564 msgid ""
25565 " char *\n"
25566 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25567 "                                      const char *root);\n"
25568 "\n"
25569 msgstr ""
25570
25571 #. type: textblock
25572 #: ../src/guestfs-actions.pod:3259
25573 msgid ""
25574 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25575 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25576 msgstr ""
25577
25578 #. type: textblock
25579 #: ../src/guestfs-actions.pod:3266
25580 msgid "(Added in 1.9.13)"
25581 msgstr ""
25582
25583 #. type: =head2
25584 #: ../src/guestfs-actions.pod:3268
25585 msgid "guestfs_inspect_get_roots"
25586 msgstr ""
25587
25588 #. type: verbatim
25589 #: ../src/guestfs-actions.pod:3270
25590 #, no-wrap
25591 msgid ""
25592 " char **\n"
25593 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25594 "\n"
25595 msgstr ""
25596
25597 #. type: textblock
25598 #: ../src/guestfs-actions.pod:3273
25599 msgid ""
25600 "This function is a convenient way to get the list of root devices, as "
25601 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25602 "the whole inspection process."
25603 msgstr ""
25604
25605 #. type: textblock
25606 #: ../src/guestfs-actions.pod:3277
25607 msgid ""
25608 "This returns an empty list if either no root devices were found or the "
25609 "caller has not called C<guestfs_inspect_os>."
25610 msgstr ""
25611
25612 #. type: textblock
25613 #: ../src/guestfs-actions.pod:3286
25614 msgid "(Added in 1.7.3)"
25615 msgstr ""
25616
25617 #. type: =head2
25618 #: ../src/guestfs-actions.pod:3288
25619 msgid "guestfs_inspect_get_type"
25620 msgstr ""
25621
25622 #. type: verbatim
25623 #: ../src/guestfs-actions.pod:3290
25624 #, no-wrap
25625 msgid ""
25626 " char *\n"
25627 " guestfs_inspect_get_type (guestfs_h *g,\n"
25628 "                           const char *root);\n"
25629 "\n"
25630 msgstr ""
25631
25632 #. type: =head2
25633 #: ../src/guestfs-actions.pod:3327
25634 msgid "guestfs_inspect_get_windows_current_control_set"
25635 msgstr ""
25636
25637 #. type: verbatim
25638 #: ../src/guestfs-actions.pod:3329
25639 #, no-wrap
25640 msgid ""
25641 " char *\n"
25642 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25643 "                                                  const char *root);\n"
25644 "\n"
25645 msgstr ""
25646
25647 #. type: =head2
25648 #: ../src/guestfs-actions.pod:3347
25649 msgid "guestfs_inspect_get_windows_systemroot"
25650 msgstr ""
25651
25652 #. type: verbatim
25653 #: ../src/guestfs-actions.pod:3349
25654 #, no-wrap
25655 msgid ""
25656 " char *\n"
25657 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25658 "                                         const char *root);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:3365
25664 msgid "(Added in 1.5.25)"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:3367
25669 msgid "guestfs_inspect_is_live"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:3369
25674 #, no-wrap
25675 msgid ""
25676 " int\n"
25677 " guestfs_inspect_is_live (guestfs_h *g,\n"
25678 "                          const char *root);\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../src/guestfs-actions.pod:3373
25684 msgid ""
25685 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25686 "disk), then this returns true if a live image was detected on the disk."
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:3383
25691 msgid "guestfs_inspect_is_multipart"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:3385
25696 #, no-wrap
25697 msgid ""
25698 " int\n"
25699 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25700 "                               const char *root);\n"
25701 "\n"
25702 msgstr ""
25703
25704 #. type: textblock
25705 #: ../src/guestfs-actions.pod:3389
25706 msgid ""
25707 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25708 "disk), then this returns true if the disk is part of a set."
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:3399
25713 msgid "guestfs_inspect_is_netinst"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:3401
25718 #, no-wrap
25719 msgid ""
25720 " int\n"
25721 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25722 "                             const char *root);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:3405
25728 msgid ""
25729 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25730 "disk), then this returns true if the disk is a network installer, ie. not a "
25731 "self-contained install CD but one which is likely to require network access "
25732 "to complete the install."
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../src/guestfs-actions.pod:3417
25737 msgid "guestfs_inspect_list_applications"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../src/guestfs-actions.pod:3419
25742 #, no-wrap
25743 msgid ""
25744 " struct guestfs_application_list *\n"
25745 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25746 "                                    const char *root);\n"
25747 "\n"
25748 msgstr ""
25749
25750 #. type: textblock
25751 #: ../src/guestfs-actions.pod:3425
25752 msgid ""
25753 "I<Note:> This call works differently from other parts of the inspection "
25754 "API.  You have to call C<guestfs_inspect_os>, then "
25755 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25756 "this.  Listing applications is a significantly more difficult operation "
25757 "which requires access to the full filesystem.  Also note that unlike the "
25758 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25759 "the libguestfs handle, this call actually reads parts of the mounted "
25760 "filesystems during the call."
25761 msgstr ""
25762
25763 #. type: textblock
25764 #: ../src/guestfs-actions.pod:3515
25765 msgid ""
25766 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25767 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25768 "after use>."
25769 msgstr ""
25770
25771 #. type: textblock
25772 #: ../src/guestfs-actions.pod:3519
25773 msgid "(Added in 1.7.8)"
25774 msgstr ""
25775
25776 #. type: =head2
25777 #: ../src/guestfs-actions.pod:3521
25778 msgid "guestfs_inspect_os"
25779 msgstr ""
25780
25781 #. type: verbatim
25782 #: ../src/guestfs-actions.pod:3523
25783 #, no-wrap
25784 msgid ""
25785 " char **\n"
25786 " guestfs_inspect_os (guestfs_h *g);\n"
25787 "\n"
25788 msgstr ""
25789
25790 #. type: textblock
25791 #: ../src/guestfs-actions.pod:3539
25792 msgid ""
25793 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25794 "functions in order to query further information about each operating system, "
25795 "such as the name and version."
25796 msgstr ""
25797
25798 #. type: textblock
25799 #: ../src/guestfs-actions.pod:3544
25800 msgid ""
25801 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25802 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25803 "the contents.  This should be called with no disks currently mounted.  The "
25804 "function may also use Augeas, so any existing Augeas handle will be closed."
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3969
25809 msgid "See also C<guestfs_list_filesystems>."
25810 msgstr ""
25811
25812 #. type: =head2
25813 #: ../src/guestfs-actions.pod:3564
25814 msgid "guestfs_is_blockdev"
25815 msgstr ""
25816
25817 #. type: verbatim
25818 #: ../src/guestfs-actions.pod:3566
25819 #, no-wrap
25820 msgid ""
25821 " int\n"
25822 " guestfs_is_blockdev (guestfs_h *g,\n"
25823 "                      const char *path);\n"
25824 "\n"
25825 msgstr ""
25826
25827 #. type: textblock
25828 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3734
25829 msgid "See also C<guestfs_stat>."
25830 msgstr ""
25831
25832 #. type: textblock
25833 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:3738
25834 msgid "(Added in 1.5.10)"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:3579
25839 msgid "guestfs_is_busy"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:3581
25844 #, no-wrap
25845 msgid ""
25846 " int\n"
25847 " guestfs_is_busy (guestfs_h *g);\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: =head2
25852 #: ../src/guestfs-actions.pod:3593
25853 msgid "guestfs_is_chardev"
25854 msgstr ""
25855
25856 #. type: verbatim
25857 #: ../src/guestfs-actions.pod:3595
25858 #, no-wrap
25859 msgid ""
25860 " int\n"
25861 " guestfs_is_chardev (guestfs_h *g,\n"
25862 "                     const char *path);\n"
25863 "\n"
25864 msgstr ""
25865
25866 #. type: =head2
25867 #: ../src/guestfs-actions.pod:3608
25868 msgid "guestfs_is_config"
25869 msgstr ""
25870
25871 #. type: verbatim
25872 #: ../src/guestfs-actions.pod:3610
25873 #, no-wrap
25874 msgid ""
25875 " int\n"
25876 " guestfs_is_config (guestfs_h *g);\n"
25877 "\n"
25878 msgstr ""
25879
25880 #. type: =head2
25881 #: ../src/guestfs-actions.pod:3622
25882 msgid "guestfs_is_dir"
25883 msgstr ""
25884
25885 #. type: verbatim
25886 #: ../src/guestfs-actions.pod:3624
25887 #, no-wrap
25888 msgid ""
25889 " int\n"
25890 " guestfs_is_dir (guestfs_h *g,\n"
25891 "                 const char *path);\n"
25892 "\n"
25893 msgstr ""
25894
25895 #. type: =head2
25896 #: ../src/guestfs-actions.pod:3638
25897 msgid "guestfs_is_fifo"
25898 msgstr ""
25899
25900 #. type: verbatim
25901 #: ../src/guestfs-actions.pod:3640
25902 #, no-wrap
25903 msgid ""
25904 " int\n"
25905 " guestfs_is_fifo (guestfs_h *g,\n"
25906 "                  const char *path);\n"
25907 "\n"
25908 msgstr ""
25909
25910 #. type: =head2
25911 #: ../src/guestfs-actions.pod:3653
25912 msgid "guestfs_is_file"
25913 msgstr ""
25914
25915 #. type: verbatim
25916 #: ../src/guestfs-actions.pod:3655
25917 #, no-wrap
25918 msgid ""
25919 " int\n"
25920 " guestfs_is_file (guestfs_h *g,\n"
25921 "                  const char *path);\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:3669
25927 msgid "guestfs_is_launching"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:3671
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_is_launching (guestfs_h *g);\n"
25936 "\n"
25937 msgstr ""
25938
25939 #. type: =head2
25940 #: ../src/guestfs-actions.pod:3683
25941 msgid "guestfs_is_lv"
25942 msgstr ""
25943
25944 #. type: verbatim
25945 #: ../src/guestfs-actions.pod:3685
25946 #, no-wrap
25947 msgid ""
25948 " int\n"
25949 " guestfs_is_lv (guestfs_h *g,\n"
25950 "                const char *device);\n"
25951 "\n"
25952 msgstr ""
25953
25954 #. type: =head2
25955 #: ../src/guestfs-actions.pod:3696
25956 msgid "guestfs_is_ready"
25957 msgstr ""
25958
25959 #. type: verbatim
25960 #: ../src/guestfs-actions.pod:3698
25961 #, no-wrap
25962 msgid ""
25963 " int\n"
25964 " guestfs_is_ready (guestfs_h *g);\n"
25965 "\n"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:3710
25970 msgid "guestfs_is_socket"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:3712
25975 #, no-wrap
25976 msgid ""
25977 " int\n"
25978 " guestfs_is_socket (guestfs_h *g,\n"
25979 "                    const char *path);\n"
25980 "\n"
25981 msgstr ""
25982
25983 #. type: =head2
25984 #: ../src/guestfs-actions.pod:3725
25985 msgid "guestfs_is_symlink"
25986 msgstr ""
25987
25988 #. type: verbatim
25989 #: ../src/guestfs-actions.pod:3727
25990 #, no-wrap
25991 msgid ""
25992 " int\n"
25993 " guestfs_is_symlink (guestfs_h *g,\n"
25994 "                     const char *path);\n"
25995 "\n"
25996 msgstr ""
25997
25998 #. type: =head2
25999 #: ../src/guestfs-actions.pod:3740
26000 msgid "guestfs_is_zero"
26001 msgstr ""
26002
26003 #. type: verbatim
26004 #: ../src/guestfs-actions.pod:3742
26005 #, no-wrap
26006 msgid ""
26007 " int\n"
26008 " guestfs_is_zero (guestfs_h *g,\n"
26009 "                  const char *path);\n"
26010 "\n"
26011 msgstr ""
26012
26013 #. type: textblock
26014 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
26015 msgid "(Added in 1.11.8)"
26016 msgstr ""
26017
26018 #. type: =head2
26019 #: ../src/guestfs-actions.pod:3753
26020 msgid "guestfs_is_zero_device"
26021 msgstr ""
26022
26023 #. type: verbatim
26024 #: ../src/guestfs-actions.pod:3755
26025 #, no-wrap
26026 msgid ""
26027 " int\n"
26028 " guestfs_is_zero_device (guestfs_h *g,\n"
26029 "                         const char *device);\n"
26030 "\n"
26031 msgstr ""
26032
26033 #. type: =head2
26034 #: ../src/guestfs-actions.pod:3767
26035 msgid "guestfs_kill_subprocess"
26036 msgstr ""
26037
26038 #. type: verbatim
26039 #: ../src/guestfs-actions.pod:3769
26040 #, no-wrap
26041 msgid ""
26042 " int\n"
26043 " guestfs_kill_subprocess (guestfs_h *g);\n"
26044 "\n"
26045 msgstr ""
26046
26047 #. type: =head2
26048 #: ../src/guestfs-actions.pod:3778
26049 msgid "guestfs_launch"
26050 msgstr ""
26051
26052 #. type: verbatim
26053 #: ../src/guestfs-actions.pod:3780
26054 #, no-wrap
26055 msgid ""
26056 " int\n"
26057 " guestfs_launch (guestfs_h *g);\n"
26058 "\n"
26059 msgstr ""
26060
26061 #. type: =head2
26062 #: ../src/guestfs-actions.pod:3798
26063 msgid "guestfs_lchown"
26064 msgstr ""
26065
26066 #. type: verbatim
26067 #: ../src/guestfs-actions.pod:3800
26068 #, no-wrap
26069 msgid ""
26070 " int\n"
26071 " guestfs_lchown (guestfs_h *g,\n"
26072 "                 int owner,\n"
26073 "                 int group,\n"
26074 "                 const char *path);\n"
26075 "\n"
26076 msgstr ""
26077
26078 #. type: textblock
26079 #: ../src/guestfs-actions.pod:3806
26080 msgid ""
26081 "Change the file owner to C<owner> and group to C<group>.  This is like "
26082 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26083 "changed, not the target."
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:3818
26088 msgid "guestfs_lgetxattr"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:3820
26093 #, no-wrap
26094 msgid ""
26095 " char *\n"
26096 " guestfs_lgetxattr (guestfs_h *g,\n"
26097 "                    const char *path,\n"
26098 "                    const char *name,\n"
26099 "                    size_t *size_r);\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../src/guestfs-actions.pod:3840
26105 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26106 msgstr ""
26107
26108 #. type: =head2
26109 #: ../src/guestfs-actions.pod:3848
26110 msgid "guestfs_lgetxattrs"
26111 msgstr ""
26112
26113 #. type: verbatim
26114 #: ../src/guestfs-actions.pod:3850
26115 #, no-wrap
26116 msgid ""
26117 " struct guestfs_xattr_list *\n"
26118 " guestfs_lgetxattrs (guestfs_h *g,\n"
26119 "                     const char *path);\n"
26120 "\n"
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:3854
26125 msgid ""
26126 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26127 "then it returns the extended attributes of the link itself."
26128 msgstr ""
26129
26130 #. type: =head2
26131 #: ../src/guestfs-actions.pod:3864
26132 msgid "guestfs_list_9p"
26133 msgstr ""
26134
26135 #. type: verbatim
26136 #: ../src/guestfs-actions.pod:3866
26137 #, no-wrap
26138 msgid ""
26139 " char **\n"
26140 " guestfs_list_9p (guestfs_h *g);\n"
26141 "\n"
26142 msgstr ""
26143
26144 #. type: =head2
26145 #: ../src/guestfs-actions.pod:3878
26146 msgid "guestfs_list_devices"
26147 msgstr ""
26148
26149 #. type: verbatim
26150 #: ../src/guestfs-actions.pod:3880
26151 #, no-wrap
26152 msgid ""
26153 " char **\n"
26154 " guestfs_list_devices (guestfs_h *g);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../src/guestfs-actions.pod:3895
26160 msgid "guestfs_list_dm_devices"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../src/guestfs-actions.pod:3897
26165 #, no-wrap
26166 msgid ""
26167 " char **\n"
26168 " guestfs_list_dm_devices (guestfs_h *g);\n"
26169 "\n"
26170 msgstr ""
26171
26172 #. type: textblock
26173 #: ../src/guestfs-actions.pod:3902
26174 msgid ""
26175 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26176 "previous call to C<guestfs_luks_open>."
26177 msgstr ""
26178
26179 #. type: textblock
26180 #: ../src/guestfs-actions.pod:3905
26181 msgid ""
26182 "Device mapper devices which correspond to logical volumes are I<not> "
26183 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26184 "volumes."
26185 msgstr ""
26186
26187 #. type: textblock
26188 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
26189 msgid "(Added in 1.11.15)"
26190 msgstr ""
26191
26192 #. type: =head2
26193 #: ../src/guestfs-actions.pod:3915
26194 msgid "guestfs_list_filesystems"
26195 msgstr ""
26196
26197 #. type: verbatim
26198 #: ../src/guestfs-actions.pod:3917
26199 #, no-wrap
26200 msgid ""
26201 " char **\n"
26202 " guestfs_list_filesystems (guestfs_h *g);\n"
26203 "\n"
26204 msgstr ""
26205
26206 #. type: textblock
26207 #: ../src/guestfs-actions.pod:3937
26208 msgid ""
26209 "This command runs other libguestfs commands, which might include "
26210 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26211 "soon after launch and only when nothing is mounted."
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../src/guestfs-actions.pod:3941
26216 msgid ""
26217 "Not all of the filesystems returned will be mountable.  In particular, swap "
26218 "partitions are returned in the list.  Also this command does not check that "
26219 "each filesystem found is valid and mountable, and some filesystems might be "
26220 "mountable but require special options.  Filesystems may not all belong to a "
26221 "single logical operating system (use C<guestfs_inspect_os> to look for "
26222 "OSes)."
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
26227 msgid "(Added in 1.5.15)"
26228 msgstr ""
26229
26230 #. type: =head2
26231 #: ../src/guestfs-actions.pod:3957
26232 msgid "guestfs_list_partitions"
26233 msgstr ""
26234
26235 #. type: verbatim
26236 #: ../src/guestfs-actions.pod:3959
26237 #, no-wrap
26238 msgid ""
26239 " char **\n"
26240 " guestfs_list_partitions (guestfs_h *g);\n"
26241 "\n"
26242 msgstr ""
26243
26244 #. type: textblock
26245 #: ../src/guestfs-actions.pod:3966
26246 msgid ""
26247 "This does not return logical volumes.  For that you will need to call "
26248 "C<guestfs_lvs>."
26249 msgstr ""
26250
26251 #. type: =head2
26252 #: ../src/guestfs-actions.pod:3977
26253 msgid "guestfs_ll"
26254 msgstr ""
26255
26256 #. type: verbatim
26257 #: ../src/guestfs-actions.pod:3979
26258 #, no-wrap
26259 msgid ""
26260 " char *\n"
26261 " guestfs_ll (guestfs_h *g,\n"
26262 "             const char *directory);\n"
26263 "\n"
26264 msgstr ""
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:3994
26268 msgid "guestfs_ln"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:3996
26273 #, no-wrap
26274 msgid ""
26275 " int\n"
26276 " guestfs_ln (guestfs_h *g,\n"
26277 "             const char *target,\n"
26278 "             const char *linkname);\n"
26279 "\n"
26280 msgstr ""
26281
26282 #. type: =head2
26283 #: ../src/guestfs-actions.pod:4007
26284 msgid "guestfs_ln_f"
26285 msgstr ""
26286
26287 #. type: verbatim
26288 #: ../src/guestfs-actions.pod:4009
26289 #, no-wrap
26290 msgid ""
26291 " int\n"
26292 " guestfs_ln_f (guestfs_h *g,\n"
26293 "               const char *target,\n"
26294 "               const char *linkname);\n"
26295 "\n"
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:4021
26300 msgid "guestfs_ln_s"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:4023
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_ln_s (guestfs_h *g,\n"
26309 "               const char *target,\n"
26310 "               const char *linkname);\n"
26311 "\n"
26312 msgstr ""
26313
26314 #. type: =head2
26315 #: ../src/guestfs-actions.pod:4034
26316 msgid "guestfs_ln_sf"
26317 msgstr ""
26318
26319 #. type: verbatim
26320 #: ../src/guestfs-actions.pod:4036
26321 #, no-wrap
26322 msgid ""
26323 " int\n"
26324 " guestfs_ln_sf (guestfs_h *g,\n"
26325 "                const char *target,\n"
26326 "                const char *linkname);\n"
26327 "\n"
26328 msgstr ""
26329
26330 #. type: =head2
26331 #: ../src/guestfs-actions.pod:4048
26332 msgid "guestfs_lremovexattr"
26333 msgstr ""
26334
26335 #. type: verbatim
26336 #: ../src/guestfs-actions.pod:4050
26337 #, no-wrap
26338 msgid ""
26339 " int\n"
26340 " guestfs_lremovexattr (guestfs_h *g,\n"
26341 "                       const char *xattr,\n"
26342 "                       const char *path);\n"
26343 "\n"
26344 msgstr ""
26345
26346 #. type: textblock
26347 #: ../src/guestfs-actions.pod:4055
26348 msgid ""
26349 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26350 "link, then it removes an extended attribute of the link itself."
26351 msgstr ""
26352
26353 #. type: =head2
26354 #: ../src/guestfs-actions.pod:4063
26355 msgid "guestfs_ls"
26356 msgstr ""
26357
26358 #. type: verbatim
26359 #: ../src/guestfs-actions.pod:4065
26360 #, no-wrap
26361 msgid ""
26362 " char **\n"
26363 " guestfs_ls (guestfs_h *g,\n"
26364 "             const char *directory);\n"
26365 "\n"
26366 msgstr ""
26367
26368 #. type: textblock
26369 #: ../src/guestfs-actions.pod:4073
26370 msgid ""
26371 "This command is mostly useful for interactive sessions.  Programs should "
26372 "probably use C<guestfs_readdir> instead."
26373 msgstr ""
26374
26375 #. type: =head2
26376 #: ../src/guestfs-actions.pod:4082
26377 msgid "guestfs_lsetxattr"
26378 msgstr ""
26379
26380 #. type: verbatim
26381 #: ../src/guestfs-actions.pod:4084
26382 #, no-wrap
26383 msgid ""
26384 " int\n"
26385 " guestfs_lsetxattr (guestfs_h *g,\n"
26386 "                    const char *xattr,\n"
26387 "                    const char *val,\n"
26388 "                    int vallen,\n"
26389 "                    const char *path);\n"
26390 "\n"
26391 msgstr ""
26392
26393 #. type: textblock
26394 #: ../src/guestfs-actions.pod:4091
26395 msgid ""
26396 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26397 "then it sets an extended attribute of the link itself."
26398 msgstr ""
26399
26400 #. type: =head2
26401 #: ../src/guestfs-actions.pod:4099
26402 msgid "guestfs_lstat"
26403 msgstr ""
26404
26405 #. type: verbatim
26406 #: ../src/guestfs-actions.pod:4101
26407 #, no-wrap
26408 msgid ""
26409 " struct guestfs_stat *\n"
26410 " guestfs_lstat (guestfs_h *g,\n"
26411 "                const char *path);\n"
26412 "\n"
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../src/guestfs-actions.pod:4107
26417 msgid ""
26418 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26419 "link, then the link is stat-ed, not the file it refers to."
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
26424 msgid ""
26425 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26426 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26427 msgstr ""
26428
26429 #. type: textblock
26430 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
26431 msgid "(Added in 0.9.2)"
26432 msgstr ""
26433
26434 #. type: =head2
26435 #: ../src/guestfs-actions.pod:4119
26436 msgid "guestfs_lstatlist"
26437 msgstr ""
26438
26439 #. type: verbatim
26440 #: ../src/guestfs-actions.pod:4121
26441 #, no-wrap
26442 msgid ""
26443 " struct guestfs_stat_list *\n"
26444 " guestfs_lstatlist (guestfs_h *g,\n"
26445 "                    const char *path,\n"
26446 "                    char *const *names);\n"
26447 "\n"
26448 msgstr ""
26449
26450 #. type: textblock
26451 #: ../src/guestfs-actions.pod:4126
26452 msgid ""
26453 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26454 "files, where all files are in the directory C<path>.  C<names> is the list "
26455 "of files from this directory."
26456 msgstr ""
26457
26458 #. type: textblock
26459 #: ../src/guestfs-actions.pod:4135
26460 msgid ""
26461 "This call is intended for programs that want to efficiently list a directory "
26462 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26463 "for a similarly efficient call for getting extended attributes.  Very long "
26464 "directory listings might cause the protocol message size to be exceeded, "
26465 "causing this call to fail.  The caller must split up such requests into "
26466 "smaller groups of names."
26467 msgstr ""
26468
26469 #. type: textblock
26470 #: ../src/guestfs-actions.pod:4143
26471 msgid ""
26472 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26473 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:4149
26478 msgid "guestfs_luks_add_key"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:4151
26483 #, no-wrap
26484 msgid ""
26485 " int\n"
26486 " guestfs_luks_add_key (guestfs_h *g,\n"
26487 "                       const char *device,\n"
26488 "                       const char *key,\n"
26489 "                       const char *newkey,\n"
26490 "                       int keyslot);\n"
26491 "\n"
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../src/guestfs-actions.pod:4163
26496 msgid ""
26497 "Note that if C<keyslot> already contains a key, then this command will "
26498 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
26503 msgid ""
26504 "This function takes a key or passphrase parameter which could contain "
26505 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26506 "information."
26507 msgstr ""
26508
26509 #. type: textblock
26510 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213 ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
26511 msgid "(Added in 1.5.2)"
26512 msgstr ""
26513
26514 #. type: =head2
26515 #: ../src/guestfs-actions.pod:4175
26516 msgid "guestfs_luks_close"
26517 msgstr ""
26518
26519 #. type: verbatim
26520 #: ../src/guestfs-actions.pod:4177
26521 #, no-wrap
26522 msgid ""
26523 " int\n"
26524 " guestfs_luks_close (guestfs_h *g,\n"
26525 "                     const char *device);\n"
26526 "\n"
26527 msgstr ""
26528
26529 #. type: textblock
26530 #: ../src/guestfs-actions.pod:4181
26531 msgid ""
26532 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26533 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26534 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26535 "underlying block device."
26536 msgstr ""
26537
26538 #. type: textblock
26539 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:4408
26540 msgid "(Added in 1.5.1)"
26541 msgstr ""
26542
26543 #. type: =head2
26544 #: ../src/guestfs-actions.pod:4191
26545 msgid "guestfs_luks_format"
26546 msgstr ""
26547
26548 #. type: verbatim
26549 #: ../src/guestfs-actions.pod:4193
26550 #, no-wrap
26551 msgid ""
26552 " int\n"
26553 " guestfs_luks_format (guestfs_h *g,\n"
26554 "                      const char *device,\n"
26555 "                      const char *key,\n"
26556 "                      int keyslot);\n"
26557 "\n"
26558 msgstr ""
26559
26560 #. type: =head2
26561 #: ../src/guestfs-actions.pod:4215
26562 msgid "guestfs_luks_format_cipher"
26563 msgstr ""
26564
26565 #. type: verbatim
26566 #: ../src/guestfs-actions.pod:4217
26567 #, no-wrap
26568 msgid ""
26569 " int\n"
26570 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26571 "                             const char *device,\n"
26572 "                             const char *key,\n"
26573 "                             int keyslot,\n"
26574 "                             const char *cipher);\n"
26575 "\n"
26576 msgstr ""
26577
26578 #. type: textblock
26579 #: ../src/guestfs-actions.pod:4224
26580 msgid ""
26581 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26582 "set the C<cipher> used."
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:4238
26587 msgid "guestfs_luks_kill_slot"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:4240
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26596 "                         const char *device,\n"
26597 "                         const char *key,\n"
26598 "                         int keyslot);\n"
26599 "\n"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:4258
26604 msgid "guestfs_luks_open"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:4260
26609 #, no-wrap
26610 msgid ""
26611 " int\n"
26612 " guestfs_luks_open (guestfs_h *g,\n"
26613 "                    const char *device,\n"
26614 "                    const char *key,\n"
26615 "                    const char *mapname);\n"
26616 "\n"
26617 msgstr ""
26618
26619 #. type: textblock
26620 #: ../src/guestfs-actions.pod:4278
26621 msgid ""
26622 "If this block device contains LVM volume groups, then calling "
26623 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26624 "visible."
26625 msgstr ""
26626
26627 #. type: textblock
26628 #: ../src/guestfs-actions.pod:4282
26629 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:4293
26634 msgid "guestfs_luks_open_ro"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:4295
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_luks_open_ro (guestfs_h *g,\n"
26643 "                       const char *device,\n"
26644 "                       const char *key,\n"
26645 "                       const char *mapname);\n"
26646 "\n"
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../src/guestfs-actions.pod:4301
26651 msgid ""
26652 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26653 "created."
26654 msgstr ""
26655
26656 #. type: =head2
26657 #: ../src/guestfs-actions.pod:4312
26658 msgid "guestfs_lvcreate"
26659 msgstr ""
26660
26661 #. type: verbatim
26662 #: ../src/guestfs-actions.pod:4314
26663 #, no-wrap
26664 msgid ""
26665 " int\n"
26666 " guestfs_lvcreate (guestfs_h *g,\n"
26667 "                   const char *logvol,\n"
26668 "                   const char *volgroup,\n"
26669 "                   int mbytes);\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:4327
26675 msgid "guestfs_lvm_canonical_lv_name"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:4329
26680 #, no-wrap
26681 msgid ""
26682 " char *\n"
26683 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26684 "                                const char *lvname);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:4340
26690 msgid "See also C<guestfs_is_lv>."
26691 msgstr ""
26692
26693 #. type: textblock
26694 #: ../src/guestfs-actions.pod:4345
26695 msgid "(Added in 1.5.24)"
26696 msgstr ""
26697
26698 #. type: =head2
26699 #: ../src/guestfs-actions.pod:4347
26700 msgid "guestfs_lvm_clear_filter"
26701 msgstr ""
26702
26703 #. type: verbatim
26704 #: ../src/guestfs-actions.pod:4349
26705 #, no-wrap
26706 msgid ""
26707 " int\n"
26708 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26709 "\n"
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../src/guestfs-actions.pod:4352
26714 msgid ""
26715 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26716 "see every block device."
26717 msgstr ""
26718
26719 #. type: =head2
26720 #: ../src/guestfs-actions.pod:4362
26721 msgid "guestfs_lvm_remove_all"
26722 msgstr ""
26723
26724 #. type: verbatim
26725 #: ../src/guestfs-actions.pod:4364
26726 #, no-wrap
26727 msgid ""
26728 " int\n"
26729 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26730 "\n"
26731 msgstr ""
26732
26733 #. type: =head2
26734 #: ../src/guestfs-actions.pod:4377
26735 msgid "guestfs_lvm_set_filter"
26736 msgstr ""
26737
26738 #. type: verbatim
26739 #: ../src/guestfs-actions.pod:4379
26740 #, no-wrap
26741 msgid ""
26742 " int\n"
26743 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26744 "                         char *const *devices);\n"
26745 "\n"
26746 msgstr ""
26747
26748 #. type: =head2
26749 #: ../src/guestfs-actions.pod:4410
26750 msgid "guestfs_lvremove"
26751 msgstr ""
26752
26753 #. type: verbatim
26754 #: ../src/guestfs-actions.pod:4412
26755 #, no-wrap
26756 msgid ""
26757 " int\n"
26758 " guestfs_lvremove (guestfs_h *g,\n"
26759 "                   const char *device);\n"
26760 "\n"
26761 msgstr ""
26762
26763 #. type: textblock
26764 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:7667
26765 msgid "(Added in 1.0.13)"
26766 msgstr ""
26767
26768 #. type: =head2
26769 #: ../src/guestfs-actions.pod:4426
26770 msgid "guestfs_lvrename"
26771 msgstr ""
26772
26773 #. type: verbatim
26774 #: ../src/guestfs-actions.pod:4428
26775 #, no-wrap
26776 msgid ""
26777 " int\n"
26778 " guestfs_lvrename (guestfs_h *g,\n"
26779 "                   const char *logvol,\n"
26780 "                   const char *newlogvol);\n"
26781 "\n"
26782 msgstr ""
26783
26784 #. type: textblock
26785 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
26786 msgid "(Added in 1.0.83)"
26787 msgstr ""
26788
26789 #. type: =head2
26790 #: ../src/guestfs-actions.pod:4439
26791 msgid "guestfs_lvresize"
26792 msgstr ""
26793
26794 #. type: verbatim
26795 #: ../src/guestfs-actions.pod:4441
26796 #, no-wrap
26797 msgid ""
26798 " int\n"
26799 " guestfs_lvresize (guestfs_h *g,\n"
26800 "                   const char *device,\n"
26801 "                   int mbytes);\n"
26802 "\n"
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:4454
26807 msgid "guestfs_lvresize_free"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:4456
26812 #, no-wrap
26813 msgid ""
26814 " int\n"
26815 " guestfs_lvresize_free (guestfs_h *g,\n"
26816 "                        const char *lv,\n"
26817 "                        int percent);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: textblock
26822 #: ../src/guestfs-actions.pod:4469
26823 msgid "(Added in 1.3.3)"
26824 msgstr ""
26825
26826 #. type: =head2
26827 #: ../src/guestfs-actions.pod:4471
26828 msgid "guestfs_lvs"
26829 msgstr ""
26830
26831 #. type: verbatim
26832 #: ../src/guestfs-actions.pod:4473
26833 #, no-wrap
26834 msgid ""
26835 " char **\n"
26836 " guestfs_lvs (guestfs_h *g);\n"
26837 "\n"
26838 msgstr ""
26839
26840 #. type: textblock
26841 #: ../src/guestfs-actions.pod:4482
26842 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:4490
26847 msgid "guestfs_lvs_full"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:4492
26852 #, no-wrap
26853 msgid ""
26854 " struct guestfs_lvm_lv_list *\n"
26855 " guestfs_lvs_full (guestfs_h *g);\n"
26856 "\n"
26857 msgstr ""
26858
26859 #. type: textblock
26860 #: ../src/guestfs-actions.pod:4498
26861 msgid ""
26862 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26863 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
26864 "use>."
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:4504
26869 msgid "guestfs_lvuuid"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:4506
26874 #, no-wrap
26875 msgid ""
26876 " char *\n"
26877 " guestfs_lvuuid (guestfs_h *g,\n"
26878 "                 const char *device);\n"
26879 "\n"
26880 msgstr ""
26881
26882 #. type: =head2
26883 #: ../src/guestfs-actions.pod:4517
26884 msgid "guestfs_lxattrlist"
26885 msgstr ""
26886
26887 #. type: verbatim
26888 #: ../src/guestfs-actions.pod:4519
26889 #, no-wrap
26890 msgid ""
26891 " struct guestfs_xattr_list *\n"
26892 " guestfs_lxattrlist (guestfs_h *g,\n"
26893 "                     const char *path,\n"
26894 "                     char *const *names);\n"
26895 "\n"
26896 msgstr ""
26897
26898 #. type: textblock
26899 #: ../src/guestfs-actions.pod:4538
26900 msgid ""
26901 "This call is intended for programs that want to efficiently list a directory "
26902 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26903 "a similarly efficient call for getting standard stats.  Very long directory "
26904 "listings might cause the protocol message size to be exceeded, causing this "
26905 "call to fail.  The caller must split up such requests into smaller groups of "
26906 "names."
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:4552
26911 msgid "guestfs_mkdir"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:4554
26916 #, no-wrap
26917 msgid ""
26918 " int\n"
26919 " guestfs_mkdir (guestfs_h *g,\n"
26920 "                const char *path);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: =head2
26925 #: ../src/guestfs-actions.pod:4564
26926 msgid "guestfs_mkdir_mode"
26927 msgstr ""
26928
26929 #. type: verbatim
26930 #: ../src/guestfs-actions.pod:4566
26931 #, no-wrap
26932 msgid ""
26933 " int\n"
26934 " guestfs_mkdir_mode (guestfs_h *g,\n"
26935 "                     const char *path,\n"
26936 "                     int mode);\n"
26937 "\n"
26938 msgstr ""
26939
26940 #. type: textblock
26941 #: ../src/guestfs-actions.pod:4578
26942 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26943 msgstr ""
26944
26945 #. type: =head2
26946 #: ../src/guestfs-actions.pod:4584
26947 msgid "guestfs_mkdir_p"
26948 msgstr ""
26949
26950 #. type: verbatim
26951 #: ../src/guestfs-actions.pod:4586
26952 #, no-wrap
26953 msgid ""
26954 " int\n"
26955 " guestfs_mkdir_p (guestfs_h *g,\n"
26956 "                  const char *path);\n"
26957 "\n"
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../src/guestfs-actions.pod:4597
26962 msgid "guestfs_mkdtemp"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../src/guestfs-actions.pod:4599
26967 #, no-wrap
26968 msgid ""
26969 " char *\n"
26970 " guestfs_mkdtemp (guestfs_h *g,\n"
26971 "                  const char *template);\n"
26972 "\n"
26973 msgstr ""
26974
26975 #. type: =head2
26976 #: ../src/guestfs-actions.pod:4627
26977 msgid "guestfs_mke2fs_J"
26978 msgstr ""
26979
26980 #. type: verbatim
26981 #: ../src/guestfs-actions.pod:4629
26982 #, no-wrap
26983 msgid ""
26984 " int\n"
26985 " guestfs_mke2fs_J (guestfs_h *g,\n"
26986 "                   const char *fstype,\n"
26987 "                   int blocksize,\n"
26988 "                   const char *device,\n"
26989 "                   const char *journal);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:4642
26995 msgid "See also C<guestfs_mke2journal>."
26996 msgstr ""
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
27000 msgid "(Added in 1.0.68)"
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../src/guestfs-actions.pod:4648
27005 msgid "guestfs_mke2fs_JL"
27006 msgstr ""
27007
27008 #. type: verbatim
27009 #: ../src/guestfs-actions.pod:4650
27010 #, no-wrap
27011 msgid ""
27012 " int\n"
27013 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27014 "                    const char *fstype,\n"
27015 "                    int blocksize,\n"
27016 "                    const char *device,\n"
27017 "                    const char *label);\n"
27018 "\n"
27019 msgstr ""
27020
27021 #. type: textblock
27022 #: ../src/guestfs-actions.pod:4660
27023 msgid "See also C<guestfs_mke2journal_L>."
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:4666
27028 msgid "guestfs_mke2fs_JU"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:4668
27033 #, no-wrap
27034 msgid ""
27035 " int\n"
27036 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27037 "                    const char *fstype,\n"
27038 "                    int blocksize,\n"
27039 "                    const char *device,\n"
27040 "                    const char *uuid);\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: textblock
27045 #: ../src/guestfs-actions.pod:4678
27046 msgid "See also C<guestfs_mke2journal_U>."
27047 msgstr ""
27048
27049 #. type: =head2
27050 #: ../src/guestfs-actions.pod:4684
27051 msgid "guestfs_mke2journal"
27052 msgstr ""
27053
27054 #. type: verbatim
27055 #: ../src/guestfs-actions.pod:4686
27056 #, no-wrap
27057 msgid ""
27058 " int\n"
27059 " guestfs_mke2journal (guestfs_h *g,\n"
27060 "                      int blocksize,\n"
27061 "                      const char *device);\n"
27062 "\n"
27063 msgstr ""
27064
27065 #. type: =head2
27066 #: ../src/guestfs-actions.pod:4700
27067 msgid "guestfs_mke2journal_L"
27068 msgstr ""
27069
27070 #. type: verbatim
27071 #: ../src/guestfs-actions.pod:4702
27072 #, no-wrap
27073 msgid ""
27074 " int\n"
27075 " guestfs_mke2journal_L (guestfs_h *g,\n"
27076 "                        int blocksize,\n"
27077 "                        const char *label,\n"
27078 "                        const char *device);\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: =head2
27083 #: ../src/guestfs-actions.pod:4714
27084 msgid "guestfs_mke2journal_U"
27085 msgstr ""
27086
27087 #. type: verbatim
27088 #: ../src/guestfs-actions.pod:4716
27089 #, no-wrap
27090 msgid ""
27091 " int\n"
27092 " guestfs_mke2journal_U (guestfs_h *g,\n"
27093 "                        int blocksize,\n"
27094 "                        const char *uuid,\n"
27095 "                        const char *device);\n"
27096 "\n"
27097 msgstr ""
27098
27099 #. type: =head2
27100 #: ../src/guestfs-actions.pod:4728
27101 msgid "guestfs_mkfifo"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../src/guestfs-actions.pod:4730
27106 #, no-wrap
27107 msgid ""
27108 " int\n"
27109 " guestfs_mkfifo (guestfs_h *g,\n"
27110 "                 int mode,\n"
27111 "                 const char *path);\n"
27112 "\n"
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../src/guestfs-actions.pod:4735
27117 msgid ""
27118 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27119 "is just a convenient wrapper around C<guestfs_mknod>."
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:4745
27124 msgid "guestfs_mkfs"
27125 msgstr ""
27126
27127 #. type: verbatim
27128 #: ../src/guestfs-actions.pod:4747
27129 #, no-wrap
27130 msgid ""
27131 " int\n"
27132 " guestfs_mkfs (guestfs_h *g,\n"
27133 "               const char *fstype,\n"
27134 "               const char *device);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: =head2
27139 #: ../src/guestfs-actions.pod:4760
27140 msgid "guestfs_mkfs_b"
27141 msgstr ""
27142
27143 #. type: verbatim
27144 #: ../src/guestfs-actions.pod:4762
27145 #, no-wrap
27146 msgid ""
27147 " int\n"
27148 " guestfs_mkfs_b (guestfs_h *g,\n"
27149 "                 const char *fstype,\n"
27150 "                 int blocksize,\n"
27151 "                 const char *device);\n"
27152 "\n"
27153 msgstr ""
27154
27155 #. type: textblock
27156 #: ../src/guestfs-actions.pod:4768
27157 msgid ""
27158 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
27159 "call instead."
27160 msgstr ""
27161
27162 #. type: textblock
27163 #: ../src/guestfs-actions.pod:4775
27164 msgid ""
27165 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
27166 "block size of the resulting filesystem.  Supported block sizes depend on the "
27167 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27168 msgstr ""
27169
27170 #. type: =head2
27171 #: ../src/guestfs-actions.pod:4787
27172 msgid "guestfs_mkfs_opts"
27173 msgstr ""
27174
27175 #. type: verbatim
27176 #: ../src/guestfs-actions.pod:4789
27177 #, no-wrap
27178 msgid ""
27179 " int\n"
27180 " guestfs_mkfs_opts (guestfs_h *g,\n"
27181 "                    const char *fstype,\n"
27182 "                    const char *device,\n"
27183 "                    ...);\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:4800
27189 #, no-wrap
27190 msgid ""
27191 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
27192 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
27193 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
27194 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:4848
27200 msgid "(Added in 1.7.19)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:4850
27205 msgid "guestfs_mkfs_opts_va"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:4852
27210 #, no-wrap
27211 msgid ""
27212 " int\n"
27213 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27214 "                       const char *fstype,\n"
27215 "                       const char *device,\n"
27216 "                       va_list args);\n"
27217 "\n"
27218 msgstr ""
27219
27220 #. type: textblock
27221 #: ../src/guestfs-actions.pod:4858
27222 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27223 msgstr ""
27224
27225 #. type: =head2
27226 #: ../src/guestfs-actions.pod:4862
27227 msgid "guestfs_mkfs_opts_argv"
27228 msgstr ""
27229
27230 #. type: verbatim
27231 #: ../src/guestfs-actions.pod:4864
27232 #, no-wrap
27233 msgid ""
27234 " int\n"
27235 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27236 "                         const char *fstype,\n"
27237 "                         const char *device,\n"
27238 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: textblock
27243 #: ../src/guestfs-actions.pod:4870
27244 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:4874
27249 msgid "guestfs_mkmountpoint"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:4876
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_mkmountpoint (guestfs_h *g,\n"
27258 "                       const char *exemptpath);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../src/guestfs-actions.pod:4880
27264 msgid ""
27265 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27266 "that can be used to create extra mountpoints before mounting the first "
27267 "filesystem."
27268 msgstr ""
27269
27270 #. type: textblock
27271 #: ../src/guestfs-actions.pod:4904
27272 msgid ""
27273 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27274 "may get unexpected errors if you try to mix these calls.  It is safest to "
27275 "manually unmount filesystems and remove mountpoints after use."
27276 msgstr ""
27277
27278 #. type: textblock
27279 #: ../src/guestfs-actions.pod:4908
27280 msgid ""
27281 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27282 "first, so for this to work for manual mountpoints, you must ensure that the "
27283 "innermost mountpoints have the longest pathnames, as in the example code "
27284 "above."
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:4915
27289 msgid ""
27290 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27291 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27292 "can also trigger these issues."
27293 msgstr ""
27294
27295 #. type: textblock
27296 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:6237
27297 msgid "(Added in 1.0.62)"
27298 msgstr ""
27299
27300 #. type: =head2
27301 #: ../src/guestfs-actions.pod:4923
27302 msgid "guestfs_mknod"
27303 msgstr ""
27304
27305 #. type: verbatim
27306 #: ../src/guestfs-actions.pod:4925
27307 #, no-wrap
27308 msgid ""
27309 " int\n"
27310 " guestfs_mknod (guestfs_h *g,\n"
27311 "                int mode,\n"
27312 "                int devmajor,\n"
27313 "                int devminor,\n"
27314 "                const char *path);\n"
27315 "\n"
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:4940
27320 msgid ""
27321 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27322 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27323 "regular file).  These constants are available in the standard Linux header "
27324 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27325 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27326 "the appropriate constant for you."
27327 msgstr ""
27328
27329 #. type: =head2
27330 #: ../src/guestfs-actions.pod:4954
27331 msgid "guestfs_mknod_b"
27332 msgstr ""
27333
27334 #. type: verbatim
27335 #: ../src/guestfs-actions.pod:4956
27336 #, no-wrap
27337 msgid ""
27338 " int\n"
27339 " guestfs_mknod_b (guestfs_h *g,\n"
27340 "                  int mode,\n"
27341 "                  int devmajor,\n"
27342 "                  int devminor,\n"
27343 "                  const char *path);\n"
27344 "\n"
27345 msgstr ""
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:4963
27349 msgid ""
27350 "This call creates a block device node called C<path> with mode C<mode> and "
27351 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27352 "wrapper around C<guestfs_mknod>."
27353 msgstr ""
27354
27355 #. type: =head2
27356 #: ../src/guestfs-actions.pod:4973
27357 msgid "guestfs_mknod_c"
27358 msgstr ""
27359
27360 #. type: verbatim
27361 #: ../src/guestfs-actions.pod:4975
27362 #, no-wrap
27363 msgid ""
27364 " int\n"
27365 " guestfs_mknod_c (guestfs_h *g,\n"
27366 "                  int mode,\n"
27367 "                  int devmajor,\n"
27368 "                  int devminor,\n"
27369 "                  const char *path);\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: textblock
27374 #: ../src/guestfs-actions.pod:4982
27375 msgid ""
27376 "This call creates a char device node called C<path> with mode C<mode> and "
27377 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27378 "wrapper around C<guestfs_mknod>."
27379 msgstr ""
27380
27381 #. type: =head2
27382 #: ../src/guestfs-actions.pod:4992
27383 msgid "guestfs_mkswap"
27384 msgstr ""
27385
27386 #. type: verbatim
27387 #: ../src/guestfs-actions.pod:4994
27388 #, no-wrap
27389 msgid ""
27390 " int\n"
27391 " guestfs_mkswap (guestfs_h *g,\n"
27392 "                 const char *device);\n"
27393 "\n"
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:5004
27398 msgid "guestfs_mkswap_L"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:5006
27403 #, no-wrap
27404 msgid ""
27405 " int\n"
27406 " guestfs_mkswap_L (guestfs_h *g,\n"
27407 "                   const char *label,\n"
27408 "                   const char *device);\n"
27409 "\n"
27410 msgstr ""
27411
27412 #. type: =head2
27413 #: ../src/guestfs-actions.pod:5021
27414 msgid "guestfs_mkswap_U"
27415 msgstr ""
27416
27417 #. type: verbatim
27418 #: ../src/guestfs-actions.pod:5023
27419 #, no-wrap
27420 msgid ""
27421 " int\n"
27422 " guestfs_mkswap_U (guestfs_h *g,\n"
27423 "                   const char *uuid,\n"
27424 "                   const char *device);\n"
27425 "\n"
27426 msgstr ""
27427
27428 #. type: =head2
27429 #: ../src/guestfs-actions.pod:5034
27430 msgid "guestfs_mkswap_file"
27431 msgstr ""
27432
27433 #. type: verbatim
27434 #: ../src/guestfs-actions.pod:5036
27435 #, no-wrap
27436 msgid ""
27437 " int\n"
27438 " guestfs_mkswap_file (guestfs_h *g,\n"
27439 "                      const char *path);\n"
27440 "\n"
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../src/guestfs-actions.pod:5042
27445 msgid ""
27446 "This command just writes a swap file signature to an existing file.  To "
27447 "create the file itself, use something like C<guestfs_fallocate>."
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:5049
27452 msgid "guestfs_modprobe"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:5051
27457 #, no-wrap
27458 msgid ""
27459 " int\n"
27460 " guestfs_modprobe (guestfs_h *g,\n"
27461 "                   const char *modulename);\n"
27462 "\n"
27463 msgstr ""
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:5064
27467 msgid "guestfs_mount"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:5066
27472 #, no-wrap
27473 msgid ""
27474 " int\n"
27475 " guestfs_mount (guestfs_h *g,\n"
27476 "                const char *device,\n"
27477 "                const char *mountpoint);\n"
27478 "\n"
27479 msgstr ""
27480
27481 #. type: textblock
27482 #: ../src/guestfs-actions.pod:5085
27483 msgid ""
27484 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
27485 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
27486 "problems for users.  If your program might need to work with older versions "
27487 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
27488 "for the first parameter if you don't want any options)."
27489 msgstr ""
27490
27491 #. type: =head2
27492 #: ../src/guestfs-actions.pod:5096
27493 msgid "guestfs_mount_9p"
27494 msgstr ""
27495
27496 #. type: verbatim
27497 #: ../src/guestfs-actions.pod:5098
27498 #, no-wrap
27499 msgid ""
27500 " int\n"
27501 " guestfs_mount_9p (guestfs_h *g,\n"
27502 "                   const char *mounttag,\n"
27503 "                   const char *mountpoint,\n"
27504 "                   ...);\n"
27505 "\n"
27506 msgstr ""
27507
27508 #. type: verbatim
27509 #: ../src/guestfs-actions.pod:5109
27510 #, no-wrap
27511 msgid ""
27512 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27513 "\n"
27514 msgstr ""
27515
27516 #. type: =head2
27517 #: ../src/guestfs-actions.pod:5122
27518 msgid "guestfs_mount_9p_va"
27519 msgstr ""
27520
27521 #. type: verbatim
27522 #: ../src/guestfs-actions.pod:5124
27523 #, no-wrap
27524 msgid ""
27525 " int\n"
27526 " guestfs_mount_9p_va (guestfs_h *g,\n"
27527 "                      const char *mounttag,\n"
27528 "                      const char *mountpoint,\n"
27529 "                      va_list args);\n"
27530 "\n"
27531 msgstr ""
27532
27533 #. type: textblock
27534 #: ../src/guestfs-actions.pod:5130
27535 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../src/guestfs-actions.pod:5134
27540 msgid "guestfs_mount_9p_argv"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../src/guestfs-actions.pod:5136
27545 #, no-wrap
27546 msgid ""
27547 " int\n"
27548 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27549 "                        const char *mounttag,\n"
27550 "                        const char *mountpoint,\n"
27551 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27552 "\n"
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:5142
27557 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27558 msgstr ""
27559
27560 #. type: =head2
27561 #: ../src/guestfs-actions.pod:5146
27562 msgid "guestfs_mount_loop"
27563 msgstr ""
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:5148
27567 #, no-wrap
27568 msgid ""
27569 " int\n"
27570 " guestfs_mount_loop (guestfs_h *g,\n"
27571 "                     const char *file,\n"
27572 "                     const char *mountpoint);\n"
27573 "\n"
27574 msgstr ""
27575
27576 #. type: =head2
27577 #: ../src/guestfs-actions.pod:5161
27578 msgid "guestfs_mount_options"
27579 msgstr ""
27580
27581 #. type: verbatim
27582 #: ../src/guestfs-actions.pod:5163
27583 #, no-wrap
27584 msgid ""
27585 " int\n"
27586 " guestfs_mount_options (guestfs_h *g,\n"
27587 "                        const char *options,\n"
27588 "                        const char *device,\n"
27589 "                        const char *mountpoint);\n"
27590 "\n"
27591 msgstr ""
27592
27593 #. type: textblock
27594 #: ../src/guestfs-actions.pod:5169
27595 msgid ""
27596 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27597 "the mount options as for the L<mount(8)> I<-o> flag."
27598 msgstr ""
27599
27600 #. type: textblock
27601 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5210
27602 msgid "(Added in 1.0.10)"
27603 msgstr ""
27604
27605 #. type: =head2
27606 #: ../src/guestfs-actions.pod:5181
27607 msgid "guestfs_mount_ro"
27608 msgstr ""
27609
27610 #. type: verbatim
27611 #: ../src/guestfs-actions.pod:5183
27612 #, no-wrap
27613 msgid ""
27614 " int\n"
27615 " guestfs_mount_ro (guestfs_h *g,\n"
27616 "                   const char *device,\n"
27617 "                   const char *mountpoint);\n"
27618 "\n"
27619 msgstr ""
27620
27621 #. type: textblock
27622 #: ../src/guestfs-actions.pod:5188
27623 msgid ""
27624 "This is the same as the C<guestfs_mount> command, but it mounts the "
27625 "filesystem with the read-only (I<-o ro>) flag."
27626 msgstr ""
27627
27628 #. type: =head2
27629 #: ../src/guestfs-actions.pod:5195
27630 msgid "guestfs_mount_vfs"
27631 msgstr ""
27632
27633 #. type: verbatim
27634 #: ../src/guestfs-actions.pod:5197
27635 #, no-wrap
27636 msgid ""
27637 " int\n"
27638 " guestfs_mount_vfs (guestfs_h *g,\n"
27639 "                    const char *options,\n"
27640 "                    const char *vfstype,\n"
27641 "                    const char *device,\n"
27642 "                    const char *mountpoint);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:5204
27648 msgid ""
27649 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27650 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
27651 "I<-t> flags."
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../src/guestfs-actions.pod:5212
27656 msgid "guestfs_mountpoints"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../src/guestfs-actions.pod:5214
27661 #, no-wrap
27662 msgid ""
27663 " char **\n"
27664 " guestfs_mountpoints (guestfs_h *g);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:5217
27670 msgid ""
27671 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27672 "devices.  This one returns a hash table (map) of device name to directory "
27673 "where the device is mounted."
27674 msgstr ""
27675
27676 #. type: =head2
27677 #: ../src/guestfs-actions.pod:5229
27678 msgid "guestfs_mounts"
27679 msgstr ""
27680
27681 #. type: verbatim
27682 #: ../src/guestfs-actions.pod:5231
27683 #, no-wrap
27684 msgid ""
27685 " char **\n"
27686 " guestfs_mounts (guestfs_h *g);\n"
27687 "\n"
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:5239
27692 msgid "See also: C<guestfs_mountpoints>"
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../src/guestfs-actions.pod:5247
27697 msgid "guestfs_mv"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../src/guestfs-actions.pod:5249
27702 #, no-wrap
27703 msgid ""
27704 " int\n"
27705 " guestfs_mv (guestfs_h *g,\n"
27706 "             const char *src,\n"
27707 "             const char *dest);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: =head2
27712 #: ../src/guestfs-actions.pod:5261
27713 msgid "guestfs_ntfs_3g_probe"
27714 msgstr ""
27715
27716 #. type: verbatim
27717 #: ../src/guestfs-actions.pod:5263
27718 #, no-wrap
27719 msgid ""
27720 " int\n"
27721 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27722 "                        int rw,\n"
27723 "                        const char *device);\n"
27724 "\n"
27725 msgstr ""
27726
27727 #. type: textblock
27728 #: ../src/guestfs-actions.pod:5282
27729 msgid "(Added in 1.0.43)"
27730 msgstr ""
27731
27732 #. type: =head2
27733 #: ../src/guestfs-actions.pod:5284
27734 msgid "guestfs_ntfsresize"
27735 msgstr ""
27736
27737 #. type: verbatim
27738 #: ../src/guestfs-actions.pod:5286
27739 #, no-wrap
27740 msgid ""
27741 " int\n"
27742 " guestfs_ntfsresize (guestfs_h *g,\n"
27743 "                     const char *device);\n"
27744 "\n"
27745 msgstr ""
27746
27747 #. type: textblock
27748 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
27749 msgid ""
27750 "I<This function is deprecated.> In new code, use the "
27751 "L</guestfs_ntfsresize_opts> call instead."
27752 msgstr ""
27753
27754 #. type: =head2
27755 #: ../src/guestfs-actions.pod:5314
27756 msgid "guestfs_ntfsresize_opts"
27757 msgstr ""
27758
27759 #. type: verbatim
27760 #: ../src/guestfs-actions.pod:5316
27761 #, no-wrap
27762 msgid ""
27763 " int\n"
27764 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27765 "                          const char *device,\n"
27766 "                          ...);\n"
27767 "\n"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../src/guestfs-actions.pod:5326
27772 #, no-wrap
27773 msgid ""
27774 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27775 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: textblock
27780 #: ../src/guestfs-actions.pod:5346
27781 msgid ""
27782 "After the resize operation, the filesystem is always marked as requiring a "
27783 "consistency check (for safety).  You have to boot into Windows to perform "
27784 "this check and clear this condition.  If you I<don't> set the C<force> "
27785 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27786 "times on a single filesystem without booting into Windows between each "
27787 "resize."
27788 msgstr ""
27789
27790 #. type: =head2
27791 #: ../src/guestfs-actions.pod:5361
27792 msgid "guestfs_ntfsresize_opts_va"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../src/guestfs-actions.pod:5363
27797 #, no-wrap
27798 msgid ""
27799 " int\n"
27800 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27801 "                             const char *device,\n"
27802 "                             va_list args);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:5368
27808 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27809 msgstr ""
27810
27811 #. type: =head2
27812 #: ../src/guestfs-actions.pod:5372
27813 msgid "guestfs_ntfsresize_opts_argv"
27814 msgstr ""
27815
27816 #. type: verbatim
27817 #: ../src/guestfs-actions.pod:5374
27818 #, no-wrap
27819 msgid ""
27820 " int\n"
27821 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27822 "                               const char *device,\n"
27823 "                               const struct guestfs_ntfsresize_opts_argv "
27824 "*optargs);\n"
27825 "\n"
27826 msgstr ""
27827
27828 #. type: textblock
27829 #: ../src/guestfs-actions.pod:5379
27830 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27831 msgstr ""
27832
27833 #. type: =head2
27834 #: ../src/guestfs-actions.pod:5383
27835 msgid "guestfs_ntfsresize_size"
27836 msgstr ""
27837
27838 #. type: verbatim
27839 #: ../src/guestfs-actions.pod:5385
27840 #, no-wrap
27841 msgid ""
27842 " int\n"
27843 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27844 "                          const char *device,\n"
27845 "                          int64_t size);\n"
27846 "\n"
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:5397
27851 msgid ""
27852 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27853 "to specify the new size (in bytes) explicitly."
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185 ../src/guestfs-actions.pod:7824
27858 msgid "(Added in 1.3.14)"
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:5404
27863 msgid "guestfs_part_add"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:5406
27868 #, no-wrap
27869 msgid ""
27870 " int\n"
27871 " guestfs_part_add (guestfs_h *g,\n"
27872 "                   const char *device,\n"
27873 "                   const char *prlogex,\n"
27874 "                   int64_t startsect,\n"
27875 "                   int64_t endsect);\n"
27876 "\n"
27877 msgstr ""
27878
27879 #. type: textblock
27880 #: ../src/guestfs-actions.pod:5413
27881 msgid ""
27882 "This command adds a partition to C<device>.  If there is no partition table "
27883 "on the device, call C<guestfs_part_init> first."
27884 msgstr ""
27885
27886 #. type: textblock
27887 #: ../src/guestfs-actions.pod:5425
27888 msgid ""
27889 "Creating a partition which covers the whole disk is not so easy.  Use "
27890 "C<guestfs_part_disk> to do that."
27891 msgstr ""
27892
27893 #. type: textblock
27894 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5702
27895 msgid "(Added in 1.0.78)"
27896 msgstr ""
27897
27898 #. type: =head2
27899 #: ../src/guestfs-actions.pod:5432
27900 msgid "guestfs_part_del"
27901 msgstr ""
27902
27903 #. type: verbatim
27904 #: ../src/guestfs-actions.pod:5434
27905 #, no-wrap
27906 msgid ""
27907 " int\n"
27908 " guestfs_part_del (guestfs_h *g,\n"
27909 "                   const char *device,\n"
27910 "                   int partnum);\n"
27911 "\n"
27912 msgstr ""
27913
27914 #. type: =head2
27915 #: ../src/guestfs-actions.pod:5449
27916 msgid "guestfs_part_disk"
27917 msgstr ""
27918
27919 #. type: verbatim
27920 #: ../src/guestfs-actions.pod:5451
27921 #, no-wrap
27922 msgid ""
27923 " int\n"
27924 " guestfs_part_disk (guestfs_h *g,\n"
27925 "                    const char *device,\n"
27926 "                    const char *parttype);\n"
27927 "\n"
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:5456
27932 msgid ""
27933 "This command is simply a combination of C<guestfs_part_init> followed by "
27934 "C<guestfs_part_add> to create a single primary partition covering the whole "
27935 "disk."
27936 msgstr ""
27937
27938 #. type: textblock
27939 #: ../src/guestfs-actions.pod:5460
27940 msgid ""
27941 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27942 "possible values are described in C<guestfs_part_init>."
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:5470
27947 msgid "guestfs_part_get_bootable"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:5472
27952 #, no-wrap
27953 msgid ""
27954 " int\n"
27955 " guestfs_part_get_bootable (guestfs_h *g,\n"
27956 "                            const char *device,\n"
27957 "                            int partnum);\n"
27958 "\n"
27959 msgstr ""
27960
27961 #. type: textblock
27962 #: ../src/guestfs-actions.pod:5480
27963 msgid "See also C<guestfs_part_set_bootable>."
27964 msgstr ""
27965
27966 #. type: =head2
27967 #: ../src/guestfs-actions.pod:5486
27968 msgid "guestfs_part_get_mbr_id"
27969 msgstr ""
27970
27971 #. type: verbatim
27972 #: ../src/guestfs-actions.pod:5488
27973 #, no-wrap
27974 msgid ""
27975 " int\n"
27976 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27977 "                          const char *device,\n"
27978 "                          int partnum);\n"
27979 "\n"
27980 msgstr ""
27981
27982 #. type: textblock
27983 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
27984 msgid ""
27985 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27986 "undefined results for other partition table types (see "
27987 "C<guestfs_part_get_parttype>)."
27988 msgstr ""
27989
27990 #. type: =head2
27991 #: ../src/guestfs-actions.pod:5504
27992 msgid "guestfs_part_get_parttype"
27993 msgstr ""
27994
27995 #. type: verbatim
27996 #: ../src/guestfs-actions.pod:5506
27997 #, no-wrap
27998 msgid ""
27999 " char *\n"
28000 " guestfs_part_get_parttype (guestfs_h *g,\n"
28001 "                            const char *device);\n"
28002 "\n"
28003 msgstr ""
28004
28005 #. type: textblock
28006 #: ../src/guestfs-actions.pod:5513
28007 msgid ""
28008 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28009 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28010 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28011 msgstr ""
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:5523
28015 msgid "guestfs_part_init"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:5525
28020 #, no-wrap
28021 msgid ""
28022 " int\n"
28023 " guestfs_part_init (guestfs_h *g,\n"
28024 "                    const char *device,\n"
28025 "                    const char *parttype);\n"
28026 "\n"
28027 msgstr ""
28028
28029 #. type: textblock
28030 #: ../src/guestfs-actions.pod:5534
28031 msgid ""
28032 "Initially there are no partitions.  Following this, you should call "
28033 "C<guestfs_part_add> for each partition required."
28034 msgstr ""
28035
28036 #. type: =head2
28037 #: ../src/guestfs-actions.pod:5607
28038 msgid "guestfs_part_list"
28039 msgstr ""
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:5609
28043 #, no-wrap
28044 msgid ""
28045 " struct guestfs_partition_list *\n"
28046 " guestfs_part_list (guestfs_h *g,\n"
28047 "                    const char *device);\n"
28048 "\n"
28049 msgstr ""
28050
28051 #. type: textblock
28052 #: ../src/guestfs-actions.pod:5626
28053 msgid ""
28054 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28055 "the device's sector size, see C<guestfs_blockdev_getss>."
28056 msgstr ""
28057
28058 #. type: textblock
28059 #: ../src/guestfs-actions.pod:5639
28060 msgid ""
28061 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28062 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
28063 "use>."
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../src/guestfs-actions.pod:5645
28068 msgid "guestfs_part_set_bootable"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../src/guestfs-actions.pod:5647
28073 #, no-wrap
28074 msgid ""
28075 " int\n"
28076 " guestfs_part_set_bootable (guestfs_h *g,\n"
28077 "                            const char *device,\n"
28078 "                            int partnum,\n"
28079 "                            int bootable);\n"
28080 "\n"
28081 msgstr ""
28082
28083 #. type: =head2
28084 #: ../src/guestfs-actions.pod:5664
28085 msgid "guestfs_part_set_mbr_id"
28086 msgstr ""
28087
28088 #. type: verbatim
28089 #: ../src/guestfs-actions.pod:5666
28090 #, no-wrap
28091 msgid ""
28092 " int\n"
28093 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
28094 "                          const char *device,\n"
28095 "                          int partnum,\n"
28096 "                          int idbyte);\n"
28097 "\n"
28098 msgstr ""
28099
28100 #. type: =head2
28101 #: ../src/guestfs-actions.pod:5686
28102 msgid "guestfs_part_set_name"
28103 msgstr ""
28104
28105 #. type: verbatim
28106 #: ../src/guestfs-actions.pod:5688
28107 #, no-wrap
28108 msgid ""
28109 " int\n"
28110 " guestfs_part_set_name (guestfs_h *g,\n"
28111 "                        const char *device,\n"
28112 "                        int partnum,\n"
28113 "                        const char *name);\n"
28114 "\n"
28115 msgstr ""
28116
28117 #. type: =head2
28118 #: ../src/guestfs-actions.pod:5704
28119 msgid "guestfs_part_to_dev"
28120 msgstr ""
28121
28122 #. type: verbatim
28123 #: ../src/guestfs-actions.pod:5706
28124 #, no-wrap
28125 msgid ""
28126 " char *\n"
28127 " guestfs_part_to_dev (guestfs_h *g,\n"
28128 "                      const char *partition);\n"
28129 "\n"
28130 msgstr ""
28131
28132 #. type: textblock
28133 #: ../src/guestfs-actions.pod:5714
28134 msgid ""
28135 "The named partition must exist, for example as a string returned from "
28136 "C<guestfs_list_partitions>."
28137 msgstr ""
28138
28139 #. type: =head2
28140 #: ../src/guestfs-actions.pod:5722
28141 msgid "guestfs_ping_daemon"
28142 msgstr ""
28143
28144 #. type: verbatim
28145 #: ../src/guestfs-actions.pod:5724
28146 #, no-wrap
28147 msgid ""
28148 " int\n"
28149 " guestfs_ping_daemon (guestfs_h *g);\n"
28150 "\n"
28151 msgstr ""
28152
28153 #. type: =head2
28154 #: ../src/guestfs-actions.pod:5736
28155 msgid "guestfs_pread"
28156 msgstr ""
28157
28158 #. type: verbatim
28159 #: ../src/guestfs-actions.pod:5738
28160 #, no-wrap
28161 msgid ""
28162 " char *\n"
28163 " guestfs_pread (guestfs_h *g,\n"
28164 "                const char *path,\n"
28165 "                int count,\n"
28166 "                int64_t offset,\n"
28167 "                size_t *size_r);\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: textblock
28172 #: ../src/guestfs-actions.pod:5751
28173 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
28174 msgstr ""
28175
28176 #. type: =head2
28177 #: ../src/guestfs-actions.pod:5762
28178 msgid "guestfs_pread_device"
28179 msgstr ""
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:5764
28183 #, no-wrap
28184 msgid ""
28185 " char *\n"
28186 " guestfs_pread_device (guestfs_h *g,\n"
28187 "                       const char *device,\n"
28188 "                       int count,\n"
28189 "                       int64_t offset,\n"
28190 "                       size_t *size_r);\n"
28191 "\n"
28192 msgstr ""
28193
28194 #. type: textblock
28195 #: ../src/guestfs-actions.pod:5777
28196 msgid "See also C<guestfs_pread>."
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:5786
28201 msgid "(Added in 1.5.21)"
28202 msgstr ""
28203
28204 #. type: =head2
28205 #: ../src/guestfs-actions.pod:5788
28206 msgid "guestfs_pvcreate"
28207 msgstr ""
28208
28209 #. type: verbatim
28210 #: ../src/guestfs-actions.pod:5790
28211 #, no-wrap
28212 msgid ""
28213 " int\n"
28214 " guestfs_pvcreate (guestfs_h *g,\n"
28215 "                   const char *device);\n"
28216 "\n"
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../src/guestfs-actions.pod:5802
28221 msgid "guestfs_pvremove"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../src/guestfs-actions.pod:5804
28226 #, no-wrap
28227 msgid ""
28228 " int\n"
28229 " guestfs_pvremove (guestfs_h *g,\n"
28230 "                   const char *device);\n"
28231 "\n"
28232 msgstr ""
28233
28234 #. type: =head2
28235 #: ../src/guestfs-actions.pod:5819
28236 msgid "guestfs_pvresize"
28237 msgstr ""
28238
28239 #. type: verbatim
28240 #: ../src/guestfs-actions.pod:5821
28241 #, no-wrap
28242 msgid ""
28243 " int\n"
28244 " guestfs_pvresize (guestfs_h *g,\n"
28245 "                   const char *device);\n"
28246 "\n"
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:5832
28251 msgid "guestfs_pvresize_size"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:5834
28256 #, no-wrap
28257 msgid ""
28258 " int\n"
28259 " guestfs_pvresize_size (guestfs_h *g,\n"
28260 "                        const char *device,\n"
28261 "                        int64_t size);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../src/guestfs-actions.pod:5839
28267 msgid ""
28268 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28269 "specify the new size (in bytes) explicitly."
28270 msgstr ""
28271
28272 #. type: =head2
28273 #: ../src/guestfs-actions.pod:5846
28274 msgid "guestfs_pvs"
28275 msgstr ""
28276
28277 #. type: verbatim
28278 #: ../src/guestfs-actions.pod:5848
28279 #, no-wrap
28280 msgid ""
28281 " char **\n"
28282 " guestfs_pvs (guestfs_h *g);\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:5857
28288 msgid "See also C<guestfs_pvs_full>."
28289 msgstr ""
28290
28291 #. type: =head2
28292 #: ../src/guestfs-actions.pod:5865
28293 msgid "guestfs_pvs_full"
28294 msgstr ""
28295
28296 #. type: verbatim
28297 #: ../src/guestfs-actions.pod:5867
28298 #, no-wrap
28299 msgid ""
28300 " struct guestfs_lvm_pv_list *\n"
28301 " guestfs_pvs_full (guestfs_h *g);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: textblock
28306 #: ../src/guestfs-actions.pod:5873
28307 msgid ""
28308 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28309 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
28310 "use>."
28311 msgstr ""
28312
28313 #. type: =head2
28314 #: ../src/guestfs-actions.pod:5879
28315 msgid "guestfs_pvuuid"
28316 msgstr ""
28317
28318 #. type: verbatim
28319 #: ../src/guestfs-actions.pod:5881
28320 #, no-wrap
28321 msgid ""
28322 " char *\n"
28323 " guestfs_pvuuid (guestfs_h *g,\n"
28324 "                 const char *device);\n"
28325 "\n"
28326 msgstr ""
28327
28328 #. type: =head2
28329 #: ../src/guestfs-actions.pod:5892
28330 msgid "guestfs_pwrite"
28331 msgstr ""
28332
28333 #. type: verbatim
28334 #: ../src/guestfs-actions.pod:5894
28335 #, no-wrap
28336 msgid ""
28337 " int\n"
28338 " guestfs_pwrite (guestfs_h *g,\n"
28339 "                 const char *path,\n"
28340 "                 const char *content,\n"
28341 "                 size_t content_size,\n"
28342 "                 int64_t offset);\n"
28343 "\n"
28344 msgstr ""
28345
28346 #. type: textblock
28347 #: ../src/guestfs-actions.pod:5910
28348 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28349 msgstr ""
28350
28351 #. type: =head2
28352 #: ../src/guestfs-actions.pod:5919
28353 msgid "guestfs_pwrite_device"
28354 msgstr ""
28355
28356 #. type: verbatim
28357 #: ../src/guestfs-actions.pod:5921
28358 #, no-wrap
28359 msgid ""
28360 " int\n"
28361 " guestfs_pwrite_device (guestfs_h *g,\n"
28362 "                        const char *device,\n"
28363 "                        const char *content,\n"
28364 "                        size_t content_size,\n"
28365 "                        int64_t offset);\n"
28366 "\n"
28367 msgstr ""
28368
28369 #. type: textblock
28370 #: ../src/guestfs-actions.pod:5936
28371 msgid "See also C<guestfs_pwrite>."
28372 msgstr ""
28373
28374 #. type: textblock
28375 #: ../src/guestfs-actions.pod:5943
28376 msgid "(Added in 1.5.20)"
28377 msgstr ""
28378
28379 #. type: =head2
28380 #: ../src/guestfs-actions.pod:5945
28381 msgid "guestfs_read_file"
28382 msgstr ""
28383
28384 #. type: verbatim
28385 #: ../src/guestfs-actions.pod:5947
28386 #, no-wrap
28387 msgid ""
28388 " char *\n"
28389 " guestfs_read_file (guestfs_h *g,\n"
28390 "                    const char *path,\n"
28391 "                    size_t *size_r);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:5955
28397 msgid ""
28398 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28399 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28400 "function is limited in the total size of file that can be handled."
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:5967
28405 msgid "(Added in 1.0.63)"
28406 msgstr ""
28407
28408 #. type: =head2
28409 #: ../src/guestfs-actions.pod:5969
28410 msgid "guestfs_read_lines"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../src/guestfs-actions.pod:5971
28415 #, no-wrap
28416 msgid ""
28417 " char **\n"
28418 " guestfs_read_lines (guestfs_h *g,\n"
28419 "                     const char *path);\n"
28420 "\n"
28421 msgstr ""
28422
28423 #. type: textblock
28424 #: ../src/guestfs-actions.pod:5980
28425 msgid ""
28426 "Note that this function cannot correctly handle binary files (specifically, "
28427 "files containing C<\\0> character which is treated as end of line).  For "
28428 "those you need to use the C<guestfs_read_file> function which has a more "
28429 "complex interface."
28430 msgstr ""
28431
28432 #. type: =head2
28433 #: ../src/guestfs-actions.pod:5991
28434 msgid "guestfs_readdir"
28435 msgstr ""
28436
28437 #. type: verbatim
28438 #: ../src/guestfs-actions.pod:5993
28439 #, no-wrap
28440 msgid ""
28441 " struct guestfs_dirent_list *\n"
28442 " guestfs_readdir (guestfs_h *g,\n"
28443 "                  const char *dir);\n"
28444 "\n"
28445 msgstr ""
28446
28447 #. type: textblock
28448 #: ../src/guestfs-actions.pod:6047
28449 msgid ""
28450 "This function is primarily intended for use by programs.  To get a simple "
28451 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28452 "consumption, use C<guestfs_ll>."
28453 msgstr ""
28454
28455 #. type: textblock
28456 #: ../src/guestfs-actions.pod:6051
28457 msgid ""
28458 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28459 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
28460 "use>."
28461 msgstr ""
28462
28463 #. type: =head2
28464 #: ../src/guestfs-actions.pod:6057
28465 msgid "guestfs_readlink"
28466 msgstr ""
28467
28468 #. type: verbatim
28469 #: ../src/guestfs-actions.pod:6059
28470 #, no-wrap
28471 msgid ""
28472 " char *\n"
28473 " guestfs_readlink (guestfs_h *g,\n"
28474 "                   const char *path);\n"
28475 "\n"
28476 msgstr ""
28477
28478 #. type: =head2
28479 #: ../src/guestfs-actions.pod:6070
28480 msgid "guestfs_readlinklist"
28481 msgstr ""
28482
28483 #. type: verbatim
28484 #: ../src/guestfs-actions.pod:6072
28485 #, no-wrap
28486 msgid ""
28487 " char **\n"
28488 " guestfs_readlinklist (guestfs_h *g,\n"
28489 "                       const char *path,\n"
28490 "                       char *const *names);\n"
28491 "\n"
28492 msgstr ""
28493
28494 #. type: =head2
28495 #: ../src/guestfs-actions.pod:6105
28496 msgid "guestfs_realpath"
28497 msgstr ""
28498
28499 #. type: verbatim
28500 #: ../src/guestfs-actions.pod:6107
28501 #, no-wrap
28502 msgid ""
28503 " char *\n"
28504 " guestfs_realpath (guestfs_h *g,\n"
28505 "                   const char *path);\n"
28506 "\n"
28507 msgstr ""
28508
28509 #. type: =head2
28510 #: ../src/guestfs-actions.pod:6119
28511 msgid "guestfs_removexattr"
28512 msgstr ""
28513
28514 #. type: verbatim
28515 #: ../src/guestfs-actions.pod:6121
28516 #, no-wrap
28517 msgid ""
28518 " int\n"
28519 " guestfs_removexattr (guestfs_h *g,\n"
28520 "                      const char *xattr,\n"
28521 "                      const char *path);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:6129
28527 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:6135
28532 msgid "guestfs_resize2fs"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:6137
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_resize2fs (guestfs_h *g,\n"
28541 "                    const char *device);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:6144
28547 msgid ""
28548 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28549 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28550 "sometimes gives an error about this and sometimes not.  In any case, it is "
28551 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:6154
28556 msgid "guestfs_resize2fs_M"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:6156
28561 #, no-wrap
28562 msgid ""
28563 " int\n"
28564 " guestfs_resize2fs_M (guestfs_h *g,\n"
28565 "                      const char *device);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: textblock
28570 #: ../src/guestfs-actions.pod:6160
28571 msgid ""
28572 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28573 "resized to its minimum size.  This works like the I<-M> option to the "
28574 "C<resize2fs> command."
28575 msgstr ""
28576
28577 #. type: textblock
28578 #: ../src/guestfs-actions.pod:6164
28579 msgid ""
28580 "To get the resulting size of the filesystem you should call "
28581 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28582 "These two numbers, multiplied together, give the resulting size of the "
28583 "minimal filesystem in bytes."
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:6173
28588 msgid "guestfs_resize2fs_size"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:6175
28593 #, no-wrap
28594 msgid ""
28595 " int\n"
28596 " guestfs_resize2fs_size (guestfs_h *g,\n"
28597 "                         const char *device,\n"
28598 "                         int64_t size);\n"
28599 "\n"
28600 msgstr ""
28601
28602 #. type: textblock
28603 #: ../src/guestfs-actions.pod:6180
28604 msgid ""
28605 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28606 "to specify the new size (in bytes) explicitly."
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:6187
28611 msgid "guestfs_rm"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:6189
28616 #, no-wrap
28617 msgid ""
28618 " int\n"
28619 " guestfs_rm (guestfs_h *g,\n"
28620 "             const char *path);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:6199
28626 msgid "guestfs_rm_rf"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:6201
28631 #, no-wrap
28632 msgid ""
28633 " int\n"
28634 " guestfs_rm_rf (guestfs_h *g,\n"
28635 "                const char *path);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: =head2
28640 #: ../src/guestfs-actions.pod:6213
28641 msgid "guestfs_rmdir"
28642 msgstr ""
28643
28644 #. type: verbatim
28645 #: ../src/guestfs-actions.pod:6215
28646 #, no-wrap
28647 msgid ""
28648 " int\n"
28649 " guestfs_rmdir (guestfs_h *g,\n"
28650 "                const char *path);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: =head2
28655 #: ../src/guestfs-actions.pod:6225
28656 msgid "guestfs_rmmountpoint"
28657 msgstr ""
28658
28659 #. type: verbatim
28660 #: ../src/guestfs-actions.pod:6227
28661 #, no-wrap
28662 msgid ""
28663 " int\n"
28664 " guestfs_rmmountpoint (guestfs_h *g,\n"
28665 "                       const char *exemptpath);\n"
28666 "\n"
28667 msgstr ""
28668
28669 #. type: textblock
28670 #: ../src/guestfs-actions.pod:6231
28671 msgid ""
28672 "This calls removes a mountpoint that was previously created with "
28673 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28674 msgstr ""
28675
28676 #. type: =head2
28677 #: ../src/guestfs-actions.pod:6239
28678 msgid "guestfs_scrub_device"
28679 msgstr ""
28680
28681 #. type: verbatim
28682 #: ../src/guestfs-actions.pod:6241
28683 #, no-wrap
28684 msgid ""
28685 " int\n"
28686 " guestfs_scrub_device (guestfs_h *g,\n"
28687 "                       const char *device);\n"
28688 "\n"
28689 msgstr ""
28690
28691 #. type: textblock
28692 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6293
28693 msgid "(Added in 1.0.52)"
28694 msgstr ""
28695
28696 #. type: =head2
28697 #: ../src/guestfs-actions.pod:6258
28698 msgid "guestfs_scrub_file"
28699 msgstr ""
28700
28701 #. type: verbatim
28702 #: ../src/guestfs-actions.pod:6260
28703 #, no-wrap
28704 msgid ""
28705 " int\n"
28706 " guestfs_scrub_file (guestfs_h *g,\n"
28707 "                     const char *file);\n"
28708 "\n"
28709 msgstr ""
28710
28711 #. type: =head2
28712 #: ../src/guestfs-actions.pod:6276
28713 msgid "guestfs_scrub_freespace"
28714 msgstr ""
28715
28716 #. type: verbatim
28717 #: ../src/guestfs-actions.pod:6278
28718 #, no-wrap
28719 msgid ""
28720 " int\n"
28721 " guestfs_scrub_freespace (guestfs_h *g,\n"
28722 "                          const char *dir);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: textblock
28727 #: ../src/guestfs-actions.pod:6282
28728 msgid ""
28729 "This command creates the directory C<dir> and then fills it with files until "
28730 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28731 "and deletes them.  The intention is to scrub any free space on the partition "
28732 "containing C<dir>."
28733 msgstr ""
28734
28735 #. type: =head2
28736 #: ../src/guestfs-actions.pod:6295
28737 msgid "guestfs_set_append"
28738 msgstr ""
28739
28740 #. type: verbatim
28741 #: ../src/guestfs-actions.pod:6297
28742 #, no-wrap
28743 msgid ""
28744 " int\n"
28745 " guestfs_set_append (guestfs_h *g,\n"
28746 "                     const char *append);\n"
28747 "\n"
28748 msgstr ""
28749
28750 #. type: =head2
28751 #: ../src/guestfs-actions.pod:6314
28752 msgid "guestfs_set_attach_method"
28753 msgstr ""
28754
28755 #. type: verbatim
28756 #: ../src/guestfs-actions.pod:6316
28757 #, no-wrap
28758 msgid ""
28759 " int\n"
28760 " guestfs_set_attach_method (guestfs_h *g,\n"
28761 "                            const char *attachmethod);\n"
28762 "\n"
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:6344
28767 msgid "guestfs_set_autosync"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:6346
28772 #, no-wrap
28773 msgid ""
28774 " int\n"
28775 " guestfs_set_autosync (guestfs_h *g,\n"
28776 "                       int autosync);\n"
28777 "\n"
28778 msgstr ""
28779
28780 #. type: =head2
28781 #: ../src/guestfs-actions.pod:6362
28782 msgid "guestfs_set_direct"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:6364
28787 #, no-wrap
28788 msgid ""
28789 " int\n"
28790 " guestfs_set_direct (guestfs_h *g,\n"
28791 "                     int direct);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: textblock
28796 #: ../src/guestfs-actions.pod:6372
28797 msgid ""
28798 "One consequence of this is that log messages aren't caught by the library "
28799 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28800 "stdout."
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:6385
28805 msgid "guestfs_set_e2label"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:6387
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_set_e2label (guestfs_h *g,\n"
28814 "                      const char *device,\n"
28815 "                      const char *label);\n"
28816 "\n"
28817 msgstr ""
28818
28819 #. type: textblock
28820 #: ../src/guestfs-actions.pod:6396
28821 msgid ""
28822 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28823 "the existing label on a filesystem."
28824 msgstr ""
28825
28826 #. type: =head2
28827 #: ../src/guestfs-actions.pod:6403
28828 msgid "guestfs_set_e2uuid"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../src/guestfs-actions.pod:6405
28833 #, no-wrap
28834 msgid ""
28835 " int\n"
28836 " guestfs_set_e2uuid (guestfs_h *g,\n"
28837 "                     const char *device,\n"
28838 "                     const char *uuid);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: textblock
28843 #: ../src/guestfs-actions.pod:6415
28844 msgid ""
28845 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28846 "the existing UUID of a filesystem."
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:6422
28851 msgid "guestfs_set_memsize"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:6424
28856 #, no-wrap
28857 msgid ""
28858 " int\n"
28859 " guestfs_set_memsize (guestfs_h *g,\n"
28860 "                      int memsize);\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: textblock
28865 #: ../src/guestfs-actions.pod:6428
28866 msgid ""
28867 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28868 "This only has any effect if called before C<guestfs_launch>."
28869 msgstr ""
28870
28871 #. type: =head2
28872 #: ../src/guestfs-actions.pod:6443
28873 msgid "guestfs_set_network"
28874 msgstr ""
28875
28876 #. type: verbatim
28877 #: ../src/guestfs-actions.pod:6445
28878 #, no-wrap
28879 msgid ""
28880 " int\n"
28881 " guestfs_set_network (guestfs_h *g,\n"
28882 "                      int network);\n"
28883 "\n"
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:6455
28888 msgid ""
28889 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28890 "effect."
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:6462
28895 msgid "guestfs_set_path"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:6464
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_set_path (guestfs_h *g,\n"
28904 "                   const char *searchpath);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:6479
28910 msgid "guestfs_set_pgroup"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:6481
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_set_pgroup (guestfs_h *g,\n"
28919 "                     int pgroup);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: =head2
28924 #: ../src/guestfs-actions.pod:6498
28925 msgid "guestfs_set_qemu"
28926 msgstr ""
28927
28928 #. type: verbatim
28929 #: ../src/guestfs-actions.pod:6500
28930 #, no-wrap
28931 msgid ""
28932 " int\n"
28933 " guestfs_set_qemu (guestfs_h *g,\n"
28934 "                   const char *qemu);\n"
28935 "\n"
28936 msgstr ""
28937
28938 #. type: =head2
28939 #: ../src/guestfs-actions.pod:6526
28940 msgid "guestfs_set_recovery_proc"
28941 msgstr ""
28942
28943 #. type: verbatim
28944 #: ../src/guestfs-actions.pod:6528
28945 #, no-wrap
28946 msgid ""
28947 " int\n"
28948 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28949 "                            int recoveryproc);\n"
28950 "\n"
28951 msgstr ""
28952
28953 #. type: textblock
28954 #: ../src/guestfs-actions.pod:6532
28955 msgid ""
28956 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28957 "not create a recovery process.  The purpose of the recovery process is to "
28958 "stop runaway qemu processes in the case where the main program aborts "
28959 "abruptly."
28960 msgstr ""
28961
28962 #. type: textblock
28963 #: ../src/guestfs-actions.pod:6537
28964 msgid ""
28965 "This only has any effect if called before C<guestfs_launch>, and the default "
28966 "is true."
28967 msgstr ""
28968
28969 #. type: =head2
28970 #: ../src/guestfs-actions.pod:6550
28971 msgid "guestfs_set_selinux"
28972 msgstr ""
28973
28974 #. type: verbatim
28975 #: ../src/guestfs-actions.pod:6552
28976 #, no-wrap
28977 msgid ""
28978 " int\n"
28979 " guestfs_set_selinux (guestfs_h *g,\n"
28980 "                      int selinux);\n"
28981 "\n"
28982 msgstr ""
28983
28984 #. type: =head2
28985 #: ../src/guestfs-actions.pod:6569
28986 msgid "guestfs_set_smp"
28987 msgstr ""
28988
28989 #. type: verbatim
28990 #: ../src/guestfs-actions.pod:6571
28991 #, no-wrap
28992 msgid ""
28993 " int\n"
28994 " guestfs_set_smp (guestfs_h *g,\n"
28995 "                  int smp);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:6579
29001 msgid "This function must be called before C<guestfs_launch>."
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:6585
29006 msgid "guestfs_set_trace"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:6587
29011 #, no-wrap
29012 msgid ""
29013 " int\n"
29014 " guestfs_set_trace (guestfs_h *g,\n"
29015 "                    int trace);\n"
29016 "\n"
29017 msgstr ""
29018
29019 #. type: textblock
29020 #: ../src/guestfs-actions.pod:6601
29021 msgid ""
29022 "Trace messages are normally sent to C<stderr>, unless you register a "
29023 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:6609
29028 msgid "guestfs_set_verbose"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:6611
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_set_verbose (guestfs_h *g,\n"
29037 "                      int verbose);\n"
29038 "\n"
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:6620
29043 msgid ""
29044 "Verbose messages are normally sent to C<stderr>, unless you register a "
29045 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29046 msgstr ""
29047
29048 #. type: =head2
29049 #: ../src/guestfs-actions.pod:6628
29050 msgid "guestfs_setcon"
29051 msgstr ""
29052
29053 #. type: verbatim
29054 #: ../src/guestfs-actions.pod:6630
29055 #, no-wrap
29056 msgid ""
29057 " int\n"
29058 " guestfs_setcon (guestfs_h *g,\n"
29059 "                 const char *context);\n"
29060 "\n"
29061 msgstr ""
29062
29063 #. type: =head2
29064 #: ../src/guestfs-actions.pod:6643
29065 msgid "guestfs_setxattr"
29066 msgstr ""
29067
29068 #. type: verbatim
29069 #: ../src/guestfs-actions.pod:6645
29070 #, no-wrap
29071 msgid ""
29072 " int\n"
29073 " guestfs_setxattr (guestfs_h *g,\n"
29074 "                   const char *xattr,\n"
29075 "                   const char *val,\n"
29076 "                   int vallen,\n"
29077 "                   const char *path);\n"
29078 "\n"
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:6656
29083 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:6662
29088 msgid "guestfs_sfdisk"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:6664
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_sfdisk (guestfs_h *g,\n"
29097 "                 const char *device,\n"
29098 "                 int cyls,\n"
29099 "                 int heads,\n"
29100 "                 int sectors,\n"
29101 "                 char *const *lines);\n"
29102 "\n"
29103 msgstr ""
29104
29105 #. type: textblock
29106 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716 ../src/guestfs-actions.pod:6750
29107 msgid ""
29108 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
29109 "call instead."
29110 msgstr ""
29111
29112 #. type: textblock
29113 #: ../src/guestfs-actions.pod:6699
29114 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
29115 msgstr ""
29116
29117 #. type: =head2
29118 #: ../src/guestfs-actions.pod:6709
29119 msgid "guestfs_sfdiskM"
29120 msgstr ""
29121
29122 #. type: verbatim
29123 #: ../src/guestfs-actions.pod:6711
29124 #, no-wrap
29125 msgid ""
29126 " int\n"
29127 " guestfs_sfdiskM (guestfs_h *g,\n"
29128 "                  const char *device,\n"
29129 "                  char *const *lines);\n"
29130 "\n"
29131 msgstr ""
29132
29133 #. type: textblock
29134 #: ../src/guestfs-actions.pod:6723
29135 msgid ""
29136 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
29137 "partition sizes are specified in megabytes only (rounded to the nearest "
29138 "cylinder) and you don't need to specify the cyls, heads and sectors "
29139 "parameters which were rarely if ever used anyway."
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../src/guestfs-actions.pod:6729
29144 msgid ""
29145 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
29146 "C<guestfs_part_disk>"
29147 msgstr ""
29148
29149 #. type: =head2
29150 #: ../src/guestfs-actions.pod:6739
29151 msgid "guestfs_sfdisk_N"
29152 msgstr ""
29153
29154 #. type: verbatim
29155 #: ../src/guestfs-actions.pod:6741
29156 #, no-wrap
29157 msgid ""
29158 " int\n"
29159 " guestfs_sfdisk_N (guestfs_h *g,\n"
29160 "                   const char *device,\n"
29161 "                   int partnum,\n"
29162 "                   int cyls,\n"
29163 "                   int heads,\n"
29164 "                   int sectors,\n"
29165 "                   const char *line);\n"
29166 "\n"
29167 msgstr ""
29168
29169 #. type: textblock
29170 #: ../src/guestfs-actions.pod:6760
29171 msgid ""
29172 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
29173 "for the cyls/heads/sectors parameters."
29174 msgstr ""
29175
29176 #. type: textblock
29177 #: ../src/guestfs-actions.pod:6763
29178 msgid "See also: C<guestfs_part_add>"
29179 msgstr ""
29180
29181 #. type: =head2
29182 #: ../src/guestfs-actions.pod:6772
29183 msgid "guestfs_sfdisk_disk_geometry"
29184 msgstr ""
29185
29186 #. type: verbatim
29187 #: ../src/guestfs-actions.pod:6774
29188 #, no-wrap
29189 msgid ""
29190 " char *\n"
29191 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
29192 "                               const char *device);\n"
29193 "\n"
29194 msgstr ""
29195
29196 #. type: textblock
29197 #: ../src/guestfs-actions.pod:6778
29198 msgid ""
29199 "This displays the disk geometry of C<device> read from the partition table.  "
29200 "Especially in the case where the underlying block device has been resized, "
29201 "this can be different from the kernel's idea of the geometry (see "
29202 "C<guestfs_sfdisk_kernel_geometry>)."
29203 msgstr ""
29204
29205 #. type: =head2
29206 #: ../src/guestfs-actions.pod:6791
29207 msgid "guestfs_sfdisk_kernel_geometry"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../src/guestfs-actions.pod:6793
29212 #, no-wrap
29213 msgid ""
29214 " char *\n"
29215 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29216 "                                 const char *device);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:6807
29222 msgid "guestfs_sfdisk_l"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:6809
29227 #, no-wrap
29228 msgid ""
29229 " char *\n"
29230 " guestfs_sfdisk_l (guestfs_h *g,\n"
29231 "                   const char *device);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:6813
29237 msgid ""
29238 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29239 "call instead."
29240 msgstr ""
29241
29242 #. type: textblock
29243 #: ../src/guestfs-actions.pod:6824
29244 msgid "See also: C<guestfs_part_list>"
29245 msgstr ""
29246
29247 #. type: =head2
29248 #: ../src/guestfs-actions.pod:6831
29249 msgid "guestfs_sh"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../src/guestfs-actions.pod:6833
29254 #, no-wrap
29255 msgid ""
29256 " char *\n"
29257 " guestfs_sh (guestfs_h *g,\n"
29258 "             const char *command);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: textblock
29263 #: ../src/guestfs-actions.pod:6840
29264 msgid "This is like C<guestfs_command>, but passes the command to:"
29265 msgstr ""
29266
29267 #. type: textblock
29268 #: ../src/guestfs-actions.pod:6848
29269 msgid "All the provisos about C<guestfs_command> apply to this call."
29270 msgstr ""
29271
29272 #. type: =head2
29273 #: ../src/guestfs-actions.pod:6855
29274 msgid "guestfs_sh_lines"
29275 msgstr ""
29276
29277 #. type: verbatim
29278 #: ../src/guestfs-actions.pod:6857
29279 #, no-wrap
29280 msgid ""
29281 " char **\n"
29282 " guestfs_sh_lines (guestfs_h *g,\n"
29283 "                   const char *command);\n"
29284 "\n"
29285 msgstr ""
29286
29287 #. type: textblock
29288 #: ../src/guestfs-actions.pod:6861
29289 msgid ""
29290 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29291 "lines."
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../src/guestfs-actions.pod:6864
29296 msgid "See also: C<guestfs_command_lines>"
29297 msgstr ""
29298
29299 #. type: =head2
29300 #: ../src/guestfs-actions.pod:6872
29301 msgid "guestfs_sleep"
29302 msgstr ""
29303
29304 #. type: verbatim
29305 #: ../src/guestfs-actions.pod:6874
29306 #, no-wrap
29307 msgid ""
29308 " int\n"
29309 " guestfs_sleep (guestfs_h *g,\n"
29310 "                int secs);\n"
29311 "\n"
29312 msgstr ""
29313
29314 #. type: textblock
29315 #: ../src/guestfs-actions.pod:6882
29316 msgid "(Added in 1.0.41)"
29317 msgstr ""
29318
29319 #. type: =head2
29320 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
29321 msgid "guestfs_stat"
29322 msgstr ""
29323
29324 #. type: verbatim
29325 #: ../src/guestfs-actions.pod:6886
29326 #, no-wrap
29327 msgid ""
29328 " struct guestfs_stat *\n"
29329 " guestfs_stat (guestfs_h *g,\n"
29330 "               const char *path);\n"
29331 "\n"
29332 msgstr ""
29333
29334 #. type: =head2
29335 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
29336 msgid "guestfs_statvfs"
29337 msgstr ""
29338
29339 #. type: verbatim
29340 #: ../src/guestfs-actions.pod:6902
29341 #, no-wrap
29342 msgid ""
29343 " struct guestfs_statvfs *\n"
29344 " guestfs_statvfs (guestfs_h *g,\n"
29345 "                  const char *path);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: textblock
29350 #: ../src/guestfs-actions.pod:6912
29351 msgid ""
29352 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29353 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29354 msgstr ""
29355
29356 #. type: =head2
29357 #: ../src/guestfs-actions.pod:6918
29358 msgid "guestfs_strings"
29359 msgstr ""
29360
29361 #. type: verbatim
29362 #: ../src/guestfs-actions.pod:6920
29363 #, no-wrap
29364 msgid ""
29365 " char **\n"
29366 " guestfs_strings (guestfs_h *g,\n"
29367 "                  const char *path);\n"
29368 "\n"
29369 msgstr ""
29370
29371 #. type: =head2
29372 #: ../src/guestfs-actions.pod:6936
29373 msgid "guestfs_strings_e"
29374 msgstr ""
29375
29376 #. type: verbatim
29377 #: ../src/guestfs-actions.pod:6938
29378 #, no-wrap
29379 msgid ""
29380 " char **\n"
29381 " guestfs_strings_e (guestfs_h *g,\n"
29382 "                    const char *encoding,\n"
29383 "                    const char *path);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:6943
29389 msgid ""
29390 "This is like the C<guestfs_strings> command, but allows you to specify the "
29391 "encoding of strings that are looked for in the source file C<path>."
29392 msgstr ""
29393
29394 #. type: textblock
29395 #: ../src/guestfs-actions.pod:6953
29396 msgid ""
29397 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29398 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29399 msgstr ""
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:6991
29403 msgid "guestfs_swapoff_device"
29404 msgstr ""
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:6993
29408 #, no-wrap
29409 msgid ""
29410 " int\n"
29411 " guestfs_swapoff_device (guestfs_h *g,\n"
29412 "                         const char *device);\n"
29413 "\n"
29414 msgstr ""
29415
29416 #. type: textblock
29417 #: ../src/guestfs-actions.pod:6997
29418 msgid ""
29419 "This command disables the libguestfs appliance swap device or partition "
29420 "named C<device>.  See C<guestfs_swapon_device>."
29421 msgstr ""
29422
29423 #. type: =head2
29424 #: ../src/guestfs-actions.pod:7005
29425 msgid "guestfs_swapoff_file"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../src/guestfs-actions.pod:7007
29430 #, no-wrap
29431 msgid ""
29432 " int\n"
29433 " guestfs_swapoff_file (guestfs_h *g,\n"
29434 "                       const char *file);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:7017
29440 msgid "guestfs_swapoff_label"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:7019
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_swapoff_label (guestfs_h *g,\n"
29449 "                        const char *label);\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: =head2
29454 #: ../src/guestfs-actions.pod:7030
29455 msgid "guestfs_swapoff_uuid"
29456 msgstr ""
29457
29458 #. type: verbatim
29459 #: ../src/guestfs-actions.pod:7032
29460 #, no-wrap
29461 msgid ""
29462 " int\n"
29463 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29464 "                       const char *uuid);\n"
29465 "\n"
29466 msgstr ""
29467
29468 #. type: =head2
29469 #: ../src/guestfs-actions.pod:7043
29470 msgid "guestfs_swapon_device"
29471 msgstr ""
29472
29473 #. type: verbatim
29474 #: ../src/guestfs-actions.pod:7045
29475 #, no-wrap
29476 msgid ""
29477 " int\n"
29478 " guestfs_swapon_device (guestfs_h *g,\n"
29479 "                        const char *device);\n"
29480 "\n"
29481 msgstr ""
29482
29483 #. type: textblock
29484 #: ../src/guestfs-actions.pod:7049
29485 msgid ""
29486 "This command enables the libguestfs appliance to use the swap device or "
29487 "partition named C<device>.  The increased memory is made available for all "
29488 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:7065
29493 msgid "guestfs_swapon_file"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:7067
29498 #, no-wrap
29499 msgid ""
29500 " int\n"
29501 " guestfs_swapon_file (guestfs_h *g,\n"
29502 "                      const char *file);\n"
29503 "\n"
29504 msgstr ""
29505
29506 #. type: textblock
29507 #: ../src/guestfs-actions.pod:7071
29508 msgid ""
29509 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29510 "notes."
29511 msgstr ""
29512
29513 #. type: =head2
29514 #: ../src/guestfs-actions.pod:7078
29515 msgid "guestfs_swapon_label"
29516 msgstr ""
29517
29518 #. type: verbatim
29519 #: ../src/guestfs-actions.pod:7080
29520 #, no-wrap
29521 msgid ""
29522 " int\n"
29523 " guestfs_swapon_label (guestfs_h *g,\n"
29524 "                       const char *label);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: textblock
29529 #: ../src/guestfs-actions.pod:7084
29530 msgid ""
29531 "This command enables swap to a labeled swap partition.  See "
29532 "C<guestfs_swapon_device> for other notes."
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:7091
29537 msgid "guestfs_swapon_uuid"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:7093
29542 #, no-wrap
29543 msgid ""
29544 " int\n"
29545 " guestfs_swapon_uuid (guestfs_h *g,\n"
29546 "                      const char *uuid);\n"
29547 "\n"
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:7097
29552 msgid ""
29553 "This command enables swap to a swap partition with the given UUID.  See "
29554 "C<guestfs_swapon_device> for other notes."
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:7104
29559 msgid "guestfs_sync"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:7106
29564 #, no-wrap
29565 msgid ""
29566 " int\n"
29567 " guestfs_sync (guestfs_h *g);\n"
29568 "\n"
29569 msgstr ""
29570
29571 #. type: =head2
29572 #: ../src/guestfs-actions.pod:7119
29573 msgid "guestfs_tail"
29574 msgstr ""
29575
29576 #. type: verbatim
29577 #: ../src/guestfs-actions.pod:7121
29578 #, no-wrap
29579 msgid ""
29580 " char **\n"
29581 " guestfs_tail (guestfs_h *g,\n"
29582 "               const char *path);\n"
29583 "\n"
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:7137
29588 msgid "guestfs_tail_n"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:7139
29593 #, no-wrap
29594 msgid ""
29595 " char **\n"
29596 " guestfs_tail_n (guestfs_h *g,\n"
29597 "                 int nrlines,\n"
29598 "                 const char *path);\n"
29599 "\n"
29600 msgstr ""
29601
29602 #. type: =head2
29603 #: ../src/guestfs-actions.pod:7161
29604 msgid "guestfs_tar_in"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../src/guestfs-actions.pod:7163
29609 #, no-wrap
29610 msgid ""
29611 " int\n"
29612 " guestfs_tar_in (guestfs_h *g,\n"
29613 "                 const char *tarfile,\n"
29614 "                 const char *directory);\n"
29615 "\n"
29616 msgstr ""
29617
29618 #. type: textblock
29619 #: ../src/guestfs-actions.pod:7171
29620 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
29625 msgid "(Added in 1.0.3)"
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:7178
29630 msgid "guestfs_tar_out"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:7180
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_tar_out (guestfs_h *g,\n"
29639 "                  const char *directory,\n"
29640 "                  const char *tarfile);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../src/guestfs-actions.pod:7188
29646 msgid ""
29647 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29648 "C<guestfs_txz_out>."
29649 msgstr ""
29650
29651 #. type: =head2
29652 #: ../src/guestfs-actions.pod:7195
29653 msgid "guestfs_tgz_in"
29654 msgstr ""
29655
29656 #. type: verbatim
29657 #: ../src/guestfs-actions.pod:7197
29658 #, no-wrap
29659 msgid ""
29660 " int\n"
29661 " guestfs_tgz_in (guestfs_h *g,\n"
29662 "                 const char *tarball,\n"
29663 "                 const char *directory);\n"
29664 "\n"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../src/guestfs-actions.pod:7205
29669 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29670 msgstr ""
29671
29672 #. type: =head2
29673 #: ../src/guestfs-actions.pod:7211
29674 msgid "guestfs_tgz_out"
29675 msgstr ""
29676
29677 #. type: verbatim
29678 #: ../src/guestfs-actions.pod:7213
29679 #, no-wrap
29680 msgid ""
29681 " int\n"
29682 " guestfs_tgz_out (guestfs_h *g,\n"
29683 "                  const char *directory,\n"
29684 "                  const char *tarball);\n"
29685 "\n"
29686 msgstr ""
29687
29688 #. type: textblock
29689 #: ../src/guestfs-actions.pod:7221
29690 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29691 msgstr ""
29692
29693 #. type: =head2
29694 #: ../src/guestfs-actions.pod:7227
29695 msgid "guestfs_touch"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-actions.pod:7229
29700 #, no-wrap
29701 msgid ""
29702 " int\n"
29703 " guestfs_touch (guestfs_h *g,\n"
29704 "                const char *path);\n"
29705 "\n"
29706 msgstr ""
29707
29708 #. type: =head2
29709 #: ../src/guestfs-actions.pod:7244
29710 msgid "guestfs_truncate"
29711 msgstr ""
29712
29713 #. type: verbatim
29714 #: ../src/guestfs-actions.pod:7246
29715 #, no-wrap
29716 msgid ""
29717 " int\n"
29718 " guestfs_truncate (guestfs_h *g,\n"
29719 "                   const char *path);\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: =head2
29724 #: ../src/guestfs-actions.pod:7257
29725 msgid "guestfs_truncate_size"
29726 msgstr ""
29727
29728 #. type: verbatim
29729 #: ../src/guestfs-actions.pod:7259
29730 #, no-wrap
29731 msgid ""
29732 " int\n"
29733 " guestfs_truncate_size (guestfs_h *g,\n"
29734 "                        const char *path,\n"
29735 "                        int64_t size);\n"
29736 "\n"
29737 msgstr ""
29738
29739 #. type: textblock
29740 #: ../src/guestfs-actions.pod:7267
29741 msgid ""
29742 "If the current file size is less than C<size> then the file is extended to "
29743 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29744 "blocks are not allocated for the file until you write to it).  To create a "
29745 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29746 msgstr ""
29747
29748 #. type: =head2
29749 #: ../src/guestfs-actions.pod:7277
29750 msgid "guestfs_tune2fs_l"
29751 msgstr ""
29752
29753 #. type: verbatim
29754 #: ../src/guestfs-actions.pod:7279
29755 #, no-wrap
29756 msgid ""
29757 " char **\n"
29758 " guestfs_tune2fs_l (guestfs_h *g,\n"
29759 "                    const char *device);\n"
29760 "\n"
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:7299
29765 msgid "guestfs_txz_in"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:7301
29770 #, no-wrap
29771 msgid ""
29772 " int\n"
29773 " guestfs_txz_in (guestfs_h *g,\n"
29774 "                 const char *tarball,\n"
29775 "                 const char *directory);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: =head2
29780 #: ../src/guestfs-actions.pod:7313
29781 msgid "guestfs_txz_out"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-actions.pod:7315
29786 #, no-wrap
29787 msgid ""
29788 " int\n"
29789 " guestfs_txz_out (guestfs_h *g,\n"
29790 "                  const char *directory,\n"
29791 "                  const char *tarball);\n"
29792 "\n"
29793 msgstr ""
29794
29795 #. type: =head2
29796 #: ../src/guestfs-actions.pod:7327
29797 msgid "guestfs_umask"
29798 msgstr ""
29799
29800 #. type: verbatim
29801 #: ../src/guestfs-actions.pod:7329
29802 #, no-wrap
29803 msgid ""
29804 " int\n"
29805 " guestfs_umask (guestfs_h *g,\n"
29806 "                int mask);\n"
29807 "\n"
29808 msgstr ""
29809
29810 #. type: textblock
29811 #: ../src/guestfs-actions.pod:7345
29812 msgid ""
29813 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29814 "C<guestfs_mkdir>."
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-actions.pod:7354
29819 msgid "guestfs_umount"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-actions.pod:7356
29824 #, no-wrap
29825 msgid ""
29826 " int\n"
29827 " guestfs_umount (guestfs_h *g,\n"
29828 "                 const char *pathordevice);\n"
29829 "\n"
29830 msgstr ""
29831
29832 #. type: =head2
29833 #: ../src/guestfs-actions.pod:7368
29834 msgid "guestfs_umount_all"
29835 msgstr ""
29836
29837 #. type: verbatim
29838 #: ../src/guestfs-actions.pod:7370
29839 #, no-wrap
29840 msgid ""
29841 " int\n"
29842 " guestfs_umount_all (guestfs_h *g);\n"
29843 "\n"
29844 msgstr ""
29845
29846 #. type: =head2
29847 #: ../src/guestfs-actions.pod:7381
29848 msgid "guestfs_upload"
29849 msgstr ""
29850
29851 #. type: verbatim
29852 #: ../src/guestfs-actions.pod:7383
29853 #, no-wrap
29854 msgid ""
29855 " int\n"
29856 " guestfs_upload (guestfs_h *g,\n"
29857 "                 const char *filename,\n"
29858 "                 const char *remotefilename);\n"
29859 "\n"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-actions.pod:7393
29864 msgid "See also C<guestfs_download>."
29865 msgstr ""
29866
29867 #. type: =head2
29868 #: ../src/guestfs-actions.pod:7404
29869 msgid "guestfs_upload_offset"
29870 msgstr ""
29871
29872 #. type: verbatim
29873 #: ../src/guestfs-actions.pod:7406
29874 #, no-wrap
29875 msgid ""
29876 " int\n"
29877 " guestfs_upload_offset (guestfs_h *g,\n"
29878 "                        const char *filename,\n"
29879 "                        const char *remotefilename,\n"
29880 "                        int64_t offset);\n"
29881 "\n"
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:7422
29886 msgid ""
29887 "Note that there is no limit on the amount of data that can be uploaded with "
29888 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29889 "full amount unless an error occurs."
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:7427
29894 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:7438
29899 msgid "guestfs_utimens"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:7440
29904 #, no-wrap
29905 msgid ""
29906 " int\n"
29907 " guestfs_utimens (guestfs_h *g,\n"
29908 "                  const char *path,\n"
29909 "                  int64_t atsecs,\n"
29910 "                  int64_t atnsecs,\n"
29911 "                  int64_t mtsecs,\n"
29912 "                  int64_t mtnsecs);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: =head2
29917 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
29918 msgid "guestfs_version"
29919 msgstr ""
29920
29921 #. type: verbatim
29922 #: ../src/guestfs-actions.pod:7471
29923 #, no-wrap
29924 msgid ""
29925 " struct guestfs_version *\n"
29926 " guestfs_version (guestfs_h *g);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: textblock
29931 #: ../src/guestfs-actions.pod:7499
29932 msgid ""
29933 "I<Note:> Don't use this call to test for availability of features.  In "
29934 "enterprise distributions we backport features from later versions into "
29935 "earlier versions, making this an unreliable way to test for features.  Use "
29936 "C<guestfs_available> instead."
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:7505
29941 msgid ""
29942 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29943 "error.  I<The caller must call C<guestfs_free_version> after use>."
29944 msgstr ""
29945
29946 #. type: textblock
29947 #: ../src/guestfs-actions.pod:7509
29948 msgid "(Added in 1.0.58)"
29949 msgstr ""
29950
29951 #. type: =head2
29952 #: ../src/guestfs-actions.pod:7511
29953 msgid "guestfs_vfs_label"
29954 msgstr ""
29955
29956 #. type: verbatim
29957 #: ../src/guestfs-actions.pod:7513
29958 #, no-wrap
29959 msgid ""
29960 " char *\n"
29961 " guestfs_vfs_label (guestfs_h *g,\n"
29962 "                    const char *device);\n"
29963 "\n"
29964 msgstr ""
29965
29966 #. type: textblock
29967 #: ../src/guestfs-actions.pod:7522
29968 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29969 msgstr ""
29970
29971 #. type: textblock
29972 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
29973 msgid "(Added in 1.3.18)"
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:7529
29978 msgid "guestfs_vfs_type"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:7531
29983 #, no-wrap
29984 msgid ""
29985 " char *\n"
29986 " guestfs_vfs_type (guestfs_h *g,\n"
29987 "                   const char *device);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: =head2
29992 #: ../src/guestfs-actions.pod:7548
29993 msgid "guestfs_vfs_uuid"
29994 msgstr ""
29995
29996 #. type: verbatim
29997 #: ../src/guestfs-actions.pod:7550
29998 #, no-wrap
29999 msgid ""
30000 " char *\n"
30001 " guestfs_vfs_uuid (guestfs_h *g,\n"
30002 "                   const char *device);\n"
30003 "\n"
30004 msgstr ""
30005
30006 #. type: textblock
30007 #: ../src/guestfs-actions.pod:7559
30008 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30009 msgstr ""
30010
30011 #. type: =head2
30012 #: ../src/guestfs-actions.pod:7566
30013 msgid "guestfs_vg_activate"
30014 msgstr ""
30015
30016 #. type: verbatim
30017 #: ../src/guestfs-actions.pod:7568
30018 #, no-wrap
30019 msgid ""
30020 " int\n"
30021 " guestfs_vg_activate (guestfs_h *g,\n"
30022 "                      int activate,\n"
30023 "                      char *const *volgroups);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:7585
30029 msgid "guestfs_vg_activate_all"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:7587
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_vg_activate_all (guestfs_h *g,\n"
30038 "                          int activate);\n"
30039 "\n"
30040 msgstr ""
30041
30042 #. type: =head2
30043 #: ../src/guestfs-actions.pod:7600
30044 msgid "guestfs_vgcreate"
30045 msgstr ""
30046
30047 #. type: verbatim
30048 #: ../src/guestfs-actions.pod:7602
30049 #, no-wrap
30050 msgid ""
30051 " int\n"
30052 " guestfs_vgcreate (guestfs_h *g,\n"
30053 "                   const char *volgroup,\n"
30054 "                   char *const *physvols);\n"
30055 "\n"
30056 msgstr ""
30057
30058 #. type: =head2
30059 #: ../src/guestfs-actions.pod:7614
30060 msgid "guestfs_vglvuuids"
30061 msgstr ""
30062
30063 #. type: verbatim
30064 #: ../src/guestfs-actions.pod:7616
30065 #, no-wrap
30066 msgid ""
30067 " char **\n"
30068 " guestfs_vglvuuids (guestfs_h *g,\n"
30069 "                    const char *vgname);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:7623
30075 msgid ""
30076 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30077 "associate logical volumes and volume groups."
30078 msgstr ""
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:7626
30082 msgid "See also C<guestfs_vgpvuuids>."
30083 msgstr ""
30084
30085 #. type: =head2
30086 #: ../src/guestfs-actions.pod:7634
30087 msgid "guestfs_vgpvuuids"
30088 msgstr ""
30089
30090 #. type: verbatim
30091 #: ../src/guestfs-actions.pod:7636
30092 #, no-wrap
30093 msgid ""
30094 " char **\n"
30095 " guestfs_vgpvuuids (guestfs_h *g,\n"
30096 "                    const char *vgname);\n"
30097 "\n"
30098 msgstr ""
30099
30100 #. type: textblock
30101 #: ../src/guestfs-actions.pod:7643
30102 msgid ""
30103 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30104 "associate physical volumes and volume groups."
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../src/guestfs-actions.pod:7646
30109 msgid "See also C<guestfs_vglvuuids>."
30110 msgstr ""
30111
30112 #. type: =head2
30113 #: ../src/guestfs-actions.pod:7654
30114 msgid "guestfs_vgremove"
30115 msgstr ""
30116
30117 #. type: verbatim
30118 #: ../src/guestfs-actions.pod:7656
30119 #, no-wrap
30120 msgid ""
30121 " int\n"
30122 " guestfs_vgremove (guestfs_h *g,\n"
30123 "                   const char *vgname);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:7669
30129 msgid "guestfs_vgrename"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:7671
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_vgrename (guestfs_h *g,\n"
30138 "                   const char *volgroup,\n"
30139 "                   const char *newvolgroup);\n"
30140 "\n"
30141 msgstr ""
30142
30143 #. type: =head2
30144 #: ../src/guestfs-actions.pod:7682
30145 msgid "guestfs_vgs"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-actions.pod:7684
30150 #, no-wrap
30151 msgid ""
30152 " char **\n"
30153 " guestfs_vgs (guestfs_h *g);\n"
30154 "\n"
30155 msgstr ""
30156
30157 #. type: textblock
30158 #: ../src/guestfs-actions.pod:7693
30159 msgid "See also C<guestfs_vgs_full>."
30160 msgstr ""
30161
30162 #. type: =head2
30163 #: ../src/guestfs-actions.pod:7701
30164 msgid "guestfs_vgs_full"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../src/guestfs-actions.pod:7703
30169 #, no-wrap
30170 msgid ""
30171 " struct guestfs_lvm_vg_list *\n"
30172 " guestfs_vgs_full (guestfs_h *g);\n"
30173 "\n"
30174 msgstr ""
30175
30176 #. type: textblock
30177 #: ../src/guestfs-actions.pod:7709
30178 msgid ""
30179 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
30180 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
30181 "use>."
30182 msgstr ""
30183
30184 #. type: =head2
30185 #: ../src/guestfs-actions.pod:7715
30186 msgid "guestfs_vgscan"
30187 msgstr ""
30188
30189 #. type: verbatim
30190 #: ../src/guestfs-actions.pod:7717
30191 #, no-wrap
30192 msgid ""
30193 " int\n"
30194 " guestfs_vgscan (guestfs_h *g);\n"
30195 "\n"
30196 msgstr ""
30197
30198 #. type: =head2
30199 #: ../src/guestfs-actions.pod:7727
30200 msgid "guestfs_vguuid"
30201 msgstr ""
30202
30203 #. type: verbatim
30204 #: ../src/guestfs-actions.pod:7729
30205 #, no-wrap
30206 msgid ""
30207 " char *\n"
30208 " guestfs_vguuid (guestfs_h *g,\n"
30209 "                 const char *vgname);\n"
30210 "\n"
30211 msgstr ""
30212
30213 #. type: =head2
30214 #: ../src/guestfs-actions.pod:7740
30215 msgid "guestfs_wait_ready"
30216 msgstr ""
30217
30218 #. type: verbatim
30219 #: ../src/guestfs-actions.pod:7742
30220 #, no-wrap
30221 msgid ""
30222 " int\n"
30223 " guestfs_wait_ready (guestfs_h *g);\n"
30224 "\n"
30225 msgstr ""
30226
30227 #. type: textblock
30228 #: ../src/guestfs-actions.pod:7745
30229 msgid ""
30230 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30231 "instead."
30232 msgstr ""
30233
30234 #. type: textblock
30235 #: ../src/guestfs-actions.pod:7752
30236 msgid "This function is a no op."
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-actions.pod:7754
30241 msgid ""
30242 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30243 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30244 "is no longer necessary because C<guestfs_launch> now does the waiting."
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../src/guestfs-actions.pod:7759
30249 msgid ""
30250 "If you see any calls to this function in code then you can just remove them, "
30251 "unless you want to retain compatibility with older versions of the API."
30252 msgstr ""
30253
30254 #. type: =head2
30255 #: ../src/guestfs-actions.pod:7767
30256 msgid "guestfs_wc_c"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-actions.pod:7769
30261 #, no-wrap
30262 msgid ""
30263 " int\n"
30264 " guestfs_wc_c (guestfs_h *g,\n"
30265 "               const char *path);\n"
30266 "\n"
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:7780
30271 msgid "guestfs_wc_l"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:7782
30276 #, no-wrap
30277 msgid ""
30278 " int\n"
30279 " guestfs_wc_l (guestfs_h *g,\n"
30280 "               const char *path);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: =head2
30285 #: ../src/guestfs-actions.pod:7793
30286 msgid "guestfs_wc_w"
30287 msgstr ""
30288
30289 #. type: verbatim
30290 #: ../src/guestfs-actions.pod:7795
30291 #, no-wrap
30292 msgid ""
30293 " int\n"
30294 " guestfs_wc_w (guestfs_h *g,\n"
30295 "               const char *path);\n"
30296 "\n"
30297 msgstr ""
30298
30299 #. type: =head2
30300 #: ../src/guestfs-actions.pod:7806
30301 msgid "guestfs_write"
30302 msgstr ""
30303
30304 #. type: verbatim
30305 #: ../src/guestfs-actions.pod:7808
30306 #, no-wrap
30307 msgid ""
30308 " int\n"
30309 " guestfs_write (guestfs_h *g,\n"
30310 "                const char *path,\n"
30311 "                const char *content,\n"
30312 "                size_t content_size);\n"
30313 "\n"
30314 msgstr ""
30315
30316 #. type: textblock
30317 #: ../src/guestfs-actions.pod:7817
30318 msgid "See also C<guestfs_write_append>."
30319 msgstr ""
30320
30321 #. type: =head2
30322 #: ../src/guestfs-actions.pod:7826
30323 msgid "guestfs_write_append"
30324 msgstr ""
30325
30326 #. type: verbatim
30327 #: ../src/guestfs-actions.pod:7828
30328 #, no-wrap
30329 msgid ""
30330 " int\n"
30331 " guestfs_write_append (guestfs_h *g,\n"
30332 "                       const char *path,\n"
30333 "                       const char *content,\n"
30334 "                       size_t content_size);\n"
30335 "\n"
30336 msgstr ""
30337
30338 #. type: textblock
30339 #: ../src/guestfs-actions.pod:7837
30340 msgid "See also C<guestfs_write>."
30341 msgstr ""
30342
30343 #. type: =head2
30344 #: ../src/guestfs-actions.pod:7846
30345 msgid "guestfs_write_file"
30346 msgstr ""
30347
30348 #. type: verbatim
30349 #: ../src/guestfs-actions.pod:7848
30350 #, no-wrap
30351 msgid ""
30352 " int\n"
30353 " guestfs_write_file (guestfs_h *g,\n"
30354 "                     const char *path,\n"
30355 "                     const char *content,\n"
30356 "                     int size);\n"
30357 "\n"
30358 msgstr ""
30359
30360 #. type: textblock
30361 #: ../src/guestfs-actions.pod:7854
30362 msgid ""
30363 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
30364 "instead."
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:7879
30369 msgid "guestfs_zegrep"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:7881
30374 #, no-wrap
30375 msgid ""
30376 " char **\n"
30377 " guestfs_zegrep (guestfs_h *g,\n"
30378 "                 const char *regex,\n"
30379 "                 const char *path);\n"
30380 "\n"
30381 msgstr ""
30382
30383 #. type: =head2
30384 #: ../src/guestfs-actions.pod:7898
30385 msgid "guestfs_zegrepi"
30386 msgstr ""
30387
30388 #. type: verbatim
30389 #: ../src/guestfs-actions.pod:7900
30390 #, no-wrap
30391 msgid ""
30392 " char **\n"
30393 " guestfs_zegrepi (guestfs_h *g,\n"
30394 "                  const char *regex,\n"
30395 "                  const char *path);\n"
30396 "\n"
30397 msgstr ""
30398
30399 #. type: =head2
30400 #: ../src/guestfs-actions.pod:7917
30401 msgid "guestfs_zero"
30402 msgstr ""
30403
30404 #. type: verbatim
30405 #: ../src/guestfs-actions.pod:7919
30406 #, no-wrap
30407 msgid ""
30408 " int\n"
30409 " guestfs_zero (guestfs_h *g,\n"
30410 "               const char *device);\n"
30411 "\n"
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs-actions.pod:7933
30416 msgid ""
30417 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30418 "C<guestfs_is_zero_device>"
30419 msgstr ""
30420
30421 #. type: =head2
30422 #: ../src/guestfs-actions.pod:7945
30423 msgid "guestfs_zero_device"
30424 msgstr ""
30425
30426 #. type: verbatim
30427 #: ../src/guestfs-actions.pod:7947
30428 #, no-wrap
30429 msgid ""
30430 " int\n"
30431 " guestfs_zero_device (guestfs_h *g,\n"
30432 "                      const char *device);\n"
30433 "\n"
30434 msgstr ""
30435
30436 #. type: textblock
30437 #: ../src/guestfs-actions.pod:7951
30438 msgid ""
30439 "This command writes zeroes over the entire C<device>.  Compare with "
30440 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30441 msgstr ""
30442
30443 #. type: textblock
30444 #: ../src/guestfs-actions.pod:7969
30445 msgid "(Added in 1.3.1)"
30446 msgstr ""
30447
30448 #. type: =head2
30449 #: ../src/guestfs-actions.pod:7971
30450 msgid "guestfs_zerofree"
30451 msgstr ""
30452
30453 #. type: verbatim
30454 #: ../src/guestfs-actions.pod:7973
30455 #, no-wrap
30456 msgid ""
30457 " int\n"
30458 " guestfs_zerofree (guestfs_h *g,\n"
30459 "                   const char *device);\n"
30460 "\n"
30461 msgstr ""
30462
30463 #. type: =head2
30464 #: ../src/guestfs-actions.pod:7992
30465 msgid "guestfs_zfgrep"
30466 msgstr ""
30467
30468 #. type: verbatim
30469 #: ../src/guestfs-actions.pod:7994
30470 #, no-wrap
30471 msgid ""
30472 " char **\n"
30473 " guestfs_zfgrep (guestfs_h *g,\n"
30474 "                 const char *pattern,\n"
30475 "                 const char *path);\n"
30476 "\n"
30477 msgstr ""
30478
30479 #. type: =head2
30480 #: ../src/guestfs-actions.pod:8011
30481 msgid "guestfs_zfgrepi"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-actions.pod:8013
30486 #, no-wrap
30487 msgid ""
30488 " char **\n"
30489 " guestfs_zfgrepi (guestfs_h *g,\n"
30490 "                  const char *pattern,\n"
30491 "                  const char *path);\n"
30492 "\n"
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:8030
30497 msgid "guestfs_zfile"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:8032
30502 #, no-wrap
30503 msgid ""
30504 " char *\n"
30505 " guestfs_zfile (guestfs_h *g,\n"
30506 "                const char *meth,\n"
30507 "                const char *path);\n"
30508 "\n"
30509 msgstr ""
30510
30511 #. type: textblock
30512 #: ../src/guestfs-actions.pod:8037
30513 msgid ""
30514 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30515 "instead."
30516 msgstr ""
30517
30518 #. type: textblock
30519 #: ../src/guestfs-actions.pod:8049
30520 msgid ""
30521 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30522 "files."
30523 msgstr ""
30524
30525 #. type: =head2
30526 #: ../src/guestfs-actions.pod:8057
30527 msgid "guestfs_zgrep"
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../src/guestfs-actions.pod:8059
30532 #, no-wrap
30533 msgid ""
30534 " char **\n"
30535 " guestfs_zgrep (guestfs_h *g,\n"
30536 "                const char *regex,\n"
30537 "                const char *path);\n"
30538 "\n"
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:8076
30543 msgid "guestfs_zgrepi"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:8078
30548 #, no-wrap
30549 msgid ""
30550 " char **\n"
30551 " guestfs_zgrepi (guestfs_h *g,\n"
30552 "                 const char *regex,\n"
30553 "                 const char *path);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: =item
30558 #: ../src/guestfs-availability.pod:3
30559 msgid "B<augeas>"
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../src/guestfs-availability.pod:5
30564 msgid ""
30565 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
30566 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
30567 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
30568 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
30569 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
30570 msgstr ""
30571
30572 #. type: =item
30573 #: ../src/guestfs-availability.pod:21
30574 msgid "B<btrfs>"
30575 msgstr ""
30576
30577 #. type: textblock
30578 #: ../src/guestfs-availability.pod:23
30579 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30580 msgstr ""
30581
30582 #. type: =item
30583 #: ../src/guestfs-availability.pod:26
30584 msgid "B<grub>"
30585 msgstr ""
30586
30587 #. type: textblock
30588 #: ../src/guestfs-availability.pod:28
30589 msgid "The following functions: L</guestfs_grub_install>"
30590 msgstr ""
30591
30592 #. type: =item
30593 #: ../src/guestfs-availability.pod:31
30594 msgid "B<inotify>"
30595 msgstr ""
30596
30597 #. type: textblock
30598 #: ../src/guestfs-availability.pod:33
30599 msgid ""
30600 "The following functions: L</guestfs_inotify_add_watch> "
30601 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
30602 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30603 msgstr ""
30604
30605 #. type: =item
30606 #: ../src/guestfs-availability.pod:41
30607 msgid "B<linuxfsuuid>"
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-availability.pod:43
30612 msgid ""
30613 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
30614 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30615 msgstr ""
30616
30617 #. type: =item
30618 #: ../src/guestfs-availability.pod:50
30619 msgid "B<linuxmodules>"
30620 msgstr ""
30621
30622 #. type: textblock
30623 #: ../src/guestfs-availability.pod:52
30624 msgid "The following functions: L</guestfs_modprobe>"
30625 msgstr ""
30626
30627 #. type: =item
30628 #: ../src/guestfs-availability.pod:55
30629 msgid "B<linuxxattrs>"
30630 msgstr ""
30631
30632 #. type: textblock
30633 #: ../src/guestfs-availability.pod:57
30634 msgid ""
30635 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
30636 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
30637 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
30638 "L</guestfs_setxattr>"
30639 msgstr ""
30640
30641 #. type: =item
30642 #: ../src/guestfs-availability.pod:68
30643 msgid "B<luks>"
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../src/guestfs-availability.pod:70
30648 msgid ""
30649 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
30650 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
30651 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30652 msgstr ""
30653
30654 #. type: =item
30655 #: ../src/guestfs-availability.pod:79
30656 msgid "B<lvm2>"
30657 msgstr ""
30658
30659 #. type: textblock
30660 #: ../src/guestfs-availability.pod:81
30661 msgid ""
30662 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
30663 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
30664 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
30665 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
30666 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
30667 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
30668 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
30669 "L</guestfs_vgs_full>"
30670 msgstr ""
30671
30672 #. type: =item
30673 #: ../src/guestfs-availability.pod:104
30674 msgid "B<mknod>"
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs-availability.pod:106
30679 msgid ""
30680 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
30681 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
30682 msgstr ""
30683
30684 #. type: =item
30685 #: ../src/guestfs-availability.pod:112
30686 msgid "B<ntfs3g>"
30687 msgstr ""
30688
30689 #. type: textblock
30690 #: ../src/guestfs-availability.pod:114
30691 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30692 msgstr ""
30693
30694 #. type: =item
30695 #: ../src/guestfs-availability.pod:117
30696 msgid "B<ntfsprogs>"
30697 msgstr ""
30698
30699 #. type: textblock
30700 #: ../src/guestfs-availability.pod:119
30701 msgid ""
30702 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30703 "L</guestfs_ntfsresize_size>"
30704 msgstr ""
30705
30706 #. type: =item
30707 #: ../src/guestfs-availability.pod:124
30708 msgid "B<realpath>"
30709 msgstr ""
30710
30711 #. type: textblock
30712 #: ../src/guestfs-availability.pod:126
30713 msgid "The following functions: L</guestfs_realpath>"
30714 msgstr ""
30715
30716 #. type: =item
30717 #: ../src/guestfs-availability.pod:129
30718 msgid "B<scrub>"
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs-availability.pod:131
30723 msgid ""
30724 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
30725 "L</guestfs_scrub_freespace>"
30726 msgstr ""
30727
30728 #. type: =item
30729 #: ../src/guestfs-availability.pod:136
30730 msgid "B<selinux>"
30731 msgstr ""
30732
30733 #. type: textblock
30734 #: ../src/guestfs-availability.pod:138
30735 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30736 msgstr ""
30737
30738 #. type: =item
30739 #: ../src/guestfs-availability.pod:142
30740 msgid "B<xz>"
30741 msgstr ""
30742
30743 #. type: textblock
30744 #: ../src/guestfs-availability.pod:144
30745 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30746 msgstr ""
30747
30748 #. type: =item
30749 #: ../src/guestfs-availability.pod:148
30750 msgid "B<zerofree>"
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../src/guestfs-availability.pod:150
30755 msgid "The following functions: L</guestfs_zerofree>"
30756 msgstr ""
30757
30758 #. type: =head2
30759 #: ../src/guestfs-structs.pod:1
30760 msgid "guestfs_int_bool"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-structs.pod:3
30765 #, no-wrap
30766 msgid ""
30767 " struct guestfs_int_bool {\n"
30768 "   int32_t i;\n"
30769 "   int32_t b;\n"
30770 " };\n"
30771 " \n"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../src/guestfs-structs.pod:8
30776 #, no-wrap
30777 msgid ""
30778 " struct guestfs_int_bool_list {\n"
30779 "   uint32_t len; /* Number of elements in list. */\n"
30780 "   struct guestfs_int_bool *val; /* Elements. */\n"
30781 " };\n"
30782 " \n"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-structs.pod:13
30787 #, no-wrap
30788 msgid ""
30789 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30790 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30791 "\n"
30792 msgstr ""
30793
30794 #. type: =head2
30795 #: ../src/guestfs-structs.pod:16
30796 msgid "guestfs_lvm_pv"
30797 msgstr ""
30798
30799 #. type: verbatim
30800 #: ../src/guestfs-structs.pod:18
30801 #, no-wrap
30802 msgid ""
30803 " struct guestfs_lvm_pv {\n"
30804 "   char *pv_name;\n"
30805 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30806 "*/\n"
30807 "   char pv_uuid[32];\n"
30808 "   char *pv_fmt;\n"
30809 "   uint64_t pv_size;\n"
30810 "   uint64_t dev_size;\n"
30811 "   uint64_t pv_free;\n"
30812 "   uint64_t pv_used;\n"
30813 "   char *pv_attr;\n"
30814 "   int64_t pv_pe_count;\n"
30815 "   int64_t pv_pe_alloc_count;\n"
30816 "   char *pv_tags;\n"
30817 "   uint64_t pe_start;\n"
30818 "   int64_t pv_mda_count;\n"
30819 "   uint64_t pv_mda_free;\n"
30820 " };\n"
30821 " \n"
30822 msgstr ""
30823
30824 #. type: verbatim
30825 #: ../src/guestfs-structs.pod:36
30826 #, no-wrap
30827 msgid ""
30828 " struct guestfs_lvm_pv_list {\n"
30829 "   uint32_t len; /* Number of elements in list. */\n"
30830 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30831 " };\n"
30832 " \n"
30833 msgstr ""
30834
30835 #. type: verbatim
30836 #: ../src/guestfs-structs.pod:41
30837 #, no-wrap
30838 msgid ""
30839 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30840 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30841 "\n"
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs-structs.pod:44
30846 msgid "guestfs_lvm_vg"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs-structs.pod:46
30851 #, no-wrap
30852 msgid ""
30853 " struct guestfs_lvm_vg {\n"
30854 "   char *vg_name;\n"
30855 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30856 "*/\n"
30857 "   char vg_uuid[32];\n"
30858 "   char *vg_fmt;\n"
30859 "   char *vg_attr;\n"
30860 "   uint64_t vg_size;\n"
30861 "   uint64_t vg_free;\n"
30862 "   char *vg_sysid;\n"
30863 "   uint64_t vg_extent_size;\n"
30864 "   int64_t vg_extent_count;\n"
30865 "   int64_t vg_free_count;\n"
30866 "   int64_t max_lv;\n"
30867 "   int64_t max_pv;\n"
30868 "   int64_t pv_count;\n"
30869 "   int64_t lv_count;\n"
30870 "   int64_t snap_count;\n"
30871 "   int64_t vg_seqno;\n"
30872 "   char *vg_tags;\n"
30873 "   int64_t vg_mda_count;\n"
30874 "   uint64_t vg_mda_free;\n"
30875 " };\n"
30876 " \n"
30877 msgstr ""
30878
30879 #. type: verbatim
30880 #: ../src/guestfs-structs.pod:69
30881 #, no-wrap
30882 msgid ""
30883 " struct guestfs_lvm_vg_list {\n"
30884 "   uint32_t len; /* Number of elements in list. */\n"
30885 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30886 " };\n"
30887 " \n"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-structs.pod:74
30892 #, no-wrap
30893 msgid ""
30894 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30895 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30896 "\n"
30897 msgstr ""
30898
30899 #. type: =head2
30900 #: ../src/guestfs-structs.pod:77
30901 msgid "guestfs_lvm_lv"
30902 msgstr ""
30903
30904 #. type: verbatim
30905 #: ../src/guestfs-structs.pod:79
30906 #, no-wrap
30907 msgid ""
30908 " struct guestfs_lvm_lv {\n"
30909 "   char *lv_name;\n"
30910 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30911 "*/\n"
30912 "   char lv_uuid[32];\n"
30913 "   char *lv_attr;\n"
30914 "   int64_t lv_major;\n"
30915 "   int64_t lv_minor;\n"
30916 "   int64_t lv_kernel_major;\n"
30917 "   int64_t lv_kernel_minor;\n"
30918 "   uint64_t lv_size;\n"
30919 "   int64_t seg_count;\n"
30920 "   char *origin;\n"
30921 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30922 "   float snap_percent;\n"
30923 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30924 "   float copy_percent;\n"
30925 "   char *move_pv;\n"
30926 "   char *lv_tags;\n"
30927 "   char *mirror_log;\n"
30928 "   char *modules;\n"
30929 " };\n"
30930 " \n"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-structs.pod:101
30935 #, no-wrap
30936 msgid ""
30937 " struct guestfs_lvm_lv_list {\n"
30938 "   uint32_t len; /* Number of elements in list. */\n"
30939 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30940 " };\n"
30941 " \n"
30942 msgstr ""
30943
30944 #. type: verbatim
30945 #: ../src/guestfs-structs.pod:106
30946 #, no-wrap
30947 msgid ""
30948 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30949 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30950 "\n"
30951 msgstr ""
30952
30953 #. type: verbatim
30954 #: ../src/guestfs-structs.pod:111
30955 #, no-wrap
30956 msgid ""
30957 " struct guestfs_stat {\n"
30958 "   int64_t dev;\n"
30959 "   int64_t ino;\n"
30960 "   int64_t mode;\n"
30961 "   int64_t nlink;\n"
30962 "   int64_t uid;\n"
30963 "   int64_t gid;\n"
30964 "   int64_t rdev;\n"
30965 "   int64_t size;\n"
30966 "   int64_t blksize;\n"
30967 "   int64_t blocks;\n"
30968 "   int64_t atime;\n"
30969 "   int64_t mtime;\n"
30970 "   int64_t ctime;\n"
30971 " };\n"
30972 " \n"
30973 msgstr ""
30974
30975 #. type: verbatim
30976 #: ../src/guestfs-structs.pod:127
30977 #, no-wrap
30978 msgid ""
30979 " struct guestfs_stat_list {\n"
30980 "   uint32_t len; /* Number of elements in list. */\n"
30981 "   struct guestfs_stat *val; /* Elements. */\n"
30982 " };\n"
30983 " \n"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-structs.pod:132
30988 #, no-wrap
30989 msgid ""
30990 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30991 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: verbatim
30996 #: ../src/guestfs-structs.pod:137
30997 #, no-wrap
30998 msgid ""
30999 " struct guestfs_statvfs {\n"
31000 "   int64_t bsize;\n"
31001 "   int64_t frsize;\n"
31002 "   int64_t blocks;\n"
31003 "   int64_t bfree;\n"
31004 "   int64_t bavail;\n"
31005 "   int64_t files;\n"
31006 "   int64_t ffree;\n"
31007 "   int64_t favail;\n"
31008 "   int64_t fsid;\n"
31009 "   int64_t flag;\n"
31010 "   int64_t namemax;\n"
31011 " };\n"
31012 " \n"
31013 msgstr ""
31014
31015 #. type: verbatim
31016 #: ../src/guestfs-structs.pod:151
31017 #, no-wrap
31018 msgid ""
31019 " struct guestfs_statvfs_list {\n"
31020 "   uint32_t len; /* Number of elements in list. */\n"
31021 "   struct guestfs_statvfs *val; /* Elements. */\n"
31022 " };\n"
31023 " \n"
31024 msgstr ""
31025
31026 #. type: verbatim
31027 #: ../src/guestfs-structs.pod:156
31028 #, no-wrap
31029 msgid ""
31030 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31031 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31032 "\n"
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-structs.pod:159
31037 msgid "guestfs_dirent"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-structs.pod:161
31042 #, no-wrap
31043 msgid ""
31044 " struct guestfs_dirent {\n"
31045 "   int64_t ino;\n"
31046 "   char ftyp;\n"
31047 "   char *name;\n"
31048 " };\n"
31049 " \n"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs-structs.pod:167
31054 #, no-wrap
31055 msgid ""
31056 " struct guestfs_dirent_list {\n"
31057 "   uint32_t len; /* Number of elements in list. */\n"
31058 "   struct guestfs_dirent *val; /* Elements. */\n"
31059 " };\n"
31060 " \n"
31061 msgstr ""
31062
31063 #. type: verbatim
31064 #: ../src/guestfs-structs.pod:172
31065 #, no-wrap
31066 msgid ""
31067 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31068 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31069 "\n"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs-structs.pod:177
31074 #, no-wrap
31075 msgid ""
31076 " struct guestfs_version {\n"
31077 "   int64_t major;\n"
31078 "   int64_t minor;\n"
31079 "   int64_t release;\n"
31080 "   char *extra;\n"
31081 " };\n"
31082 " \n"
31083 msgstr ""
31084
31085 #. type: verbatim
31086 #: ../src/guestfs-structs.pod:184
31087 #, no-wrap
31088 msgid ""
31089 " struct guestfs_version_list {\n"
31090 "   uint32_t len; /* Number of elements in list. */\n"
31091 "   struct guestfs_version *val; /* Elements. */\n"
31092 " };\n"
31093 " \n"
31094 msgstr ""
31095
31096 #. type: verbatim
31097 #: ../src/guestfs-structs.pod:189
31098 #, no-wrap
31099 msgid ""
31100 " void guestfs_free_version (struct guestfs_free_version *);\n"
31101 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: =head2
31106 #: ../src/guestfs-structs.pod:192
31107 msgid "guestfs_xattr"
31108 msgstr ""
31109
31110 #. type: verbatim
31111 #: ../src/guestfs-structs.pod:194
31112 #, no-wrap
31113 msgid ""
31114 " struct guestfs_xattr {\n"
31115 "   char *attrname;\n"
31116 "   /* The next two fields describe a byte array. */\n"
31117 "   uint32_t attrval_len;\n"
31118 "   char *attrval;\n"
31119 " };\n"
31120 " \n"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-structs.pod:201
31125 #, no-wrap
31126 msgid ""
31127 " struct guestfs_xattr_list {\n"
31128 "   uint32_t len; /* Number of elements in list. */\n"
31129 "   struct guestfs_xattr *val; /* Elements. */\n"
31130 " };\n"
31131 " \n"
31132 msgstr ""
31133
31134 #. type: verbatim
31135 #: ../src/guestfs-structs.pod:206
31136 #, no-wrap
31137 msgid ""
31138 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
31139 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
31140 "\n"
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-structs.pod:209
31145 msgid "guestfs_inotify_event"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-structs.pod:211
31150 #, no-wrap
31151 msgid ""
31152 " struct guestfs_inotify_event {\n"
31153 "   int64_t in_wd;\n"
31154 "   uint32_t in_mask;\n"
31155 "   uint32_t in_cookie;\n"
31156 "   char *in_name;\n"
31157 " };\n"
31158 " \n"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs-structs.pod:218
31163 #, no-wrap
31164 msgid ""
31165 " struct guestfs_inotify_event_list {\n"
31166 "   uint32_t len; /* Number of elements in list. */\n"
31167 "   struct guestfs_inotify_event *val; /* Elements. */\n"
31168 " };\n"
31169 " \n"
31170 msgstr ""
31171
31172 #. type: verbatim
31173 #: ../src/guestfs-structs.pod:223
31174 #, no-wrap
31175 msgid ""
31176 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
31177 " void guestfs_free_inotify_event_list (struct "
31178 "guestfs_free_inotify_event_list *);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: =head2
31183 #: ../src/guestfs-structs.pod:226
31184 msgid "guestfs_partition"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-structs.pod:228
31189 #, no-wrap
31190 msgid ""
31191 " struct guestfs_partition {\n"
31192 "   int32_t part_num;\n"
31193 "   uint64_t part_start;\n"
31194 "   uint64_t part_end;\n"
31195 "   uint64_t part_size;\n"
31196 " };\n"
31197 " \n"
31198 msgstr ""
31199
31200 #. type: verbatim
31201 #: ../src/guestfs-structs.pod:235
31202 #, no-wrap
31203 msgid ""
31204 " struct guestfs_partition_list {\n"
31205 "   uint32_t len; /* Number of elements in list. */\n"
31206 "   struct guestfs_partition *val; /* Elements. */\n"
31207 " };\n"
31208 " \n"
31209 msgstr ""
31210
31211 #. type: verbatim
31212 #: ../src/guestfs-structs.pod:240
31213 #, no-wrap
31214 msgid ""
31215 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31216 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31217 "\n"
31218 msgstr ""
31219
31220 #. type: =head2
31221 #: ../src/guestfs-structs.pod:243
31222 msgid "guestfs_application"
31223 msgstr ""
31224
31225 #. type: verbatim
31226 #: ../src/guestfs-structs.pod:245
31227 #, no-wrap
31228 msgid ""
31229 " struct guestfs_application {\n"
31230 "   char *app_name;\n"
31231 "   char *app_display_name;\n"
31232 "   int32_t app_epoch;\n"
31233 "   char *app_version;\n"
31234 "   char *app_release;\n"
31235 "   char *app_install_path;\n"
31236 "   char *app_trans_path;\n"
31237 "   char *app_publisher;\n"
31238 "   char *app_url;\n"
31239 "   char *app_source_package;\n"
31240 "   char *app_summary;\n"
31241 "   char *app_description;\n"
31242 " };\n"
31243 " \n"
31244 msgstr ""
31245
31246 #. type: verbatim
31247 #: ../src/guestfs-structs.pod:260
31248 #, no-wrap
31249 msgid ""
31250 " struct guestfs_application_list {\n"
31251 "   uint32_t len; /* Number of elements in list. */\n"
31252 "   struct guestfs_application *val; /* Elements. */\n"
31253 " };\n"
31254 " \n"
31255 msgstr ""
31256
31257 #. type: verbatim
31258 #: ../src/guestfs-structs.pod:265
31259 #, no-wrap
31260 msgid ""
31261 " void guestfs_free_application (struct guestfs_free_application *);\n"
31262 " void guestfs_free_application_list (struct guestfs_free_application_list "
31263 "*);\n"
31264 "\n"
31265 msgstr ""
31266
31267 #. type: textblock
31268 #: ../src/guestfs.pod:5
31269 msgid "guestfs - Library for accessing and modifying virtual machine images"
31270 msgstr ""
31271
31272 #. type: verbatim
31273 #: ../src/guestfs.pod:11
31274 #, no-wrap
31275 msgid ""
31276 " guestfs_h *g = guestfs_create ();\n"
31277 " guestfs_add_drive (g, \"guest.img\");\n"
31278 " guestfs_launch (g);\n"
31279 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31280 " guestfs_touch (g, \"/hello\");\n"
31281 " guestfs_umount (g, \"/\");\n"
31282 " guestfs_close (g);\n"
31283 "\n"
31284 msgstr ""
31285
31286 #. type: textblock
31287 #: ../src/guestfs.pod:25
31288 msgid ""
31289 "Libguestfs is a library for accessing and modifying guest disk images.  "
31290 "Amongst the things this is good for: making batch configuration changes to "
31291 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31292 "between virtualization systems (see also: virt-p2v), performing partial "
31293 "backups, performing partial guest clones, cloning guests and changing "
31294 "registry/UUID/hostname info, and much else besides."
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs.pod:33
31299 msgid ""
31300 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31301 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31302 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31303 "qcow2, vmdk."
31304 msgstr ""
31305
31306 #. type: textblock
31307 #: ../src/guestfs.pod:38
31308 msgid ""
31309 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31310 "what filesystem is in each LV, etc.).  It can also run commands in the "
31311 "context of the guest.  Also you can access filesystems over FUSE."
31312 msgstr ""
31313
31314 #. type: textblock
31315 #: ../src/guestfs.pod:43
31316 msgid ""
31317 "Libguestfs is a library that can be linked with C and C++ management "
31318 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31319 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
31320 "command line."
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:48
31325 msgid ""
31326 "You don't need to be root to use libguestfs, although obviously you do need "
31327 "enough permissions to access the disk images."
31328 msgstr ""
31329
31330 #. type: textblock
31331 #: ../src/guestfs.pod:51
31332 msgid ""
31333 "Libguestfs is a large API because it can do many things.  For a gentle "
31334 "introduction, please read the L</API OVERVIEW> section next."
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs.pod:54
31339 msgid ""
31340 "There are also some example programs in the L<guestfs-examples(3)> manual "
31341 "page."
31342 msgstr ""
31343
31344 #. type: =head1
31345 #: ../src/guestfs.pod:57
31346 msgid "API OVERVIEW"
31347 msgstr ""
31348
31349 #. type: textblock
31350 #: ../src/guestfs.pod:59
31351 msgid ""
31352 "This section provides a gentler overview of the libguestfs API.  We also try "
31353 "to group API calls together, where that may not be obvious from reading "
31354 "about the individual calls in the main section of this manual."
31355 msgstr ""
31356
31357 #. type: =head2
31358 #: ../src/guestfs.pod:64
31359 msgid "HANDLES"
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs.pod:66
31364 msgid ""
31365 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31366 "must add at least one disk image to the handle, followed by launching the "
31367 "handle, then performing whatever operations you want, and finally closing "
31368 "the handle.  By convention we use the single letter C<g> for the name of the "
31369 "handle variable, although of course you can use any name you want."
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs.pod:73
31374 msgid "The general structure of all libguestfs-using programs looks like this:"
31375 msgstr ""
31376
31377 #. type: verbatim
31378 #: ../src/guestfs.pod:76
31379 #, no-wrap
31380 msgid ""
31381 " guestfs_h *g = guestfs_create ();\n"
31382 " \n"
31383 msgstr ""
31384
31385 #. type: verbatim
31386 #: ../src/guestfs.pod:78
31387 #, no-wrap
31388 msgid ""
31389 " /* Call guestfs_add_drive additional times if there are\n"
31390 "  * multiple disk images.\n"
31391 "  */\n"
31392 " guestfs_add_drive (g, \"guest.img\");\n"
31393 " \n"
31394 msgstr ""
31395
31396 #. type: verbatim
31397 #: ../src/guestfs.pod:83
31398 #, no-wrap
31399 msgid ""
31400 " /* Most manipulation calls won't work until you've launched\n"
31401 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31402 "  * and _before_ other commands.\n"
31403 "  */\n"
31404 " guestfs_launch (g);\n"
31405 " \n"
31406 msgstr ""
31407
31408 #. type: verbatim
31409 #: ../src/guestfs.pod:89
31410 #, no-wrap
31411 msgid ""
31412 " /* Now you can examine what partitions, LVs etc are available.\n"
31413 "  */\n"
31414 " char **partitions = guestfs_list_partitions (g);\n"
31415 " char **logvols = guestfs_lvs (g);\n"
31416 " \n"
31417 msgstr ""
31418
31419 #. type: verbatim
31420 #: ../src/guestfs.pod:94
31421 #, no-wrap
31422 msgid ""
31423 " /* To access a filesystem in the image, you must mount it.\n"
31424 "  */\n"
31425 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31426 " \n"
31427 msgstr ""
31428
31429 #. type: verbatim
31430 #: ../src/guestfs.pod:98
31431 #, no-wrap
31432 msgid ""
31433 " /* Now you can perform filesystem actions on the guest\n"
31434 "  * disk image.\n"
31435 "  */\n"
31436 " guestfs_touch (g, \"/hello\");\n"
31437 " \n"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs.pod:103
31442 #, no-wrap
31443 msgid ""
31444 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31445 "  * it is done automatically when you close the handle.  See\n"
31446 "  * discussion of autosync in this page.\n"
31447 "  */\n"
31448 " guestfs_sync (g);\n"
31449 " \n"
31450 msgstr ""
31451
31452 #. type: verbatim
31453 #: ../src/guestfs.pod:109
31454 #, no-wrap
31455 msgid ""
31456 " /* Close the handle 'g'. */\n"
31457 " guestfs_close (g);\n"
31458 "\n"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs.pod:112
31463 msgid ""
31464 "The code above doesn't include any error checking.  In real code you should "
31465 "check return values carefully for errors.  In general all functions that "
31466 "return integers return C<-1> on error, and all functions that return "
31467 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31468 "how to handle errors, and consult the documentation for each function call "
31469 "below to see precisely how they return error indications.  See "
31470 "L<guestfs-examples(3)> for fully worked examples."
31471 msgstr ""
31472
31473 #. type: =head2
31474 #: ../src/guestfs.pod:121
31475 msgid "DISK IMAGES"
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../src/guestfs.pod:123
31480 msgid ""
31481 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31482 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31483 "actual block device, or simply an empty file of zeroes that you have created "
31484 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31485 "of these."
31486 msgstr ""
31487
31488 #. type: textblock
31489 #: ../src/guestfs.pod:129
31490 msgid ""
31491 "The call you should use in modern code for adding drives is "
31492 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31493 "specifying that the format is raw, do:"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs.pod:133
31498 #, no-wrap
31499 msgid ""
31500 " guestfs_add_drive_opts (g, filename,\n"
31501 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31502 "                         -1);\n"
31503 "\n"
31504 msgstr ""
31505
31506 #. type: textblock
31507 #: ../src/guestfs.pod:137
31508 msgid "You can add a disk read-only using:"
31509 msgstr ""
31510
31511 #. type: verbatim
31512 #: ../src/guestfs.pod:139
31513 #, no-wrap
31514 msgid ""
31515 " guestfs_add_drive_opts (g, filename,\n"
31516 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31517 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31518 "                         -1);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: textblock
31523 #: ../src/guestfs.pod:144
31524 msgid ""
31525 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31526 "libguestfs won't modify the file."
31527 msgstr ""
31528
31529 #. type: textblock
31530 #: ../src/guestfs.pod:147
31531 msgid ""
31532 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31533 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31534 "corruption, but adding it read-only is safe."
31535 msgstr ""
31536
31537 #. type: textblock
31538 #: ../src/guestfs.pod:151
31539 msgid ""
31540 "You must add at least one disk image, and you may add multiple disk images.  "
31541 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31542 "first one you added), C</dev/sdb> (for the second one you added), etc."
31543 msgstr ""
31544
31545 #. type: textblock
31546 #: ../src/guestfs.pod:156
31547 msgid ""
31548 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31549 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31550 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31551 msgstr ""
31552
31553 #. type: =head2
31554 #: ../src/guestfs.pod:161
31555 msgid "MOUNTING"
31556 msgstr ""
31557
31558 #. type: textblock
31559 #: ../src/guestfs.pod:163
31560 msgid ""
31561 "Before you can read or write files, create directories and so on in a disk "
31562 "image that contains filesystems, you have to mount those filesystems using "
31563 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31564 "a disk image contains (for example) one partition with a filesystem on that "
31565 "partition, then you can mount it directly:"
31566 msgstr ""
31567
31568 #. type: verbatim
31569 #: ../src/guestfs.pod:170
31570 #, no-wrap
31571 msgid ""
31572 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31573 "\n"
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs.pod:172
31578 msgid ""
31579 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31580 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31581 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31582 "that these are libguestfs virtual devices, and are nothing to do with host "
31583 "devices."
31584 msgstr ""
31585
31586 #. type: textblock
31587 #: ../src/guestfs.pod:178
31588 msgid ""
31589 "If you are given a disk image and you don't know what it contains then you "
31590 "have to find out.  Libguestfs can do that too: use "
31591 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
31592 "and LVs, and either try mounting each to see what is mountable, or else "
31593 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31594 "filesystems, use L</guestfs_list_filesystems>."
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs.pod:186
31599 msgid ""
31600 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31601 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31602 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31603 msgstr ""
31604
31605 #. type: textblock
31606 #: ../src/guestfs.pod:191
31607 msgid ""
31608 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31609 "several other variations of the C<guestfs_mount_*> call."
31610 msgstr ""
31611
31612 #. type: =head2
31613 #: ../src/guestfs.pod:194
31614 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31615 msgstr ""
31616
31617 #. type: textblock
31618 #: ../src/guestfs.pod:196
31619 msgid ""
31620 "The majority of the libguestfs API consists of fairly low-level calls for "
31621 "accessing and modifying the files, directories, symlinks etc on mounted "
31622 "filesystems.  There are over a hundred such calls which you can find listed "
31623 "in detail below in this man page, and we don't even pretend to cover them "
31624 "all in this overview."
31625 msgstr ""
31626
31627 #. type: textblock
31628 #: ../src/guestfs.pod:202
31629 msgid ""
31630 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31631 "mount point."
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs.pod:205
31636 msgid ""
31637 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31638 "the file called C<\"etc/passwd\"> then you could do:"
31639 msgstr ""
31640
31641 #. type: verbatim
31642 #: ../src/guestfs.pod:208
31643 #, no-wrap
31644 msgid ""
31645 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31646 "\n"
31647 msgstr ""
31648
31649 #. type: textblock
31650 #: ../src/guestfs.pod:210
31651 msgid ""
31652 "This would return C<data> as a newly allocated buffer containing the full "
31653 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31654 "or C<NULL> if there was an error."
31655 msgstr ""
31656
31657 #. type: textblock
31658 #: ../src/guestfs.pod:214
31659 msgid ""
31660 "As another example, to create a top-level directory on that filesystem "
31661 "called C<\"var\"> you would do:"
31662 msgstr ""
31663
31664 #. type: verbatim
31665 #: ../src/guestfs.pod:217
31666 #, no-wrap
31667 msgid ""
31668 " guestfs_mkdir (g, \"/var\");\n"
31669 "\n"
31670 msgstr ""
31671
31672 #. type: textblock
31673 #: ../src/guestfs.pod:219
31674 msgid "To create a symlink you could do:"
31675 msgstr ""
31676
31677 #. type: verbatim
31678 #: ../src/guestfs.pod:221
31679 #, no-wrap
31680 msgid ""
31681 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31682 "               \"/etc/rc3.d/S30portmap\");\n"
31683 "\n"
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs.pod:224
31688 msgid ""
31689 "Libguestfs will reject attempts to use relative paths and there is no "
31690 "concept of a current working directory."
31691 msgstr ""
31692
31693 #. type: textblock
31694 #: ../src/guestfs.pod:227
31695 msgid ""
31696 "Libguestfs can return errors in many situations: for example if the "
31697 "filesystem isn't writable, or if a file or directory that you requested "
31698 "doesn't exist.  If you are using the C API (documented here)  you have to "
31699 "check for those error conditions after each call.  (Other language bindings "
31700 "turn these errors into exceptions)."
31701 msgstr ""
31702
31703 #. type: textblock
31704 #: ../src/guestfs.pod:233
31705 msgid ""
31706 "File writes are affected by the per-handle umask, set by calling "
31707 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
31708 msgstr ""
31709
31710 #. type: =head2
31711 #: ../src/guestfs.pod:236
31712 msgid "PARTITIONING"
31713 msgstr ""
31714
31715 #. type: textblock
31716 #: ../src/guestfs.pod:238
31717 msgid ""
31718 "Libguestfs contains API calls to read, create and modify partition tables on "
31719 "disk images."
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs.pod:241
31724 msgid ""
31725 "In the common case where you want to create a single partition covering the "
31726 "whole disk, you should use the L</guestfs_part_disk> call:"
31727 msgstr ""
31728
31729 #. type: verbatim
31730 #: ../src/guestfs.pod:245
31731 #, no-wrap
31732 msgid ""
31733 " const char *parttype = \"mbr\";\n"
31734 " if (disk_is_larger_than_2TB)\n"
31735 "   parttype = \"gpt\";\n"
31736 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs.pod:250
31742 msgid ""
31743 "Obviously this effectively wipes anything that was on that disk image "
31744 "before."
31745 msgstr ""
31746
31747 #. type: =head2
31748 #: ../src/guestfs.pod:253
31749 msgid "LVM2"
31750 msgstr ""
31751
31752 #. type: textblock
31753 #: ../src/guestfs.pod:255
31754 msgid ""
31755 "Libguestfs provides access to a large part of the LVM2 API, such as "
31756 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
31757 "unless you familiarize yourself with the concepts of physical volumes, "
31758 "volume groups and logical volumes."
31759 msgstr ""
31760
31761 #. type: textblock
31762 #: ../src/guestfs.pod:260
31763 msgid ""
31764 "This author strongly recommends reading the LVM HOWTO, online at "
31765 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
31766 msgstr ""
31767
31768 #. type: =head2
31769 #: ../src/guestfs.pod:263
31770 msgid "DOWNLOADING"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:265
31775 msgid ""
31776 "Use L</guestfs_cat> to download small, text only files.  This call is "
31777 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31778 "NUL (C<\\0>) characters.  However the API is very simple to use."
31779 msgstr ""
31780
31781 #. type: textblock
31782 #: ../src/guestfs.pod:269
31783 msgid ""
31784 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31785 "bit data, since it returns a (pointer, size) pair.  However it is still "
31786 "limited to \"small\" files, less than 2 MB."
31787 msgstr ""
31788
31789 #. type: textblock
31790 #: ../src/guestfs.pod:273
31791 msgid ""
31792 "L</guestfs_download> can be used to download any file, with no limits on "
31793 "content or size (even files larger than 4 GB)."
31794 msgstr ""
31795
31796 #. type: textblock
31797 #: ../src/guestfs.pod:276
31798 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31799 msgstr ""
31800
31801 #. type: =head2
31802 #: ../src/guestfs.pod:279
31803 msgid "UPLOADING"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs.pod:281
31808 msgid ""
31809 "It's often the case that you want to write a file or files to the disk "
31810 "image."
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs.pod:284
31815 msgid ""
31816 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31817 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
31818 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
31819 "variety of other functions for creating test files, for example "
31820 "L</guestfs_fill> and L</guestfs_fill_pattern>."
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:290
31825 msgid ""
31826 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31827 "file content or size (even files larger than 4 GB)."
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs.pod:293
31832 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs.pod:295
31837 msgid ""
31838 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31839 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
31840 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
31841 "the drive in a predictable way (eg. adding it last after all other drives) "
31842 "then you can get the device name from L</guestfs_list_devices> and mount it "
31843 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
31844 "sometimes non-portable between kernel versions, and they don't support "
31845 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
31846 "using a label or UUID, use an ISO image instead."
31847 msgstr ""
31848
31849 #. type: =head2
31850 #: ../src/guestfs.pod:306
31851 msgid "COPYING"
31852 msgstr ""
31853
31854 #. type: textblock
31855 #: ../src/guestfs.pod:308
31856 msgid ""
31857 "There are various different commands for copying between files and devices "
31858 "and in and out of the guest filesystem.  These are summarised in the table "
31859 "below."
31860 msgstr ""
31861
31862 #. type: =item
31863 #: ../src/guestfs.pod:314
31864 msgid "B<file> to B<file>"
31865 msgstr ""
31866
31867 #. type: textblock
31868 #: ../src/guestfs.pod:316
31869 msgid ""
31870 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31871 "directories recursively."
31872 msgstr ""
31873
31874 #. type: =item
31875 #: ../src/guestfs.pod:319
31876 msgid "B<file or device> to B<file or device>"
31877 msgstr ""
31878
31879 #. type: textblock
31880 #: ../src/guestfs.pod:321
31881 msgid ""
31882 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31883 "devices in the guest."
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../src/guestfs.pod:324
31888 msgid "Example: duplicate the contents of an LV:"
31889 msgstr ""
31890
31891 #. type: verbatim
31892 #: ../src/guestfs.pod:326
31893 #, no-wrap
31894 msgid ""
31895 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31896 "\n"
31897 msgstr ""
31898
31899 #. type: textblock
31900 #: ../src/guestfs.pod:328
31901 msgid ""
31902 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31903 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
31904 "L</guestfs_copy_size>."
31905 msgstr ""
31906
31907 #. type: =item
31908 #: ../src/guestfs.pod:332
31909 msgid "B<file on the host> to B<file or device>"
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs.pod:334
31914 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31915 msgstr ""
31916
31917 #. type: =item
31918 #: ../src/guestfs.pod:336
31919 msgid "B<file or device> to B<file on the host>"
31920 msgstr ""
31921
31922 #. type: textblock
31923 #: ../src/guestfs.pod:338
31924 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31925 msgstr ""
31926
31927 #. type: =head2
31928 #: ../src/guestfs.pod:342
31929 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31930 msgstr ""
31931
31932 #. type: textblock
31933 #: ../src/guestfs.pod:344
31934 msgid ""
31935 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
31936 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31937 "appears you can only upload and download to files.  However many Un*x-like "
31938 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
31939 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
31940 "stderr, and arbitrary file descriptor N."
31941 msgstr ""
31942
31943 #. type: textblock
31944 #: ../src/guestfs.pod:352
31945 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31946 msgstr ""
31947
31948 #. type: verbatim
31949 #: ../src/guestfs.pod:355
31950 #, no-wrap
31951 msgid ""
31952 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31953 "\n"
31954 msgstr ""
31955
31956 #. type: textblock
31957 #: ../src/guestfs.pod:357
31958 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31959 msgstr ""
31960
31961 #. type: verbatim
31962 #: ../src/guestfs.pod:359
31963 #, no-wrap
31964 msgid ""
31965 " char devfd[64];\n"
31966 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31967 " guestfs_tar_out (g, \"/\", devfd);\n"
31968 "\n"
31969 msgstr ""
31970
31971 #. type: =head2
31972 #: ../src/guestfs.pod:363
31973 msgid "LISTING FILES"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs.pod:365
31978 msgid ""
31979 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31980 "L<guestfish(1)>-equivalent command C<ll>)."
31981 msgstr ""
31982
31983 #. type: textblock
31984 #: ../src/guestfs.pod:368
31985 msgid ""
31986 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31987 "programs, as a flat list of strings."
31988 msgstr ""
31989
31990 #. type: textblock
31991 #: ../src/guestfs.pod:371
31992 msgid ""
31993 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31994 "directory, plus additional information about each one.  It is more "
31995 "equivalent to using the L<readdir(3)> call on a local filesystem."
31996 msgstr ""
31997
31998 #. type: textblock
31999 #: ../src/guestfs.pod:375
32000 msgid ""
32001 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
32002 "files."
32003 msgstr ""
32004
32005 #. type: =head2
32006 #: ../src/guestfs.pod:378
32007 msgid "RUNNING COMMANDS"
32008 msgstr ""
32009
32010 #. type: textblock
32011 #: ../src/guestfs.pod:380
32012 msgid ""
32013 "Although libguestfs is primarily an API for manipulating files inside guest "
32014 "images, we also provide some limited facilities for running commands inside "
32015 "guests."
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs.pod:384
32020 msgid "There are many limitations to this:"
32021 msgstr ""
32022
32023 #. type: textblock
32024 #: ../src/guestfs.pod:390
32025 msgid ""
32026 "The kernel version that the command runs under will be different from what "
32027 "it expects."
32028 msgstr ""
32029
32030 #. type: textblock
32031 #: ../src/guestfs.pod:395
32032 msgid ""
32033 "If the command needs to communicate with daemons, then most likely they "
32034 "won't be running."
32035 msgstr ""
32036
32037 #. type: textblock
32038 #: ../src/guestfs.pod:400
32039 msgid "The command will be running in limited memory."
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs.pod:404
32044 msgid ""
32045 "The network may not be available unless you enable it (see "
32046 "L</guestfs_set_network>)."
32047 msgstr ""
32048
32049 #. type: textblock
32050 #: ../src/guestfs.pod:409
32051 msgid "Only supports Linux guests (not Windows, BSD, etc)."
32052 msgstr ""
32053
32054 #. type: textblock
32055 #: ../src/guestfs.pod:413
32056 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
32057 msgstr ""
32058
32059 #. type: textblock
32060 #: ../src/guestfs.pod:418
32061 msgid ""
32062 "For SELinux guests, you may need to enable SELinux and load policy first.  "
32063 "See L</SELINUX> in this manpage."
32064 msgstr ""
32065
32066 #. type: textblock
32067 #: ../src/guestfs.pod:423
32068 msgid ""
32069 "I<Security:> It is not safe to run commands from untrusted, possibly "
32070 "malicious guests.  These commands may attempt to exploit your program by "
32071 "sending unexpected output.  They could also try to exploit the Linux kernel "
32072 "or qemu provided by the libguestfs appliance.  They could use the network "
32073 "provided by the libguestfs appliance to bypass ordinary network partitions "
32074 "and firewalls.  They could use the elevated privileges or different SELinux "
32075 "context of your program to their advantage."
32076 msgstr ""
32077
32078 #. type: textblock
32079 #: ../src/guestfs.pod:432
32080 msgid ""
32081 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
32082 "(a script which runs when the guest next boots normally), and to have this "
32083 "script run the commands you want in the normal context of the running guest, "
32084 "network security and so on.  For information about other security issues, "
32085 "see L</SECURITY>."
32086 msgstr ""
32087
32088 #. type: textblock
32089 #: ../src/guestfs.pod:440
32090 msgid ""
32091 "The two main API calls to run commands are L</guestfs_command> and "
32092 "L</guestfs_sh> (there are also variations)."
32093 msgstr ""
32094
32095 #. type: textblock
32096 #: ../src/guestfs.pod:443
32097 msgid ""
32098 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
32099 "shell globs, redirections, etc will work."
32100 msgstr ""
32101
32102 #. type: =head2
32103 #: ../src/guestfs.pod:446
32104 msgid "CONFIGURATION FILES"
32105 msgstr ""
32106
32107 #. type: textblock
32108 #: ../src/guestfs.pod:448
32109 msgid ""
32110 "To read and write configuration files in Linux guest filesystems, we "
32111 "strongly recommend using Augeas.  For example, Augeas understands how to "
32112 "read and write, say, a Linux shadow password file or X.org configuration "
32113 "file, and so avoids you having to write that code."
32114 msgstr ""
32115
32116 #. type: textblock
32117 #: ../src/guestfs.pod:453
32118 msgid ""
32119 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
32120 "document Augeas itself here because there is excellent documentation on the "
32121 "L<http://augeas.net/> website."
32122 msgstr ""
32123
32124 #. type: textblock
32125 #: ../src/guestfs.pod:457
32126 msgid ""
32127 "If you don't want to use Augeas (you fool!) then try calling "
32128 "L</guestfs_read_lines> to get the file as a list of lines which you can "
32129 "iterate over."
32130 msgstr ""
32131
32132 #. type: =head2
32133 #: ../src/guestfs.pod:461
32134 msgid "SELINUX"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs.pod:463
32139 msgid ""
32140 "We support SELinux guests.  To ensure that labeling happens correctly in "
32141 "SELinux guests, you need to enable SELinux and load the guest's policy:"
32142 msgstr ""
32143
32144 #. type: textblock
32145 #: ../src/guestfs.pod:471
32146 msgid "Before launching, do:"
32147 msgstr ""
32148
32149 #. type: verbatim
32150 #: ../src/guestfs.pod:473
32151 #, no-wrap
32152 msgid ""
32153 " guestfs_set_selinux (g, 1);\n"
32154 "\n"
32155 msgstr ""
32156
32157 #. type: textblock
32158 #: ../src/guestfs.pod:477
32159 msgid ""
32160 "After mounting the guest's filesystem(s), load the policy.  This is best "
32161 "done by running the L<load_policy(8)> command in the guest itself:"
32162 msgstr ""
32163
32164 #. type: verbatim
32165 #: ../src/guestfs.pod:481
32166 #, no-wrap
32167 msgid ""
32168 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
32169 "\n"
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs.pod:483
32174 msgid ""
32175 "(Older versions of C<load_policy> require you to specify the name of the "
32176 "policy file)."
32177 msgstr ""
32178
32179 #. type: textblock
32180 #: ../src/guestfs.pod:488
32181 msgid ""
32182 "Optionally, set the security context for the API.  The correct security "
32183 "context to use can only be known by inspecting the guest.  As an example:"
32184 msgstr ""
32185
32186 #. type: verbatim
32187 #: ../src/guestfs.pod:492
32188 #, no-wrap
32189 msgid ""
32190 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
32191 "\n"
32192 msgstr ""
32193
32194 #. type: textblock
32195 #: ../src/guestfs.pod:496
32196 msgid "This will work for running commands and editing existing files."
32197 msgstr ""
32198
32199 #. type: textblock
32200 #: ../src/guestfs.pod:498
32201 msgid ""
32202 "When new files are created, you may need to label them explicitly, for "
32203 "example by running the external command C<restorecon pathname>."
32204 msgstr ""
32205
32206 #. type: =head2
32207 #: ../src/guestfs.pod:502
32208 msgid "UMASK"
32209 msgstr ""
32210
32211 #. type: textblock
32212 #: ../src/guestfs.pod:504
32213 msgid ""
32214 "Certain calls are affected by the current file mode creation mask (the "
32215 "\"umask\").  In particular ones which create files or directories, such as "
32216 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32217 "either the default mode that the file is created with or modifies the mode "
32218 "that you supply."
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs.pod:510
32223 msgid ""
32224 "The default umask is C<022>, so files are created with modes such as C<0644> "
32225 "and directories with C<0755>."
32226 msgstr ""
32227
32228 #. type: textblock
32229 #: ../src/guestfs.pod:513
32230 msgid ""
32231 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32232 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
32233 "L</guestfs_chmod> after creating each file or directory."
32234 msgstr ""
32235
32236 #. type: textblock
32237 #: ../src/guestfs.pod:517
32238 msgid "For more information about umask, see L<umask(2)>."
32239 msgstr ""
32240
32241 #. type: textblock
32242 #: ../src/guestfs.pod:521
32243 msgid ""
32244 "Libguestfs allows you to access Linux guests which have been encrypted using "
32245 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32246 "standard.  This includes nearly all whole disk encryption systems used by "
32247 "modern Linux guests."
32248 msgstr ""
32249
32250 #. type: textblock
32251 #: ../src/guestfs.pod:527
32252 msgid ""
32253 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32254 "returns the string C<crypto_LUKS>)."
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs.pod:530
32259 msgid ""
32260 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32261 "will require the passphrase!"
32262 msgstr ""
32263
32264 #. type: textblock
32265 #: ../src/guestfs.pod:533
32266 msgid ""
32267 "Opening a LUKS device creates a new device mapper device called "
32268 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
32269 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
32270 "decrypted from and encrypted to the underlying block device respectively."
32271 msgstr ""
32272
32273 #. type: textblock
32274 #: ../src/guestfs.pod:539
32275 msgid ""
32276 "LVM volume groups on the device can be made visible by calling "
32277 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
32278 "volume(s) can now be mounted in the usual way."
32279 msgstr ""
32280
32281 #. type: textblock
32282 #: ../src/guestfs.pod:543
32283 msgid ""
32284 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32285 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32286 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
32287 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32288 "underlying encrypted block device)."
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs.pod:550
32293 msgid "INSPECTION"
32294 msgstr ""
32295
32296 #. type: textblock
32297 #: ../src/guestfs.pod:552
32298 msgid ""
32299 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32300 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32301 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32302 "version 1.5.3 the most frequently used part of this library has been "
32303 "rewritten in C and moved into the core code)."
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs.pod:559
32308 msgid ""
32309 "Add all disks belonging to the unknown virtual machine and call "
32310 "L</guestfs_launch> in the usual way."
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs.pod:562
32315 msgid ""
32316 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32317 "and certain heuristics, and returns a list of operating systems that were "
32318 "found.  An empty list means none were found.  A single element is the root "
32319 "filesystem of the operating system.  For dual- or multi-boot guests, "
32320 "multiple roots can be returned, each one corresponding to a separate "
32321 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32322 "world of virtualization, but since this scenario can happen, we have built "
32323 "libguestfs to deal with it.)"
32324 msgstr ""
32325
32326 #. type: textblock
32327 #: ../src/guestfs.pod:571
32328 msgid ""
32329 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32330 "to get additional details about that operating system.  For example, call "
32331 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32332 "Windows and Linux-based operating systems respectively."
32333 msgstr ""
32334
32335 #. type: textblock
32336 #: ../src/guestfs.pod:577
32337 msgid ""
32338 "Un*x-like and Linux-based operating systems usually consist of several "
32339 "filesystems which are mounted at boot time (for example, a separate boot "
32340 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32341 "filesystems correspond to mount points.  Call "
32342 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32343 "hash table like this example:"
32344 msgstr ""
32345
32346 #. type: verbatim
32347 #: ../src/guestfs.pod:584
32348 #, no-wrap
32349 msgid ""
32350 " /boot => /dev/sda1\n"
32351 " /     => /dev/vg_guest/lv_root\n"
32352 " /usr  => /dev/vg_guest/lv_usr\n"
32353 "\n"
32354 msgstr ""
32355
32356 #. type: textblock
32357 #: ../src/guestfs.pod:588
32358 msgid ""
32359 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32360 "filesystems as suggested."
32361 msgstr ""
32362
32363 #. type: textblock
32364 #: ../src/guestfs.pod:591
32365 msgid ""
32366 "Be careful to mount filesystems in the right order (eg. C</> before "
32367 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
32368 "work."
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../src/guestfs.pod:595
32373 msgid ""
32374 "Inspection currently only works for some common operating systems.  "
32375 "Contributors are welcome to send patches for other operating systems that we "
32376 "currently cannot detect."
32377 msgstr ""
32378
32379 #. type: textblock
32380 #: ../src/guestfs.pod:599
32381 msgid ""
32382 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32383 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32384 "encrypted devices."
32385 msgstr ""
32386
32387 #. type: textblock
32388 #: ../src/guestfs.pod:603
32389 msgid ""
32390 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32391 "inspection and caches the results in the guest handle.  Subsequent calls to "
32392 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
32393 "re-read the disks.  If you change the content of the guest disks, you can "
32394 "redo inspection by calling L</guestfs_inspect_os> again.  "
32395 "(L</guestfs_inspect_list_applications> works a little differently from the "
32396 "other calls and does read the disks.  See documentation for that function "
32397 "for details)."
32398 msgstr ""
32399
32400 #. type: =head3
32401 #: ../src/guestfs.pod:612
32402 msgid "INSPECTING INSTALL DISKS"
32403 msgstr ""
32404
32405 #. type: textblock
32406 #: ../src/guestfs.pod:614
32407 msgid ""
32408 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32409 "CDs and more."
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs.pod:617
32414 msgid ""
32415 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32416 "system, which currently can be C<installed> (a regular operating system) or "
32417 "C<installer> (some sort of install disk)."
32418 msgstr ""
32419
32420 #. type: textblock
32421 #: ../src/guestfs.pod:621
32422 msgid ""
32423 "Further information is available about the operating system that can be "
32424 "installed using the regular inspection APIs like "
32425 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
32426 "etc."
32427 msgstr ""
32428
32429 #. type: textblock
32430 #: ../src/guestfs.pod:626
32431 msgid ""
32432 "Some additional information specific to installer disks is also available "
32433 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
32434 "L</guestfs_inspect_is_multipart> calls."
32435 msgstr ""
32436
32437 #. type: =head2
32438 #: ../src/guestfs.pod:631
32439 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32440 msgstr ""
32441
32442 #. type: textblock
32443 #: ../src/guestfs.pod:633
32444 msgid ""
32445 "Libguestfs can mount NTFS partitions.  It does this using the "
32446 "L<http://www.ntfs-3g.org/> driver."
32447 msgstr ""
32448
32449 #. type: =head3
32450 #: ../src/guestfs.pod:636
32451 msgid "DRIVE LETTERS AND PATHS"
32452 msgstr ""
32453
32454 #. type: textblock
32455 #: ../src/guestfs.pod:638
32456 msgid ""
32457 "DOS and Windows still use drive letters, and the filesystems are always "
32458 "treated as case insensitive by Windows itself, and therefore you might find "
32459 "a Windows configuration file referring to a path like "
32460 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
32461 "that directory might be referred to as C</WINDOWS/System32>."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs.pod:644
32466 msgid ""
32467 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32468 "L</guestfs_inspect_get_drive_mappings>)"
32469 msgstr ""
32470
32471 #. type: textblock
32472 #: ../src/guestfs.pod:647
32473 msgid ""
32474 "Dealing with separator characters (backslash vs forward slash) is outside "
32475 "the scope of libguestfs, but usually a simple character replacement will "
32476 "work."
32477 msgstr ""
32478
32479 #. type: textblock
32480 #: ../src/guestfs.pod:651
32481 msgid ""
32482 "To resolve the case insensitivity of paths, call "
32483 "L</guestfs_case_sensitive_path>."
32484 msgstr ""
32485
32486 #. type: =head3
32487 #: ../src/guestfs.pod:654
32488 msgid "ACCESSING THE WINDOWS REGISTRY"
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs.pod:656
32493 msgid ""
32494 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32495 "files, through the library C<hivex> which is part of the libguestfs project "
32496 "although ships as a separate tarball.  You have to locate and download the "
32497 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32498 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
32499 "L<virt-win-reg(1)> for more help on this issue."
32500 msgstr ""
32501
32502 #. type: =head3
32503 #: ../src/guestfs.pod:664
32504 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32505 msgstr ""
32506
32507 #. type: textblock
32508 #: ../src/guestfs.pod:666
32509 msgid ""
32510 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32511 "provide something which looks like a Linux symlink.  The way it tries to do "
32512 "the rewriting is described here:"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs.pod:670
32517 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:672
32522 msgid ""
32523 "The essential problem is that ntfs-3g simply does not have enough "
32524 "information to do a correct job.  NTFS links can contain drive letters and "
32525 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32526 "It is almost certainly the case that libguestfs callers should ignore what "
32527 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs.pod:679
32532 msgid ""
32533 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
32534 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32535 "attribute, and read the raw reparse data from that (you can find the format "
32536 "documented in various places around the web)."
32537 msgstr ""
32538
32539 #. type: =head3
32540 #: ../src/guestfs.pod:684
32541 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:686
32546 msgid ""
32547 "There are other useful extended attributes that can be read from ntfs-3g "
32548 "filesystems (using L</guestfs_getxattr>).  See:"
32549 msgstr ""
32550
32551 #. type: textblock
32552 #: ../src/guestfs.pod:689
32553 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32554 msgstr ""
32555
32556 #. type: =head2
32557 #: ../src/guestfs.pod:691
32558 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32559 msgstr ""
32560
32561 #. type: textblock
32562 #: ../src/guestfs.pod:693
32563 msgid ""
32564 "Although we don't want to discourage you from using the C API, we will "
32565 "mention here that the same API is also available in other languages."
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs.pod:696
32570 msgid ""
32571 "The API is broadly identical in all supported languages.  This means that "
32572 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32573 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32574 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32575 "each language."
32576 msgstr ""
32577
32578 #. type: textblock
32579 #: ../src/guestfs.pod:702
32580 msgid ""
32581 "Error messages are automatically transformed into exceptions if the language "
32582 "supports it."
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:705
32587 msgid ""
32588 "We don't try to \"object orientify\" parts of the API in OO languages, "
32589 "although contributors are welcome to write higher level APIs above what we "
32590 "provide in their favourite languages if they wish."
32591 msgstr ""
32592
32593 #. type: =item
32594 #: ../src/guestfs.pod:711
32595 msgid "B<C++>"
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../src/guestfs.pod:713
32600 msgid ""
32601 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32602 "identical to the C API.  C++ classes and exceptions are not used."
32603 msgstr ""
32604
32605 #. type: =item
32606 #: ../src/guestfs.pod:717
32607 msgid "B<C#>"
32608 msgstr ""
32609
32610 #. type: textblock
32611 #: ../src/guestfs.pod:719
32612 msgid ""
32613 "The C# bindings are highly experimental.  Please read the warnings at the "
32614 "top of C<csharp/Libguestfs.cs>."
32615 msgstr ""
32616
32617 #. type: =item
32618 #: ../src/guestfs.pod:722
32619 msgid "B<Erlang>"
32620 msgstr ""
32621
32622 #. type: textblock
32623 #: ../src/guestfs.pod:724
32624 msgid "See L<guestfs-erlang(3)>."
32625 msgstr ""
32626
32627 #. type: =item
32628 #: ../src/guestfs.pod:726
32629 msgid "B<Haskell>"
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:728
32634 msgid ""
32635 "This is the only language binding that is working but incomplete.  Only "
32636 "calls which return simple integers have been bound in Haskell, and we are "
32637 "looking for help to complete this binding."
32638 msgstr ""
32639
32640 #. type: =item
32641 #: ../src/guestfs.pod:732
32642 msgid "B<Java>"
32643 msgstr ""
32644
32645 #. type: textblock
32646 #: ../src/guestfs.pod:734
32647 msgid ""
32648 "Full documentation is contained in the Javadoc which is distributed with "
32649 "libguestfs.  For examples, see L<guestfs-java(3)>."
32650 msgstr ""
32651
32652 #. type: =item
32653 #: ../src/guestfs.pod:737
32654 msgid "B<OCaml>"
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:739
32659 msgid "See L<guestfs-ocaml(3)>."
32660 msgstr ""
32661
32662 #. type: =item
32663 #: ../src/guestfs.pod:741
32664 msgid "B<Perl>"
32665 msgstr ""
32666
32667 #. type: textblock
32668 #: ../src/guestfs.pod:743
32669 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32670 msgstr ""
32671
32672 #. type: =item
32673 #: ../src/guestfs.pod:745
32674 msgid "B<PHP>"
32675 msgstr ""
32676
32677 #. type: textblock
32678 #: ../src/guestfs.pod:747
32679 msgid ""
32680 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32681 "the php-libguestfs package for your distribution."
32682 msgstr ""
32683
32684 #. type: textblock
32685 #: ../src/guestfs.pod:750
32686 msgid "The PHP binding only works correctly on 64 bit machines."
32687 msgstr ""
32688
32689 #. type: =item
32690 #: ../src/guestfs.pod:752
32691 msgid "B<Python>"
32692 msgstr ""
32693
32694 #. type: textblock
32695 #: ../src/guestfs.pod:754
32696 msgid "See L<guestfs-python(3)>."
32697 msgstr ""
32698
32699 #. type: =item
32700 #: ../src/guestfs.pod:756
32701 msgid "B<Ruby>"
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs.pod:758
32706 msgid "See L<guestfs-ruby(3)>."
32707 msgstr ""
32708
32709 #. type: =item
32710 #: ../src/guestfs.pod:760
32711 msgid "B<shell scripts>"
32712 msgstr ""
32713
32714 #. type: textblock
32715 #: ../src/guestfs.pod:762
32716 msgid "See L<guestfish(1)>."
32717 msgstr ""
32718
32719 #. type: =head2
32720 #: ../src/guestfs.pod:766
32721 msgid "LIBGUESTFS GOTCHAS"
32722 msgstr ""
32723
32724 #. type: textblock
32725 #: ../src/guestfs.pod:768
32726 msgid ""
32727 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32728 "system [...] that works in the way it is documented but is counterintuitive "
32729 "and almost invites mistakes.\""
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:772
32734 msgid ""
32735 "Since we developed libguestfs and the associated tools, there are several "
32736 "things we would have designed differently, but are now stuck with for "
32737 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32738 "release, you can expect these to change.  Beware of them."
32739 msgstr ""
32740
32741 #. type: =item
32742 #: ../src/guestfs.pod:780
32743 msgid "Autosync / forgetting to sync."
32744 msgstr ""
32745
32746 #. type: textblock
32747 #: ../src/guestfs.pod:782
32748 msgid ""
32749 "I<Update:> Autosync is enabled by default for all API users starting from "
32750 "libguestfs 1.5.24.  This section only applies to older versions."
32751 msgstr ""
32752
32753 #. type: textblock
32754 #: ../src/guestfs.pod:785
32755 msgid ""
32756 "When modifying a filesystem from C or another language, you B<must> unmount "
32757 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32758 "libguestfs handle.  You can also call:"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs.pod:789
32763 #, no-wrap
32764 msgid ""
32765 " guestfs_set_autosync (g, 1);\n"
32766 "\n"
32767 msgstr ""
32768
32769 #. type: textblock
32770 #: ../src/guestfs.pod:791
32771 msgid ""
32772 "to have the unmount/sync done automatically for you when the handle 'g' is "
32773 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
32774 "q.v.)"
32775 msgstr ""
32776
32777 #. type: textblock
32778 #: ../src/guestfs.pod:795
32779 msgid ""
32780 "If you forget to do this, then it is entirely possible that your changes "
32781 "won't be written out, or will be partially written, or (very rarely) that "
32782 "you'll get disk corruption."
32783 msgstr ""
32784
32785 #. type: textblock
32786 #: ../src/guestfs.pod:799
32787 msgid ""
32788 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32789 "guestfish scripts that forget to sync will work just fine, which can make "
32790 "this very puzzling if you are trying to debug a problem."
32791 msgstr ""
32792
32793 #. type: =item
32794 #: ../src/guestfs.pod:803
32795 msgid "Mount option C<-o sync> should not be the default."
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:805
32800 msgid ""
32801 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
32802 "libguestfs 1.13.16.  This section only applies to older versions."
32803 msgstr ""
32804
32805 #. type: textblock
32806 #: ../src/guestfs.pod:808
32807 msgid ""
32808 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32809 "However C<-o sync> does not add any reliability benefit, but does have a "
32810 "very large performance impact."
32811 msgstr ""
32812
32813 #. type: textblock
32814 #: ../src/guestfs.pod:812
32815 msgid ""
32816 "The work around is to use L</guestfs_mount_options> and set the mount "
32817 "options that you actually want to use."
32818 msgstr ""
32819
32820 #. type: =item
32821 #: ../src/guestfs.pod:815
32822 msgid "Read-only should be the default."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs.pod:817
32827 msgid ""
32828 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32829 "specify I<--rw> if you want to make changes to the image."
32830 msgstr ""
32831
32832 #. type: textblock
32833 #: ../src/guestfs.pod:820
32834 msgid "This would reduce the potential to corrupt live VM images."
32835 msgstr ""
32836
32837 #. type: textblock
32838 #: ../src/guestfs.pod:822
32839 msgid ""
32840 "Note that many filesystems change the disk when you just mount and unmount, "
32841 "even if you didn't perform any writes.  You need to use "
32842 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
32843 msgstr ""
32844
32845 #. type: =item
32846 #: ../src/guestfs.pod:826
32847 msgid "guestfish command line is hard to use."
32848 msgstr ""
32849
32850 #. type: textblock
32851 #: ../src/guestfs.pod:828
32852 msgid ""
32853 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32854 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32855 "exist, so it fails.  In earlier versions of guestfish the error message was "
32856 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32857 "we should have used C<guestfish -c command> to run commands."
32858 msgstr ""
32859
32860 #. type: =item
32861 #: ../src/guestfs.pod:835
32862 msgid "guestfish megabyte modifiers don't work right on all commands"
32863 msgstr ""
32864
32865 #. type: textblock
32866 #: ../src/guestfs.pod:837
32867 msgid ""
32868 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32869 "other modifiers).  What guestfish actually does is to multiply the number "
32870 "part by the modifier part and pass the result to the C API.  However this "
32871 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32872 "expecting some other unit (eg. megabytes)."
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:844
32877 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32878 msgstr ""
32879
32880 #. type: verbatim
32881 #: ../src/guestfs.pod:846
32882 #, no-wrap
32883 msgid ""
32884 " lvcreate LV VG 100M\n"
32885 "\n"
32886 msgstr ""
32887
32888 #. type: textblock
32889 #: ../src/guestfs.pod:848
32890 msgid ""
32891 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32892 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32893 "megabytes * megabytes) logical volume.  The error message you get from this "
32894 "is also a little obscure."
32895 msgstr ""
32896
32897 #. type: textblock
32898 #: ../src/guestfs.pod:853
32899 msgid ""
32900 "This could be fixed in the generator by specially marking parameters and "
32901 "return values which take bytes or other units."
32902 msgstr ""
32903
32904 #. type: =item
32905 #: ../src/guestfs.pod:856
32906 msgid "Ambiguity between devices and paths"
32907 msgstr ""
32908
32909 #. type: textblock
32910 #: ../src/guestfs.pod:858
32911 msgid ""
32912 "There is a subtle ambiguity in the API between a device name "
32913 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
32914 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs.pod:863
32919 msgid ""
32920 "In the current API we usually resolve this ambiguity by having two separate "
32921 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32922 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32923 "detecting if the path supplied begins with C</dev/>."
32924 msgstr ""
32925
32926 #. type: textblock
32927 #: ../src/guestfs.pod:869
32928 msgid ""
32929 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32930 "make paths/devices into structured names.  One way to do this would be to "
32931 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32932 "aspect of grub.  Another way would be to use a structured type, equivalent "
32933 "to this OCaml type:"
32934 msgstr ""
32935
32936 #. type: verbatim
32937 #: ../src/guestfs.pod:875
32938 #, no-wrap
32939 msgid ""
32940 " type path = Path of string | Device of int | Partition of int * int\n"
32941 "\n"
32942 msgstr ""
32943
32944 #. type: textblock
32945 #: ../src/guestfs.pod:877
32946 msgid "which would allow you to pass arguments like:"
32947 msgstr ""
32948
32949 #. type: verbatim
32950 #: ../src/guestfs.pod:879
32951 #, no-wrap
32952 msgid ""
32953 " Path \"/foo/bar\"\n"
32954 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32955 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32956 " Path \"/dev/sdb2\"    (* not a device *)\n"
32957 "\n"
32958 msgstr ""
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:884
32962 msgid ""
32963 "As you can see there are still problems to resolve even with this "
32964 "representation.  Also consider how it might work in guestfish."
32965 msgstr ""
32966
32967 #. type: =head2
32968 #: ../src/guestfs.pod:889
32969 msgid "KEYS AND PASSPHRASES"
32970 msgstr ""
32971
32972 #. type: textblock
32973 #: ../src/guestfs.pod:891
32974 msgid ""
32975 "Certain libguestfs calls take a parameter that contains sensitive key "
32976 "material, passed in as a C string."
32977 msgstr ""
32978
32979 #. type: textblock
32980 #: ../src/guestfs.pod:894
32981 msgid ""
32982 "In the future we would hope to change the libguestfs implementation so that "
32983 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32984 "swap.  However this is I<not> done at the moment, because of the complexity "
32985 "of such an implementation."
32986 msgstr ""
32987
32988 #. type: textblock
32989 #: ../src/guestfs.pod:899
32990 msgid ""
32991 "Therefore you should be aware that any key parameter you pass to libguestfs "
32992 "might end up being written out to the swap partition.  If this is a concern, "
32993 "scrub the swap partition or don't use libguestfs on encrypted devices."
32994 msgstr ""
32995
32996 #. type: =head2
32997 #: ../src/guestfs.pod:904
32998 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32999 msgstr ""
33000
33001 #. type: textblock
33002 #: ../src/guestfs.pod:906
33003 msgid ""
33004 "All high-level libguestfs actions are synchronous.  If you want to use "
33005 "libguestfs asynchronously then you must create a thread."
33006 msgstr ""
33007
33008 #. type: textblock
33009 #: ../src/guestfs.pod:909
33010 msgid ""
33011 "Only use the handle from a single thread.  Either use the handle exclusively "
33012 "from one thread, or provide your own mutex so that two threads cannot issue "
33013 "calls on the same handle at the same time."
33014 msgstr ""
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:913
33018 msgid ""
33019 "See the graphical program guestfs-browser for one possible architecture for "
33020 "multithreaded programs using libvirt and libguestfs."
33021 msgstr ""
33022
33023 #. type: =head2
33024 #: ../src/guestfs.pod:916
33025 msgid "PATH"
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs.pod:918
33030 msgid ""
33031 "Libguestfs needs a supermin appliance, which it finds by looking along an "
33032 "internal path."
33033 msgstr ""
33034
33035 #. type: textblock
33036 #: ../src/guestfs.pod:921
33037 msgid ""
33038 "By default it looks for these in the directory C<$libdir/guestfs> "
33039 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs.pod:924
33044 msgid ""
33045 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
33046 "to change the directories that libguestfs will search in.  The value is a "
33047 "colon-separated list of paths.  The current directory is I<not> searched "
33048 "unless the path contains an empty element or C<.>.  For example "
33049 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
33050 "then C</usr/lib/guestfs>."
33051 msgstr ""
33052
33053 #. type: =head2
33054 #: ../src/guestfs.pod:931
33055 msgid "QEMU WRAPPERS"
33056 msgstr ""
33057
33058 #. type: textblock
33059 #: ../src/guestfs.pod:933
33060 msgid ""
33061 "If you want to compile your own qemu, run qemu from a non-standard location, "
33062 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
33063 "around qemu."
33064 msgstr ""
33065
33066 #. type: textblock
33067 #: ../src/guestfs.pod:937
33068 msgid ""
33069 "There is one important rule to remember: you I<must C<exec qemu>> as the "
33070 "last command in the shell script (so that qemu replaces the shell and "
33071 "becomes the direct child of the libguestfs-using program).  If you don't do "
33072 "this, then the qemu process won't be cleaned up correctly."
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs.pod:942
33077 msgid ""
33078 "Here is an example of a wrapper, where I have built my own copy of qemu from "
33079 "source:"
33080 msgstr ""
33081
33082 #. type: verbatim
33083 #: ../src/guestfs.pod:945
33084 #, no-wrap
33085 msgid ""
33086 " #!/bin/sh -\n"
33087 " qemudir=/home/rjones/d/qemu\n"
33088 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
33089 "\"$@\"\n"
33090 "\n"
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:949
33095 msgid ""
33096 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
33097 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
33098 "example:"
33099 msgstr ""
33100
33101 #. type: verbatim
33102 #: ../src/guestfs.pod:953
33103 #, no-wrap
33104 msgid ""
33105 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
33106 "\n"
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:955
33111 msgid ""
33112 "Note that libguestfs also calls qemu with the -help and -version options in "
33113 "order to determine features."
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:958
33118 msgid ""
33119 "Wrappers can also be used to edit the options passed to qemu.  In the "
33120 "following example, the C<-machine ...> option (C<-machine> and the following "
33121 "argument) are removed from the command line and replaced with C<-machine "
33122 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
33123 "right one to remove, putting the remaining options into the C<args> array."
33124 msgstr ""
33125
33126 #. type: verbatim
33127 #: ../src/guestfs.pod:965
33128 #, no-wrap
33129 msgid ""
33130 " #!/bin/bash -\n"
33131 " \n"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs.pod:967
33136 #, no-wrap
33137 msgid ""
33138 " i=0\n"
33139 " while [ $# -gt 0 ]; do\n"
33140 "     case \"$1\" in\n"
33141 "     -machine)\n"
33142 "         shift 2;;\n"
33143 "     *)\n"
33144 "         args[i]=\"$1\"\n"
33145 "         (( i++ ))\n"
33146 "         shift ;;\n"
33147 "     esac\n"
33148 " done\n"
33149 " \n"
33150 msgstr ""
33151
33152 #. type: verbatim
33153 #: ../src/guestfs.pod:979
33154 #, no-wrap
33155 msgid ""
33156 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
33157 "\n"
33158 msgstr ""
33159
33160 #. type: =head2
33161 #: ../src/guestfs.pod:981
33162 msgid "ATTACHING TO RUNNING DAEMONS"
33163 msgstr ""
33164
33165 #. type: textblock
33166 #: ../src/guestfs.pod:983
33167 msgid ""
33168 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
33169 "babies.  Use with caution."
33170 msgstr ""
33171
33172 #. type: textblock
33173 #: ../src/guestfs.pod:986
33174 msgid ""
33175 "I<Note (2):> This section explains how to attach to a running daemon from a "
33176 "low level perspective.  For most users, simply using virt tools such as "
33177 "L<guestfish(1)> with the I<--live> option will \"just work\"."
33178 msgstr ""
33179
33180 #. type: =head3
33181 #: ../src/guestfs.pod:990
33182 msgid "Using guestfs_set_attach_method"
33183 msgstr ""
33184
33185 #. type: textblock
33186 #: ../src/guestfs.pod:992
33187 msgid ""
33188 "By calling L</guestfs_set_attach_method> you can change how the library "
33189 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
33190 "L</ARCHITECTURE> for some background)."
33191 msgstr ""
33192
33193 #. type: textblock
33194 #: ../src/guestfs.pod:996
33195 msgid ""
33196 "The normal attach method is C<appliance>, where a small appliance is created "
33197 "containing the daemon, and then the library connects to this."
33198 msgstr ""
33199
33200 #. type: textblock
33201 #: ../src/guestfs.pod:999
33202 msgid ""
33203 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
33204 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
33205 "daemon over the Unix domain socket."
33206 msgstr ""
33207
33208 #. type: textblock
33209 #: ../src/guestfs.pod:1003
33210 msgid ""
33211 "The normal use for this is to connect to a running virtual machine that "
33212 "contains a C<guestfsd> daemon, and send commands so you can read and write "
33213 "files inside the live virtual machine."
33214 msgstr ""
33215
33216 #. type: =head3
33217 #: ../src/guestfs.pod:1007
33218 msgid "Using guestfs_add_domain with live flag"
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:1009
33223 msgid ""
33224 "L</guestfs_add_domain> provides some help for getting the correct attach "
33225 "method.  If you pass the C<live> option to this function, then (if the "
33226 "virtual machine is running) it will examine the libvirt XML looking for a "
33227 "virtio-serial channel to connect to:"
33228 msgstr ""
33229
33230 #. type: verbatim
33231 #: ../src/guestfs.pod:1015
33232 #, no-wrap
33233 msgid ""
33234 " <domain>\n"
33235 "   ...\n"
33236 "   <devices>\n"
33237 "     ...\n"
33238 "     <channel type='unix'>\n"
33239 "       <source mode='bind' path='/path/to/socket'/>\n"
33240 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
33241 "     </channel>\n"
33242 "     ...\n"
33243 "   </devices>\n"
33244 " </domain>\n"
33245 "\n"
33246 msgstr ""
33247
33248 #. type: textblock
33249 #: ../src/guestfs.pod:1027
33250 msgid ""
33251 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
33252 "method to C<unix:/path/to/socket>."
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:1030
33257 msgid ""
33258 "Some of the libguestfs tools (including guestfish) support a I<--live> "
33259 "option which is passed through to L</guestfs_add_domain> thus allowing you "
33260 "to attach to and modify live virtual machines."
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:1034
33265 msgid ""
33266 "The virtual machine needs to have been set up beforehand so that it has the "
33267 "virtio-serial channel and so that guestfsd is running inside it."
33268 msgstr ""
33269
33270 #. type: =head2
33271 #: ../src/guestfs.pod:1038
33272 msgid "ABI GUARANTEE"
33273 msgstr ""
33274
33275 #. type: textblock
33276 #: ../src/guestfs.pod:1040
33277 msgid ""
33278 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33279 "actions as outlined in this section.  Although we will deprecate some "
33280 "actions, for example if they get replaced by newer calls, we will keep the "
33281 "old actions forever.  This allows you the developer to program in confidence "
33282 "against the libguestfs API."
33283 msgstr ""
33284
33285 #. type: =head2
33286 #: ../src/guestfs.pod:1046
33287 msgid "BLOCK DEVICE NAMING"
33288 msgstr ""
33289
33290 #. type: textblock
33291 #: ../src/guestfs.pod:1048
33292 msgid ""
33293 "In the kernel there is now quite a profusion of schemata for naming block "
33294 "devices (in this context, by I<block device> I mean a physical or virtual "
33295 "hard drive).  The original Linux IDE driver used names starting with "
33296 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
33297 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
33298 "replacement for the old IDE driver (particularly for SATA devices) those "
33299 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
33300 "machines with paravirtualized drivers.  This has created several different "
33301 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
33302 "Xen PV disks."
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:1060
33307 msgid ""
33308 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33309 "Linux kernel to access block devices.  We can run a variety of appliances "
33310 "based on a variety of Linux kernels."
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs.pod:1064
33315 msgid ""
33316 "This causes a problem for libguestfs because many API calls use device or "
33317 "partition names.  Working scripts and the recipe (example) scripts that we "
33318 "make available over the internet could fail if the naming scheme changes."
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs.pod:1069
33323 msgid ""
33324 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33325 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33326 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33327 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs.pod:1075
33332 msgid ""
33333 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
33334 "L</guestfs_list_partitions> and similar calls return the true names of the "
33335 "devices and partitions as known to the appliance."
33336 msgstr ""
33337
33338 #. type: =head3
33339 #: ../src/guestfs.pod:1080
33340 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
33341 msgstr ""
33342
33343 #. type: textblock
33344 #: ../src/guestfs.pod:1082
33345 msgid ""
33346 "Usually this translation is transparent.  However in some (very rare)  cases "
33347 "you may need to know the exact algorithm.  Such cases include where you use "
33348 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
33349 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
33350 "devices."
33351 msgstr ""
33352
33353 #. type: textblock
33354 #: ../src/guestfs.pod:1088
33355 msgid ""
33356 "The algorithm is applied only to I<parameters> which are known to be either "
33357 "device or partition names.  Return values from functions such as "
33358 "L</guestfs_list_devices> are never changed."
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:1096
33363 msgid "Is the string a parameter which is a device or partition name?"
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:1100
33368 msgid "Does the string begin with C</dev/sd>?"
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:1104
33373 msgid ""
33374 "Does the named device exist? If so, we use that device.  However if I<not> "
33375 "then we continue with this algorithm."
33376 msgstr ""
33377
33378 #. type: textblock
33379 #: ../src/guestfs.pod:1109
33380 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
33381 msgstr ""
33382
33383 #. type: textblock
33384 #: ../src/guestfs.pod:1111
33385 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
33386 msgstr ""
33387
33388 #. type: textblock
33389 #: ../src/guestfs.pod:1113
33390 msgid "If that named device exists, use it.  If not, continue."
33391 msgstr ""
33392
33393 #. type: textblock
33394 #: ../src/guestfs.pod:1117
33395 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33396 msgstr ""
33397
33398 #. type: textblock
33399 #: ../src/guestfs.pod:1119
33400 msgid "If that named device exists, use it.  If not, return an error."
33401 msgstr ""
33402
33403 #. type: =head3
33404 #: ../src/guestfs.pod:1123
33405 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33406 msgstr ""
33407
33408 #. type: textblock
33409 #: ../src/guestfs.pod:1125
33410 msgid ""
33411 "Although the standard naming scheme and automatic translation is useful for "
33412 "simple programs and guestfish scripts, for larger programs it is best not to "
33413 "rely on this mechanism."
33414 msgstr ""
33415
33416 #. type: textblock
33417 #: ../src/guestfs.pod:1129
33418 msgid ""
33419 "Where possible for maximum future portability programs using libguestfs "
33420 "should use these future-proof techniques:"
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs.pod:1136
33425 msgid ""
33426 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33427 "device names, and then use those names directly."
33428 msgstr ""
33429
33430 #. type: textblock
33431 #: ../src/guestfs.pod:1139
33432 msgid "Since those device names exist by definition, they will never be translated."
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs.pod:1144
33437 msgid ""
33438 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33439 "filesystem labels."
33440 msgstr ""
33441
33442 #. type: =head1
33443 #: ../src/guestfs.pod:1149
33444 msgid "SECURITY"
33445 msgstr ""
33446
33447 #. type: textblock
33448 #: ../src/guestfs.pod:1151
33449 msgid ""
33450 "This section discusses security implications of using libguestfs, "
33451 "particularly with untrusted or malicious guests or disk images."
33452 msgstr ""
33453
33454 #. type: =head2
33455 #: ../src/guestfs.pod:1154
33456 msgid "GENERAL SECURITY CONSIDERATIONS"
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:1156
33461 msgid ""
33462 "Be careful with any files or data that you download from a guest (by "
33463 "\"download\" we mean not just the L</guestfs_download> command but any "
33464 "command that reads files, filenames, directories or anything else from a "
33465 "disk image).  An attacker could manipulate the data to fool your program "
33466 "into doing the wrong thing.  Consider cases such as:"
33467 msgstr ""
33468
33469 #. type: textblock
33470 #: ../src/guestfs.pod:1166
33471 msgid "the data (file etc) not being present"
33472 msgstr ""
33473
33474 #. type: textblock
33475 #: ../src/guestfs.pod:1170
33476 msgid "being present but empty"
33477 msgstr ""
33478
33479 #. type: textblock
33480 #: ../src/guestfs.pod:1174
33481 msgid "being much larger than normal"
33482 msgstr ""
33483
33484 #. type: textblock
33485 #: ../src/guestfs.pod:1178
33486 msgid "containing arbitrary 8 bit data"
33487 msgstr ""
33488
33489 #. type: textblock
33490 #: ../src/guestfs.pod:1182
33491 msgid "being in an unexpected character encoding"
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs.pod:1186
33496 msgid "containing homoglyphs."
33497 msgstr ""
33498
33499 #. type: =head2
33500 #: ../src/guestfs.pod:1190
33501 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33502 msgstr ""
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:1192
33506 msgid ""
33507 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33508 "(VFS) module can sometimes be escalated into exploits by deliberately "
33509 "creating a malicious, malformed filesystem.  These exploits are very severe "
33510 "for two reasons.  Firstly there are very many filesystem drivers in the "
33511 "kernel, and many of them are infrequently used and not much developer "
33512 "attention has been paid to the code.  Linux userspace helps potential "
33513 "crackers by detecting the filesystem type and automatically choosing the "
33514 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33515 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33516 "exploit (worse in some ways), giving immediate and total access to the "
33517 "system right down to the hardware level."
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../src/guestfs.pod:1205
33522 msgid ""
33523 "That explains why you should never mount a filesystem from an untrusted "
33524 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33525 "inside a qemu virtual machine, usually running as a non-root user.  The "
33526 "attacker would need to write a filesystem which first exploited the kernel, "
33527 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33528 "the libguestfs protocol, and finally to be as serious as the host kernel "
33529 "exploit it would need to escalate its privileges to root.  This multi-step "
33530 "escalation, performed by a static piece of data, is thought to be extremely "
33531 "hard to do, although we never say 'never' about security issues."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs.pod:1216
33536 msgid ""
33537 "In any case callers can reduce the attack surface by forcing the filesystem "
33538 "type when mounting (use L</guestfs_mount_vfs>)."
33539 msgstr ""
33540
33541 #. type: =head2
33542 #: ../src/guestfs.pod:1219
33543 msgid "PROTOCOL SECURITY"
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs.pod:1221
33548 msgid ""
33549 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33550 "defined upper message size.  However a program that uses libguestfs must "
33551 "also take care - for example you can write a program that downloads a binary "
33552 "from a disk image and executes it locally, and no amount of protocol "
33553 "security will save you from the consequences."
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs.pod:1227
33558 msgid "INSPECTION SECURITY"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:1229
33563 msgid ""
33564 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33565 "directly from the guest, and these could contain any 8 bit data.  Callers "
33566 "should be careful to escape these before printing them to a structured file "
33567 "(for example, use HTML escaping if creating a web page)."
33568 msgstr ""
33569
33570 #. type: textblock
33571 #: ../src/guestfs.pod:1235
33572 msgid ""
33573 "Guest configuration may be altered in unusual ways by the administrator of "
33574 "the virtual machine, and may not reflect reality (particularly for untrusted "
33575 "or actively malicious guests).  For example we parse the hostname from "
33576 "configuration files like C</etc/sysconfig/network> that we find in the "
33577 "guest, but the guest administrator can easily manipulate these files to "
33578 "provide the wrong hostname."
33579 msgstr ""
33580
33581 #. type: textblock
33582 #: ../src/guestfs.pod:1243
33583 msgid ""
33584 "The inspection API parses guest configuration using two external libraries: "
33585 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33586 "designed to be robust in the face of malicious data, although denial of "
33587 "service attacks are still possible, for example with oversized configuration "
33588 "files."
33589 msgstr ""
33590
33591 #. type: =head2
33592 #: ../src/guestfs.pod:1249
33593 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33594 msgstr ""
33595
33596 #. type: textblock
33597 #: ../src/guestfs.pod:1251
33598 msgid ""
33599 "Be very cautious about running commands from the guest.  By running a "
33600 "command in the guest, you are giving CPU time to a binary that you do not "
33601 "control, under the same user account as the library, albeit wrapped in qemu "
33602 "virtualization.  More information and alternatives can be found in the "
33603 "section L</RUNNING COMMANDS>."
33604 msgstr ""
33605
33606 #. type: =head2
33607 #: ../src/guestfs.pod:1257
33608 msgid "CVE-2010-3851"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs.pod:1259
33613 msgid "https://bugzilla.redhat.com/642934"
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../src/guestfs.pod:1261
33618 msgid ""
33619 "This security bug concerns the automatic disk format detection that qemu "
33620 "does on disk images."
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:1264
33625 msgid ""
33626 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33627 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33628 "for one of the known headers, and if none is found then assuming the disk "
33629 "image must be raw."
33630 msgstr ""
33631
33632 #. type: textblock
33633 #: ../src/guestfs.pod:1269
33634 msgid ""
33635 "This allows a guest which has been given a raw disk image to write some "
33636 "other header.  At next boot (or when the disk image is accessed by "
33637 "libguestfs) qemu would do autodetection and think the disk image format was, "
33638 "say, qcow2 based on the header written by the guest."
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:1274
33643 msgid ""
33644 "This in itself would not be a problem, but qcow2 offers many features, one "
33645 "of which is to allow a disk image to refer to another image (called the "
33646 "\"backing disk\").  It does this by placing the path to the backing disk "
33647 "into the qcow2 header.  This path is not validated and could point to any "
33648 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33649 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33650 "control of the attacker."
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:1282
33655 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs.pod:1289
33660 msgid "You have enabled the network or have opened the disk in write mode."
33661 msgstr ""
33662
33663 #. type: textblock
33664 #: ../src/guestfs.pod:1293
33665 msgid ""
33666 "You are also running untrusted code from the guest (see L</RUNNING "
33667 "COMMANDS>)."
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:1298
33672 msgid ""
33673 "The way to avoid this is to specify the expected disk format when adding "
33674 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33675 "should always do this if the disk is raw format, and it's a good idea for "
33676 "other cases too."
33677 msgstr ""
33678
33679 #. type: textblock
33680 #: ../src/guestfs.pod:1303
33681 msgid ""
33682 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33683 "format is fetched from libvirt and passed through."
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:1306
33688 msgid ""
33689 "For libguestfs tools, use the I<--format> command line parameter as "
33690 "appropriate."
33691 msgstr ""
33692
33693 #. type: =head1
33694 #: ../src/guestfs.pod:1309
33695 msgid "CONNECTION MANAGEMENT"
33696 msgstr ""
33697
33698 #. type: =head2
33699 #: ../src/guestfs.pod:1311
33700 msgid "guestfs_h *"
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs.pod:1313
33705 msgid ""
33706 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33707 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33708 "handle and release all resources used."
33709 msgstr ""
33710
33711 #. type: textblock
33712 #: ../src/guestfs.pod:1317
33713 msgid ""
33714 "For information on using multiple handles and threads, see the section "
33715 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33716 msgstr ""
33717
33718 #. type: =head2
33719 #: ../src/guestfs.pod:1320
33720 msgid "guestfs_create"
33721 msgstr ""
33722
33723 #. type: verbatim
33724 #: ../src/guestfs.pod:1322
33725 #, no-wrap
33726 msgid ""
33727 " guestfs_h *guestfs_create (void);\n"
33728 "\n"
33729 msgstr ""
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:1324
33733 msgid "Create a connection handle."
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:1326
33738 msgid ""
33739 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33740 "NULL."
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:1329
33745 msgid ""
33746 "You have to \"configure\" the handle after creating it.  This includes "
33747 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33748 "handle at least once."
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:1333
33753 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs.pod:1335
33758 msgid ""
33759 "You may also want to configure error handling for the handle.  See the "
33760 "L</ERROR HANDLING> section below."
33761 msgstr ""
33762
33763 #. type: =head2
33764 #: ../src/guestfs.pod:1338
33765 msgid "guestfs_close"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs.pod:1340
33770 #, no-wrap
33771 msgid ""
33772 " void guestfs_close (guestfs_h *g);\n"
33773 "\n"
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs.pod:1342
33778 msgid "This closes the connection handle and frees up all resources used."
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:1344
33783 msgid ""
33784 "If autosync was set on the handle and the handle was launched, then this "
33785 "implicitly calls various functions to unmount filesystems and sync the "
33786 "disk.  See L</guestfs_set_autosync> for more details."
33787 msgstr ""
33788
33789 #. type: textblock
33790 #: ../src/guestfs.pod:1348
33791 msgid "If a close callback was set on the handle, then it is called."
33792 msgstr ""
33793
33794 #. type: =head1
33795 #: ../src/guestfs.pod:1350
33796 msgid "ERROR HANDLING"
33797 msgstr ""
33798
33799 #. type: textblock
33800 #: ../src/guestfs.pod:1352
33801 msgid ""
33802 "API functions can return errors.  For example, almost all functions that "
33803 "return C<int> will return C<-1> to indicate an error."
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:1355
33808 msgid ""
33809 "Additional information is available for errors: an error message string and "
33810 "optionally an error number (errno) if the thing that failed was a system "
33811 "call."
33812 msgstr ""
33813
33814 #. type: textblock
33815 #: ../src/guestfs.pod:1359
33816 msgid ""
33817 "You can get at the additional information about the last error on the handle "
33818 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33819 "up an error handler with L</guestfs_set_error_handler>."
33820 msgstr ""
33821
33822 #. type: textblock
33823 #: ../src/guestfs.pod:1364
33824 msgid ""
33825 "When the handle is created, a default error handler is installed which "
33826 "prints the error message string to C<stderr>.  For small short-running "
33827 "command line programs it is sufficient to do:"
33828 msgstr ""
33829
33830 #. type: verbatim
33831 #: ../src/guestfs.pod:1368
33832 #, no-wrap
33833 msgid ""
33834 " if (guestfs_launch (g) == -1)\n"
33835 "   exit (EXIT_FAILURE);\n"
33836 "\n"
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs.pod:1371
33841 msgid ""
33842 "since the default error handler will ensure that an error message has been "
33843 "printed to C<stderr> before the program exits."
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs.pod:1374
33848 msgid ""
33849 "For other programs the caller will almost certainly want to install an "
33850 "alternate error handler or do error handling in-line like this:"
33851 msgstr ""
33852
33853 #. type: verbatim
33854 #: ../src/guestfs.pod:1377
33855 #, no-wrap
33856 msgid ""
33857 " /* This disables the default behaviour of printing errors\n"
33858 "    on stderr. */\n"
33859 " guestfs_set_error_handler (g, NULL, NULL);\n"
33860 " \n"
33861 msgstr ""
33862
33863 #. type: verbatim
33864 #: ../src/guestfs.pod:1381
33865 #, no-wrap
33866 msgid ""
33867 " if (guestfs_launch (g) == -1) {\n"
33868 "   /* Examine the error message and print it etc. */\n"
33869 "   char *msg = guestfs_last_error (g);\n"
33870 "   int errnum = guestfs_last_errno (g);\n"
33871 "   fprintf (stderr, \"%s\", msg);\n"
33872 "   if (errnum != 0)\n"
33873 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
33874 "   fprintf (stderr, \"\\n\");\n"
33875 "   /* ... */\n"
33876 " }\n"
33877 "\n"
33878 msgstr ""
33879
33880 #. type: textblock
33881 #: ../src/guestfs.pod:1392
33882 msgid ""
33883 "Out of memory errors are handled differently.  The default action is to call "
33884 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
33885 "L</guestfs_set_out_of_memory_handler>."
33886 msgstr ""
33887
33888 #. type: textblock
33889 #: ../src/guestfs.pod:1396
33890 msgid ""
33891 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33892 "because there is no handle if this happens there is no way to get additional "
33893 "error information.  However L</guestfs_create> is supposed to be a "
33894 "lightweight operation which can only fail because of insufficient memory (it "
33895 "returns NULL in this case)."
33896 msgstr ""
33897
33898 #. type: =head2
33899 #: ../src/guestfs.pod:1402
33900 msgid "guestfs_last_error"
33901 msgstr ""
33902
33903 #. type: verbatim
33904 #: ../src/guestfs.pod:1404
33905 #, no-wrap
33906 msgid ""
33907 " const char *guestfs_last_error (guestfs_h *g);\n"
33908 "\n"
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs.pod:1406
33913 msgid ""
33914 "This returns the last error message that happened on C<g>.  If there has not "
33915 "been an error since the handle was created, then this returns C<NULL>."
33916 msgstr ""
33917
33918 #. type: textblock
33919 #: ../src/guestfs.pod:1410
33920 msgid ""
33921 "The lifetime of the returned string is until the next error occurs, or "
33922 "L</guestfs_close> is called."
33923 msgstr ""
33924
33925 #. type: =head2
33926 #: ../src/guestfs.pod:1413
33927 msgid "guestfs_last_errno"
33928 msgstr ""
33929
33930 #. type: verbatim
33931 #: ../src/guestfs.pod:1415
33932 #, no-wrap
33933 msgid ""
33934 " int guestfs_last_errno (guestfs_h *g);\n"
33935 "\n"
33936 msgstr ""
33937
33938 #. type: textblock
33939 #: ../src/guestfs.pod:1417
33940 msgid "This returns the last error number (errno) that happened on C<g>."
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:1419
33945 msgid "If successful, an errno integer not equal to zero is returned."
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs.pod:1421
33950 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
33951 msgstr ""
33952
33953 #. type: textblock
33954 #: ../src/guestfs.pod:1428
33955 msgid "There has not been any error on the handle."
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs.pod:1432
33960 msgid ""
33961 "There has been an error but the errno was meaningless.  This corresponds to "
33962 "the case where the error did not come from a failed system call, but for "
33963 "some other reason."
33964 msgstr ""
33965
33966 #. type: textblock
33967 #: ../src/guestfs.pod:1438
33968 msgid ""
33969 "There was an error from a failed system call, but for some reason the errno "
33970 "was not captured and returned.  This usually indicates a bug in libguestfs."
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:1444
33975 msgid ""
33976 "Libguestfs tries to convert the errno from inside the applicance into a "
33977 "corresponding errno for the caller (not entirely trivial: the appliance "
33978 "might be running a completely different operating system from the library "
33979 "and error numbers are not standardized across Un*xen).  If this could not be "
33980 "done, then the error is translated to C<EINVAL>.  In practice this should "
33981 "only happen in very rare circumstances."
33982 msgstr ""
33983
33984 #. type: =head2
33985 #: ../src/guestfs.pod:1452
33986 msgid "guestfs_set_error_handler"
33987 msgstr ""
33988
33989 #. type: verbatim
33990 #: ../src/guestfs.pod:1454
33991 #, no-wrap
33992 msgid ""
33993 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33994 "                                           void *opaque,\n"
33995 "                                           const char *msg);\n"
33996 " void guestfs_set_error_handler (guestfs_h *g,\n"
33997 "                                 guestfs_error_handler_cb cb,\n"
33998 "                                 void *opaque);\n"
33999 "\n"
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:1461
34004 msgid ""
34005 "The callback C<cb> will be called if there is an error.  The parameters "
34006 "passed to the callback are an opaque data pointer and the error message "
34007 "string."
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:1465
34012 msgid ""
34013 "C<errno> is not passed to the callback.  To get that the callback must call "
34014 "L</guestfs_last_errno>."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:1468
34019 msgid ""
34020 "Note that the message string C<msg> is freed as soon as the callback "
34021 "function returns, so if you want to stash it somewhere you must make your "
34022 "own copy."
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs.pod:1472
34027 msgid "The default handler prints messages on C<stderr>."
34028 msgstr ""
34029
34030 #. type: textblock
34031 #: ../src/guestfs.pod:1474
34032 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
34033 msgstr ""
34034
34035 #. type: =head2
34036 #: ../src/guestfs.pod:1476
34037 msgid "guestfs_get_error_handler"
34038 msgstr ""
34039
34040 #. type: verbatim
34041 #: ../src/guestfs.pod:1478
34042 #, no-wrap
34043 msgid ""
34044 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
34045 "                                                     void **opaque_rtn);\n"
34046 "\n"
34047 msgstr ""
34048
34049 #. type: textblock
34050 #: ../src/guestfs.pod:1481
34051 msgid "Returns the current error handler callback."
34052 msgstr ""
34053
34054 #. type: =head2
34055 #: ../src/guestfs.pod:1483
34056 msgid "guestfs_set_out_of_memory_handler"
34057 msgstr ""
34058
34059 #. type: verbatim
34060 #: ../src/guestfs.pod:1485
34061 #, no-wrap
34062 msgid ""
34063 " typedef void (*guestfs_abort_cb) (void);\n"
34064 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
34065 "                                         guestfs_abort_cb);\n"
34066 "\n"
34067 msgstr ""
34068
34069 #. type: textblock
34070 #: ../src/guestfs.pod:1489
34071 msgid ""
34072 "The callback C<cb> will be called if there is an out of memory situation.  "
34073 "I<Note this callback must not return>."
34074 msgstr ""
34075
34076 #. type: textblock
34077 #: ../src/guestfs.pod:1492
34078 msgid "The default is to call L<abort(3)>."
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs.pod:1494
34083 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
34084 msgstr ""
34085
34086 #. type: =head2
34087 #: ../src/guestfs.pod:1497
34088 msgid "guestfs_get_out_of_memory_handler"
34089 msgstr ""
34090
34091 #. type: verbatim
34092 #: ../src/guestfs.pod:1499
34093 #, no-wrap
34094 msgid ""
34095 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
34096 "\n"
34097 msgstr ""
34098
34099 #. type: textblock
34100 #: ../src/guestfs.pod:1501
34101 msgid "This returns the current out of memory handler."
34102 msgstr ""
34103
34104 #. type: =head1
34105 #: ../src/guestfs.pod:1503
34106 msgid "API CALLS"
34107 msgstr ""
34108
34109 #. type: =head1
34110 #: ../src/guestfs.pod:1507
34111 msgid "STRUCTURES"
34112 msgstr ""
34113
34114 #. type: textblock
34115 #: ../src/guestfs.pod:1509
34116 msgid "@STRUCTS@"
34117 msgstr ""
34118
34119 #. type: =head1
34120 #: ../src/guestfs.pod:1511
34121 msgid "AVAILABILITY"
34122 msgstr ""
34123
34124 #. type: =head2
34125 #: ../src/guestfs.pod:1513
34126 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs.pod:1515
34131 msgid ""
34132 "Using L</guestfs_available> you can test availability of the following "
34133 "groups of functions.  This test queries the appliance to see if the "
34134 "appliance you are currently using supports the functionality."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:1520
34139 msgid "@AVAILABILITY@"
34140 msgstr ""
34141
34142 #. type: =head2
34143 #: ../src/guestfs.pod:1522
34144 msgid "GUESTFISH supported COMMAND"
34145 msgstr ""
34146
34147 #. type: textblock
34148 #: ../src/guestfs.pod:1524
34149 msgid ""
34150 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
34151 "prints out the available groups and whether they are supported by this build "
34152 "of libguestfs.  Note however that you have to do C<run> first."
34153 msgstr ""
34154
34155 #. type: =head2
34156 #: ../src/guestfs.pod:1529
34157 msgid "SINGLE CALLS AT COMPILE TIME"
34158 msgstr ""
34159
34160 #. type: textblock
34161 #: ../src/guestfs.pod:1531
34162 msgid ""
34163 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
34164 "function, such as:"
34165 msgstr ""
34166
34167 #. type: verbatim
34168 #: ../src/guestfs.pod:1534
34169 #, no-wrap
34170 msgid ""
34171 " #define LIBGUESTFS_HAVE_DD 1\n"
34172 "\n"
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:1536
34177 msgid "if L</guestfs_dd> is available."
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs.pod:1538
34182 msgid ""
34183 "Before version 1.5.8, if you needed to test whether a single libguestfs "
34184 "function is available at compile time, we recommended using build tools such "
34185 "as autoconf or cmake.  For example in autotools you could use:"
34186 msgstr ""
34187
34188 #. type: verbatim
34189 #: ../src/guestfs.pod:1543
34190 #, no-wrap
34191 msgid ""
34192 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
34193 " AC_CHECK_FUNCS([guestfs_dd])\n"
34194 "\n"
34195 msgstr ""
34196
34197 #. type: textblock
34198 #: ../src/guestfs.pod:1546
34199 msgid ""
34200 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
34201 "in your program."
34202 msgstr ""
34203
34204 #. type: =head2
34205 #: ../src/guestfs.pod:1549
34206 msgid "SINGLE CALLS AT RUN TIME"
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs.pod:1551
34211 msgid ""
34212 "Testing at compile time doesn't guarantee that a function really exists in "
34213 "the library.  The reason is that you might be dynamically linked against a "
34214 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
34215 "This situation unfortunately results in a segmentation fault, which is a "
34216 "shortcoming of the C dynamic linking system itself."
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:1558
34221 msgid ""
34222 "You can use L<dlopen(3)> to test if a function is available at run time, as "
34223 "in this example program (note that you still need the compile time check as "
34224 "well):"
34225 msgstr ""
34226
34227 #. type: verbatim
34228 #: ../src/guestfs.pod:1562
34229 #, no-wrap
34230 msgid ""
34231 " #include <stdio.h>\n"
34232 " #include <stdlib.h>\n"
34233 " #include <unistd.h>\n"
34234 " #include <dlfcn.h>\n"
34235 " #include <guestfs.h>\n"
34236 " \n"
34237 msgstr ""
34238
34239 #. type: verbatim
34240 #: ../src/guestfs.pod:1568
34241 #, no-wrap
34242 msgid ""
34243 " main ()\n"
34244 " {\n"
34245 " #ifdef LIBGUESTFS_HAVE_DD\n"
34246 "   void *dl;\n"
34247 "   int has_function;\n"
34248 " \n"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs.pod:1574
34253 #, no-wrap
34254 msgid ""
34255 "   /* Test if the function guestfs_dd is really available. */\n"
34256 "   dl = dlopen (NULL, RTLD_LAZY);\n"
34257 "   if (!dl) {\n"
34258 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
34259 "     exit (EXIT_FAILURE);\n"
34260 "   }\n"
34261 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
34262 "   dlclose (dl);\n"
34263 " \n"
34264 msgstr ""
34265
34266 #. type: verbatim
34267 #: ../src/guestfs.pod:1583
34268 #, no-wrap
34269 msgid ""
34270 "   if (!has_function)\n"
34271 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
34272 "   else {\n"
34273 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34274 "     /* Now it's safe to call\n"
34275 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34276 "     */\n"
34277 "   }\n"
34278 " #else\n"
34279 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34280 " #endif\n"
34281 "  }\n"
34282 "\n"
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs.pod:1596
34287 msgid ""
34288 "You may think the above is an awful lot of hassle, and it is.  There are "
34289 "other ways outside of the C linking system to ensure that this kind of "
34290 "incompatibility never arises, such as using package versioning:"
34291 msgstr ""
34292
34293 #. type: verbatim
34294 #: ../src/guestfs.pod:1601
34295 #, no-wrap
34296 msgid ""
34297 " Requires: libguestfs >= 1.0.80\n"
34298 "\n"
34299 msgstr ""
34300
34301 #. type: =head1
34302 #: ../src/guestfs.pod:1603
34303 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34304 msgstr ""
34305
34306 #. type: textblock
34307 #: ../src/guestfs.pod:1605
34308 msgid ""
34309 "A recent feature of the API is the introduction of calls which take optional "
34310 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34311 "takes variable arguments (ie. C<...>), as in this example:"
34312 msgstr ""
34313
34314 #. type: verbatim
34315 #: ../src/guestfs.pod:1610
34316 #, no-wrap
34317 msgid ""
34318 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34319 "\n"
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:1612
34324 msgid ""
34325 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
34326 "call with no optional arguments specified:"
34327 msgstr ""
34328
34329 #. type: verbatim
34330 #: ../src/guestfs.pod:1615
34331 #, no-wrap
34332 msgid ""
34333 " guestfs_add_drive_opts (g, filename, -1);\n"
34334 "\n"
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:1617
34339 msgid "With a single optional argument:"
34340 msgstr ""
34341
34342 #. type: verbatim
34343 #: ../src/guestfs.pod:1619
34344 #, no-wrap
34345 msgid ""
34346 " guestfs_add_drive_opts (g, filename,\n"
34347 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34348 "                         -1);\n"
34349 "\n"
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs.pod:1623
34354 msgid "With two:"
34355 msgstr ""
34356
34357 #. type: verbatim
34358 #: ../src/guestfs.pod:1625
34359 #, no-wrap
34360 msgid ""
34361 " guestfs_add_drive_opts (g, filename,\n"
34362 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
34363 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34364 "                         -1);\n"
34365 "\n"
34366 msgstr ""
34367
34368 #. type: textblock
34369 #: ../src/guestfs.pod:1630
34370 msgid ""
34371 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
34372 "happen!"
34373 msgstr ""
34374
34375 #. type: =head2
34376 #: ../src/guestfs.pod:1633
34377 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:1635
34382 msgid ""
34383 "The second variant has the same name with the suffix C<_va>, which works the "
34384 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34385 "example function, this is declared:"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:1639
34390 #, no-wrap
34391 msgid ""
34392 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34393 "                                va_list args);\n"
34394 "\n"
34395 msgstr ""
34396
34397 #. type: =head2
34398 #: ../src/guestfs.pod:1642
34399 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34400 msgstr ""
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:1644
34404 msgid ""
34405 "The third variant is useful where you need to construct these calls.  You "
34406 "pass in a structure where you fill in the optional fields.  The structure "
34407 "has a bitmask as the first element which you must set to indicate which "
34408 "fields you have filled in.  For our example function the structure and call "
34409 "are declared:"
34410 msgstr ""
34411
34412 #. type: verbatim
34413 #: ../src/guestfs.pod:1650
34414 #, no-wrap
34415 msgid ""
34416 " struct guestfs_add_drive_opts_argv {\n"
34417 "   uint64_t bitmask;\n"
34418 "   int readonly;\n"
34419 "   const char *format;\n"
34420 "   /* ... */\n"
34421 " };\n"
34422 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34423 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34424 "\n"
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:1659
34429 msgid "You could call it like this:"
34430 msgstr ""
34431
34432 #. type: verbatim
34433 #: ../src/guestfs.pod:1661
34434 #, no-wrap
34435 msgid ""
34436 " struct guestfs_add_drive_opts_argv optargs = {\n"
34437 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34438 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34439 "   .readonly = 1,\n"
34440 "   .format = \"qcow2\"\n"
34441 " };\n"
34442 " \n"
34443 msgstr ""
34444
34445 #. type: verbatim
34446 #: ../src/guestfs.pod:1668
34447 #, no-wrap
34448 msgid ""
34449 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34450 "\n"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs.pod:1676
34455 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34456 msgstr ""
34457
34458 #. type: textblock
34459 #: ../src/guestfs.pod:1681
34460 msgid "You do not need to fill in all fields of the structure."
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:1685
34465 msgid ""
34466 "There must be a one-to-one correspondence between fields of the structure "
34467 "that are filled in, and bits set in the bitmask."
34468 msgstr ""
34469
34470 #. type: =head2
34471 #: ../src/guestfs.pod:1690
34472 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:1692
34477 msgid ""
34478 "In other languages, optional arguments are expressed in the way that is "
34479 "natural for that language.  We refer you to the language-specific "
34480 "documentation for more details on that."
34481 msgstr ""
34482
34483 #. type: textblock
34484 #: ../src/guestfs.pod:1696
34485 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34486 msgstr ""
34487
34488 #. type: =head2
34489 #: ../src/guestfs.pod:1698
34490 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:1700
34495 msgid ""
34496 "B<Note:> This section documents the generic event mechanism introduced in "
34497 "libguestfs 1.10, which you should use in new code if possible.  The old "
34498 "functions C<guestfs_set_log_message_callback>, "
34499 "C<guestfs_set_subprocess_quit_callback>, "
34500 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34501 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34502 "page.  Because of the ABI guarantee, the old functions continue to work."
34503 msgstr ""
34504
34505 #. type: textblock
34506 #: ../src/guestfs.pod:1709
34507 msgid ""
34508 "Handles generate events when certain things happen, such as log messages "
34509 "being generated, progress messages during long-running operations, or the "
34510 "handle being closed.  The API calls described below let you register a "
34511 "callback to be called when events happen.  You can register multiple "
34512 "callbacks (for the same, different or overlapping sets of events), and "
34513 "individually remove callbacks.  If callbacks are not removed, then they "
34514 "remain in force until the handle is closed."
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:1717
34519 msgid ""
34520 "In the current implementation, events are only generated synchronously: that "
34521 "means that events (and hence callbacks) can only happen while you are in the "
34522 "middle of making another libguestfs call.  The callback is called in the "
34523 "same thread."
34524 msgstr ""
34525
34526 #. type: textblock
34527 #: ../src/guestfs.pod:1722
34528 msgid ""
34529 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34530 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34531 msgstr ""
34532
34533 #. type: =head3
34534 #: ../src/guestfs.pod:1726
34535 msgid "CLASSES OF EVENTS"
34536 msgstr ""
34537
34538 #. type: =item
34539 #: ../src/guestfs.pod:1730
34540 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34541 msgstr ""
34542
34543 #. type: textblock
34544 #: ../src/guestfs.pod:1733
34545 msgid ""
34546 "The callback function will be called while the handle is being closed "
34547 "(synchronously from L</guestfs_close>)."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:1736
34552 msgid ""
34553 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34554 "handles that are open when the program exits.  This means that this callback "
34555 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34556 "problems in higher-level languages (eg. if your HLL interpreter has already "
34557 "been cleaned up by the time this is called, and if your callback then jumps "
34558 "into some HLL function)."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:1743
34563 msgid ""
34564 "If no callback is registered: the handle is closed without any callback "
34565 "being invoked."
34566 msgstr ""
34567
34568 #. type: =item
34569 #: ../src/guestfs.pod:1746
34570 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34571 msgstr ""
34572
34573 #. type: textblock
34574 #: ../src/guestfs.pod:1749
34575 msgid ""
34576 "The callback function will be called when the child process quits, either "
34577 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34578 "corresponds to a transition from any state to the CONFIG state)."
34579 msgstr ""
34580
34581 #. type: textblock
34582 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
34583 msgid "If no callback is registered: the event is ignored."
34584 msgstr ""
34585
34586 #. type: =item
34587 #: ../src/guestfs.pod:1755
34588 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:1758
34593 msgid ""
34594 "The callback function will be called when the child process becomes ready "
34595 "first time after it has been launched.  (This corresponds to a transition "
34596 "from LAUNCHING to the READY state)."
34597 msgstr ""
34598
34599 #. type: =item
34600 #: ../src/guestfs.pod:1764
34601 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:1767
34606 msgid ""
34607 "Some long-running operations can generate progress messages.  If this "
34608 "callback is registered, then it will be called each time a progress message "
34609 "is generated (usually two seconds after the operation started, and three "
34610 "times per second thereafter until it completes, although the frequency may "
34611 "change in future versions)."
34612 msgstr ""
34613
34614 #. type: textblock
34615 #: ../src/guestfs.pod:1773
34616 msgid ""
34617 "The callback receives in the payload four unsigned 64 bit numbers which are "
34618 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34619 msgstr ""
34620
34621 #. type: textblock
34622 #: ../src/guestfs.pod:1776
34623 msgid ""
34624 "The units of C<total> are not defined, although for some operations C<total> "
34625 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34626 "or megabytes), and C<position> may be the portion which has been "
34627 "transferred."
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs.pod:1781
34632 msgid "The only defined and stable parts of the API are:"
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:1787
34637 msgid ""
34638 "The callback can display to the user some type of progress bar or indicator "
34639 "which shows the ratio of C<position>:C<total>."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1792
34644 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:1796
34649 msgid ""
34650 "If any progress notification is sent during a call, then a final progress "
34651 "notification is always sent when C<position> = C<total> (I<unless> the call "
34652 "fails with an error)."
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:1800
34657 msgid ""
34658 "This is to simplify caller code, so callers can easily set the progress "
34659 "indicator to \"100%\" at the end of the operation, without requiring special "
34660 "code to detect this case."
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:1806
34665 msgid ""
34666 "For some calls we are unable to estimate the progress of the call, but we "
34667 "can still generate progress messages to indicate activity.  This is known as "
34668 "\"pulse mode\", and is directly supported by certain progress bar "
34669 "implementations (eg. GtkProgressBar)."
34670 msgstr ""
34671
34672 #. type: textblock
34673 #: ../src/guestfs.pod:1811
34674 msgid ""
34675 "For these calls, zero or more progress messages are generated with "
34676 "C<position = 0> and C<total = 1>, followed by a final message with "
34677 "C<position = total = 1>."
34678 msgstr ""
34679
34680 #. type: textblock
34681 #: ../src/guestfs.pod:1815
34682 msgid ""
34683 "As noted above, if the call fails with an error then the final message may "
34684 "not be generated."
34685 msgstr ""
34686
34687 #. type: textblock
34688 #: ../src/guestfs.pod:1820
34689 msgid ""
34690 "The callback also receives the procedure number (C<proc_nr>) and serial "
34691 "number (C<serial>) of the call.  These are only useful for debugging "
34692 "protocol issues, and the callback can normally ignore them.  The callback "
34693 "may want to print these numbers in error messages or debugging messages."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:1826
34698 msgid "If no callback is registered: progress messages are discarded."
34699 msgstr ""
34700
34701 #. type: =item
34702 #: ../src/guestfs.pod:1828
34703 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34704 msgstr ""
34705
34706 #. type: textblock
34707 #: ../src/guestfs.pod:1831
34708 msgid ""
34709 "The callback function is called whenever a log message is generated by qemu, "
34710 "the appliance kernel, guestfsd (daemon), or utility programs."
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs.pod:1834
34715 msgid ""
34716 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
34717 "(L</guestfs_launch>) then additional debug messages are generated."
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
34722 msgid ""
34723 "If no callback is registered: the messages are discarded unless the verbose "
34724 "flag is set in which case they are sent to stderr.  You can override the "
34725 "printing of verbose messages to stderr by setting up a callback."
34726 msgstr ""
34727
34728 #. type: =item
34729 #: ../src/guestfs.pod:1842
34730 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:1845
34735 msgid ""
34736 "The callback function is called whenever a log message is generated by the "
34737 "library part of libguestfs."
34738 msgstr ""
34739
34740 #. type: textblock
34741 #: ../src/guestfs.pod:1848
34742 msgid ""
34743 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34744 "messages are generated."
34745 msgstr ""
34746
34747 #. type: =item
34748 #: ../src/guestfs.pod:1856
34749 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:1859
34754 msgid ""
34755 "The callback function is called whenever a trace message is generated.  This "
34756 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34757 msgstr ""
34758
34759 #. type: textblock
34760 #: ../src/guestfs.pod:1862
34761 msgid ""
34762 "If no callback is registered: the messages are sent to stderr.  You can "
34763 "override the printing of trace messages to stderr by setting up a callback."
34764 msgstr ""
34765
34766 #. type: =item
34767 #: ../src/guestfs.pod:1866
34768 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:1869
34773 msgid "The callback function is called whenever a libguestfs function is entered."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:1872
34778 msgid ""
34779 "The payload is a string which contains the name of the function that we are "
34780 "entering (not including C<guestfs_> prefix)."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:1875
34785 msgid ""
34786 "Note that libguestfs functions can call themselves, so you may see many "
34787 "events from a single call.  A few libguestfs functions do not generate this "
34788 "event."
34789 msgstr ""
34790
34791 #. type: =head3
34792 #: ../src/guestfs.pod:1883
34793 msgid "guestfs_set_event_callback"
34794 msgstr ""
34795
34796 #. type: verbatim
34797 #: ../src/guestfs.pod:1885
34798 #, no-wrap
34799 msgid ""
34800 " int guestfs_set_event_callback (guestfs_h *g,\n"
34801 "                                 guestfs_event_callback cb,\n"
34802 "                                 uint64_t event_bitmask,\n"
34803 "                                 int flags,\n"
34804 "                                 void *opaque);\n"
34805 "\n"
34806 msgstr ""
34807
34808 #. type: textblock
34809 #: ../src/guestfs.pod:1891
34810 msgid ""
34811 "This function registers a callback (C<cb>) for all event classes in the "
34812 "C<event_bitmask>."
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:1894
34817 msgid ""
34818 "For example, to register for all log message events, you could call this "
34819 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34820 "To register a single callback for all possible classes of events, use "
34821 "C<GUESTFS_EVENT_ALL>."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:1900
34826 msgid "C<flags> should always be passed as 0."
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:1902
34831 msgid ""
34832 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34833 "it for any purpose."
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:1905
34838 msgid ""
34839 "The return value is the event handle (an integer) which you can use to "
34840 "delete the callback (see below)."
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:1908
34845 msgid ""
34846 "If there is an error, this function returns C<-1>, and sets the error in the "
34847 "handle in the usual way (see L</guestfs_last_error> etc.)"
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:1911
34852 msgid ""
34853 "Callbacks remain in effect until they are deleted, or until the handle is "
34854 "closed."
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:1914
34859 msgid ""
34860 "In the case where multiple callbacks are registered for a particular event "
34861 "class, all of the callbacks are called.  The order in which multiple "
34862 "callbacks are called is not defined."
34863 msgstr ""
34864
34865 #. type: =head3
34866 #: ../src/guestfs.pod:1918
34867 msgid "guestfs_delete_event_callback"
34868 msgstr ""
34869
34870 #. type: verbatim
34871 #: ../src/guestfs.pod:1920
34872 #, no-wrap
34873 msgid ""
34874 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34875 "\n"
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:1922
34880 msgid ""
34881 "Delete a callback that was previously registered.  C<event_handle> should be "
34882 "the integer that was returned by a previous call to "
34883 "C<guestfs_set_event_callback> on the same handle."
34884 msgstr ""
34885
34886 #. type: =head3
34887 #: ../src/guestfs.pod:1926
34888 msgid "guestfs_event_callback"
34889 msgstr ""
34890
34891 #. type: verbatim
34892 #: ../src/guestfs.pod:1928
34893 #, no-wrap
34894 msgid ""
34895 " typedef void (*guestfs_event_callback) (\n"
34896 "                  guestfs_h *g,\n"
34897 "                  void *opaque,\n"
34898 "                  uint64_t event,\n"
34899 "                  int event_handle,\n"
34900 "                  int flags,\n"
34901 "                  const char *buf, size_t buf_len,\n"
34902 "                  const uint64_t *array, size_t array_len);\n"
34903 "\n"
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:1937
34908 msgid "This is the type of the event callback function that you have to provide."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:1940
34913 msgid ""
34914 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34915 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34916 "handle, and C<flags> which in the current API you should ignore."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:1944
34921 msgid ""
34922 "The remaining parameters contain the event payload (if any).  Each event may "
34923 "contain a payload, which usually relates to the event class, but for future "
34924 "proofing your code should be written to handle any payload for any event "
34925 "class."
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs.pod:1949
34930 msgid ""
34931 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34932 "there is no message buffer).  Note that this message buffer can contain "
34933 "arbitrary 8 bit data, including NUL bytes."
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs.pod:1953
34938 msgid ""
34939 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34940 "moment this is only used for progress messages."
34941 msgstr ""
34942
34943 #. type: =head3
34944 #: ../src/guestfs.pod:1956
34945 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs.pod:1958
34950 msgid ""
34951 "One motivation for the generic event API was to allow GUI programs to "
34952 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34953 "unconditionally to C<stderr>."
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:1962
34958 msgid ""
34959 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34960 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34961 "messages are not events; you must capture error messages separately)."
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:1967
34966 msgid ""
34967 "Programs have to set up a callback to capture the classes of events of "
34968 "interest:"
34969 msgstr ""
34970
34971 #. type: verbatim
34972 #: ../src/guestfs.pod:1970
34973 #, no-wrap
34974 msgid ""
34975 " int eh =\n"
34976 "   guestfs_set_event_callback\n"
34977 "     (g, message_callback,\n"
34978 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34979 "      GUESTFS_EVENT_TRACE,\n"
34980 "      0, NULL) == -1)\n"
34981 " if (eh == -1) {\n"
34982 "   // handle error in the usual way\n"
34983 " }\n"
34984 "\n"
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:1980
34989 msgid ""
34990 "The callback can then direct messages to the appropriate place.  In this "
34991 "example, messages are directed to syslog:"
34992 msgstr ""
34993
34994 #. type: verbatim
34995 #: ../src/guestfs.pod:1983
34996 #, no-wrap
34997 msgid ""
34998 " static void\n"
34999 " message_callback (\n"
35000 "         guestfs_h *g,\n"
35001 "         void *opaque,\n"
35002 "         uint64_t event,\n"
35003 "         int event_handle,\n"
35004 "         int flags,\n"
35005 "         const char *buf, size_t buf_len,\n"
35006 "         const uint64_t *array, size_t array_len)\n"
35007 " {\n"
35008 "   const int priority = LOG_USER|LOG_INFO;\n"
35009 "   if (buf_len > 0)\n"
35010 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35011 " }\n"
35012 "\n"
35013 msgstr ""
35014
35015 #. type: =head1
35016 #: ../src/guestfs.pod:1998
35017 msgid "CANCELLING LONG TRANSFERS"
35018 msgstr ""
35019
35020 #. type: textblock
35021 #: ../src/guestfs.pod:2000
35022 msgid ""
35023 "Some operations can be cancelled by the caller while they are in progress.  "
35024 "Currently only operations that involve uploading or downloading data can be "
35025 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
35026 "parameters in the generator)."
35027 msgstr ""
35028
35029 #. type: =head2
35030 #: ../src/guestfs.pod:2005
35031 msgid "guestfs_user_cancel"
35032 msgstr ""
35033
35034 #. type: verbatim
35035 #: ../src/guestfs.pod:2007
35036 #, no-wrap
35037 msgid ""
35038 " void guestfs_user_cancel (guestfs_h *g);\n"
35039 "\n"
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:2009
35044 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:2012
35049 msgid ""
35050 "Unlike most other libguestfs calls, this function is signal safe and thread "
35051 "safe.  You can call it from a signal handler or from another thread, without "
35052 "needing to do any locking."
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:2016
35057 msgid ""
35058 "The transfer that was in progress (if there is one) will stop shortly "
35059 "afterwards, and will return an error.  The errno (see "
35060 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
35061 "out if the operation was cancelled or failed because of another error."
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:2022
35066 msgid ""
35067 "No cleanup is performed: for example, if a file was being uploaded then "
35068 "after cancellation there may be a partially uploaded file.  It is the "
35069 "caller's responsibility to clean up if necessary."
35070 msgstr ""
35071
35072 #. type: textblock
35073 #: ../src/guestfs.pod:2026
35074 msgid "There are two common places that you might call C<guestfs_user_cancel>."
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:2028
35079 msgid ""
35080 "In an interactive text-based program, you might call it from a C<SIGINT> "
35081 "signal handler so that pressing C<^C> cancels the current operation.  (You "
35082 "also need to call L</guestfs_set_pgroup> so that child processes don't "
35083 "receive the C<^C> signal)."
35084 msgstr ""
35085
35086 #. type: textblock
35087 #: ../src/guestfs.pod:2033
35088 msgid ""
35089 "In a graphical program, when the main thread is displaying a progress bar "
35090 "with a cancel button, wire up the cancel button to call this function."
35091 msgstr ""
35092
35093 #. type: =head1
35094 #: ../src/guestfs.pod:2037
35095 msgid "PRIVATE DATA AREA"
35096 msgstr ""
35097
35098 #. type: textblock
35099 #: ../src/guestfs.pod:2039
35100 msgid ""
35101 "You can attach named pieces of private data to the libguestfs handle, fetch "
35102 "them by name, and walk over them, for the lifetime of the handle.  This is "
35103 "called the private data area and is only available from the C API."
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:2044
35108 msgid "To attach a named piece of data, use the following call:"
35109 msgstr ""
35110
35111 #. type: verbatim
35112 #: ../src/guestfs.pod:2046
35113 #, no-wrap
35114 msgid ""
35115 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
35116 "\n"
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:2048
35121 msgid ""
35122 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
35123 "pointer (which can be C<NULL>).  Any previous item with the same key is "
35124 "overwritten."
35125 msgstr ""
35126
35127 #. type: textblock
35128 #: ../src/guestfs.pod:2052
35129 msgid ""
35130 "You can use any C<key> you want, but your key should I<not> start with an "
35131 "underscore character.  Keys beginning with an underscore character are "
35132 "reserved for internal libguestfs purposes (eg. for implementing language "
35133 "bindings).  It is recommended that you prefix the key with some unique "
35134 "string to avoid collisions with other users."
35135 msgstr ""
35136
35137 #. type: textblock
35138 #: ../src/guestfs.pod:2058
35139 msgid "To retrieve the pointer, use:"
35140 msgstr ""
35141
35142 #. type: verbatim
35143 #: ../src/guestfs.pod:2060
35144 #, no-wrap
35145 msgid ""
35146 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
35147 "\n"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:2062
35152 msgid ""
35153 "This function returns C<NULL> if either no data is found associated with "
35154 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
35155 "C<NULL>."
35156 msgstr ""
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:2066
35160 msgid ""
35161 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
35162 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
35163 "all.  In particular, libguestfs does I<not> try to free the data when the "
35164 "handle is closed.  If the data must be freed, then the caller must either "
35165 "free it before calling L</guestfs_close> or must set up a close callback to "
35166 "do it (see L</GUESTFS_EVENT_CLOSE>)."
35167 msgstr ""
35168
35169 #. type: textblock
35170 #: ../src/guestfs.pod:2073
35171 msgid "To walk over all entries, use these two functions:"
35172 msgstr ""
35173
35174 #. type: verbatim
35175 #: ../src/guestfs.pod:2075
35176 #, no-wrap
35177 msgid ""
35178 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
35179 "\n"
35180 msgstr ""
35181
35182 #. type: verbatim
35183 #: ../src/guestfs.pod:2077
35184 #, no-wrap
35185 msgid ""
35186 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
35187 "\n"
35188 msgstr ""
35189
35190 #. type: textblock
35191 #: ../src/guestfs.pod:2079
35192 msgid ""
35193 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
35194 "not have any particular meaning -- keys are not returned in any defined "
35195 "order).  A pointer to the key is returned in C<*key_rtn> and the "
35196 "corresponding data pointer is returned from the function.  C<NULL> is "
35197 "returned if there are no keys stored in the handle."
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:2085
35202 msgid ""
35203 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
35204 "value of this function is also C<NULL> is there are no further entries to "
35205 "return."
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:2089
35210 msgid "Notes about walking over entries:"
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:2095
35215 msgid "You must not call C<guestfs_set_private> while walking over the entries."
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:2100
35220 msgid ""
35221 "The handle maintains an internal iterator which is reset when you call "
35222 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
35223 "call C<guestfs_set_private>."
35224 msgstr ""
35225
35226 #. type: textblock
35227 #: ../src/guestfs.pod:2106
35228 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
35229 msgstr ""
35230
35231 #. type: verbatim
35232 #: ../src/guestfs.pod:2108
35233 #, no-wrap
35234 msgid ""
35235 " guestfs_set_private (g, key, NULL);\n"
35236 "\n"
35237 msgstr ""
35238
35239 #. type: textblock
35240 #: ../src/guestfs.pod:2110
35241 msgid "then that C<key> is not returned when walking."
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:2114
35246 msgid ""
35247 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
35248 "C<guestfs_next_private> or C<guestfs_set_private>."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:2120
35253 msgid ""
35254 "The following example code shows how to print all keys and data pointers "
35255 "that are associated with the handle C<g>:"
35256 msgstr ""
35257
35258 #. type: verbatim
35259 #: ../src/guestfs.pod:2123
35260 #, no-wrap
35261 msgid ""
35262 " const char *key;\n"
35263 " void *data = guestfs_first_private (g, &key);\n"
35264 " while (data != NULL)\n"
35265 "   {\n"
35266 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
35267 "     data = guestfs_next_private (g, &key);\n"
35268 "   }\n"
35269 "\n"
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:2131
35274 msgid ""
35275 "More commonly you are only interested in keys that begin with an "
35276 "application-specific prefix C<foo_>.  Modify the loop like so:"
35277 msgstr ""
35278
35279 #. type: verbatim
35280 #: ../src/guestfs.pod:2134
35281 #, no-wrap
35282 msgid ""
35283 " const char *key;\n"
35284 " void *data = guestfs_first_private (g, &key);\n"
35285 " while (data != NULL)\n"
35286 "   {\n"
35287 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35288 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35289 "     data = guestfs_next_private (g, &key);\n"
35290 "   }\n"
35291 "\n"
35292 msgstr ""
35293
35294 #. type: textblock
35295 #: ../src/guestfs.pod:2143
35296 msgid ""
35297 "If you need to modify keys while walking, then you have to jump back to the "
35298 "beginning of the loop.  For example, to delete all keys prefixed with "
35299 "C<foo_>:"
35300 msgstr ""
35301
35302 #. type: verbatim
35303 #: ../src/guestfs.pod:2147
35304 #, no-wrap
35305 msgid ""
35306 "  const char *key;\n"
35307 "  void *data;\n"
35308 " again:\n"
35309 "  data = guestfs_first_private (g, &key);\n"
35310 "  while (data != NULL)\n"
35311 "    {\n"
35312 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35313 "        {\n"
35314 "          guestfs_set_private (g, key, NULL);\n"
35315 "          /* note that 'key' pointer is now invalid, and so is\n"
35316 "             the internal iterator */\n"
35317 "          goto again;\n"
35318 "        }\n"
35319 "      data = guestfs_next_private (g, &key);\n"
35320 "    }\n"
35321 "\n"
35322 msgstr ""
35323
35324 #. type: textblock
35325 #: ../src/guestfs.pod:2163
35326 msgid ""
35327 "Note that the above loop is guaranteed to terminate because the keys are "
35328 "being deleted, but other manipulations of keys within the loop might not "
35329 "terminate unless you also maintain an indication of which keys have been "
35330 "visited."
35331 msgstr ""
35332
35333 #. type: =end
35334 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
35335 msgid "html"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:2170
35340 msgid ""
35341 "<!-- old anchor for the next section --> <a "
35342 "name=\"state_machine_and_low_level_event_api\"/>"
35343 msgstr ""
35344
35345 #. type: =head1
35346 #: ../src/guestfs.pod:2175
35347 msgid "ARCHITECTURE"
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:2177
35352 msgid ""
35353 "Internally, libguestfs is implemented by running an appliance (a special "
35354 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
35355 "process of the main program."
35356 msgstr ""
35357
35358 #. type: verbatim
35359 #: ../src/guestfs.pod:2181
35360 #, no-wrap
35361 msgid ""
35362 "  ___________________\n"
35363 " /                   \\\n"
35364 " | main program      |\n"
35365 " |                   |\n"
35366 " |                   |           child process / appliance\n"
35367 " |                   |           __________________________\n"
35368 " |                   |          / qemu                     \\\n"
35369 " +-------------------+   RPC    |      +-----------------+ |\n"
35370 " | libguestfs     <--------------------> guestfsd        | |\n"
35371 " |                   |          |      +-----------------+ |\n"
35372 " \\___________________/          |      | Linux kernel    | |\n"
35373 "                                |      +--^--------------+ |\n"
35374 "                                \\_________|________________/\n"
35375 "                                          |\n"
35376 "                                   _______v______\n"
35377 "                                  /              \\\n"
35378 "                                  | Device or    |\n"
35379 "                                  | disk image   |\n"
35380 "                                  \\______________/\n"
35381 "\n"
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:2201
35386 msgid ""
35387 "The library, linked to the main program, creates the child process and hence "
35388 "the appliance in the L</guestfs_launch> function."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:2204
35393 msgid ""
35394 "Inside the appliance is a Linux kernel and a complete stack of userspace "
35395 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
35396 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
35397 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
35398 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
35399 "attached to the qemu process which translates device access by the "
35400 "appliance's Linux kernel into accesses to the image."
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:2213
35405 msgid ""
35406 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35407 "Although the disk image you are attached to might also be used by some "
35408 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35409 "care if both libguestfs's qemu process and your virtual machine are trying "
35410 "to update the disk image at the same time, since these usually results in "
35411 "massive disk corruption)."
35412 msgstr ""
35413
35414 #. type: =head1
35415 #: ../src/guestfs.pod:2220
35416 msgid "STATE MACHINE"
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:2222
35421 msgid "libguestfs uses a state machine to model the child process:"
35422 msgstr ""
35423
35424 #. type: verbatim
35425 #: ../src/guestfs.pod:2224
35426 #, no-wrap
35427 msgid ""
35428 "                         |\n"
35429 "                    guestfs_create\n"
35430 "                         |\n"
35431 "                         |\n"
35432 "                     ____V_____\n"
35433 "                    /          \\\n"
35434 "                    |  CONFIG  |\n"
35435 "                    \\__________/\n"
35436 "                     ^ ^   ^  \\\n"
35437 "                    /  |    \\  \\ guestfs_launch\n"
35438 "                   /   |    _\\__V______\n"
35439 "                  /    |   /           \\\n"
35440 "                 /     |   | LAUNCHING |\n"
35441 "                /      |   \\___________/\n"
35442 "               /       |       /\n"
35443 "              /        |  guestfs_launch\n"
35444 "             /         |     /\n"
35445 "    ______  /        __|____V\n"
35446 "   /      \\ ------> /        \\\n"
35447 "   | BUSY |         | READY  |\n"
35448 "   \\______/ <------ \\________/\n"
35449 "\n"
35450 msgstr ""
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:2246
35454 msgid ""
35455 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35456 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35457 "(3) alternating between READY and BUSY as commands are issued to, and "
35458 "carried out by, the child process."
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:2251
35463 msgid ""
35464 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35465 "asynchronously at any time (eg. due to some internal error), and that causes "
35466 "the state to transition back to CONFIG."
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:2255
35471 msgid ""
35472 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35473 "issued when in the CONFIG state."
35474 msgstr ""
35475
35476 #. type: textblock
35477 #: ../src/guestfs.pod:2258
35478 msgid ""
35479 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35480 "L</guestfs_launch> blocks until the child process is READY to accept "
35481 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35482 "moves the state from CONFIG to LAUNCHING while it is running."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:2264
35487 msgid ""
35488 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35489 "state.  These API calls block waiting for the command to be carried out "
35490 "(ie. the state to transition to BUSY and then back to READY).  There are no "
35491 "non-blocking versions, and no way to issue more than one command per handle "
35492 "at the same time."
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:2270
35497 msgid ""
35498 "Finally, the child process sends asynchronous messages back to the main "
35499 "program, such as kernel log messages.  You can register a callback to "
35500 "receive these messages."
35501 msgstr ""
35502
35503 #. type: =head1
35504 #: ../src/guestfs.pod:2274
35505 msgid "INTERNALS"
35506 msgstr ""
35507
35508 #. type: =head2
35509 #: ../src/guestfs.pod:2276
35510 msgid "APPLIANCE BOOT PROCESS"
35511 msgstr ""
35512
35513 #. type: textblock
35514 #: ../src/guestfs.pod:2278
35515 msgid ""
35516 "This process has evolved and continues to evolve.  The description here "
35517 "corresponds only to the current version of libguestfs and is provided for "
35518 "information only."
35519 msgstr ""
35520
35521 #. type: textblock
35522 #: ../src/guestfs.pod:2282
35523 msgid ""
35524 "In order to follow the stages involved below, enable libguestfs debugging "
35525 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
35526 msgstr ""
35527
35528 #. type: =item
35529 #: ../src/guestfs.pod:2287
35530 msgid "Create the appliance"
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:2289
35535 msgid ""
35536 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
35537 "initrd and the appliance."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:2292
35542 msgid ""
35543 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
35544 "directory if C<TMPDIR> is set)."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:2295
35549 msgid ""
35550 "For a complete description of how the appliance is created and cached, read "
35551 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
35552 msgstr ""
35553
35554 #. type: =item
35555 #: ../src/guestfs.pod:2299
35556 msgid "Start qemu and boot the kernel"
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:2301
35561 msgid "qemu is invoked to boot the kernel."
35562 msgstr ""
35563
35564 #. type: =item
35565 #: ../src/guestfs.pod:2303
35566 msgid "Run the initrd"
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:2305
35571 msgid ""
35572 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
35573 "appliance.  The purpose of the initrd is to load enough kernel modules in "
35574 "order that the appliance itself can be mounted and started."
35575 msgstr ""
35576
35577 #. type: textblock
35578 #: ../src/guestfs.pod:2309
35579 msgid ""
35580 "The initrd is a cpio archive called "
35581 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:2312
35586 msgid ""
35587 "When the initrd has started you will see messages showing that kernel "
35588 "modules are being loaded, similar to this:"
35589 msgstr ""
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:2315
35593 #, no-wrap
35594 msgid ""
35595 " febootstrap: ext2 mini initrd starting up\n"
35596 " febootstrap: mounting /sys\n"
35597 " febootstrap: internal insmod libcrc32c.ko\n"
35598 " febootstrap: internal insmod crc32c-intel.ko\n"
35599 "\n"
35600 msgstr ""
35601
35602 #. type: =item
35603 #: ../src/guestfs.pod:2320
35604 msgid "Find and mount the appliance device"
35605 msgstr ""
35606
35607 #. type: textblock
35608 #: ../src/guestfs.pod:2322
35609 msgid ""
35610 "The appliance is a sparse file containing an ext2 filesystem which contains "
35611 "a familiar (although reduced in size) Linux operating system.  It would "
35612 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35613 msgstr ""
35614
35615 #. type: textblock
35616 #: ../src/guestfs.pod:2326
35617 msgid ""
35618 "The regular disks being inspected by libguestfs are the first devices "
35619 "exposed by qemu (eg. as C</dev/vda>)."
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:2329
35624 msgid ""
35625 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35626 "there was only one regular disk)."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:2332
35631 msgid ""
35632 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35633 "and switch root into the appliance, and run C</init> from the appliance."
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:2336
35638 msgid "If this works successfully you will see messages such as:"
35639 msgstr ""
35640
35641 #. type: verbatim
35642 #: ../src/guestfs.pod:2338
35643 #, no-wrap
35644 msgid ""
35645 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35646 " febootstrap: creating /dev/root as block special 252:16\n"
35647 " febootstrap: mounting new root on /root\n"
35648 " febootstrap: chroot\n"
35649 " Starting /init script ...\n"
35650 "\n"
35651 msgstr ""
35652
35653 #. type: textblock
35654 #: ../src/guestfs.pod:2344
35655 msgid ""
35656 "Note that C<Starting /init script ...> indicates that the appliance's init "
35657 "script is now running."
35658 msgstr ""
35659
35660 #. type: =item
35661 #: ../src/guestfs.pod:2347
35662 msgid "Initialize the appliance"
35663 msgstr ""
35664
35665 #. type: textblock
35666 #: ../src/guestfs.pod:2349
35667 msgid ""
35668 "The appliance itself now initializes itself.  This involves starting certain "
35669 "processes like C<udev>, possibly printing some debug information, and "
35670 "finally running the daemon (C<guestfsd>)."
35671 msgstr ""
35672
35673 #. type: =item
35674 #: ../src/guestfs.pod:2353
35675 msgid "The daemon"
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:2355
35680 msgid ""
35681 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
35682 "should see:"
35683 msgstr ""
35684
35685 #. type: verbatim
35686 #: ../src/guestfs.pod:2358
35687 #, no-wrap
35688 msgid ""
35689 " verbose daemon enabled\n"
35690 "\n"
35691 msgstr ""
35692
35693 #. type: textblock
35694 #: ../src/guestfs.pod:2360
35695 msgid ""
35696 "The daemon expects to see a named virtio-serial port exposed by qemu and "
35697 "connected on the other end to the library."
35698 msgstr ""
35699
35700 #. type: textblock
35701 #: ../src/guestfs.pod:2363
35702 msgid ""
35703 "The daemon connects to this port (and hence to the library) and sends a four "
35704 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
35705 "protocol (see below)."
35706 msgstr ""
35707
35708 #. type: =head2
35709 #: ../src/guestfs.pod:2369
35710 msgid "COMMUNICATION PROTOCOL"
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:2371
35715 msgid ""
35716 "Don't rely on using this protocol directly.  This section documents how it "
35717 "currently works, but it may change at any time."
35718 msgstr ""
35719
35720 #. type: textblock
35721 #: ../src/guestfs.pod:2374
35722 msgid ""
35723 "The protocol used to talk between the library and the daemon running inside "
35724 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35725 "1014, RFC 1832, RFC 4506)."
35726 msgstr ""
35727
35728 #. type: textblock
35729 #: ../src/guestfs.pod:2378
35730 msgid ""
35731 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35732 "this file is automatically generated)."
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:2381
35737 msgid ""
35738 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35739 "and C<FileOut> parameters, which are handled with very simple request/reply "
35740 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35741 "parameters, which use the same request and reply messages, but they may also "
35742 "be followed by files sent using a chunked encoding."
35743 msgstr ""
35744
35745 #. type: =head3
35746 #: ../src/guestfs.pod:2388
35747 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35748 msgstr ""
35749
35750 #. type: textblock
35751 #: ../src/guestfs.pod:2390
35752 msgid "For ordinary functions, the request message is:"
35753 msgstr ""
35754
35755 #. type: verbatim
35756 #: ../src/guestfs.pod:2392
35757 #, no-wrap
35758 msgid ""
35759 " total length (header + arguments,\n"
35760 "      but not including the length word itself)\n"
35761 " struct guestfs_message_header (encoded as XDR)\n"
35762 " struct guestfs_<foo>_args (encoded as XDR)\n"
35763 "\n"
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../src/guestfs.pod:2397
35768 msgid ""
35769 "The total length field allows the daemon to allocate a fixed size buffer "
35770 "into which it slurps the rest of the message.  As a result, the total length "
35771 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35772 "effective size of any request is limited to somewhere under this size."
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:2403
35777 msgid ""
35778 "Note also that many functions don't take any arguments, in which case the "
35779 "C<guestfs_I<foo>_args> is completely omitted."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:2406
35784 msgid ""
35785 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35786 "receiver knows what type of args structure to expect, or none at all."
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../src/guestfs.pod:2410
35791 msgid ""
35792 "For functions that take optional arguments, the optional arguments are "
35793 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35794 "arguments.  A bitmask in the header indicates which optional arguments are "
35795 "meaningful.  The bitmask is also checked to see if it contains bits set "
35796 "which the daemon does not know about (eg. if more optional arguments were "
35797 "added in a later version of the library), and this causes the call to be "
35798 "rejected."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:2418
35803 msgid "The reply message for ordinary functions is:"
35804 msgstr ""
35805
35806 #. type: verbatim
35807 #: ../src/guestfs.pod:2420
35808 #, no-wrap
35809 msgid ""
35810 " total length (header + ret,\n"
35811 "      but not including the length word itself)\n"
35812 " struct guestfs_message_header (encoded as XDR)\n"
35813 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35814 "\n"
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:2425
35819 msgid ""
35820 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35821 "functions that return no formal return values."
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../src/guestfs.pod:2428
35826 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../src/guestfs.pod:2431
35831 msgid ""
35832 "In the case of an error, a flag is set in the header, and the reply message "
35833 "is slightly changed:"
35834 msgstr ""
35835
35836 #. type: verbatim
35837 #: ../src/guestfs.pod:2434
35838 #, no-wrap
35839 msgid ""
35840 " total length (header + error,\n"
35841 "      but not including the length word itself)\n"
35842 " struct guestfs_message_header (encoded as XDR)\n"
35843 " struct guestfs_message_error (encoded as XDR)\n"
35844 "\n"
35845 msgstr ""
35846
35847 #. type: textblock
35848 #: ../src/guestfs.pod:2439
35849 msgid ""
35850 "The C<guestfs_message_error> structure contains the error message as a "
35851 "string."
35852 msgstr ""
35853
35854 #. type: =head3
35855 #: ../src/guestfs.pod:2442
35856 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35857 msgstr ""
35858
35859 #. type: textblock
35860 #: ../src/guestfs.pod:2444
35861 msgid ""
35862 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35863 "The normal request message is sent (see above).  However this is followed by "
35864 "a sequence of file chunks."
35865 msgstr ""
35866
35867 #. type: verbatim
35868 #: ../src/guestfs.pod:2448
35869 #, no-wrap
35870 msgid ""
35871 " total length (header + arguments,\n"
35872 "      but not including the length word itself,\n"
35873 "      and not including the chunks)\n"
35874 " struct guestfs_message_header (encoded as XDR)\n"
35875 " struct guestfs_<foo>_args (encoded as XDR)\n"
35876 " sequence of chunks for FileIn param #0\n"
35877 " sequence of chunks for FileIn param #1 etc.\n"
35878 "\n"
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:2456
35883 msgid "The \"sequence of chunks\" is:"
35884 msgstr ""
35885
35886 #. type: verbatim
35887 #: ../src/guestfs.pod:2458
35888 #, no-wrap
35889 msgid ""
35890 " length of chunk (not including length word itself)\n"
35891 " struct guestfs_chunk (encoded as XDR)\n"
35892 " length of chunk\n"
35893 " struct guestfs_chunk (encoded as XDR)\n"
35894 "   ...\n"
35895 " length of chunk\n"
35896 " struct guestfs_chunk (with data.data_len == 0)\n"
35897 "\n"
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:2466
35902 msgid ""
35903 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35904 "is set in the final chunk to indicate either successful completion or early "
35905 "cancellation."
35906 msgstr ""
35907
35908 #. type: textblock
35909 #: ../src/guestfs.pod:2470
35910 msgid ""
35911 "At time of writing there are no functions that have more than one FileIn "
35912 "parameter.  However this is (theoretically) supported, by sending the "
35913 "sequence of chunks for each FileIn parameter one after another (from left to "
35914 "right)."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:2475
35919 msgid ""
35920 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35921 "transfer.  The library does this by sending a chunk with a special flag set "
35922 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35923 "RPC, does I<not> send any reply, and goes back to reading the next request."
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:2481
35928 msgid ""
35929 "The daemon may also cancel.  It does this by writing a special word "
35930 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35931 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35932 "cancel chunk).  The special word is chosen so that even if cancellation "
35933 "happens right at the end of the transfer (after the library has finished "
35934 "writing and has started listening for the reply), the \"spurious\" cancel "
35935 "flag will not be confused with the reply message."
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:2490
35940 msgid ""
35941 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35942 "limit), and also files where the size is not known in advance (eg. from "
35943 "pipes or sockets).  However the chunks are rather small "
35944 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35945 "to keep much in memory."
35946 msgstr ""
35947
35948 #. type: =head3
35949 #: ../src/guestfs.pod:2496
35950 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35951 msgstr ""
35952
35953 #. type: textblock
35954 #: ../src/guestfs.pod:2498
35955 msgid ""
35956 "The protocol for FileOut parameters is exactly the same as for FileIn "
35957 "parameters, but with the roles of daemon and library reversed."
35958 msgstr ""
35959
35960 #. type: verbatim
35961 #: ../src/guestfs.pod:2501
35962 #, no-wrap
35963 msgid ""
35964 " total length (header + ret,\n"
35965 "      but not including the length word itself,\n"
35966 "      and not including the chunks)\n"
35967 " struct guestfs_message_header (encoded as XDR)\n"
35968 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35969 " sequence of chunks for FileOut param #0\n"
35970 " sequence of chunks for FileOut param #1 etc.\n"
35971 "\n"
35972 msgstr ""
35973
35974 #. type: =head3
35975 #: ../src/guestfs.pod:2509
35976 msgid "INITIAL MESSAGE"
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:2511
35981 msgid ""
35982 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35983 "which indicates that the guest and daemon is alive.  This is what "
35984 "L</guestfs_launch> waits for."
35985 msgstr ""
35986
35987 #. type: =head3
35988 #: ../src/guestfs.pod:2515
35989 msgid "PROGRESS NOTIFICATION MESSAGES"
35990 msgstr ""
35991
35992 #. type: textblock
35993 #: ../src/guestfs.pod:2517
35994 msgid ""
35995 "The daemon may send progress notification messages at any time.  These are "
35996 "distinguished by the normal length word being replaced by "
35997 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:2521
36002 msgid ""
36003 "The library turns them into progress callbacks (see "
36004 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
36005 "them if not."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:2525
36010 msgid ""
36011 "The daemon self-limits the frequency of progress messages it sends (see "
36012 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36013 "messages."
36014 msgstr ""
36015
36016 #. type: =head1
36017 #: ../src/guestfs.pod:2529
36018 msgid "LIBGUESTFS VERSION NUMBERS"
36019 msgstr ""
36020
36021 #. type: textblock
36022 #: ../src/guestfs.pod:2531
36023 msgid ""
36024 "Since April 2010, libguestfs has started to make separate development and "
36025 "stable releases, along with corresponding branches in our git repository.  "
36026 "These separate releases can be identified by version number:"
36027 msgstr ""
36028
36029 #. type: verbatim
36030 #: ../src/guestfs.pod:2536
36031 #, no-wrap
36032 msgid ""
36033 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36034 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36035 "       |\n"
36036 "       v\n"
36037 " 1  .  3  .  5\n"
36038 " ^           ^\n"
36039 " |           |\n"
36040 " |           `-------- sub-version\n"
36041 " |\n"
36042 " `------ always '1' because we don't change the ABI\n"
36043 "\n"
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:2547
36048 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:2549
36053 msgid ""
36054 "As time passes we cherry pick fixes from the development branch and backport "
36055 "those into the stable branch, the effect being that the stable branch should "
36056 "get more stable and less buggy over time.  So the stable releases are ideal "
36057 "for people who don't need new features but would just like the software to "
36058 "work."
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:2555
36063 msgid "Our criteria for backporting changes are:"
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:2561
36068 msgid ""
36069 "Documentation changes which don't affect any code are backported unless the "
36070 "documentation refers to a future feature which is not in stable."
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:2567
36075 msgid ""
36076 "Bug fixes which are not controversial, fix obvious problems, and have been "
36077 "well tested are backported."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:2572
36082 msgid ""
36083 "Simple rearrangements of code which shouldn't affect how it works get "
36084 "backported.  This is so that the code in the two branches doesn't get too "
36085 "far out of step, allowing us to backport future fixes more easily."
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:2578
36090 msgid ""
36091 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36092 "exceptional case: the new feature is required in order to implement an "
36093 "important bug fix."
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:2584
36098 msgid ""
36099 "A new stable branch starts when we think the new features in development are "
36100 "substantial and compelling enough over the current stable branch to warrant "
36101 "it.  When that happens we create new stable and development versions 1.N.0 "
36102 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
36103 "stable at this point, but by backporting fixes from development, that branch "
36104 "will stabilize over time."
36105 msgstr ""
36106
36107 #. type: =head1
36108 #: ../src/guestfs.pod:2592
36109 msgid "EXTENDING LIBGUESTFS"
36110 msgstr ""
36111
36112 #. type: =head2
36113 #: ../src/guestfs.pod:2594
36114 msgid "ADDING A NEW API ACTION"
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:2596
36119 msgid ""
36120 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
36121 "documentation) are generated, and this makes it easy to extend the "
36122 "libguestfs API."
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:2600
36127 msgid "To add a new API action there are two changes:"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:2606
36132 msgid ""
36133 "You need to add a description of the call (name, parameters, return type, "
36134 "tests, documentation) to C<generator/generator_actions.ml>."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:2609
36139 msgid ""
36140 "There are two sorts of API action, depending on whether the call goes "
36141 "through to the daemon in the appliance, or is serviced entirely by the "
36142 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
36143 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
36144 "an example of the latter, since a trace flag is maintained in the handle and "
36145 "all tracing is done on the library side."
36146 msgstr ""
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:2617
36150 msgid ""
36151 "Most new actions are of the first type, and get added to the "
36152 "C<daemon_functions> list.  Each function has a unique procedure number used "
36153 "in the RPC protocol which is assigned to that action when we publish "
36154 "libguestfs and cannot be reused.  Take the latest procedure number and "
36155 "increment it."
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:2623
36160 msgid ""
36161 "For library-only actions of the second type, add to the "
36162 "C<non_daemon_functions> list.  Since these functions are serviced by the "
36163 "library and do not travel over the RPC mechanism to the daemon, these "
36164 "functions do not need a procedure number, and so the procedure number is set "
36165 "to C<-1>."
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:2631
36170 msgid "Implement the action (in C):"
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:2633
36175 msgid ""
36176 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
36177 "C<daemon/> directory."
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:2636
36182 msgid ""
36183 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
36184 "(note: double underscore) in the C<src/> directory."
36185 msgstr ""
36186
36187 #. type: textblock
36188 #: ../src/guestfs.pod:2639
36189 msgid "In either case, use another function as an example of what to do."
36190 msgstr ""
36191
36192 #. type: textblock
36193 #: ../src/guestfs.pod:2643
36194 msgid "After making these changes, use C<make> to compile."
36195 msgstr ""
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:2645
36199 msgid ""
36200 "Note that you don't need to implement the RPC, language bindings, manual "
36201 "pages or anything else.  It's all automatically generated from the OCaml "
36202 "description."
36203 msgstr ""
36204
36205 #. type: =head2
36206 #: ../src/guestfs.pod:2649
36207 msgid "ADDING TESTS FOR AN API ACTION"
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:2651
36212 msgid ""
36213 "You can supply zero or as many tests as you want per API call.  The tests "
36214 "can either be added as part of the API description "
36215 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
36216 "drop a script into C<regressions/>.  Note that adding a script to "
36217 "C<regressions/> is slower, so if possible use the first method."
36218 msgstr ""
36219
36220 #. type: textblock
36221 #: ../src/guestfs.pod:2657
36222 msgid ""
36223 "The following describes the test environment used when you add an API test "
36224 "in C<generator_actions.ml>."
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:2660
36229 msgid "The test environment has 4 block devices:"
36230 msgstr ""
36231
36232 #. type: =item
36233 #: ../src/guestfs.pod:2664
36234 msgid "C</dev/sda> 500MB"
36235 msgstr ""
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:2666
36239 msgid "General block device for testing."
36240 msgstr ""
36241
36242 #. type: =item
36243 #: ../src/guestfs.pod:2668
36244 msgid "C</dev/sdb> 50MB"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:2670
36249 msgid ""
36250 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
36251 "operations."
36252 msgstr ""
36253
36254 #. type: =item
36255 #: ../src/guestfs.pod:2673
36256 msgid "C</dev/sdc> 10MB"
36257 msgstr ""
36258
36259 #. type: textblock
36260 #: ../src/guestfs.pod:2675
36261 msgid "Used in a few tests where two block devices are needed."
36262 msgstr ""
36263
36264 #. type: =item
36265 #: ../src/guestfs.pod:2677
36266 msgid "C</dev/sdd>"
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:2679
36271 msgid "ISO with fixed content (see C<images/test.iso>)."
36272 msgstr ""
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:2683
36276 msgid ""
36277 "To be able to run the tests in a reasonable amount of time, the libguestfs "
36278 "appliance and block devices are reused between tests.  So don't try testing "
36279 "L</guestfs_kill_subprocess> :-x"
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:2687
36284 msgid ""
36285 "Each test starts with an initial scenario, selected using one of the "
36286 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
36287 "initialize the disks mentioned above in a particular way as documented in "
36288 "C<generator_types.ml>.  You should not assume anything about the previous "
36289 "contents of other disks that are not initialized."
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:2693
36294 msgid ""
36295 "You can add a prerequisite clause to any individual test.  This is a "
36296 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
36297 "if testing a command which might not work on all variations of libguestfs "
36298 "builds.  A test that has prerequisite of C<Always> means to run "
36299 "unconditionally."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:2699
36304 msgid ""
36305 "In addition, packagers can skip individual tests by setting environment "
36306 "variables before running C<make check>."
36307 msgstr ""
36308
36309 #. type: verbatim
36310 #: ../src/guestfs.pod:2702
36311 #, no-wrap
36312 msgid ""
36313 " SKIP_TEST_<CMD>_<NUM>=1\n"
36314 "\n"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:2704
36319 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../src/guestfs.pod:2706
36324 msgid "or:"
36325 msgstr ""
36326
36327 #. type: verbatim
36328 #: ../src/guestfs.pod:2708
36329 #, no-wrap
36330 msgid ""
36331 " SKIP_TEST_<CMD>=1\n"
36332 "\n"
36333 msgstr ""
36334
36335 #. type: textblock
36336 #: ../src/guestfs.pod:2710
36337 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:2712
36342 msgid "Packagers can run only certain tests by setting for example:"
36343 msgstr ""
36344
36345 #. type: verbatim
36346 #: ../src/guestfs.pod:2714
36347 #, no-wrap
36348 msgid ""
36349 " TEST_ONLY=\"vfs_type zerofree\"\n"
36350 "\n"
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../src/guestfs.pod:2716
36355 msgid ""
36356 "See C<capitests/tests.c> for more details of how these environment variables "
36357 "work."
36358 msgstr ""
36359
36360 #. type: =head2
36361 #: ../src/guestfs.pod:2719
36362 msgid "DEBUGGING NEW API ACTIONS"
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:2721
36367 msgid "Test new actions work before submitting them."
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:2723
36372 msgid "You can use guestfish to try out new commands."
36373 msgstr ""
36374
36375 #. type: textblock
36376 #: ../src/guestfs.pod:2725
36377 msgid ""
36378 "Debugging the daemon is a problem because it runs inside a minimal "
36379 "environment.  However you can fprintf messages in the daemon to stderr, and "
36380 "they will show up if you use C<guestfish -v>."
36381 msgstr ""
36382
36383 #. type: =head2
36384 #: ../src/guestfs.pod:2729
36385 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:2731
36390 msgid ""
36391 "Our C source code generally adheres to some basic code-formatting "
36392 "conventions.  The existing code base is not totally consistent on this "
36393 "front, but we do prefer that contributed code be formatted similarly.  In "
36394 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
36395 "indentation level, and other than that, follow the K&R style."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:2737
36400 msgid ""
36401 "If you use Emacs, add the following to one of one of your start-up files "
36402 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
36403 msgstr ""
36404
36405 #. type: verbatim
36406 #: ../src/guestfs.pod:2740
36407 #, no-wrap
36408 msgid ""
36409 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
36410 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
36411 " (add-hook 'find-file-hook\n"
36412 "     '(lambda () (if (and buffer-file-name\n"
36413 "                          (string-match \"/libguestfs\\\\>\"\n"
36414 "                              (buffer-file-name))\n"
36415 "                          (not (string-equal mode-name \"Change Log\"))\n"
36416 "                          (not (string-equal mode-name \"Makefile\")))\n"
36417 "                     (setq indent-tabs-mode nil))))\n"
36418 " \n"
36419 msgstr ""
36420
36421 #. type: verbatim
36422 #: ../src/guestfs.pod:2750
36423 #, no-wrap
36424 msgid ""
36425 " ;;; When editing C sources in libguestfs, use this style.\n"
36426 " (defun libguestfs-c-mode ()\n"
36427 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
36428 "   (interactive)\n"
36429 "   (c-set-style \"K&R\")\n"
36430 "   (setq c-indent-level 2)\n"
36431 "   (setq c-basic-offset 2))\n"
36432 " (add-hook 'c-mode-hook\n"
36433 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
36434 "                               (buffer-file-name))\n"
36435 "                           (libguestfs-c-mode))))\n"
36436 "\n"
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:2762
36441 msgid "Enable warnings when compiling (and fix any problems this finds):"
36442 msgstr ""
36443
36444 #. type: verbatim
36445 #: ../src/guestfs.pod:2765
36446 #, no-wrap
36447 msgid ""
36448 " ./configure --enable-gcc-warnings\n"
36449 "\n"
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:2767
36454 msgid "Useful targets are:"
36455 msgstr ""
36456
36457 #. type: verbatim
36458 #: ../src/guestfs.pod:2769
36459 #, no-wrap
36460 msgid ""
36461 " make syntax-check  # checks the syntax of the C code\n"
36462 " make check         # runs the test suite\n"
36463 "\n"
36464 msgstr ""
36465
36466 #. type: =head2
36467 #: ../src/guestfs.pod:2772
36468 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:2774
36473 msgid ""
36474 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
36475 "which are used to do shell quoting."
36476 msgstr ""
36477
36478 #. type: =item
36479 #: ../src/guestfs.pod:2779
36480 msgid "%Q"
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:2781
36485 msgid ""
36486 "Simple shell quoted string.  Any spaces or other shell characters are "
36487 "escaped for you."
36488 msgstr ""
36489
36490 #. type: =item
36491 #: ../src/guestfs.pod:2784
36492 msgid "%R"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:2786
36497 msgid ""
36498 "Same as C<%Q> except the string is treated as a path which is prefixed by "
36499 "the sysroot."
36500 msgstr ""
36501
36502 #. type: verbatim
36503 #: ../src/guestfs.pod:2793
36504 #, no-wrap
36505 msgid ""
36506 " asprintf (&cmd, \"cat %R\", path);\n"
36507 "\n"
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:2795
36512 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:2797
36517 msgid ""
36518 "I<Note:> Do I<not> use these when you are passing parameters to the "
36519 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
36520 "because they are not passed via the shell (instead, straight to exec).  You "
36521 "probably want to use the C<sysroot_path()> function however."
36522 msgstr ""
36523
36524 #. type: =head2
36525 #: ../src/guestfs.pod:2803
36526 msgid "SUBMITTING YOUR NEW API ACTIONS"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:2805
36531 msgid ""
36532 "Submit patches to the mailing list: "
36533 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
36534 "L<rjones@redhat.com>."
36535 msgstr ""
36536
36537 #. type: =head2
36538 #: ../src/guestfs.pod:2809
36539 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
36540 msgstr ""
36541
36542 #. type: textblock
36543 #: ../src/guestfs.pod:2811
36544 msgid "We support i18n (gettext anyhow) in the library."
36545 msgstr ""
36546
36547 #. type: textblock
36548 #: ../src/guestfs.pod:2813
36549 msgid ""
36550 "However many messages come from the daemon, and we don't translate those at "
36551 "the moment.  One reason is that the appliance generally has all locale files "
36552 "removed from it, because they take up a lot of space.  So we'd have to readd "
36553 "some of those, as well as copying our PO files into the appliance."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:2819
36558 msgid ""
36559 "Debugging messages are never translated, since they are intended for the "
36560 "programmers."
36561 msgstr ""
36562
36563 #. type: =head2
36564 #: ../src/guestfs.pod:2822
36565 msgid "SOURCE CODE SUBDIRECTORIES"
36566 msgstr ""
36567
36568 #. type: =item
36569 #: ../src/guestfs.pod:2826
36570 msgid "C<align>"
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:2828
36575 msgid "L<virt-alignment-scan(1)> command and documentation."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../src/guestfs.pod:2832
36580 msgid "The libguestfs appliance, build scripts and so on."
36581 msgstr ""
36582
36583 #. type: =item
36584 #: ../src/guestfs.pod:2834
36585 msgid "C<capitests>"
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:2836
36590 msgid "Automated tests of the C API."
36591 msgstr ""
36592
36593 #. type: =item
36594 #: ../src/guestfs.pod:2838
36595 msgid "C<cat>"
36596 msgstr ""
36597
36598 #. type: textblock
36599 #: ../src/guestfs.pod:2840
36600 msgid ""
36601 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36602 "documentation."
36603 msgstr ""
36604
36605 #. type: =item
36606 #: ../src/guestfs.pod:2843
36607 msgid "C<caution>"
36608 msgstr ""
36609
36610 #. type: textblock
36611 #: ../src/guestfs.pod:2845
36612 msgid ""
36613 "Safety and liveness tests of components that libguestfs depends upon (not of "
36614 "libguestfs itself).  Mainly this is for qemu and the kernel."
36615 msgstr ""
36616
36617 #. type: =item
36618 #: ../src/guestfs.pod:2848
36619 msgid "C<contrib>"
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:2850
36624 msgid "Outside contributions, experimental parts."
36625 msgstr ""
36626
36627 #. type: =item
36628 #: ../src/guestfs.pod:2852
36629 msgid "C<daemon>"
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:2854
36634 msgid ""
36635 "The daemon that runs inside the libguestfs appliance and carries out "
36636 "actions."
36637 msgstr ""
36638
36639 #. type: =item
36640 #: ../src/guestfs.pod:2857
36641 msgid "C<df>"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:2859
36646 msgid "L<virt-df(1)> command and documentation."
36647 msgstr ""
36648
36649 #. type: =item
36650 #: ../src/guestfs.pod:2861
36651 msgid "C<edit>"
36652 msgstr ""
36653
36654 #. type: textblock
36655 #: ../src/guestfs.pod:2863
36656 msgid "L<virt-edit(1)> command and documentation."
36657 msgstr ""
36658
36659 #. type: =item
36660 #: ../src/guestfs.pod:2865
36661 msgid "C<examples>"
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:2867
36666 msgid "C API example code."
36667 msgstr ""
36668
36669 #. type: =item
36670 #: ../src/guestfs.pod:2869
36671 msgid "C<fish>"
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:2871
36676 msgid ""
36677 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36678 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36679 "L<virt-tar-out(1)>."
36680 msgstr ""
36681
36682 #. type: =item
36683 #: ../src/guestfs.pod:2875
36684 msgid "C<fuse>"
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:2877
36689 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36690 msgstr ""
36691
36692 #. type: =item
36693 #: ../src/guestfs.pod:2879
36694 msgid "C<generator>"
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../src/guestfs.pod:2881
36699 msgid ""
36700 "The crucially important generator, used to automatically generate large "
36701 "amounts of boilerplate C code for things like RPC and bindings."
36702 msgstr ""
36703
36704 #. type: =item
36705 #: ../src/guestfs.pod:2884
36706 msgid "C<images>"
36707 msgstr ""
36708
36709 #. type: textblock
36710 #: ../src/guestfs.pod:2886
36711 msgid "Files used by the test suite."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:2888
36716 msgid "Some \"phony\" guest images which we test against."
36717 msgstr ""
36718
36719 #. type: =item
36720 #: ../src/guestfs.pod:2890
36721 msgid "C<inspector>"
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:2892
36726 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36727 msgstr ""
36728
36729 #. type: =item
36730 #: ../src/guestfs.pod:2894
36731 msgid "C<logo>"
36732 msgstr ""
36733
36734 #. type: textblock
36735 #: ../src/guestfs.pod:2896
36736 msgid "Logo used on the website.  The fish is called Arthur by the way."
36737 msgstr ""
36738
36739 #. type: =item
36740 #: ../src/guestfs.pod:2898
36741 msgid "C<m4>"
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../src/guestfs.pod:2900
36746 msgid "M4 macros used by autoconf."
36747 msgstr ""
36748
36749 #. type: =item
36750 #: ../src/guestfs.pod:2902
36751 msgid "C<po>"
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:2904
36756 msgid "Translations of simple gettext strings."
36757 msgstr ""
36758
36759 #. type: =item
36760 #: ../src/guestfs.pod:2906
36761 msgid "C<po-docs>"
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../src/guestfs.pod:2908
36766 msgid ""
36767 "The build infrastructure and PO files for translations of manpages and POD "
36768 "files.  Eventually this will be combined with the C<po> directory, but that "
36769 "is rather complicated."
36770 msgstr ""
36771
36772 #. type: =item
36773 #: ../src/guestfs.pod:2912
36774 msgid "C<regressions>"
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:2914
36779 msgid "Regression tests."
36780 msgstr ""
36781
36782 #. type: =item
36783 #: ../src/guestfs.pod:2916
36784 msgid "C<rescue>"
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:2918
36789 msgid "L<virt-rescue(1)> command and documentation."
36790 msgstr ""
36791
36792 #. type: =item
36793 #: ../src/guestfs.pod:2920
36794 msgid "C<resize>"
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:2922
36799 msgid "L<virt-resize(1)> command and documentation."
36800 msgstr ""
36801
36802 #. type: =item
36803 #: ../src/guestfs.pod:2924
36804 msgid "C<sparsify>"
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:2926
36809 msgid "L<virt-sparsify(1)> command and documentation."
36810 msgstr ""
36811
36812 #. type: =item
36813 #: ../src/guestfs.pod:2928
36814 msgid "C<src>"
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:2930
36819 msgid "Source code to the C library."
36820 msgstr ""
36821
36822 #. type: =item
36823 #: ../src/guestfs.pod:2932
36824 msgid "C<tools>"
36825 msgstr ""
36826
36827 #. type: textblock
36828 #: ../src/guestfs.pod:2934
36829 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
36830 msgstr ""
36831
36832 #. type: =item
36833 #: ../src/guestfs.pod:2936
36834 msgid "C<test-tool>"
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../src/guestfs.pod:2938
36839 msgid ""
36840 "Test tool for end users to test if their qemu/kernel combination will work "
36841 "with libguestfs."
36842 msgstr ""
36843
36844 #. type: =item
36845 #: ../src/guestfs.pod:2941
36846 msgid "C<csharp>"
36847 msgstr ""
36848
36849 #. type: =item
36850 #: ../src/guestfs.pod:2943
36851 msgid "C<erlang>"
36852 msgstr ""
36853
36854 #. type: =item
36855 #: ../src/guestfs.pod:2945
36856 msgid "C<haskell>"
36857 msgstr ""
36858
36859 #. type: =item
36860 #: ../src/guestfs.pod:2947
36861 msgid "C<java>"
36862 msgstr ""
36863
36864 #. type: =item
36865 #: ../src/guestfs.pod:2949
36866 msgid "C<ocaml>"
36867 msgstr ""
36868
36869 #. type: =item
36870 #: ../src/guestfs.pod:2951
36871 msgid "C<php>"
36872 msgstr ""
36873
36874 #. type: =item
36875 #: ../src/guestfs.pod:2953
36876 msgid "C<perl>"
36877 msgstr ""
36878
36879 #. type: =item
36880 #: ../src/guestfs.pod:2955
36881 msgid "C<python>"
36882 msgstr ""
36883
36884 #. type: =item
36885 #: ../src/guestfs.pod:2957
36886 msgid "C<ruby>"
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:2959
36891 msgid "Language bindings."
36892 msgstr ""
36893
36894 #. type: =head2
36895 #: ../src/guestfs.pod:2963
36896 msgid "MAKING A STABLE RELEASE"
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:2965
36901 msgid ""
36902 "When we make a stable release, there are several steps documented here.  See "
36903 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36904 "branch policy."
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:2973
36909 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:2978
36914 msgid "Finalize RELEASE-NOTES."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../src/guestfs.pod:2982
36919 msgid "Update ROADMAP."
36920 msgstr ""
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:2986
36924 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36925 msgstr ""
36926
36927 #. type: textblock
36928 #: ../src/guestfs.pod:2990
36929 msgid "Push and pull from Transifex."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:2992
36934 msgid "Run:"
36935 msgstr ""
36936
36937 #. type: verbatim
36938 #: ../src/guestfs.pod:2994
36939 #, no-wrap
36940 msgid ""
36941 " tx push -s\n"
36942 "\n"
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:2996
36947 msgid "to push the latest POT files to Transifex.  Then run:"
36948 msgstr ""
36949
36950 #. type: verbatim
36951 #: ../src/guestfs.pod:2998
36952 #, no-wrap
36953 msgid ""
36954 " ./tx-pull.sh\n"
36955 "\n"
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:3000
36960 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../src/guestfs.pod:3004
36965 msgid ""
36966 "Create new stable and development directories under "
36967 "L<http://libguestfs.org/download>."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:3009
36972 msgid "Create the branch in git:"
36973 msgstr ""
36974
36975 #. type: verbatim
36976 #: ../src/guestfs.pod:3011
36977 #, no-wrap
36978 msgid ""
36979 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36980 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36981 " git branch stable-1.XX\n"
36982 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36983 "\n"
36984 msgstr ""
36985
36986 #. type: =head1
36987 #: ../src/guestfs.pod:3018
36988 msgid "LIMITS"
36989 msgstr ""
36990
36991 #. type: =head2
36992 #: ../src/guestfs.pod:3020
36993 msgid "PROTOCOL LIMITS"
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:3022
36998 msgid ""
36999 "Internally libguestfs uses a message-based protocol to pass API calls and "
37000 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37001 "plenty more detail about this).  The maximum message size used by the "
37002 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37003 "aware of this limit.  The API calls which may be affected are individually "
37004 "documented, with a link back to this section of the documentation."
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:3030
37009 msgid ""
37010 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37011 "a simple string.  Because this string is at some point internally encoded as "
37012 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37013 "the requested file is larger than this then you will get an error."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:3036
37018 msgid ""
37019 "In order to transfer large files into and out of the guest filesystem, you "
37020 "need to use particular calls that support this.  The sections L</UPLOADING> "
37021 "and L</DOWNLOADING> document how to do this."
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:3040
37026 msgid ""
37027 "You might also consider mounting the disk image using our FUSE filesystem "
37028 "support (L<guestmount(1)>)."
37029 msgstr ""
37030
37031 #. type: =head2
37032 #: ../src/guestfs.pod:3043
37033 msgid "MAXIMUM NUMBER OF DISKS"
37034 msgstr ""
37035
37036 #. type: textblock
37037 #: ../src/guestfs.pod:3045
37038 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:3048
37043 msgid ""
37044 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37045 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37046 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37047 "purposes."
37048 msgstr ""
37049
37050 #. type: textblock
37051 #: ../src/guestfs.pod:3053
37052 msgid ""
37053 "We are working to substantially raise this limit in future versions but it "
37054 "requires complex changes to qemu."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:3056
37059 msgid ""
37060 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37061 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37062 "requires changes to qemu."
37063 msgstr ""
37064
37065 #. type: =head2
37066 #: ../src/guestfs.pod:3060
37067 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../src/guestfs.pod:3062
37072 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:3064
37077 msgid ""
37078 "This is because it reserves 4 bits for the minor device number (thus "
37079 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:3067
37084 msgid ""
37085 "If you attach a disk with more than 15 partitions, the extra partitions are "
37086 "ignored by libguestfs."
37087 msgstr ""
37088
37089 #. type: =head2
37090 #: ../src/guestfs.pod:3070
37091 msgid "MAXIMUM SIZE OF A DISK"
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:3072
37096 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:3074
37101 msgid ""
37102 "We have tested block devices up to 1 exabyte (2**60 or "
37103 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37104 "filesystem."
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:3078
37109 msgid ""
37110 "Although libguestfs probably does not impose any limit, the underlying host "
37111 "storage will.  If you store disk images on a host ext4 filesystem, then the "
37112 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37113 "TB).  If you store disk images as host logical volumes then you are limited "
37114 "by the maximum size of an LV."
37115 msgstr ""
37116
37117 #. type: textblock
37118 #: ../src/guestfs.pod:3084
37119 msgid ""
37120 "For the hugest disk image files, we recommend using XFS on the host for "
37121 "storage."
37122 msgstr ""
37123
37124 #. type: =head2
37125 #: ../src/guestfs.pod:3087
37126 msgid "MAXIMUM SIZE OF A PARTITION"
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:3089
37131 msgid ""
37132 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
37133 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
37134 "address a partition located beyond 2 TB on the disk."
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:3093
37139 msgid ""
37140 "It is recommended that you use GPT partitions on disks which are larger than "
37141 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
37142 "which are theoretically larger than the largest disk we could support."
37143 msgstr ""
37144
37145 #. type: =head2
37146 #: ../src/guestfs.pod:3098
37147 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:3100
37152 msgid ""
37153 "This depends on the filesystem type.  libguestfs itself does not impose any "
37154 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
37155 "what these limits are."
37156 msgstr ""
37157
37158 #. type: =head2
37159 #: ../src/guestfs.pod:3104
37160 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
37161 msgstr ""
37162
37163 #. type: textblock
37164 #: ../src/guestfs.pod:3106
37165 msgid ""
37166 "The API functions L</guestfs_upload>, L</guestfs_download>, "
37167 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
37168 "uploads and downloads."
37169 msgstr ""
37170
37171 #. type: =head2
37172 #: ../src/guestfs.pod:3110
37173 msgid "INSPECTION LIMITS"
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:3112
37178 msgid ""
37179 "The inspection code has several arbitrary limits on things like the size of "
37180 "Windows Registry hive it will read, and the length of product name.  These "
37181 "are intended to stop a malicious guest from consuming arbitrary amounts of "
37182 "memory and disk space on the host, and should not be reached in practice.  "
37183 "See the source code for more information."
37184 msgstr ""
37185
37186 #. type: textblock
37187 #: ../src/guestfs.pod:3138
37188 msgid ""
37189 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
37190 "effect as calling C<guestfs_set_verbose (g, 1)>."
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:3150
37195 msgid ""
37196 "Set the path that libguestfs uses to search for a supermin appliance.  See "
37197 "the discussion of paths in section L</PATH> above."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:3159
37202 msgid "See also L</QEMU WRAPPERS> above."
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:3163
37207 msgid ""
37208 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
37209 "effect as calling C<guestfs_set_trace (g, 1)>."
37210 msgstr ""
37211
37212 #. type: textblock
37213 #: ../src/guestfs.pod:3181
37214 msgid ""
37215 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
37216 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
37217 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
37218 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
37219 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
37220 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
37221 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
37222 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, "
37223 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
37224 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, "
37225 "L<http://libguestfs.org/>."
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:3215
37230 msgid ""
37231 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
37232 "L<lvm(8)>, L<disktype(1)>."
37233 msgstr ""
37234
37235 #. type: =head1
37236 #: ../src/guestfs.pod:3222 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
37237 msgid "BUGS"
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:3224
37242 msgid "To get a list of bugs against libguestfs use this link:"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:3226
37247 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:3228
37252 msgid "To report a new bug against libguestfs use this link:"
37253 msgstr ""
37254
37255 #. type: textblock
37256 #: ../src/guestfs.pod:3230
37257 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:3232
37262 msgid "When reporting a bug, please check:"
37263 msgstr ""
37264
37265 #. type: textblock
37266 #: ../src/guestfs.pod:3238
37267 msgid "That the bug hasn't been reported already."
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:3242
37272 msgid "That you are testing a recent version."
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../src/guestfs.pod:3246
37277 msgid "Describe the bug accurately, and give a way to reproduce it."
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../src/guestfs.pod:3250
37282 msgid ""
37283 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
37284 "bug report."
37285 msgstr ""
37286
37287 #. type: textblock
37288 #: ../test-tool/libguestfs-test-tool.pod:5
37289 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
37290 msgstr ""
37291
37292 #. type: verbatim
37293 #: ../test-tool/libguestfs-test-tool.pod:9
37294 #, no-wrap
37295 msgid ""
37296 " libguestfs-test-tool [--options]\n"
37297 "\n"
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../test-tool/libguestfs-test-tool.pod:13
37302 msgid ""
37303 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
37304 "to check basic libguestfs functionality is working.  This is needed because "
37305 "libguestfs occasionally breaks for reasons beyond our control: usually "
37306 "because of changes in the underlying qemu or kernel packages, or the host "
37307 "environment."
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../test-tool/libguestfs-test-tool.pod:19
37312 msgid "If you suspect a problem in libguestfs, then just run:"
37313 msgstr ""
37314
37315 #. type: verbatim
37316 #: ../test-tool/libguestfs-test-tool.pod:21
37317 #, no-wrap
37318 msgid ""
37319 " libguestfs-test-tool\n"
37320 "\n"
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../test-tool/libguestfs-test-tool.pod:23
37325 msgid "It will print lots of diagnostic messages."
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../test-tool/libguestfs-test-tool.pod:25
37330 msgid "If it runs to completion successfully, you will see this near the end:"
37331 msgstr ""
37332
37333 #. type: verbatim
37334 #: ../test-tool/libguestfs-test-tool.pod:27
37335 #, no-wrap
37336 msgid ""
37337 " ===== TEST FINISHED OK =====\n"
37338 "\n"
37339 msgstr ""
37340
37341 #. type: textblock
37342 #: ../test-tool/libguestfs-test-tool.pod:29
37343 msgid "and the test tool will exit with code 0."
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../test-tool/libguestfs-test-tool.pod:31
37348 msgid ""
37349 "If it fails (and/or exits with non-zero error code), please paste the "
37350 "I<complete, unedited> output of the test tool into a bug report.  More "
37351 "information about reporting bugs can be found on the "
37352 "L<http://libguestfs.org/> website."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../test-tool/libguestfs-test-tool.pod:42
37357 msgid "Display short usage information and exit."
37358 msgstr ""
37359
37360 #. type: =item
37361 #: ../test-tool/libguestfs-test-tool.pod:44
37362 msgid "B<--qemu qemu_binary>"
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../test-tool/libguestfs-test-tool.pod:46
37367 msgid ""
37368 "If you have downloaded another qemu binary, point this option at the full "
37369 "path of the binary to try it."
37370 msgstr ""
37371
37372 #. type: =item
37373 #: ../test-tool/libguestfs-test-tool.pod:49
37374 msgid "B<--qemudir qemu_source_dir>"
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../test-tool/libguestfs-test-tool.pod:51
37379 msgid ""
37380 "If you have compiled qemu from source, point this option at the source "
37381 "directory to try it."
37382 msgstr ""
37383
37384 #. type: =item
37385 #: ../test-tool/libguestfs-test-tool.pod:54
37386 msgid "B<-t N>"
37387 msgstr ""
37388
37389 #. type: =item
37390 #: ../test-tool/libguestfs-test-tool.pod:56
37391 msgid "B<--timeout N>"
37392 msgstr ""
37393
37394 #. type: textblock
37395 #: ../test-tool/libguestfs-test-tool.pod:58
37396 msgid ""
37397 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
37398 "minutes) which does not usually need to be adjusted."
37399 msgstr ""
37400
37401 #. type: =head1
37402 #: ../test-tool/libguestfs-test-tool.pod:63
37403 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../test-tool/libguestfs-test-tool.pod:65
37408 msgid ""
37409 "If you have compiled another version of qemu from source and would like to "
37410 "try that, then you can use the I<--qemudir> option to point to the qemu "
37411 "source directory."
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../test-tool/libguestfs-test-tool.pod:69
37416 msgid ""
37417 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
37418 "option to point to the binary."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../test-tool/libguestfs-test-tool.pod:72
37423 msgid ""
37424 "Note when using these options, you can ignore the business of qemu wrapper "
37425 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
37426 "wrapper script for you if one is needed."
37427 msgstr ""
37428
37429 #. type: =head1
37430 #: ../test-tool/libguestfs-test-tool.pod:76
37431 msgid "TRYING OUT A DIFFERENT KERNEL"
37432 msgstr ""
37433
37434 #. type: textblock
37435 #: ../test-tool/libguestfs-test-tool.pod:78
37436 msgid ""
37437 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
37438 "libguestfs tries.  You do this by setting the environment variables "
37439 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
37440 msgstr ""
37441
37442 #. type: textblock
37443 #: ../test-tool/libguestfs-test-tool.pod:82
37444 msgid ""
37445 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
37446 "information."
37447 msgstr ""
37448
37449 #. type: =head1
37450 #: ../test-tool/libguestfs-test-tool.pod:85
37451 msgid "SELF-DIAGNOSIS"
37452 msgstr ""
37453
37454 #. type: textblock
37455 #: ../test-tool/libguestfs-test-tool.pod:87
37456 msgid ""
37457 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
37458 "produced by libguestfs-test-tool and/or possible errors."
37459 msgstr ""
37460
37461 #. type: textblock
37462 #: ../test-tool/libguestfs-test-tool.pod:92
37463 msgid ""
37464 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
37465 "I<1> if there was an error."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../test-tool/libguestfs-test-tool.pod:97
37470 msgid ""
37471 "For the full list of environment variables which may affect libguestfs, "
37472 "please see the L<guestfs(3)> manual page."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../test-tool/libguestfs-test-tool.pod:102
37477 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../tools/virt-list-filesystems.pl:32
37482 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
37483 msgstr ""
37484
37485 #. type: verbatim
37486 #: ../tools/virt-list-filesystems.pl:36
37487 #, no-wrap
37488 msgid ""
37489 " virt-list-filesystems [--options] domname\n"
37490 "\n"
37491 msgstr ""
37492
37493 #. type: verbatim
37494 #: ../tools/virt-list-filesystems.pl:38
37495 #, no-wrap
37496 msgid ""
37497 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
37498 "\n"
37499 msgstr ""
37500
37501 #. type: textblock
37502 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
37503 msgid ""
37504 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
37505 "replacement."
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../tools/virt-list-filesystems.pl:45
37510 msgid ""
37511 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
37512 "are contained in a virtual machine or disk image."
37513 msgstr ""
37514
37515 #. type: textblock
37516 #: ../tools/virt-list-filesystems.pl:49
37517 msgid ""
37518 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
37519 "functionality.  For more complex cases you should look at the "
37520 "L<guestfish(1)> tool."
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../tools/virt-list-filesystems.pl:112
37525 msgid ""
37526 "With this option, C<virt-list-filesystems> displays the type of each "
37527 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
37528 msgstr ""
37529
37530 #. type: =item
37531 #: ../tools/virt-list-filesystems.pl:119
37532 msgid "B<-a>"
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../tools/virt-list-filesystems.pl:123
37537 msgid ""
37538 "Normally we only show mountable filesystems.  If this option is given then "
37539 "swap devices are shown too."
37540 msgstr ""
37541
37542 #. type: textblock
37543 #: ../tools/virt-list-filesystems.pl:197
37544 msgid ""
37545 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
37546 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
37547 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
37552 msgid "Copyright (C) 2009 Red Hat Inc."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../tools/virt-list-partitions.pl:32
37557 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
37558 msgstr ""
37559
37560 #. type: verbatim
37561 #: ../tools/virt-list-partitions.pl:36
37562 #, no-wrap
37563 msgid ""
37564 " virt-list-partitions [--options] domname\n"
37565 "\n"
37566 msgstr ""
37567
37568 #. type: verbatim
37569 #: ../tools/virt-list-partitions.pl:38
37570 #, no-wrap
37571 msgid ""
37572 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
37573 "\n"
37574 msgstr ""
37575
37576 #. type: textblock
37577 #: ../tools/virt-list-partitions.pl:45
37578 msgid ""
37579 "C<virt-list-partitions> is a command line tool to list the partitions that "
37580 "are contained in a virtual machine or disk image.  It is mainly useful as a "
37581 "first step to using L<virt-resize(1)>."
37582 msgstr ""
37583
37584 #. type: textblock
37585 #: ../tools/virt-list-partitions.pl:50
37586 msgid ""
37587 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
37588 "functionality.  For more complex cases you should look at the "
37589 "L<guestfish(1)> tool."
37590 msgstr ""
37591
37592 #. type: textblock
37593 #: ../tools/virt-list-partitions.pl:113
37594 msgid "Show sizes in human-readable form (eg. \"1G\")."
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../tools/virt-list-partitions.pl:123
37599 msgid ""
37600 "With this option, C<virt-list-partitions> displays the type and size of each "
37601 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
37602 msgstr ""
37603
37604 #. type: =item
37605 #: ../tools/virt-list-partitions.pl:130
37606 msgid "B<-t>"
37607 msgstr ""
37608
37609 #. type: =item
37610 #: ../tools/virt-list-partitions.pl:132
37611 msgid "B<--total>"
37612 msgstr ""
37613
37614 #. type: textblock
37615 #: ../tools/virt-list-partitions.pl:134
37616 msgid "Display the total size of each block device (as a separate row or rows)."
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../tools/virt-list-partitions.pl:267
37621 msgid ""
37622 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
37623 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
37624 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../tools/virt-list-partitions.pl:283
37629 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../tools/virt-make-fs.pl:37
37634 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37635 msgstr ""
37636
37637 #. type: verbatim
37638 #: ../tools/virt-make-fs.pl:41
37639 #, no-wrap
37640 msgid ""
37641 " virt-make-fs [--options] input.tar output.img\n"
37642 "\n"
37643 msgstr ""
37644
37645 #. type: verbatim
37646 #: ../tools/virt-make-fs.pl:43
37647 #, no-wrap
37648 msgid ""
37649 " virt-make-fs [--options] input.tar.gz output.img\n"
37650 "\n"
37651 msgstr ""
37652
37653 #. type: verbatim
37654 #: ../tools/virt-make-fs.pl:45
37655 #, no-wrap
37656 msgid ""
37657 " virt-make-fs [--options] directory output.img\n"
37658 "\n"
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../tools/virt-make-fs.pl:49
37663 msgid ""
37664 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37665 "archive or some files in a directory.  It is similar to tools like "
37666 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
37667 "it can create common filesystem types like ext2/3 or NTFS, which can be "
37668 "useful if you want to attach these filesystems to existing virtual machines "
37669 "(eg. to import large amounts of read-only data to a VM)."
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../tools/virt-make-fs.pl:57
37674 msgid "Basic usage is:"
37675 msgstr ""
37676
37677 #. type: verbatim
37678 #: ../tools/virt-make-fs.pl:59
37679 #, no-wrap
37680 msgid ""
37681 " virt-make-fs input output\n"
37682 "\n"
37683 msgstr ""
37684
37685 #. type: textblock
37686 #: ../tools/virt-make-fs.pl:61
37687 msgid ""
37688 "where C<input> is either a directory containing files that you want to add, "
37689 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37690 "C<output> is a disk image.  The input type is detected automatically.  The "
37691 "output disk image defaults to a raw ext2 image unless you specify extra "
37692 "flags (see L</OPTIONS> below)."
37693 msgstr ""
37694
37695 #. type: =head2
37696 #: ../tools/virt-make-fs.pl:67
37697 msgid "EXTRA SPACE"
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../tools/virt-make-fs.pl:69
37702 msgid ""
37703 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37704 "the files that it contains, but might have extra space.  Depending on how "
37705 "you are going to use the output, you might think this extra space is wasted "
37706 "and want to minimize it, or you might want to leave space so that more files "
37707 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37708 "but you can use the I<--size> flag to leave space in the filesystem if you "
37709 "want it."
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../tools/virt-make-fs.pl:77
37714 msgid ""
37715 "An alternative way to leave extra space but not make the output image any "
37716 "bigger is to use an alternative disk image format (instead of the default "
37717 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37718 "image format (check your hypervisor supports this before using it).  This "
37719 "allows you to choose a large I<--size> but the extra space won't actually be "
37720 "allocated in the image until you try to store something in it."
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../tools/virt-make-fs.pl:85
37725 msgid ""
37726 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37727 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37728 "to build another image from scratch."
37729 msgstr ""
37730
37731 #. type: =head3
37732 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
37733 msgid "EXAMPLE"
37734 msgstr ""
37735
37736 #. type: verbatim
37737 #: ../tools/virt-make-fs.pl:91
37738 #, no-wrap
37739 msgid ""
37740 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37741 "\n"
37742 msgstr ""
37743
37744 #. type: =head2
37745 #: ../tools/virt-make-fs.pl:93
37746 msgid "FILESYSTEM TYPE"
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../tools/virt-make-fs.pl:95
37751 msgid ""
37752 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37753 "libguestfs supports can be used (but I<not> read-only formats like "
37754 "ISO9660).  Here are some of the more common choices:"
37755 msgstr ""
37756
37757 #. type: =item
37758 #: ../tools/virt-make-fs.pl:101
37759 msgid "I<ext3>"
37760 msgstr ""
37761
37762 #. type: textblock
37763 #: ../tools/virt-make-fs.pl:103
37764 msgid ""
37765 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37766 "you are not going to use the filesystem in a way that requires the journal, "
37767 "then this is just wasted overhead."
37768 msgstr ""
37769
37770 #. type: =item
37771 #: ../tools/virt-make-fs.pl:107
37772 msgid "I<ntfs> or I<vfat>"
37773 msgstr ""
37774
37775 #. type: textblock
37776 #: ../tools/virt-make-fs.pl:109
37777 msgid "Useful if exporting data to a Windows guest."
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../tools/virt-make-fs.pl:111
37782 msgid ""
37783 "I<Note for vfat>: The tar archive or local directory must only contain files "
37784 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37785 "program running within libguestfs is unable to change the ownership of "
37786 "non-root files, since vfat itself does not support this."
37787 msgstr ""
37788
37789 #. type: =item
37790 #: ../tools/virt-make-fs.pl:116
37791 msgid "I<minix>"
37792 msgstr ""
37793
37794 #. type: textblock
37795 #: ../tools/virt-make-fs.pl:118
37796 msgid ""
37797 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37798 "total filesystem size."
37799 msgstr ""
37800
37801 #. type: verbatim
37802 #: ../tools/virt-make-fs.pl:125
37803 #, no-wrap
37804 msgid ""
37805 " virt-make-fs --type=minix input minixfs.img\n"
37806 "\n"
37807 msgstr ""
37808
37809 #. type: =head2
37810 #: ../tools/virt-make-fs.pl:127
37811 msgid "TO PARTITION OR NOT TO PARTITION"
37812 msgstr ""
37813
37814 #. type: textblock
37815 #: ../tools/virt-make-fs.pl:129
37816 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../tools/virt-make-fs.pl:131
37821 msgid ""
37822 "Adding a partition can make the disk image more compatible with certain "
37823 "virtualized operating systems which don't expect to see a filesystem "
37824 "directly located on a block device (Linux doesn't care and will happily "
37825 "handle both types)."
37826 msgstr ""
37827
37828 #. type: textblock
37829 #: ../tools/virt-make-fs.pl:136
37830 msgid ""
37831 "On the other hand, if you have a partition table then the output image is no "
37832 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37833 "directly on a partitioned disk image.  (However libguestfs tools such as "
37834 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../tools/virt-make-fs.pl:144
37839 msgid "Add an MBR partition:"
37840 msgstr ""
37841
37842 #. type: verbatim
37843 #: ../tools/virt-make-fs.pl:146
37844 #, no-wrap
37845 msgid ""
37846 " virt-make-fs --partition -- input disk.img\n"
37847 "\n"
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../tools/virt-make-fs.pl:148
37852 msgid ""
37853 "If the output disk image could be terabyte-sized or larger, it's better to "
37854 "use an EFI/GPT-compatible partition table:"
37855 msgstr ""
37856
37857 #. type: verbatim
37858 #: ../tools/virt-make-fs.pl:151
37859 #, no-wrap
37860 msgid ""
37861 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37862 "\n"
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../tools/virt-make-fs.pl:179
37867 msgid "Enable debugging information."
37868 msgstr ""
37869
37870 #. type: =item
37871 #: ../tools/virt-make-fs.pl:185
37872 msgid "B<--size=E<lt>NE<gt>>"
37873 msgstr ""
37874
37875 #. type: =item
37876 #: ../tools/virt-make-fs.pl:187
37877 msgid "B<--size=+E<lt>NE<gt>>"
37878 msgstr ""
37879
37880 #. type: =item
37881 #: ../tools/virt-make-fs.pl:189
37882 msgid "B<-s E<lt>NE<gt>>"
37883 msgstr ""
37884
37885 #. type: =item
37886 #: ../tools/virt-make-fs.pl:191
37887 msgid "B<-s +E<lt>NE<gt>>"
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../tools/virt-make-fs.pl:193
37892 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../tools/virt-make-fs.pl:196
37897 msgid ""
37898 "If this option is I<not> given, then the output image will be just large "
37899 "enough to contain all the files, with not much wasted space."
37900 msgstr ""
37901
37902 #. type: textblock
37903 #: ../tools/virt-make-fs.pl:199
37904 msgid ""
37905 "To choose a fixed size output disk, specify an absolute number followed by "
37906 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37907 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37908 "files, else you will get an error."
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../tools/virt-make-fs.pl:204
37913 msgid ""
37914 "To leave extra space, specify C<+> (plus sign) and a number followed by "
37915 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37916 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37917 "the input files, and (approximately) an extra 200 MB free space."
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../tools/virt-make-fs.pl:210
37922 msgid ""
37923 "Note that virt-make-fs estimates free space, and therefore will not produce "
37924 "filesystems containing precisely the free space requested.  (It is much more "
37925 "expensive and time-consuming to produce a filesystem which has precisely the "
37926 "desired free space)."
37927 msgstr ""
37928
37929 #. type: =item
37930 #: ../tools/virt-make-fs.pl:219
37931 msgid "B<--format=E<lt>fmtE<gt>>"
37932 msgstr ""
37933
37934 #. type: =item
37935 #: ../tools/virt-make-fs.pl:221
37936 msgid "B<-F E<lt>fmtE<gt>>"
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../tools/virt-make-fs.pl:223
37941 msgid "Choose the output disk image format."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../tools/virt-make-fs.pl:225
37946 msgid "The default is C<raw> (raw disk image)."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../tools/virt-make-fs.pl:227
37951 msgid ""
37952 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37953 "that would really make sense here is C<qcow2>."
37954 msgstr ""
37955
37956 #. type: =item
37957 #: ../tools/virt-make-fs.pl:234
37958 msgid "B<--type=E<lt>fsE<gt>>"
37959 msgstr ""
37960
37961 #. type: =item
37962 #: ../tools/virt-make-fs.pl:236
37963 msgid "B<-t E<lt>fsE<gt>>"
37964 msgstr ""
37965
37966 #. type: textblock
37967 #: ../tools/virt-make-fs.pl:238
37968 msgid "Choose the output filesystem type."
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../tools/virt-make-fs.pl:240
37973 msgid "The default is C<ext2>."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../tools/virt-make-fs.pl:242
37978 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
37979 msgstr ""
37980
37981 #. type: =item
37982 #: ../tools/virt-make-fs.pl:249
37983 msgid "B<--partition>"
37984 msgstr ""
37985
37986 #. type: =item
37987 #: ../tools/virt-make-fs.pl:251
37988 msgid "B<--partition=E<lt>parttypeE<gt>>"
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../tools/virt-make-fs.pl:253
37993 msgid ""
37994 "If specified, this flag adds an MBR partition table to the output disk "
37995 "image."
37996 msgstr ""
37997
37998 #. type: textblock
37999 #: ../tools/virt-make-fs.pl:256
38000 msgid ""
38001 "You can change the partition table type, eg. I<--partition=gpt> for large "
38002 "disks."
38003 msgstr ""
38004
38005 #. type: textblock
38006 #: ../tools/virt-make-fs.pl:259
38007 msgid ""
38008 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38009 "might consider the next parameter to be the partition type.  For example:"
38010 msgstr ""
38011
38012 #. type: verbatim
38013 #: ../tools/virt-make-fs.pl:263
38014 #, no-wrap
38015 msgid ""
38016 " virt-make-fs --partition input.tar ...\n"
38017 "\n"
38018 msgstr ""
38019
38020 #. type: textblock
38021 #: ../tools/virt-make-fs.pl:265
38022 msgid ""
38023 "would cause virt-make-fs to think you wanted to use a partition type of "
38024 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38025 "dash) between options and the input file argument:"
38026 msgstr ""
38027
38028 #. type: verbatim
38029 #: ../tools/virt-make-fs.pl:269
38030 #, no-wrap
38031 msgid ""
38032 " virt-make-fs --partition -- input.tar ...\n"
38033 "\n"
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../tools/virt-make-fs.pl:541
38038 msgid ""
38039 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38040 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
38041 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38046 msgid ""
38047 "When reporting bugs, please enable debugging and capture the I<complete> "
38048 "output:"
38049 msgstr ""
38050
38051 #. type: verbatim
38052 #: ../tools/virt-make-fs.pl:558
38053 #, no-wrap
38054 msgid ""
38055 " export LIBGUESTFS_DEBUG=1\n"
38056 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38057 "\n"
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../tools/virt-make-fs.pl:561
38062 msgid ""
38063 "Attach /tmp/virt-make-fs.log to a new bug report at "
38064 "L<https://bugzilla.redhat.com/>"
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../tools/virt-tar.pl:33
38069 msgid "virt-tar - Extract or upload files to a virtual machine"
38070 msgstr ""
38071
38072 #. type: verbatim
38073 #: ../tools/virt-tar.pl:37
38074 #, no-wrap
38075 msgid ""
38076 " virt-tar [--options] -x domname directory tarball\n"
38077 "\n"
38078 msgstr ""
38079
38080 #. type: verbatim
38081 #: ../tools/virt-tar.pl:39
38082 #, no-wrap
38083 msgid ""
38084 " virt-tar [--options] -u domname tarball directory\n"
38085 "\n"
38086 msgstr ""
38087
38088 #. type: verbatim
38089 #: ../tools/virt-tar.pl:41
38090 #, no-wrap
38091 msgid ""
38092 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38093 "\n"
38094 msgstr ""
38095
38096 #. type: verbatim
38097 #: ../tools/virt-tar.pl:43
38098 #, no-wrap
38099 msgid ""
38100 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38101 "\n"
38102 msgstr ""
38103
38104 #. type: =head2
38105 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38106 msgid "NOTE"
38107 msgstr ""
38108
38109 #. type: textblock
38110 #: ../tools/virt-tar.pl:47
38111 msgid ""
38112 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38113 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
38114 msgstr ""
38115
38116 #. type: textblock
38117 #: ../tools/virt-tar.pl:52
38118 msgid "Download C</home> from the VM into a local tarball:"
38119 msgstr ""
38120
38121 #. type: verbatim
38122 #: ../tools/virt-tar.pl:54
38123 #, no-wrap
38124 msgid ""
38125 " virt-tar -x domname /home home.tar\n"
38126 "\n"
38127 msgstr ""
38128
38129 #. type: verbatim
38130 #: ../tools/virt-tar.pl:56
38131 #, no-wrap
38132 msgid ""
38133 " virt-tar -zx domname /home home.tar.gz\n"
38134 "\n"
38135 msgstr ""
38136
38137 #. type: textblock
38138 #: ../tools/virt-tar.pl:58
38139 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
38140 msgstr ""
38141
38142 #. type: verbatim
38143 #: ../tools/virt-tar.pl:60
38144 #, no-wrap
38145 msgid ""
38146 " virt-tar -u domname uploadstuff.tar /tmp\n"
38147 "\n"
38148 msgstr ""
38149
38150 #. type: verbatim
38151 #: ../tools/virt-tar.pl:62
38152 #, no-wrap
38153 msgid ""
38154 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
38155 "\n"
38156 msgstr ""
38157
38158 #. type: textblock
38159 #: ../tools/virt-tar.pl:66
38160 msgid ""
38161 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
38162 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
38163 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
38164 msgstr ""
38165
38166 #. type: textblock
38167 #: ../tools/virt-tar.pl:71
38168 msgid ""
38169 "You can use I<-x> (extract) on live virtual machines, but you might get "
38170 "inconsistent results or errors if there is filesystem activity inside the "
38171 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
38172 "work, but the only way to guarantee consistent results is if the virtual "
38173 "machine is shut down."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../tools/virt-tar.pl:79
38178 msgid ""
38179 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
38180 "parts of a guest filesystem.  There are many possibilities: making backups, "
38181 "uploading data files, snooping on guest activity, fixing or customizing "
38182 "guests, etc."
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../tools/virt-tar.pl:84
38187 msgid ""
38188 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
38189 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
38190 "should look at the L<guestfish(1)> tool."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../tools/virt-tar.pl:88
38195 msgid ""
38196 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
38197 "its contents (recursively) from the virtual machine into a local tarball.  "
38198 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
38199 "virtual machine.  You cannot use these two options together."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../tools/virt-tar.pl:94
38204 msgid ""
38205 "In addition, you may need to use the I<-z> (gZip) option to enable "
38206 "compression.  When uploading, you have to specify I<-z> if the upload file "
38207 "is compressed because virt-tar won't detect this on its own."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../tools/virt-tar.pl:98
38212 msgid ""
38213 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
38214 "example it cannot do PKZip files or bzip2 compression.  If you want that "
38215 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
38216 "the L<libguestfs(3)> API)."
38217 msgstr ""
38218
38219 #. type: =item
38220 #: ../tools/virt-tar.pl:160
38221 msgid "B<--extract>"
38222 msgstr ""
38223
38224 #. type: =item
38225 #: ../tools/virt-tar.pl:162
38226 msgid "B<--download>"
38227 msgstr ""
38228
38229 #. type: =item
38230 #: ../tools/virt-tar.pl:164
38231 msgid "B<-u>"
38232 msgstr ""
38233
38234 #. type: =item
38235 #: ../tools/virt-tar.pl:166
38236 msgid "B<--upload>"
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../tools/virt-tar.pl:168
38241 msgid ""
38242 "Use I<-x> to extract (download) a directory from a virtual machine to a "
38243 "local tarball."
38244 msgstr ""
38245
38246 #. type: textblock
38247 #: ../tools/virt-tar.pl:171
38248 msgid ""
38249 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
38250 "Please read the L</WARNING> section above before using this option."
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../tools/virt-tar.pl:175
38255 msgid "You must specify exactly one of these options."
38256 msgstr ""
38257
38258 #. type: =item
38259 #: ../tools/virt-tar.pl:181
38260 msgid "B<-z>"
38261 msgstr ""
38262
38263 #. type: =item
38264 #: ../tools/virt-tar.pl:183
38265 msgid "B<--gzip>"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../tools/virt-tar.pl:185
38270 msgid "Specify that the input or output tarball is gzip-compressed."
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../tools/virt-tar.pl:298
38275 msgid ""
38276 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
38277 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38278 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
38279 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../tools/virt-win-reg.pl:37
38284 msgid ""
38285 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
38286 "guest"
38287 msgstr ""
38288
38289 #. type: verbatim
38290 #: ../tools/virt-win-reg.pl:41
38291 #, no-wrap
38292 msgid ""
38293 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
38294 "\n"
38295 msgstr ""
38296
38297 #. type: verbatim
38298 #: ../tools/virt-win-reg.pl:43
38299 #, no-wrap
38300 msgid ""
38301 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
38302 "\n"
38303 msgstr ""
38304
38305 #. type: verbatim
38306 #: ../tools/virt-win-reg.pl:45
38307 #, no-wrap
38308 msgid ""
38309 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
38310 "\n"
38311 msgstr ""
38312
38313 #. type: verbatim
38314 #: ../tools/virt-win-reg.pl:47
38315 #, no-wrap
38316 msgid ""
38317 " virt-win-reg --merge domname [input.reg ...]\n"
38318 "\n"
38319 msgstr ""
38320
38321 #. type: verbatim
38322 #: ../tools/virt-win-reg.pl:49
38323 #, no-wrap
38324 msgid ""
38325 " virt-win-reg [--options] disk.img ... # instead of domname\n"
38326 "\n"
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../tools/virt-win-reg.pl:53
38331 msgid ""
38332 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
38333 "virtual machines.  If you do this, you I<will> get irreversible disk "
38334 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
38335 "but doesn't catch all cases."
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../tools/virt-win-reg.pl:58
38340 msgid ""
38341 "Modifying the Windows Registry is an inherently risky operation.  The format "
38342 "is deliberately obscure and undocumented, and Registry changes can leave the "
38343 "system unbootable.  Therefore when using the I<--merge> option, make sure "
38344 "you have a reliable backup first."
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../tools/virt-win-reg.pl:65
38349 msgid ""
38350 "This program can export and merge Windows Registry entries from a Windows "
38351 "guest."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../tools/virt-win-reg.pl:68
38356 msgid ""
38357 "The first parameter is the libvirt guest name or the raw disk image of a "
38358 "Windows guest."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../tools/virt-win-reg.pl:71
38363 msgid ""
38364 "If I<--merge> is I<not> specified, then the chosen registry key is "
38365 "displayed/exported (recursively).  For example:"
38366 msgstr ""
38367
38368 #. type: verbatim
38369 #: ../tools/virt-win-reg.pl:74
38370 #, no-wrap
38371 msgid ""
38372 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
38373 "\n"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../tools/virt-win-reg.pl:76
38378 msgid "You can also display single values from within registry keys, for example:"
38379 msgstr ""
38380
38381 #. type: verbatim
38382 #: ../tools/virt-win-reg.pl:79
38383 #, no-wrap
38384 msgid ""
38385 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
38386 " $ virt-win-reg Windows7 $cvkey ProductName\n"
38387 " Windows 7 Enterprise\n"
38388 "\n"
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../tools/virt-win-reg.pl:83
38393 msgid ""
38394 "With I<--merge>, you can merge a textual regedit file into the Windows "
38395 "Registry:"
38396 msgstr ""
38397
38398 #. type: verbatim
38399 #: ../tools/virt-win-reg.pl:86
38400 #, no-wrap
38401 msgid ""
38402 " $ virt-win-reg --merge Windows7 changes.reg\n"
38403 "\n"
38404 msgstr ""
38405
38406 #. type: textblock
38407 #: ../tools/virt-win-reg.pl:90
38408 msgid ""
38409 "This program is only meant for simple access to the registry.  If you want "
38410 "to do complicated things with the registry, we suggest you download the "
38411 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
38412 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
38413 "L<hivexregedit(1)>."
38414 msgstr ""
38415
38416 #. type: =item
38417 #: ../tools/virt-win-reg.pl:159
38418 msgid "B<--merge>"
38419 msgstr ""
38420
38421 #. type: textblock
38422 #: ../tools/virt-win-reg.pl:161
38423 msgid ""
38424 "In merge mode, this merges a textual regedit file into the Windows Registry "
38425 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
38426 "displays or exports Registry entries instead."
38427 msgstr ""
38428
38429 #. type: textblock
38430 #: ../tools/virt-win-reg.pl:165
38431 msgid ""
38432 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
38433 "result in disk corruption.  However exporting (without this flag)  is always "
38434 "safe."
38435 msgstr ""
38436
38437 #. type: =item
38438 #: ../tools/virt-win-reg.pl:173
38439 msgid "B<--encoding> UTF-16LE|ASCII"
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../tools/virt-win-reg.pl:175
38444 msgid ""
38445 "When merging (only), you may need to specify the encoding for strings to be "
38446 "used in the hive file.  This is explained in detail in "
38447 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../tools/virt-win-reg.pl:179
38452 msgid ""
38453 "The default is to use UTF-16LE, which should work with recent versions of "
38454 "Windows."
38455 msgstr ""
38456
38457 #. type: =item
38458 #: ../tools/virt-win-reg.pl:186
38459 msgid "B<--unsafe-printable-strings>"
38460 msgstr ""
38461
38462 #. type: textblock
38463 #: ../tools/virt-win-reg.pl:188
38464 msgid ""
38465 "When exporting (only), assume strings are UTF-16LE and print them as strings "
38466 "instead of hex sequences.  Remove the final zero codepoint from strings if "
38467 "present."
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../tools/virt-win-reg.pl:192
38472 msgid ""
38473 "This is unsafe and does not preserve the fidelity of strings in the original "
38474 "Registry for various reasons:"
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../tools/virt-win-reg.pl:199
38479 msgid ""
38480 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
38481 "other encodings will be corrupted by this transformation."
38482 msgstr ""
38483
38484 #. type: textblock
38485 #: ../tools/virt-win-reg.pl:204
38486 msgid ""
38487 "Assumes that everything which has type 1 or 2 is really a string and that "
38488 "everything else is not a string, but the type field in real Registries is "
38489 "not reliable."
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../tools/virt-win-reg.pl:210
38494 msgid ""
38495 "Loses information about whether a zero codepoint followed the string in the "
38496 "Registry or not."
38497 msgstr ""
38498
38499 #. type: textblock
38500 #: ../tools/virt-win-reg.pl:215
38501 msgid ""
38502 "This all happens because the Registry itself contains no information about "
38503 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
38504 msgstr ""
38505
38506 #. type: textblock
38507 #: ../tools/virt-win-reg.pl:219
38508 msgid ""
38509 "You should only use this option for quick hacking and debugging of the "
38510 "Registry contents, and I<never> use it if the output is going to be passed "
38511 "into another program or stored in another Registry."
38512 msgstr ""
38513
38514 #. type: =head1
38515 #: ../tools/virt-win-reg.pl:556
38516 msgid "SUPPORTED SYSTEMS"
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../tools/virt-win-reg.pl:558
38521 msgid ""
38522 "The program currently supports Windows NT-derived guests starting with "
38523 "Windows XP through to at least Windows 7."
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../tools/virt-win-reg.pl:561
38528 msgid "The following Registry keys are supported:"
38529 msgstr ""
38530
38531 #. type: =item
38532 #: ../tools/virt-win-reg.pl:565
38533 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
38534 msgstr ""
38535
38536 #. type: =item
38537 #: ../tools/virt-win-reg.pl:567
38538 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
38539 msgstr ""
38540
38541 #. type: =item
38542 #: ../tools/virt-win-reg.pl:569
38543 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
38544 msgstr ""
38545
38546 #. type: =item
38547 #: ../tools/virt-win-reg.pl:571
38548 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
38549 msgstr ""
38550
38551 #. type: =item
38552 #: ../tools/virt-win-reg.pl:573
38553 msgid "C<HKEY_USERS\\.DEFAULT>"
38554 msgstr ""
38555
38556 #. type: =item
38557 #: ../tools/virt-win-reg.pl:575
38558 msgid "C<HKEY_USERS\\I<SID>>"
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../tools/virt-win-reg.pl:577
38563 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
38564 msgstr ""
38565
38566 #. type: =item
38567 #: ../tools/virt-win-reg.pl:579
38568 msgid "C<HKEY_USERS\\I<username>>"
38569 msgstr ""
38570
38571 #. type: textblock
38572 #: ../tools/virt-win-reg.pl:581
38573 msgid "where I<username> is a local user name (this is a libguestfs extension)."
38574 msgstr ""
38575
38576 #. type: textblock
38577 #: ../tools/virt-win-reg.pl:585
38578 msgid ""
38579 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
38580 "C<HKEY_USERS>."
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../tools/virt-win-reg.pl:588
38585 msgid ""
38586 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
38587 "supported (there is no \"current user\")."
38588 msgstr ""
38589
38590 #. type: =head1
38591 #: ../tools/virt-win-reg.pl:591
38592 msgid "ENCODING"
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../tools/virt-win-reg.pl:593
38597 msgid ""
38598 "C<virt-win-reg> expects that regedit files have already been reencoded in "
38599 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
38600 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
38601 "with Windows-style line endings, you may need to reencode the whole file "
38602 "before or after processing."
38603 msgstr ""
38604
38605 #. type: textblock
38606 #: ../tools/virt-win-reg.pl:599
38607 msgid ""
38608 "To reencode a file from Windows format to Linux (before processing it with "
38609 "the I<--merge> option), you would do something like this:"
38610 msgstr ""
38611
38612 #. type: verbatim
38613 #: ../tools/virt-win-reg.pl:602
38614 #, no-wrap
38615 msgid ""
38616 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
38617 "\n"
38618 msgstr ""
38619
38620 #. type: textblock
38621 #: ../tools/virt-win-reg.pl:604
38622 msgid ""
38623 "To go in the opposite direction, after exporting and before sending the file "
38624 "to a Windows user, do something like this:"
38625 msgstr ""
38626
38627 #. type: verbatim
38628 #: ../tools/virt-win-reg.pl:607
38629 #, no-wrap
38630 msgid ""
38631 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38632 "\n"
38633 msgstr ""
38634
38635 #. type: textblock
38636 #: ../tools/virt-win-reg.pl:609
38637 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../tools/virt-win-reg.pl:611
38642 msgid ""
38643 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38644 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
38645 "Windows-style (CRLF) line endings, like this:"
38646 msgstr ""
38647
38648 #. type: verbatim
38649 #: ../tools/virt-win-reg.pl:615
38650 #, no-wrap
38651 msgid ""
38652 " $ file software.reg\n"
38653 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38654 " with CRLF line terminators\n"
38655 "\n"
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../tools/virt-win-reg.pl:619
38660 msgid "This file would need conversion before you could I<--merge> it."
38661 msgstr ""
38662
38663 #. type: =head1
38664 #: ../tools/virt-win-reg.pl:621
38665 msgid "CurrentControlSet etc."
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../tools/virt-win-reg.pl:623
38670 msgid ""
38671 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38672 "Registry at the level of the hive file, and therefore you cannot modify "
38673 "these."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../tools/virt-win-reg.pl:627
38678 msgid ""
38679 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38680 "circumstances it might refer to another control set.  The way to find out is "
38681 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38682 msgstr ""
38683
38684 #. type: verbatim
38685 #: ../tools/virt-win-reg.pl:631
38686 #, no-wrap
38687 msgid ""
38688 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38689 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38690 " \"Current\"=dword:00000001\n"
38691 " \"Default\"=dword:00000001\n"
38692 " \"Failed\"=dword:00000000\n"
38693 " \"LastKnownGood\"=dword:00000002\n"
38694 "\n"
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../tools/virt-win-reg.pl:638
38699 msgid "\"Current\" is the one which Windows will choose when it boots."
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../tools/virt-win-reg.pl:640
38704 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
38705 msgstr ""
38706
38707 #. type: =head1
38708 #: ../tools/virt-win-reg.pl:643
38709 msgid "WINDOWS TIPS"
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../tools/virt-win-reg.pl:645
38714 msgid ""
38715 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38716 "be shut off, else you will get disk corruption."
38717 msgstr ""
38718
38719 #. type: =head2
38720 #: ../tools/virt-win-reg.pl:648
38721 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../tools/virt-win-reg.pl:650
38726 msgid ""
38727 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38728 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38729 "is uploaded into C<C:\\>:"
38730 msgstr ""
38731
38732 #. type: verbatim
38733 #: ../tools/virt-win-reg.pl:654
38734 #, no-wrap
38735 msgid ""
38736 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38737 "\n"
38738 msgstr ""
38739
38740 #. type: textblock
38741 #: ../tools/virt-win-reg.pl:656
38742 msgid "Prepare a regedit file containing the registry change:"
38743 msgstr ""
38744
38745 #. type: verbatim
38746 #: ../tools/virt-win-reg.pl:658
38747 #, no-wrap
38748 msgid ""
38749 " cat > test.reg <<'EOF'\n"
38750 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38751 " \"Test\"=\"c:\\\\test.bat\"\n"
38752 " EOF\n"
38753 "\n"
38754 msgstr ""
38755
38756 #. type: textblock
38757 #: ../tools/virt-win-reg.pl:663
38758 msgid ""
38759 "In this example we use the key C<RunOnce> which means that the script will "
38760 "run precisely once when the first user logs in.  If you want it to run every "
38761 "time a user logs in, replace C<RunOnce> with C<Run>."
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../tools/virt-win-reg.pl:667
38766 msgid "Now update the registry:"
38767 msgstr ""
38768
38769 #. type: verbatim
38770 #: ../tools/virt-win-reg.pl:669
38771 #, no-wrap
38772 msgid ""
38773 " virt-win-reg --merge WindowsGuest test.reg\n"
38774 "\n"
38775 msgstr ""
38776
38777 #. type: =head2
38778 #: ../tools/virt-win-reg.pl:671
38779 msgid "INSTALLING A SERVICE"
38780 msgstr ""
38781
38782 #. type: textblock
38783 #: ../tools/virt-win-reg.pl:673
38784 msgid ""
38785 "This section assumes you are familiar with Windows services, and you either "
38786 "have a program which handles the Windows Service Control Protocol directly "
38787 "or you want to run any program using a service wrapper like SrvAny or the "
38788 "free RHSrvAny."
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../tools/virt-win-reg.pl:678
38793 msgid ""
38794 "First upload the program and optionally the service wrapper.  In this case "
38795 "the test program is called C<test.exe> and we are using the RHSrvAny "
38796 "wrapper:"
38797 msgstr ""
38798
38799 #. type: verbatim
38800 #: ../tools/virt-win-reg.pl:682
38801 #, no-wrap
38802 msgid ""
38803 " guestfish -i -d WindowsGuest <<EOF\n"
38804 "   upload rhsrvany.exe /rhsrvany.exe\n"
38805 "   upload test.exe /test.exe\n"
38806 " EOF\n"
38807 "\n"
38808 msgstr ""
38809
38810 #. type: textblock
38811 #: ../tools/virt-win-reg.pl:687
38812 msgid ""
38813 "Prepare a regedit file containing the registry changes.  In this example, "
38814 "the first registry change is needed for the service itself or the service "
38815 "wrapper (if used).  The second registry change is only needed because I am "
38816 "using the RHSrvAny service wrapper."
38817 msgstr ""
38818
38819 #. type: verbatim
38820 #: ../tools/virt-win-reg.pl:692
38821 #, no-wrap
38822 msgid ""
38823 " cat > service.reg <<'EOF'\n"
38824 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38825 " \"Type\"=dword:00000010\n"
38826 " \"Start\"=dword:00000002\n"
38827 " \"ErrorControl\"=dword:00000001\n"
38828 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38829 " \"DisplayName\"=\"RHSrvAny\"\n"
38830 " \"ObjectName\"=\"NetworkService\"\n"
38831 " \n"
38832 msgstr ""
38833
38834 #. type: verbatim
38835 #: ../tools/virt-win-reg.pl:701
38836 #, no-wrap
38837 msgid ""
38838 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38839 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38840 " \"PWD\"=\"c:\\\\Temp\"\n"
38841 " EOF\n"
38842 "\n"
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../tools/virt-win-reg.pl:712
38847 msgid ""
38848 "For use of C<ControlSet001> see the section above in this manual page.  You "
38849 "may need to adjust this according to the control set that is in use by the "
38850 "guest."
38851 msgstr ""
38852
38853 #. type: textblock
38854 #: ../tools/virt-win-reg.pl:718
38855 msgid ""
38856 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38857 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38858 "privileged account."
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../tools/virt-win-reg.pl:724
38863 msgid ""
38864 "For the meaning of the magic numbers, see this Microsoft KB article: "
38865 "L<http://support.microsoft.com/kb/103000>."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../tools/virt-win-reg.pl:729
38870 msgid "Update the registry:"
38871 msgstr ""
38872
38873 #. type: verbatim
38874 #: ../tools/virt-win-reg.pl:731
38875 #, no-wrap
38876 msgid ""
38877 " virt-win-reg --merge WindowsGuest service.reg\n"
38878 "\n"
38879 msgstr ""
38880
38881 #. type: textblock
38882 #: ../tools/virt-win-reg.pl:735
38883 msgid ""
38884 "Be careful when passing parameters containing C<\\> (backslash) in the "
38885 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38886 "(but not both) to protect them from the shell."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../tools/virt-win-reg.pl:739
38891 msgid "Paths and value names are case-insensitive."
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../tools/virt-win-reg.pl:748
38896 msgid ""
38897 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
38898 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
38899 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
38900 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38901 msgstr ""
38902
38903 #. type: verbatim
38904 #: ../tools/virt-win-reg.pl:766
38905 #, no-wrap
38906 msgid ""
38907 " export LIBGUESTFS_DEBUG=1\n"
38908 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38909 "\n"
38910 msgstr ""
38911
38912 #. type: textblock
38913 #: ../tools/virt-win-reg.pl:769
38914 msgid ""
38915 "Attach /tmp/virt-win-reg.log to a new bug report at "
38916 "L<https://bugzilla.redhat.com/>"
38917 msgstr ""