fuse: Return EXIT_FAILURE if fuse_main fails.
[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.14.6\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-12-06 16:12+0000\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 ../clone/virt-sysprep.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 ../examples/guestfs-testing.pod:3 ../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 ../clone/virt-sysprep.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] -d domname\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] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../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 ../examples/guestfs-testing.pod:7 ../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
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../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:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:262 ../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
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:266 ../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
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../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
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../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
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497 ../sparsify/virt-sparsify.pod:158
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499 ../sparsify/virt-sparsify.pod:160
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:164
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:166
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:168
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:567 ../sparsify/virt-sparsify.pod:170
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:172 ../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
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:571 ../sparsify/virt-sparsify.pod:174 ../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
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:176 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:178
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical consumer hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/hw_sector_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/physical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/logical_block_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/minimum_io_size\n"
540 " 512\n"
541 " $ cat /sys/block/sda/queue/optimal_io_size\n"
542 " 0\n"
543 "\n"
544 msgstr ""
545
546 #. type: textblock
547 #: ../align/virt-alignment-scan.pod:245
548 msgid "For a new consumer hard drive with 4Kbyte sectors:"
549 msgstr ""
550
551 #. type: verbatim
552 #: ../align/virt-alignment-scan.pod:247
553 #, no-wrap
554 msgid ""
555 " $ cat /sys/block/sda/queue/hw_sector_size\n"
556 " 4096\n"
557 " $ cat /sys/block/sda/queue/physical_block_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sda/queue/logical_block_size\n"
560 " 4096\n"
561 " $ cat /sys/block/sda/queue/minimum_io_size\n"
562 " 4096\n"
563 " $ cat /sys/block/sda/queue/optimal_io_size\n"
564 " 0\n"
565 "\n"
566 msgstr ""
567
568 #. type: textblock
569 #: ../align/virt-alignment-scan.pod:258
570 msgid "For a NetApp LUN:"
571 msgstr ""
572
573 #. type: verbatim
574 #: ../align/virt-alignment-scan.pod:260
575 #, no-wrap
576 msgid ""
577 " $ cat /sys/block/sdc/queue/logical_block_size\n"
578 " 512\n"
579 " $ cat /sys/block/sdc/queue/physical_block_size\n"
580 " 512\n"
581 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
582 " 4096\n"
583 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
584 " 65536\n"
585 "\n"
586 msgstr ""
587
588 #. type: textblock
589 #: ../align/virt-alignment-scan.pod:269
590 msgid ""
591 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
592 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
593 msgstr ""
594
595 #. type: textblock
596 #: ../align/virt-alignment-scan.pod:273
597 msgid ""
598 "For detailed information about what these numbers mean, see "
599 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
600 msgstr ""
601
602 #. type: textblock
603 #: ../align/virt-alignment-scan.pod:276
604 msgid ""
605 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
606 "for providing NetApp data and additional information.]"
607 msgstr ""
608
609 #. type: =head2
610 #: ../align/virt-alignment-scan.pod:279
611 msgid "1 MB PARTITION ALIGNMENT"
612 msgstr ""
613
614 #. type: textblock
615 #: ../align/virt-alignment-scan.pod:281
616 msgid ""
617 "Microsoft picked 1 MB as the default alignment for all partitions starting "
618 "with Windows 2008 Server, and Linux has followed this."
619 msgstr ""
620
621 #. type: textblock
622 #: ../align/virt-alignment-scan.pod:284
623 msgid ""
624 "Assuming 512 byte sectors in the guest, you will now see the first partition "
625 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
626 "multiple of 2048 sectors."
627 msgstr ""
628
629 #. type: textblock
630 #: ../align/virt-alignment-scan.pod:288
631 msgid ""
632 "1 MB alignment is compatible with all current alignment requirements (4K, "
633 "64K) and provides room for future growth in physical block sizes."
634 msgstr ""
635
636 #. type: =head2
637 #: ../align/virt-alignment-scan.pod:291
638 msgid "SETTING ALIGNMENT"
639 msgstr ""
640
641 #. type: textblock
642 #: ../align/virt-alignment-scan.pod:293
643 msgid ""
644 "L<virt-resize(1)> can change the alignment of the partitions of some "
645 "guests.  Currently it can fully align all the partitions of all Windows "
646 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
647 "it can align the second and subsequent partitions, so the majority of OS "
648 "accesses except at boot will be aligned."
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:299
653 msgid ""
654 "Another way to correct partition alignment problems is to reinstall your "
655 "guest operating systems.  If you install operating systems from templates, "
656 "ensure these have correct partition alignment too."
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:303
661 msgid ""
662 "For older versions of Windows, the following NetApp document contains useful "
663 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:306
668 msgid ""
669 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
670 "an explicit C<%pre> section that creates aligned partitions using "
671 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
672 "document above contains an example."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:682 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:744
677 msgid "SHELL QUOTING"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:684 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:752
682 msgid ""
683 "Libvirt guest names can contain arbitrary characters, some of which have "
684 "meaning to the shell such as C<#> and space.  You may need to quote or "
685 "escape these characters on the command line.  See the shell manual page "
686 "L<sh(1)> for details."
687 msgstr ""
688
689 #. type: =head1
690 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238 ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390 ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:232 ../test-tool/libguestfs-test-tool.pod:90
691 msgid "EXIT STATUS"
692 msgstr ""
693
694 #. type: textblock
695 #: ../align/virt-alignment-scan.pod:320
696 msgid "This program returns:"
697 msgstr ""
698
699 #. type: =item
700 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287 ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295 ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322 ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362 ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388 ../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 ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 ../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:641 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098 ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339 ../src/guestfs.pod:3343 ../src/guestfs.pod:3347 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
701 msgid "*"
702 msgstr ""
703
704 #. type: textblock
705 #: ../align/virt-alignment-scan.pod:326
706 msgid "0"
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:328
711 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
712 msgstr ""
713
714 #. type: textblock
715 #: ../align/virt-alignment-scan.pod:332
716 msgid "1"
717 msgstr ""
718
719 #. type: textblock
720 #: ../align/virt-alignment-scan.pod:334
721 msgid "an error scanning the disk image or guest"
722 msgstr ""
723
724 #. type: textblock
725 #: ../align/virt-alignment-scan.pod:338
726 msgid "2"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:340
731 msgid ""
732 "successful exit, some partitions have alignment E<lt> 64K which can result "
733 "in poor performance on high end network storage"
734 msgstr ""
735
736 #. type: textblock
737 #: ../align/virt-alignment-scan.pod:345
738 msgid "3"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:347
743 msgid ""
744 "successful exit, some partitions have alignment E<lt> 4K which can result in "
745 "poor performance on most hypervisors"
746 msgstr ""
747
748 #. type: =head1
749 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268 ../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:317 ../inspector/virt-inspector.pod:395 ../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:694 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:3275 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:757
750 msgid "SEE ALSO"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:354
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
757 "L<virt-resize(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:269 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:783
762 msgid "AUTHOR"
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:271 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
768 msgstr ""
769
770 #. type: =head1
771 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300 ../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:332 ../inspector/virt-inspector.pod:418 ../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:721 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:273 ../src/guestfs.pod:3358 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:787
772 msgid "COPYRIGHT"
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:275
777 msgid "Copyright (C) 2011 Red Hat Inc."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 ../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:337 ../inspector/virt-inspector.pod:422 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:725 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:791
782 msgid ""
783 "This program is free software; you can redistribute it and/or modify it "
784 "under the terms of the GNU General Public License as published by the Free "
785 "Software Foundation; either version 2 of the License, or (at your option) "
786 "any later version."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 ../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:342 ../inspector/virt-inspector.pod:427 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:730 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:796
791 msgid ""
792 "This program is distributed in the hope that it will be useful, but WITHOUT "
793 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
794 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
795 "more details."
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 ../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:347 ../inspector/virt-inspector.pod:432 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:735 ../sparsify/virt-sparsify.pod:287 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:801
800 msgid ""
801 "You should have received a copy of the GNU General Public License along with "
802 "this program; if not, write to the Free Software Foundation, Inc., 51 "
803 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
804 msgstr ""
805
806 #. type: textblock
807 #: ../cat/virt-cat.pod:5
808 msgid "virt-cat - Display files in a virtual machine"
809 msgstr ""
810
811 #. type: verbatim
812 #: ../cat/virt-cat.pod:9
813 #, no-wrap
814 msgid ""
815 " virt-cat [--options] -d domname file [file ...]\n"
816 "\n"
817 msgstr ""
818
819 #. type: verbatim
820 #: ../cat/virt-cat.pod:11
821 #, no-wrap
822 msgid ""
823 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
824 "\n"
825 msgstr ""
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
829 msgid "Old-style:"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-cat.pod:15
834 #, no-wrap
835 msgid ""
836 " virt-cat domname file\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-cat.pod:17
842 #, no-wrap
843 msgid ""
844 " virt-cat disk.img file\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:21
850 msgid ""
851 "C<virt-cat> is a command line tool to display the contents of C<file> where "
852 "C<file> exists in the named virtual machine (or disk image)."
853 msgstr ""
854
855 #. type: textblock
856 #: ../cat/virt-cat.pod:24
857 msgid ""
858 "Multiple filenames can be given, in which case they are concatenated "
859 "together.  Each filename must be a full path, starting at the root directory "
860 "(starting with '/')."
861 msgstr ""
862
863 #. type: textblock
864 #: ../cat/virt-cat.pod:28
865 msgid ""
866 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
867 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
868 "tool (see L</USING GUESTFISH> below)."
869 msgstr ""
870
871 #. type: =head1
872 #: ../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:1051 ../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
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
879 msgstr ""
880
881 #. type: verbatim
882 #: ../cat/virt-cat.pod:37
883 #, no-wrap
884 msgid ""
885 " virt-cat -d mydomain /etc/fstab\n"
886 "\n"
887 msgstr ""
888
889 #. type: textblock
890 #: ../cat/virt-cat.pod:39
891 msgid "List syslog messages from a VM disk image file:"
892 msgstr ""
893
894 #. type: verbatim
895 #: ../cat/virt-cat.pod:41
896 #, no-wrap
897 msgid ""
898 " virt-cat -a disk.img /var/log/messages | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:43
904 msgid "Find out what DHCP IP address a VM acquired:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:45
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/messages | \\\n"
912 "   grep 'dhclient: bound to' | tail\n"
913 "\n"
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:48
918 msgid "Find out what packages were recently installed:"
919 msgstr ""
920
921 #. type: verbatim
922 #: ../cat/virt-cat.pod:50
923 #, no-wrap
924 msgid ""
925 " virt-cat -d mydomain /var/log/yum.log | tail\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:52
931 msgid "Find out who is logged on inside a virtual machine:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:54
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
939 " who /tmp/utmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:57
945 msgid "or who was logged on:"
946 msgstr ""
947
948 #. type: verbatim
949 #: ../cat/virt-cat.pod:59
950 #, no-wrap
951 msgid ""
952 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
953 " last -f /tmp/wtmp\n"
954 "\n"
955 msgstr ""
956
957 #. type: textblock
958 #: ../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
959 msgid ""
960 "Add I<file> which should be a disk image from a virtual machine.  If the "
961 "virtual machine has multiple block devices, you must supply all of them with "
962 "separate I<-a> options."
963 msgstr ""
964
965 #. type: =item
966 #: ../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:135 ../inspector/virt-inspector.pod:92
967 msgid "B<--echo-keys>"
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-cat.pod:100
972 msgid ""
973 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
974 "so you cannot see what you are typing.  If you are not worried about Tempest "
975 "attacks and there is no one else in the room you can specify this flag to "
976 "see what you are typing."
977 msgstr ""
978
979 #. type: verbatim
980 #: ../cat/virt-cat.pod:116
981 #, no-wrap
982 msgid ""
983 " virt-cat --format=raw -a disk.img file\n"
984 "\n"
985 msgstr ""
986
987 #. type: verbatim
988 #: ../cat/virt-cat.pod:120
989 #, no-wrap
990 msgid ""
991 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
992 "\n"
993 msgstr ""
994
995 #. type: =item
996 #: ../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:172 ../inspector/virt-inspector.pod:114
997 msgid "B<--keys-from-stdin>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../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:174 ../inspector/virt-inspector.pod:116
1002 msgid ""
1003 "Read key or passphrase parameters from stdin.  The default is to try to read "
1004 "passphrases from the user by opening C</dev/tty>."
1005 msgstr ""
1006
1007 #. type: =head1
1008 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1009 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../cat/virt-cat.pod:154
1014 msgid "Previous versions of virt-cat allowed you to write either:"
1015 msgstr ""
1016
1017 #. type: verbatim
1018 #: ../cat/virt-cat.pod:156
1019 #, no-wrap
1020 msgid ""
1021 " virt-cat disk.img [disk.img ...] file\n"
1022 "\n"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1027 msgid "or"
1028 msgstr ""
1029
1030 #. type: verbatim
1031 #: ../cat/virt-cat.pod:160
1032 #, no-wrap
1033 msgid ""
1034 " virt-cat guestname file\n"
1035 "\n"
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1040 msgid ""
1041 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1042 "the confusing case where a disk image might have the same name as a guest."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1047 msgid "For compatibility the old style is still supported."
1048 msgstr ""
1049
1050 #. type: =head1
1051 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1052 msgid "WINDOWS PATHS"
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-cat.pod:170
1057 msgid ""
1058 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1059 "paths (eg. C<E:\\foo\\bar.txt>)."
1060 msgstr ""
1061
1062 #. type: textblock
1063 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1064 msgid "If and only if the guest is running Windows then:"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1069 msgid ""
1070 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1071 "to the correct filesystem."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1076 msgid ""
1077 "Any backslash (C<\\>) characters in the path are replaced with forward "
1078 "slashes so that libguestfs can process it."
1079 msgstr ""
1080
1081 #. type: textblock
1082 #: ../cat/virt-cat.pod:189
1083 msgid ""
1084 "The path is resolved case insensitively to locate the file that should be "
1085 "displayed."
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1090 msgid "There are some known shortcomings:"
1091 msgstr ""
1092
1093 #. type: textblock
1094 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1095 msgid "Some NTFS symbolic links may not be followed correctly."
1096 msgstr ""
1097
1098 #. type: textblock
1099 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1100 msgid "NTFS junction points that cross filesystems are not followed."
1101 msgstr ""
1102
1103 #. type: =head1
1104 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1105 msgid "USING GUESTFISH"
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../cat/virt-cat.pod:210
1110 msgid ""
1111 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1112 "C<virt-cat> doesn't work."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-cat.pod:213
1117 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:215
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -i -d domname download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:217
1130 msgid ""
1131 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1132 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:221
1137 msgid ""
1138 "The command above uses libguestfs's guest inspection feature and so does not "
1139 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1140 "disk images that don't contain guests.  To display a file from a disk image "
1141 "directly, use:"
1142 msgstr ""
1143
1144 #. type: verbatim
1145 #: ../cat/virt-cat.pod:226
1146 #, no-wrap
1147 msgid ""
1148 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1149 "\n"
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-cat.pod:228
1154 msgid ""
1155 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1156 "the disk image, and C<file> is the full path to the file."
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:234
1161 msgid "This program returns 0 if successful, or non-zero if there was an error."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-cat.pod:245
1166 msgid ""
1167 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1168 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420 ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1173 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-filesystems.pod:5
1178 msgid ""
1179 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1180 "virtual machine or disk image"
1181 msgstr ""
1182
1183 #. type: verbatim
1184 #: ../cat/virt-filesystems.pod:9
1185 #, no-wrap
1186 msgid ""
1187 " virt-filesystems [--options] -d domname\n"
1188 "\n"
1189 msgstr ""
1190
1191 #. type: verbatim
1192 #: ../cat/virt-filesystems.pod:11
1193 #, no-wrap
1194 msgid ""
1195 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1196 "\n"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:15
1201 msgid ""
1202 "This tool allows you to discover filesystems, partitions, logical volumes, "
1203 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1204 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1205 msgstr ""
1206
1207 #. type: textblock
1208 #: ../cat/virt-filesystems.pod:20
1209 msgid ""
1210 "One use for this tool is from shell scripts to iterate over all filesystems "
1211 "from a disk image:"
1212 msgstr ""
1213
1214 #. type: verbatim
1215 #: ../cat/virt-filesystems.pod:23
1216 #, no-wrap
1217 msgid ""
1218 " for fs in $(virt-filesystems -a disk.img); do\n"
1219 "   # ...\n"
1220 " done\n"
1221 "\n"
1222 msgstr ""
1223
1224 #. type: textblock
1225 #: ../cat/virt-filesystems.pod:27
1226 msgid ""
1227 "Another use is to list partitions before using another tool to modify those "
1228 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1229 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-filesystems.pod:32
1234 msgid ""
1235 "Various command line options control what this program displays.  You need "
1236 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1237 "guest respectively.  If you just specify that then the program shows "
1238 "filesystems found, one per line, like this:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-filesystems.pod:37
1243 #, no-wrap
1244 msgid ""
1245 " $ virt-filesystems -a disk.img\n"
1246 " /dev/sda1\n"
1247 " /dev/vg_guest/lv_root\n"
1248 "\n"
1249 msgstr ""
1250
1251 #. type: textblock
1252 #: ../cat/virt-filesystems.pod:41
1253 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1254 msgstr ""
1255
1256 #. type: verbatim
1257 #: ../cat/virt-filesystems.pod:44
1258 #, no-wrap
1259 msgid ""
1260 " $ virt-filesystems -a disk.img -l\n"
1261 " Name                   Type         VFS   Label  Size\n"
1262 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1263 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1264 "\n"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:49
1269 msgid ""
1270 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1271 "shown as well:"
1272 msgstr ""
1273
1274 #. type: verbatim
1275 #: ../cat/virt-filesystems.pod:52
1276 #, no-wrap
1277 msgid ""
1278 " $ virt-filesystems -a disk.img --extra\n"
1279 " /dev/sda1\n"
1280 " /dev/vg_guest/lv_root\n"
1281 " /dev/vg_guest/lv_swap\n"
1282 " /dev/vg_guest/lv_data\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:58
1288 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-filesystems.pod:60
1293 #, no-wrap
1294 msgid ""
1295 " $ virt-filesystems -a disk.img --partitions\n"
1296 " /dev/sda1\n"
1297 " /dev/sda2\n"
1298 "\n"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:64
1303 msgid ""
1304 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1305 "I<--physical-volumes>, I<--block-devices> to list those items."
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:67
1310 msgid ""
1311 "You can use these options in combination as well (if you want a combination "
1312 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1313 "items fall into several categories (eg. C</dev/sda1> might be both a "
1314 "partition and a filesystem).  These items are listed several times.  To get "
1315 "a list which includes absolutely everything that virt-filesystems knows "
1316 "about, use the I<--all> option."
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:74
1321 msgid ""
1322 "UUIDs (because they are quite long) are not shown by default.  Add the "
1323 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:78
1328 msgid ""
1329 "I<--all --long --uuid> is a useful combination to display all possible "
1330 "information about everything."
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-filesystems.pod:81
1335 #, no-wrap
1336 msgid ""
1337 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1338 " Name      Type       VFS  Label           Size Parent   UUID\n"
1339 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1340 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1341 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1342 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1343 " /dev/sda  device     -    -               20G  -        -\n"
1344 "\n"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-filesystems.pod:89
1349 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1354 msgid "B<--all>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:112
1359 msgid ""
1360 "Display everything.  This is currently the same as specifying these options: "
1361 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1362 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1363 "be added to this list in future)."
1364 msgstr ""
1365
1366 #. type: textblock
1367 #: ../cat/virt-filesystems.pod:117
1368 msgid "See also I<--long>."
1369 msgstr ""
1370
1371 #. type: =item
1372 #: ../cat/virt-filesystems.pod:119
1373 msgid "B<--blkdevs>"
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:121
1378 msgid "B<--block-devices>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:123
1383 msgid "Display block devices."
1384 msgstr ""
1385
1386 #. type: =item
1387 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1388 msgid "B<--csv>"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1393 msgid ""
1394 "Write out the results in CSV format (comma-separated values).  This format "
1395 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1396 "ABOUT CSV FORMAT> below."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:150
1401 msgid ""
1402 "When prompting for keys and passphrases, virt-filesystems normally turns "
1403 "echoing off so you cannot see what you are typing.  If you are not worried "
1404 "about Tempest attacks and there is no one else in the room you can specify "
1405 "this flag to see what you are typing."
1406 msgstr ""
1407
1408 #. type: =item
1409 #: ../cat/virt-filesystems.pod:155
1410 msgid "B<--extra>"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:157
1415 msgid ""
1416 "This causes filesystems that are not ordinary, mountable filesystems to be "
1417 "displayed.  This category includes swapspace, and filesystems that are empty "
1418 "or contain unknown data."
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-filesystems.pod:161
1423 msgid "This option implies I<--filesystems>."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:163
1428 msgid "B<--filesystems>"
1429 msgstr ""
1430
1431 #. type: textblock
1432 #: ../cat/virt-filesystems.pod:165
1433 msgid ""
1434 "Display mountable filesystems.  If no display option was selected then this "
1435 "option is implied."
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-filesystems.pod:168
1440 msgid "With I<--extra>, non-mountable filesystems are shown too."
1441 msgstr ""
1442
1443 #. type: verbatim
1444 #: ../cat/virt-filesystems.pod:181
1445 #, no-wrap
1446 msgid ""
1447 " virt-filesystems --format=raw -a disk.img\n"
1448 "\n"
1449 msgstr ""
1450
1451 #. type: verbatim
1452 #: ../cat/virt-filesystems.pod:185
1453 #, no-wrap
1454 msgid ""
1455 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1456 "\n"
1457 msgstr ""
1458
1459 #. type: =item
1460 #: ../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
1461 msgid "B<-h>"
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1466 msgid "B<--human-readable>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:198
1471 msgid "In I<--long> mode, display sizes in human-readable format."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1476 msgid "B<-l>"
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1481 msgid "B<--long>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:209
1486 msgid "Display extra columns of data (\"long format\")."
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-filesystems.pod:211
1491 msgid "A title row is added unless you also specify I<--no-title>."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-filesystems.pod:213
1496 msgid ""
1497 "The extra columns displayed depend on what output you select, and the "
1498 "ordering of columns may change in future versions.  Use the title row, "
1499 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1500 "programs."
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:218
1505 msgid ""
1506 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1507 "default is to show raw numbers of I<bytes>."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-filesystems.pod:221
1512 msgid "Use I<--uuid> to display UUIDs too."
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:223
1517 msgid "B<--lvs>"
1518 msgstr ""
1519
1520 #. type: =item
1521 #: ../cat/virt-filesystems.pod:225
1522 msgid "B<--logvols>"
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:227
1527 msgid "B<--logical-volumes>"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:229
1532 msgid ""
1533 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1534 "of whether the LVs contain filesystems."
1535 msgstr ""
1536
1537 #. type: =item
1538 #: ../cat/virt-filesystems.pod:232
1539 msgid "B<--no-title>"
1540 msgstr ""
1541
1542 #. type: textblock
1543 #: ../cat/virt-filesystems.pod:234
1544 msgid "In I<--long> mode, don't add a title row."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../cat/virt-filesystems.pod:236
1549 msgid ""
1550 "Note that the order of the columns is not fixed, and may change in future "
1551 "versions of virt-filesystems, so using this option may give you unexpected "
1552 "surprises."
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:240
1557 msgid "B<--parts>"
1558 msgstr ""
1559
1560 #. type: =item
1561 #: ../cat/virt-filesystems.pod:242
1562 msgid "B<--partitions>"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:244
1567 msgid ""
1568 "Display partitions.  In this mode, these are displayed irrespective of "
1569 "whether the partitions contain filesystems."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:247
1574 msgid "B<--pvs>"
1575 msgstr ""
1576
1577 #. type: =item
1578 #: ../cat/virt-filesystems.pod:249
1579 msgid "B<--physvols>"
1580 msgstr ""
1581
1582 #. type: =item
1583 #: ../cat/virt-filesystems.pod:251
1584 msgid "B<--physical-volumes>"
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../cat/virt-filesystems.pod:253
1589 msgid "Display LVM physical volumes."
1590 msgstr ""
1591
1592 #. type: =item
1593 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1594 msgid "B<--uuid>"
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:257
1599 msgid "B<--uuids>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:259
1604 msgid "In I<--long> mode, display UUIDs as well."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:273
1609 msgid "B<--vgs>"
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:275
1614 msgid "B<--volgroups>"
1615 msgstr ""
1616
1617 #. type: =item
1618 #: ../cat/virt-filesystems.pod:277
1619 msgid "B<--volume-groups>"
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:279
1624 msgid "Display LVM volume groups."
1625 msgstr ""
1626
1627 #. type: =head1
1628 #: ../cat/virt-filesystems.pod:287
1629 msgid "COLUMNS"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:289
1634 msgid ""
1635 "Note that columns in the output are subject to reordering and change in "
1636 "future versions of this tool."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../cat/virt-filesystems.pod:294
1641 msgid "B<Name>"
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-filesystems.pod:296
1646 msgid "The filesystem, partition, block device or LVM name."
1647 msgstr ""
1648
1649 #. type: textblock
1650 #: ../cat/virt-filesystems.pod:298
1651 msgid ""
1652 "For device and partition names these are displayed as canonical libguestfs "
1653 "names, so that for example C</dev/sda2> is the second partition on the first "
1654 "device."
1655 msgstr ""
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:302
1659 msgid ""
1660 "If the I<--long> option is B<not> specified, then only the name column is "
1661 "shown in the output."
1662 msgstr ""
1663
1664 #. type: =item
1665 #: ../cat/virt-filesystems.pod:305
1666 msgid "B<Type>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:307
1671 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:309
1676 msgid "B<VFS>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:311
1681 msgid ""
1682 "If there is a filesystem, then this column displays the filesystem type if "
1683 "one could be detected, eg. C<ext4>."
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:314
1688 msgid "B<Label>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:316
1693 msgid ""
1694 "If the object has a label (used for identifying and mounting filesystems) "
1695 "then this column contains the label."
1696 msgstr ""
1697
1698 #. type: =item
1699 #: ../cat/virt-filesystems.pod:319
1700 msgid "B<MBR>"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../cat/virt-filesystems.pod:321
1705 msgid ""
1706 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1707 "comprehensive list of partition types can be found here: "
1708 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:325
1713 msgid "This is only applicable for DOS (MBR) partitions."
1714 msgstr ""
1715
1716 #. type: =item
1717 #: ../cat/virt-filesystems.pod:327
1718 msgid "B<Size>"
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../cat/virt-filesystems.pod:329
1723 msgid ""
1724 "The size of the object in bytes.  If the I<--human> option is used then the "
1725 "size is displayed in a human-readable form."
1726 msgstr ""
1727
1728 #. type: =item
1729 #: ../cat/virt-filesystems.pod:332
1730 msgid "B<Parent>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:334
1735 msgid ""
1736 "The parent column records the parent relationship between objects.  For "
1737 "example, if the object is a partition, then this column contains the name of "
1738 "the containing device.  If the object is a logical volume, then this column "
1739 "is the name of the volume group."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-filesystems.pod:339
1744 msgid "B<UUID>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:341
1749 msgid ""
1750 "If the object has a UUID (used for identifying and mounting filesystems and "
1751 "block devices) then this column contains the UUID as a string."
1752 msgstr ""
1753
1754 #. type: textblock
1755 #: ../cat/virt-filesystems.pod:345
1756 msgid "The UUID is only displayed if the I<--uuid> option is given."
1757 msgstr ""
1758
1759 #. type: =head1
1760 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:217
1761 msgid "NOTE ABOUT CSV FORMAT"
1762 msgstr ""
1763
1764 #. type: textblock
1765 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:219
1766 msgid ""
1767 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1768 "should be easy to parse, but it is definitely not easy to parse."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:222
1773 msgid ""
1774 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1775 "reliably.  This example has two columns:"
1776 msgstr ""
1777
1778 #. type: verbatim
1779 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:225
1780 #, no-wrap
1781 msgid ""
1782 " \"foo,bar\",baz\n"
1783 "\n"
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:227
1788 msgid ""
1789 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1790 "reliably.  This example has one row:"
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:230
1795 #, no-wrap
1796 msgid ""
1797 " \"foo\n"
1798 " bar\",baz\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:233
1804 msgid ""
1805 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1806 "packaged in major Linux distributions)."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:236
1811 msgid ""
1812 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1813 "or Python's built-in csv library)."
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:239
1818 msgid "Most spreadsheets and databases can import CSV directly."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-filesystems.pod:387
1823 msgid ""
1824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1825 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1826 "L<http://libguestfs.org/>."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1831 msgid "Copyright (C) 2010 Red Hat Inc."
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:5
1836 msgid "virt-ls - List files in a virtual machine"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:9
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls [--options] -d domname directory [directory ...]\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: verbatim
1848 #: ../cat/virt-ls.pod:11
1849 #, no-wrap
1850 msgid ""
1851 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1852 "...]\n"
1853 "\n"
1854 msgstr ""
1855
1856 #. type: textblock
1857 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1858 msgid "Old style:"
1859 msgstr ""
1860
1861 #. type: verbatim
1862 #: ../cat/virt-ls.pod:15
1863 #, no-wrap
1864 msgid ""
1865 " virt-ls [--options] domname directory\n"
1866 "\n"
1867 msgstr ""
1868
1869 #. type: verbatim
1870 #: ../cat/virt-ls.pod:17
1871 #, no-wrap
1872 msgid ""
1873 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1874 "\n"
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-ls.pod:21
1879 msgid ""
1880 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1881 "more from a virtual machine or disk image."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:24
1886 msgid ""
1887 "Multiple directory names can be given, in which case the output from each is "
1888 "concatenated."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:27
1893 msgid ""
1894 "To list directories from a libvirt guest use the I<-d> option to specify the "
1895 "name of the guest.  For a disk image, use the I<-a> option."
1896 msgstr ""
1897
1898 #. type: textblock
1899 #: ../cat/virt-ls.pod:31
1900 msgid ""
1901 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1902 "may need to use L<guestfish(1)>, or write a program directly to the "
1903 "L<guestfs(3)> API."
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:37
1908 msgid "Get a list of all files and directories in a virtual machine:"
1909 msgstr ""
1910
1911 #. type: verbatim
1912 #: ../cat/virt-ls.pod:39
1913 #, no-wrap
1914 msgid ""
1915 " virt-ls -R -d guest /\n"
1916 "\n"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
1921 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1922 msgstr ""
1923
1924 #. type: verbatim
1925 #: ../cat/virt-ls.pod:43
1926 #, no-wrap
1927 msgid ""
1928 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1929 "\n"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
1934 msgid "List all public-writable directories in a Linux virtual machine:"
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:47
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1942 "\n"
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
1947 msgid "List all Unix domain sockets in a Linux virtual machine:"
1948 msgstr ""
1949
1950 #. type: verbatim
1951 #: ../cat/virt-ls.pod:51
1952 #, no-wrap
1953 msgid ""
1954 " virt-ls -lR -d guest / | grep '^s'\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
1960 msgid "List all regular files with filenames ending in '.png':"
1961 msgstr ""
1962
1963 #. type: verbatim
1964 #: ../cat/virt-ls.pod:55
1965 #, no-wrap
1966 msgid ""
1967 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1968 "\n"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-ls.pod:57
1973 msgid "To display files larger than 10MB in home directories:"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../cat/virt-ls.pod:59
1978 #, no-wrap
1979 msgid ""
1980 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
1986 msgid "Find everything modified in the last 7 days:"
1987 msgstr ""
1988
1989 #. type: verbatim
1990 #: ../cat/virt-ls.pod:63
1991 #, no-wrap
1992 msgid ""
1993 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1994 "\n"
1995 msgstr ""
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
1999 msgid "Find regular files modified in the last 24 hours:"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:67
2004 #, no-wrap
2005 msgid ""
2006 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: =head2
2011 #: ../cat/virt-ls.pod:69
2012 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:71
2017 msgid ""
2018 "Find the differences between files in a guest and an earlier snapshot of the "
2019 "same guest."
2020 msgstr ""
2021
2022 #. type: verbatim
2023 #: ../cat/virt-ls.pod:74
2024 #, no-wrap
2025 msgid ""
2026 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2027 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2028 " diff -u old new | less\n"
2029 "\n"
2030 msgstr ""
2031
2032 #. type: textblock
2033 #: ../cat/virt-ls.pod:78
2034 msgid ""
2035 "The commands above won't find files where the content has changed but the "
2036 "metadata (eg. file size and modification date) is the same.  To do that, you "
2037 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2038 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2039 "of every regular file in the virtual machine."
2040 msgstr ""
2041
2042 #. type: =head1
2043 #: ../cat/virt-ls.pod:84
2044 msgid "OUTPUT MODES"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-ls.pod:86
2049 msgid ""
2050 "C<virt-ls> has four output modes, controlled by different combinations of "
2051 "the I<-l> and I<-R> options."
2052 msgstr ""
2053
2054 #. type: =head2
2055 #: ../cat/virt-ls.pod:89
2056 msgid "SIMPLE LISTING"
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:91
2061 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:93
2066 #, no-wrap
2067 msgid ""
2068 " $ virt-ls -d guest /\n"
2069 " bin\n"
2070 " boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../cat/virt-ls.pod:98
2077 msgid "LONG LISTING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:100
2082 msgid ""
2083 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2084 "(more specifically, like the C<guestfs_ll> function)."
2085 msgstr ""
2086
2087 #. type: verbatim
2088 #: ../cat/virt-ls.pod:103
2089 #, no-wrap
2090 msgid ""
2091 " $ virt-ls -l -d guest /\n"
2092 " total 204\n"
2093 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2094 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2095 " [etc.]\n"
2096 "\n"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-ls.pod:109
2101 msgid ""
2102 "Note that while this is useful for displaying a directory, do not try "
2103 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2104 "instead."
2105 msgstr ""
2106
2107 #. type: =head2
2108 #: ../cat/virt-ls.pod:113
2109 msgid "RECURSIVE LISTING"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-ls.pod:115
2114 msgid ""
2115 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2116 "and directories recursively:"
2117 msgstr ""
2118
2119 #. type: verbatim
2120 #: ../cat/virt-ls.pod:118
2121 #, no-wrap
2122 msgid ""
2123 " $ virt-ls -R -d guest /tmp\n"
2124 " foo\n"
2125 " foo/bar\n"
2126 " [etc.]\n"
2127 "\n"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-ls.pod:123
2132 msgid ""
2133 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2134 "converts C<\\0> characters to C<\\n>."
2135 msgstr ""
2136
2137 #. type: =head2
2138 #: ../cat/virt-ls.pod:126
2139 msgid "RECURSIVE LONG LISTING"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:128
2144 msgid ""
2145 "Using I<-lR> options together changes the output to display directories "
2146 "recursively, with file stats, and optionally other features such as "
2147 "checksums and extended attributes."
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:132
2152 msgid ""
2153 "Most of the interesting features of C<virt-ls> are only available when using "
2154 "I<-lR> mode."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:135
2159 msgid ""
2160 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2161 "you cannot use the output in another program (because filenames can contain "
2162 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2163 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2164 "on you by creating filenames with embedded newline characters.  To B<safely> "
2165 "parse the output in another program, use the I<--csv> (Comma-Separated "
2166 "Values) option."
2167 msgstr ""
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:143
2171 msgid ""
2172 "Note that this output format is completely unrelated to the C<ls -lR> "
2173 "command."
2174 msgstr ""
2175
2176 #. type: verbatim
2177 #: ../cat/virt-ls.pod:146
2178 #, no-wrap
2179 msgid ""
2180 " $ virt-ls -lR -d guest /bin\n"
2181 " d 0555       4096 /bin\n"
2182 " - 0755        123 /bin/alsaunmute\n"
2183 " - 0755      28328 /bin/arch\n"
2184 " l 0777          4 /bin/awk -> gawk\n"
2185 " - 0755      27216 /bin/basename\n"
2186 " - 0755     943360 /bin/bash\n"
2187 " [etc.]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:155
2193 msgid "These basic fields are always shown:"
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-ls.pod:159
2198 msgid "type"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:161
2203 msgid ""
2204 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2205 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2206 "link), C<s> (socket) or C<u> (unknown)."
2207 msgstr ""
2208
2209 #. type: =item
2210 #: ../cat/virt-ls.pod:171
2211 msgid "permissions"
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-ls.pod:173
2216 msgid "The Unix permissions, displayed as a 4 digit octal number."
2217 msgstr ""
2218
2219 #. type: =item
2220 #: ../cat/virt-ls.pod:175
2221 msgid "size"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:177
2226 msgid ""
2227 "The size of the file.  This is shown in bytes unless I<-h> or "
2228 "I<--human-readable> option is given, in which case this is shown as a "
2229 "human-readable number."
2230 msgstr ""
2231
2232 #. type: =head2
2233 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2234 msgid "path"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:183
2239 msgid "The full path of the file or directory."
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:185
2244 msgid "link"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:187
2249 msgid "For symbolic links only, the link target."
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:191
2254 msgid ""
2255 "In I<-lR> mode, additional command line options enable the display of more "
2256 "fields."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:194
2261 msgid ""
2262 "With the I<--uids> flag, these additional fields are displayed before the "
2263 "path:"
2264 msgstr ""
2265
2266 #. type: =item
2267 #: ../cat/virt-ls.pod:199
2268 msgid "uid"
2269 msgstr ""
2270
2271 #. type: =item
2272 #: ../cat/virt-ls.pod:201
2273 msgid "gid"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:203
2278 msgid ""
2279 "The UID and GID of the owner of the file (displayed numerically).  Note "
2280 "these only make sense in the context of a Unix-like guest."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:208
2285 msgid "With the I<--times> flag, these additional fields are displayed:"
2286 msgstr ""
2287
2288 #. type: =item
2289 #: ../cat/virt-ls.pod:212
2290 msgid "atime"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:214
2295 msgid "The time of last access."
2296 msgstr ""
2297
2298 #. type: =item
2299 #: ../cat/virt-ls.pod:216
2300 msgid "mtime"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../cat/virt-ls.pod:218
2305 msgid "The time of last modification."
2306 msgstr ""
2307
2308 #. type: =item
2309 #: ../cat/virt-ls.pod:220
2310 msgid "ctime"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:222
2315 msgid "The time of last status change."
2316 msgstr ""
2317
2318 #. type: textblock
2319 #: ../cat/virt-ls.pod:226
2320 msgid ""
2321 "The time fields are displayed as string dates and times, unless one of the "
2322 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:229
2327 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2328 msgstr ""
2329
2330 #. type: =item
2331 #: ../cat/virt-ls.pod:233
2332 msgid "device"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:235
2337 msgid ""
2338 "The device containing the file (displayed as major:minor).  This may not "
2339 "match devices as known to the guest."
2340 msgstr ""
2341
2342 #. type: =item
2343 #: ../cat/virt-ls.pod:238
2344 msgid "inode"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:240
2349 msgid "The inode number."
2350 msgstr ""
2351
2352 #. type: =item
2353 #: ../cat/virt-ls.pod:242
2354 msgid "nlink"
2355 msgstr ""
2356
2357 #. type: textblock
2358 #: ../cat/virt-ls.pod:244
2359 msgid "The number of hard links."
2360 msgstr ""
2361
2362 #. type: =item
2363 #: ../cat/virt-ls.pod:246
2364 msgid "rdev"
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../cat/virt-ls.pod:248
2369 msgid "For block and char special files, the device (displayed as major:minor)."
2370 msgstr ""
2371
2372 #. type: =item
2373 #: ../cat/virt-ls.pod:251
2374 msgid "blocks"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:253
2379 msgid "The number of 512 byte blocks allocated to the file."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:257
2384 msgid ""
2385 "With the I<--checksum> flag, the checksum of the file contents is shown "
2386 "(only for regular files).  Computing file checksums can take a considerable "
2387 "amount of time."
2388 msgstr ""
2389
2390 #. type: =item
2391 #: ../cat/virt-ls.pod:280
2392 msgid "B<--checksum>"
2393 msgstr ""
2394
2395 #. type: =item
2396 #: ../cat/virt-ls.pod:282
2397 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2398 msgstr ""
2399
2400 #. type: textblock
2401 #: ../cat/virt-ls.pod:284
2402 msgid ""
2403 "Display checksum over file contents for regular files.  With no argument, "
2404 "this defaults to using I<md5>.  Using an argument, you can select the "
2405 "checksum type to use."
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../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
2410 msgid ""
2411 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2412 "LISTING> above."
2413 msgstr ""
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:316
2417 msgid ""
2418 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2419 "so you cannot see what you are typing.  If you are not worried about Tempest "
2420 "attacks and there is no one else in the room you can specify this flag to "
2421 "see what you are typing."
2422 msgstr ""
2423
2424 #. type: =item
2425 #: ../cat/virt-ls.pod:321
2426 msgid "B<--extra-stats>"
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:323
2431 msgid "Display extra stats."
2432 msgstr ""
2433
2434 #. type: verbatim
2435 #: ../cat/virt-ls.pod:339
2436 #, no-wrap
2437 msgid ""
2438 " virt-ls --format=raw -a disk.img /dir\n"
2439 "\n"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:343
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:356
2452 msgid "Display file sizes in human-readable format."
2453 msgstr ""
2454
2455 #. type: =item
2456 #: ../cat/virt-ls.pod:370
2457 msgid "B<-R>"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:372
2462 msgid "B<--recursive>"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:374
2467 msgid ""
2468 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2469 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2470 "LISTING>."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:378
2475 msgid ""
2476 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2477 "L</LONG LISTING>."
2478 msgstr ""
2479
2480 #. type: textblock
2481 #: ../cat/virt-ls.pod:381
2482 msgid ""
2483 "C<virt-ls -R> produces a recursive list of files starting at the named "
2484 "directory.  See L</RECURSIVE LISTING>."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:384
2489 msgid ""
2490 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2491 "parsed.  See L</RECURSIVE LONG LISTING>."
2492 msgstr ""
2493
2494 #. type: =item
2495 #: ../cat/virt-ls.pod:387
2496 msgid "B<--times>"
2497 msgstr ""
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:389
2501 msgid "Display time fields."
2502 msgstr ""
2503
2504 #. type: =item
2505 #: ../cat/virt-ls.pod:394
2506 msgid "B<--time-days>"
2507 msgstr ""
2508
2509 #. type: textblock
2510 #: ../cat/virt-ls.pod:396
2511 msgid "Display time fields as days before now (negative if in the future)."
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:398
2516 msgid ""
2517 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2518 "of the file is between 0 and 86399 seconds."
2519 msgstr ""
2520
2521 #. type: =item
2522 #: ../cat/virt-ls.pod:404
2523 msgid "B<--time-relative>"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:406
2528 msgid "Display time fields as seconds before now (negative if in the future)."
2529 msgstr ""
2530
2531 #. type: =item
2532 #: ../cat/virt-ls.pod:411
2533 msgid "B<--time-t>"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:413
2538 msgid "Display time fields as seconds since the Unix epoch."
2539 msgstr ""
2540
2541 #. type: =item
2542 #: ../cat/virt-ls.pod:418
2543 msgid "B<--uids>"
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:420
2548 msgid "Display UID and GID fields."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:445
2553 msgid "Previous versions of virt-ls allowed you to write either:"
2554 msgstr ""
2555
2556 #. type: verbatim
2557 #: ../cat/virt-ls.pod:447
2558 #, no-wrap
2559 msgid ""
2560 " virt-ls disk.img [disk.img ...] /dir\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../cat/virt-ls.pod:451
2566 #, no-wrap
2567 msgid ""
2568 " virt-ls guestname /dir\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../cat/virt-ls.pod:497
2574 msgid ""
2575 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2576 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2577 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2578 msgstr ""
2579
2580 #. type: textblock
2581 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2582 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2583 msgstr ""
2584
2585 #. type: textblock
2586 #: ../clone/virt-sysprep.pod:5
2587 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../clone/virt-sysprep.pod:9
2592 #, no-wrap
2593 msgid ""
2594 " virt-sysprep [--options] -d domname\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: verbatim
2599 #: ../clone/virt-sysprep.pod:11
2600 #, no-wrap
2601 msgid ""
2602 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2603 "\n"
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:15
2608 msgid ""
2609 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2610 "can be made from it.  Steps in this process include removing SSH host keys, "
2611 "removing persistent network MAC configuration, and removing user accounts.  "
2612 "Each step can be enabled or disabled as required."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../clone/virt-sysprep.pod:21
2617 msgid ""
2618 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2619 "customization by the system administrator."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:24
2624 msgid ""
2625 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2626 "be shut down.  If you want to preserve the existing contents of the guest, "
2627 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2628 "below."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../clone/virt-sysprep.pod:29
2633 msgid ""
2634 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2635 "recommend that you don't.  The time you might want to run it as root is when "
2636 "you need root in order to access the disk image, but even in this case it "
2637 "would be better to change the permissions on the disk image to be writable "
2638 "as the non-root user running virt-sysprep."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../clone/virt-sysprep.pod:35
2643 msgid ""
2644 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2645 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2646 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2647 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2648 "Windows sysprepping in a future version, and we already have code to do it."
2649 msgstr ""
2650
2651 #. type: =item
2652 #: ../clone/virt-sysprep.pod:76
2653 msgid "B<--enable=...>"
2654 msgstr ""
2655
2656 #. type: textblock
2657 #: ../clone/virt-sysprep.pod:78
2658 msgid ""
2659 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2660 "operations, for example:"
2661 msgstr ""
2662
2663 #. type: verbatim
2664 #: ../clone/virt-sysprep.pod:81
2665 #, no-wrap
2666 msgid ""
2667 " --enable=ssh-hostkeys,udev-persistent-net\n"
2668 "\n"
2669 msgstr ""
2670
2671 #. type: textblock
2672 #: ../clone/virt-sysprep.pod:83
2673 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../clone/virt-sysprep.pod:85
2678 msgid ""
2679 "If the I<--enable> option is not given, then we default to trying all "
2680 "possible sysprep operations.  But some sysprep operations are skipped for "
2681 "some guest types."
2682 msgstr ""
2683
2684 #. type: textblock
2685 #: ../clone/virt-sysprep.pod:89
2686 msgid ""
2687 "Use I<--list-operations> to list operations supported by a particular "
2688 "version of virt-sysprep."
2689 msgstr ""
2690
2691 #. type: textblock
2692 #: ../clone/virt-sysprep.pod:92
2693 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2694 msgstr ""
2695
2696 #. type: verbatim
2697 #: ../clone/virt-sysprep.pod:106
2698 #, no-wrap
2699 msgid ""
2700 " virt-sysprep --format=raw -a disk.img\n"
2701 "\n"
2702 msgstr ""
2703
2704 #. type: verbatim
2705 #: ../clone/virt-sysprep.pod:110
2706 #, no-wrap
2707 msgid ""
2708 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2709 "\n"
2710 msgstr ""
2711
2712 #. type: =item
2713 #: ../clone/virt-sysprep.pod:119
2714 msgid "B<--hostname> newhostname"
2715 msgstr ""
2716
2717 #. type: textblock
2718 #: ../clone/virt-sysprep.pod:121
2719 msgid ""
2720 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2721 "defaults to C<localhost.localdomain>."
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../clone/virt-sysprep.pod:124
2726 msgid "B<--list-operations>"
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../clone/virt-sysprep.pod:126
2731 msgid "List the operations supported by the virt-sysprep program."
2732 msgstr ""
2733
2734 #. type: =item
2735 #: ../clone/virt-sysprep.pod:128
2736 msgid "B<--selinux-relabel>"
2737 msgstr ""
2738
2739 #. type: =item
2740 #: ../clone/virt-sysprep.pod:130
2741 msgid "B<--no-selinux-relabel>"
2742 msgstr ""
2743
2744 #. type: textblock
2745 #: ../clone/virt-sysprep.pod:132
2746 msgid ""
2747 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2748 "I<--no-selinux-relabel> disables relabelling."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../clone/virt-sysprep.pod:135
2753 msgid ""
2754 "The default is to try to detect if SELinux relabelling is required.  See "
2755 "L</SELINUX RELABELLING> below for more details."
2756 msgstr ""
2757
2758 #. type: =head1
2759 #: ../clone/virt-sysprep.pod:156
2760 msgid "OPERATIONS"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../clone/virt-sysprep.pod:158
2765 msgid ""
2766 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2767 "enabled>, although some are skipped depending on the type of guest."
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../clone/virt-sysprep.pod:162
2772 msgid ""
2773 "Operations can be individually enabled using the I<--enable> option.  Use a "
2774 "comma-separated list, for example:"
2775 msgstr ""
2776
2777 #. type: verbatim
2778 #: ../clone/virt-sysprep.pod:165
2779 #, no-wrap
2780 msgid ""
2781 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2782 "\n"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:167
2787 msgid ""
2788 "To list the operations supported by the current version of virt-sysprep, use "
2789 "I<--list-operations>."
2790 msgstr ""
2791
2792 #. type: textblock
2793 #: ../clone/virt-sysprep.pod:170
2794 msgid ""
2795 "Future versions of virt-sysprep may add more operations.  If you are using "
2796 "virt-sysprep and want predictable behaviour, specify only the operations "
2797 "that you want to have enabled."
2798 msgstr ""
2799
2800 #. type: =head2
2801 #: ../clone/virt-sysprep.pod:174
2802 msgid "cron-spool"
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../clone/virt-sysprep.pod:176
2807 msgid "Remove user at-jobs and cron-jobs."
2808 msgstr ""
2809
2810 #. type: =head2
2811 #: ../clone/virt-sysprep.pod:178
2812 msgid "dhcp-client-state"
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../clone/virt-sysprep.pod:180
2817 msgid "Remove DHCP client leases."
2818 msgstr ""
2819
2820 #. type: =head2
2821 #: ../clone/virt-sysprep.pod:182
2822 msgid "dhcp-server-state"
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../clone/virt-sysprep.pod:184
2827 msgid "Remove DHCP server leases."
2828 msgstr ""
2829
2830 #. type: =head2
2831 #: ../clone/virt-sysprep.pod:186
2832 msgid "hostname"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:188
2837 msgid ""
2838 "Changes the hostname of the guest to the value given in the I<--hostname> "
2839 "parameter."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../clone/virt-sysprep.pod:191
2844 msgid ""
2845 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2846 "C<localhost.localdomain>."
2847 msgstr ""
2848
2849 #. type: =head2
2850 #: ../clone/virt-sysprep.pod:194
2851 msgid "logfiles"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../clone/virt-sysprep.pod:196
2856 msgid "Remove many log files."
2857 msgstr ""
2858
2859 #. type: =head2
2860 #: ../clone/virt-sysprep.pod:198
2861 msgid "mail-spool"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../clone/virt-sysprep.pod:200
2866 msgid "Remove email from the local mail spool directory."
2867 msgstr ""
2868
2869 #. type: =head2
2870 #: ../clone/virt-sysprep.pod:202
2871 msgid "net-hwaddr"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../clone/virt-sysprep.pod:204
2876 msgid ""
2877 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2878 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../clone/virt-sysprep.pod:207
2883 msgid "random-seed"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../clone/virt-sysprep.pod:209
2888 msgid ""
2889 "Write some random bytes from the host into the random seed file of the "
2890 "guest."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../clone/virt-sysprep.pod:212
2895 msgid "See L</RANDOM SEED> below."
2896 msgstr ""
2897
2898 #. type: =head2
2899 #: ../clone/virt-sysprep.pod:214
2900 msgid "rhn-systemid"
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../clone/virt-sysprep.pod:216
2905 msgid "Remove the RHN system ID."
2906 msgstr ""
2907
2908 #. type: =head2
2909 #: ../clone/virt-sysprep.pod:218
2910 msgid "smolt-uuid"
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../clone/virt-sysprep.pod:220
2915 msgid "Remove the Smolt hardware UUID."
2916 msgstr ""
2917
2918 #. type: =head2
2919 #: ../clone/virt-sysprep.pod:222
2920 msgid "ssh-hostkeys"
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../clone/virt-sysprep.pod:224
2925 msgid "Remove the SSH host keys in the guest."
2926 msgstr ""
2927
2928 #. type: textblock
2929 #: ../clone/virt-sysprep.pod:226
2930 msgid ""
2931 "The SSH host keys are regenerated (differently) next time the guest is "
2932 "booted."
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../clone/virt-sysprep.pod:229
2937 msgid ""
2938 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2939 "stark warning about the host key changing:"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../clone/virt-sysprep.pod:232
2944 #, no-wrap
2945 msgid ""
2946 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2947 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2948 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2949 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2950 "\n"
2951 msgstr ""
2952
2953 #. type: =head2
2954 #: ../clone/virt-sysprep.pod:237
2955 msgid "udev-persistent-net"
2956 msgstr ""
2957
2958 #. type: textblock
2959 #: ../clone/virt-sysprep.pod:239
2960 msgid ""
2961 "Remove udev persistent net rules which map the guest's existing MAC address "
2962 "to a fixed ethernet device (eg. eth0)."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:242
2967 msgid ""
2968 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2969 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2970 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2971 "Erasing the udev persistent net rules avoids this."
2972 msgstr ""
2973
2974 #. type: =head2
2975 #: ../clone/virt-sysprep.pod:247
2976 msgid "utmp"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../clone/virt-sysprep.pod:249
2981 msgid "Remove the utmp file."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../clone/virt-sysprep.pod:251
2986 msgid ""
2987 "This records who is currently logged in on a machine.  In modern Linux "
2988 "distros it is stored in a ramdisk and hence not part of the virtual "
2989 "machine's disk, but it was stored on disk in older distros."
2990 msgstr ""
2991
2992 #. type: =head2
2993 #: ../clone/virt-sysprep.pod:255
2994 msgid "yum-uuid"
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../clone/virt-sysprep.pod:257
2999 msgid "Remove the yum UUID."
3000 msgstr ""
3001
3002 #. type: textblock
3003 #: ../clone/virt-sysprep.pod:259
3004 msgid ""
3005 "Yum creates a fresh UUID the next time it runs when it notices that the "
3006 "original UUID has been erased."
3007 msgstr ""
3008
3009 #. type: =head1
3010 #: ../clone/virt-sysprep.pod:262
3011 msgid "COPYING AND CLONING"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../clone/virt-sysprep.pod:264
3016 msgid ""
3017 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3018 "prepare a template from which guests can be cloned.  There are many "
3019 "different ways to achieve this using the virt tools, and this section is "
3020 "just an introduction."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:269
3025 msgid "A virtual machine (when switched off) consists of two parts:"
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../clone/virt-sysprep.pod:273
3030 msgid "I<configuration>"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:275
3035 msgid ""
3036 "The configuration or description of the guest.  eg. The libvirt XML (see "
3037 "C<virsh dumpxml>), the running configuration of the guest, or another "
3038 "external format like OVF."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:279
3043 msgid "Some configuration items that might need to be changed:"
3044 msgstr ""
3045
3046 #. type: textblock
3047 #: ../clone/virt-sysprep.pod:285
3048 msgid "name"
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3053 msgid "UUID"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../clone/virt-sysprep.pod:293
3058 msgid "path to block device(s)"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:297
3063 msgid "network card MAC address"
3064 msgstr ""
3065
3066 #. type: =item
3067 #: ../clone/virt-sysprep.pod:301
3068 msgid "I<block device(s)>"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../clone/virt-sysprep.pod:303
3073 msgid ""
3074 "One or more hard disk images, themselves containing files, directories, "
3075 "applications, kernels, configuration, etc."
3076 msgstr ""
3077
3078 #. type: textblock
3079 #: ../clone/virt-sysprep.pod:306
3080 msgid "Some things inside the block devices that might need to be changed:"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:312
3085 msgid "hostname and other net configuration"
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:320
3090 msgid "SSH host keys"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../clone/virt-sysprep.pod:324
3095 msgid "Windows unique security ID (SID)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:328
3100 msgid "Puppet registration"
3101 msgstr ""
3102
3103 #. type: =head2
3104 #: ../clone/virt-sysprep.pod:334
3105 msgid "COPYING THE BLOCK DEVICE"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../clone/virt-sysprep.pod:336
3110 msgid ""
3111 "Starting with an original guest, you probably wish to copy the guest block "
3112 "device and its configuration to make a template.  Then once you are happy "
3113 "with the template, you will want to make many clones from it."
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:341
3118 #, no-wrap
3119 msgid ""
3120 "                        virt-sysprep\n"
3121 "                             |\n"
3122 "                             v\n"
3123 " original guest --------> template ---------->\n"
3124 "                                      \\------> cloned\n"
3125 "                                       \\-----> guests\n"
3126 "                                        \\---->\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:349
3132 msgid ""
3133 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3134 "L<dd(1)>."
3135 msgstr ""
3136
3137 #. type: verbatim
3138 #: ../clone/virt-sysprep.pod:352
3139 #, no-wrap
3140 msgid ""
3141 "                   dd                 dd\n"
3142 " original guest --------> template ---------->\n"
3143 "                                      \\------> cloned\n"
3144 "                                       \\-----> guests\n"
3145 "                                        \\---->\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:358
3151 msgid "There are some smarter (and faster) ways too:"
3152 msgstr ""
3153
3154 #. type: verbatim
3155 #: ../clone/virt-sysprep.pod:364
3156 #, no-wrap
3157 msgid ""
3158 "                          snapshot\n"
3159 "                template ---------->\n"
3160 "                            \\------> cloned\n"
3161 "                             \\-----> guests\n"
3162 "                              \\---->\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:370
3168 msgid ""
3169 "Use the block device as a backing file and create a snapshot on top for each "
3170 "guest.  The advantage is that you don't need to copy the block device (very "
3171 "fast) and only changes are stored (less storage required)."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:375
3176 msgid ""
3177 "Note that writing to the backing file once you have created guests on top of "
3178 "it is not possible: you will corrupt the guests."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:378
3183 msgid ""
3184 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3185 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3186 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3187 "also create cheap snapshots from files or LUNs."
3188 msgstr ""
3189
3190 #. type: textblock
3191 #: ../clone/virt-sysprep.pod:386
3192 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:390
3197 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3198 msgstr ""
3199
3200 #. type: =head2
3201 #: ../clone/virt-sysprep.pod:394
3202 msgid "VIRT-CLONE"
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:396
3207 msgid ""
3208 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3209 "and/or modify the external libvirt configuration of a guest.  It will reset "
3210 "the name, UUID and MAC address of the guest in the libvirt XML."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:401
3215 msgid ""
3216 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3217 "image.  This was the original motivation to write virt-sysprep."
3218 msgstr ""
3219
3220 #. type: =head2
3221 #: ../clone/virt-sysprep.pod:404
3222 msgid "SPARSIFY"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../clone/virt-sysprep.pod:406
3227 #, no-wrap
3228 msgid ""
3229 "              virt-sparsify\n"
3230 " original guest --------> template\n"
3231 "\n"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../clone/virt-sysprep.pod:409
3236 msgid ""
3237 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3238 "it easier to compress and/or faster to copy."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:412
3243 msgid ""
3244 "Notice that since virt-sparsify also copies the image, you can use it to "
3245 "make the initial copy (instead of C<dd>)."
3246 msgstr ""
3247
3248 #. type: =head2
3249 #: ../clone/virt-sysprep.pod:415
3250 msgid "RESIZE"
3251 msgstr ""
3252
3253 #. type: verbatim
3254 #: ../clone/virt-sysprep.pod:417
3255 #, no-wrap
3256 msgid ""
3257 "                         virt-resize\n"
3258 "                template ---------->\n"
3259 "                            \\------> cloned\n"
3260 "                             \\-----> guests\n"
3261 "                              \\---->\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:423
3267 msgid ""
3268 "If you want to give people cloned guests, but let them pick the size of the "
3269 "guest themselves (eg. depending on how much they are prepared to pay for "
3270 "disk space), then instead of copying the template, you can run "
3271 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3272 "ideal for cloning guests from a template."
3273 msgstr ""
3274
3275 #. type: =head1
3276 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3277 msgid "SECURITY"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:431
3282 msgid ""
3283 "Although virt-sysprep removes some sensitive information from the guest, it "
3284 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3285 "above, and the implementation of the operations in the shell script.  You "
3286 "should also examine the guest afterwards."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:436
3291 msgid ""
3292 "Sensitive files are simply removed.  The data they contained may still exist "
3293 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3294 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3295 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3296 "inodes."
3297 msgstr ""
3298
3299 #. type: =head2
3300 #: ../clone/virt-sysprep.pod:442
3301 msgid "RANDOM SEED"
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:444
3306 msgid "I<(This section applies to Linux guests only)>"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../clone/virt-sysprep.pod:446
3311 msgid ""
3312 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3313 "from the host into the guest's random seed file."
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../clone/virt-sysprep.pod:449
3318 msgid ""
3319 "If this is just done once and the guest is cloned from the same template, "
3320 "then each guest will start with the same entropy, and things like SSH host "
3321 "keys and TCP sequence numbers may be predictable."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:453
3326 msgid ""
3327 "Therefore you should arrange to add more randomness I<after> cloning from a "
3328 "template too, which can be done by just enabling the C<random-seed> "
3329 "operation:"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../clone/virt-sysprep.pod:457
3334 #, no-wrap
3335 msgid ""
3336 " cp template.img newguest.img\n"
3337 " virt-sysprep --enable=random-seed -a newguest.img\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head2
3342 #: ../clone/virt-sysprep.pod:460
3343 msgid "SELINUX RELABELLING"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:462
3348 msgid "I<(This section applies to Linux guests using SELinux only)>"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:464
3353 msgid ""
3354 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3355 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3356 "next time the guest is booted.  This process interrupts boot and can take "
3357 "some time."
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:469
3362 msgid ""
3363 "You can force relabelling for all guests by supplying the "
3364 "I<--selinux-relabel> option."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:472
3369 msgid ""
3370 "You can disable relabelling entirely by supplying the "
3371 "I<--no-selinux-relabel> option."
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../clone/virt-sysprep.pod:484
3376 msgid "This program returns 0 on success, or 1 if there was an error."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:488
3381 msgid ""
3382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3383 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3384 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3385 "L<http://libvirt.org/>."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../df/virt-df.pod:5
3390 msgid "virt-df - Display free space on virtual filesystems"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:9
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options]\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:11
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] -d domname\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../df/virt-df.pod:13
3411 #, no-wrap
3412 msgid ""
3413 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../df/virt-df.pod:17
3419 #, no-wrap
3420 msgid ""
3421 " virt-df [--options] domname\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: verbatim
3426 #: ../df/virt-df.pod:19
3427 #, no-wrap
3428 msgid ""
3429 " virt-df [--options] disk.img [disk.img ...]\n"
3430 "\n"
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../df/virt-df.pod:23
3435 msgid ""
3436 "C<virt-df> is a command line tool to display free space on virtual machine "
3437 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3438 "allocated to a virtual machine, but can look inside disk images to see how "
3439 "much space is really being used."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../df/virt-df.pod:28
3444 msgid ""
3445 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3446 "to get a list of all active and inactive guests, and performs a C<df>-type "
3447 "operation on each one in turn, printing out the results."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../df/virt-df.pod:32
3452 msgid ""
3453 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3454 "C<df>-type operation on either the single named libvirt domain, or on the "
3455 "disk image(s) listed on the command line (which must all belong to a single "
3456 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3457 "single guest>.  If you want to run on multiple guests, then you have to "
3458 "invoke C<virt-df> multiple times."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../df/virt-df.pod:39
3463 msgid ""
3464 "Use the I<--csv> option to get a format which can be easily parsed by other "
3465 "programs.  Other options are similar to the standard L<df(1)> command."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../df/virt-df.pod:45
3470 msgid ""
3471 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3472 "output human-readable:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../df/virt-df.pod:48
3477 #, no-wrap
3478 msgid ""
3479 " # virt-df -d F14x64 -h\n"
3480 " Filesystem                       Size     Used  Available  Use%\n"
3481 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3482 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../df/virt-df.pod:53
3488 msgid "Show disk usage for a disk image file called C<test.img>:"
3489 msgstr ""
3490
3491 #. type: verbatim
3492 #: ../df/virt-df.pod:55
3493 #, no-wrap
3494 msgid ""
3495 " $ virt-df -a test1.img\n"
3496 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3497 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: verbatim
3502 #: ../df/virt-df.pod:112
3503 #, no-wrap
3504 msgid ""
3505 " virt-df --format=raw -a disk.img\n"
3506 "\n"
3507 msgstr ""
3508
3509 #. type: verbatim
3510 #: ../df/virt-df.pod:116
3511 #, no-wrap
3512 msgid ""
3513 " virt-df --format=raw -a disk.img --format -a another.img\n"
3514 "\n"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../df/virt-df.pod:129
3519 msgid "Print sizes in human-readable format."
3520 msgstr ""
3521
3522 #. type: textblock
3523 #: ../df/virt-df.pod:131
3524 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3525 msgstr ""
3526
3527 #. type: =item
3528 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3529 msgid "B<-i>"
3530 msgstr ""
3531
3532 #. type: =item
3533 #: ../df/virt-df.pod:135
3534 msgid "B<--inodes>"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../df/virt-df.pod:137
3539 msgid "Print inodes instead of blocks."
3540 msgstr ""
3541
3542 #. type: =item
3543 #: ../df/virt-df.pod:139
3544 msgid "B<--one-per-guest>"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../df/virt-df.pod:141
3549 msgid ""
3550 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3551 "disks from several guests to a single libguestfs appliance."
3552 msgstr ""
3553
3554 #. type: textblock
3555 #: ../df/virt-df.pod:144
3556 msgid "You might use this option in the following circumstances:"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:150
3561 msgid ""
3562 "If you think an untrusted guest might actively try to exploit the libguestfs "
3563 "appliance kernel, then this prevents one guest from interfering with the "
3564 "stats printed for another guest."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:156
3569 msgid ""
3570 "If the kernel has a bug which stops it from accessing a filesystem in one "
3571 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3572 "and report stats for further guests."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../df/virt-df.pod:165
3577 msgid ""
3578 "Print UUIDs instead of names.  This is useful for following a guest even "
3579 "when the guest is migrated or renamed, or when two guests happen to have the "
3580 "same name."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../df/virt-df.pod:169
3585 msgid ""
3586 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3587 "images, we still print the disk image name even when this option is "
3588 "specified."
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../df/virt-df.pod:191
3593 msgid "STATVFS NUMBERS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../df/virt-df.pod:193
3598 msgid ""
3599 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
3600 "call.  You can get the same information directly, either from the host "
3601 "(using libguestfs) or inside the guest:"
3602 msgstr ""
3603
3604 #. type: =item
3605 #: ../df/virt-df.pod:199
3606 msgid "From the host"
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
3611 msgid "Run this command:"
3612 msgstr ""
3613
3614 #. type: verbatim
3615 #: ../df/virt-df.pod:203
3616 #, no-wrap
3617 msgid ""
3618 " guestfish --ro -d GuestName -i statvfs /\n"
3619 "\n"
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
3624 msgid "(change C</> to see stats for other filesystems)."
3625 msgstr ""
3626
3627 #. type: =item
3628 #: ../df/virt-df.pod:207
3629 msgid "From inside the guest"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../df/virt-df.pod:211
3634 #, no-wrap
3635 msgid ""
3636 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
3637 "\n"
3638 msgstr ""
3639
3640 #. type: textblock
3641 #: ../df/virt-df.pod:255
3642 msgid ""
3643 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3644 "L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:5
3649 msgid "virt-edit - Edit a file in a virtual machine"
3650 msgstr ""
3651
3652 #. type: verbatim
3653 #: ../edit/virt-edit.pod:9
3654 #, no-wrap
3655 msgid ""
3656 " virt-edit [--options] -d domname file [file ...]\n"
3657 "\n"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../edit/virt-edit.pod:11
3662 #, no-wrap
3663 msgid ""
3664 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3665 "\n"
3666 msgstr ""
3667
3668 #. type: verbatim
3669 #: ../edit/virt-edit.pod:13
3670 #, no-wrap
3671 msgid ""
3672 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../edit/virt-edit.pod:17
3678 #, no-wrap
3679 msgid ""
3680 " virt-edit domname file\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: verbatim
3685 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3686 #, no-wrap
3687 msgid ""
3688 " virt-edit disk.img [disk.img ...] file\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: =head1
3693 #: ../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
3694 msgid "WARNING"
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../edit/virt-edit.pod:23
3699 msgid ""
3700 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3701 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3702 "doing this, but doesn't catch all cases."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:29
3707 msgid ""
3708 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3709 "exists in the named virtual machine (or disk image)."
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../edit/virt-edit.pod:32
3714 msgid ""
3715 "Multiple filenames can be given, in which case they are each edited in "
3716 "turn.  Each filename must be a full path, starting at the root directory "
3717 "(starting with '/')."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../edit/virt-edit.pod:36
3722 msgid "If you want to just view a file, use L<virt-cat(1)>."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:38
3727 msgid ""
3728 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3729 "L</USING GUESTFISH> below)."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:41
3734 msgid ""
3735 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3736 "that and much more."
3737 msgstr ""
3738
3739 #. type: textblock
3740 #: ../edit/virt-edit.pod:46
3741 msgid "Edit the named files interactively:"
3742 msgstr ""
3743
3744 #. type: verbatim
3745 #: ../edit/virt-edit.pod:48
3746 #, no-wrap
3747 msgid ""
3748 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:50
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit -d mydomain /etc/passwd\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../edit/virt-edit.pod:52
3762 msgid "For Windows guests, some Windows paths are understood:"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../edit/virt-edit.pod:54
3767 #, no-wrap
3768 msgid ""
3769 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3770 "\n"
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../edit/virt-edit.pod:56
3775 msgid ""
3776 "If Perl is installed, you can also edit files non-interactively (see "
3777 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../edit/virt-edit.pod:60
3782 #, no-wrap
3783 msgid ""
3784 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3785 "\n"
3786 msgstr ""
3787
3788 #. type: =item
3789 #: ../edit/virt-edit.pod:81
3790 msgid "B<-b> extension"
3791 msgstr ""
3792
3793 #. type: =item
3794 #: ../edit/virt-edit.pod:83
3795 msgid "B<--backup> extension"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../edit/virt-edit.pod:85
3800 msgid ""
3801 "Create a backup of the original file I<in the guest disk image>.  The backup "
3802 "has the original filename with C<extension> added."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../edit/virt-edit.pod:88
3807 msgid ""
3808 "Usually the first character of C<extension> would be a dot C<.> so you would "
3809 "write:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../edit/virt-edit.pod:91
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -b .orig [etc]\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../edit/virt-edit.pod:93
3822 msgid "By default, no backup file is made."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:105 ../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
3827 msgid "B<-c URI>"
3828 msgstr ""
3829
3830 #. type: =item
3831 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../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
3832 msgid "B<--connect URI>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../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
3837 msgid ""
3838 "If you specify guest block devices directly, then libvirt is not used at "
3839 "all."
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../edit/virt-edit.pod:114
3844 msgid ""
3845 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3846 "off so you cannot see what you are typing.  If you are not worried about "
3847 "Tempest attacks and there is no one else in the room you can specify this "
3848 "flag to see what you are typing."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../edit/virt-edit.pod:119
3853 msgid "B<-e> EXPR"
3854 msgstr ""
3855
3856 #. type: =item
3857 #: ../edit/virt-edit.pod:121
3858 msgid "B<--expr> EXPR"
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../edit/virt-edit.pod:123
3863 msgid ""
3864 "Instead of launching the external editor, non-interactively apply the Perl "
3865 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3866 "EDITING> below."
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../edit/virt-edit.pod:127
3871 msgid ""
3872 "Be careful to properly quote the expression to prevent it from being altered "
3873 "by the shell."
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../edit/virt-edit.pod:130
3878 msgid "Note that this option is only available when Perl 5 is installed."
3879 msgstr ""
3880
3881 #. type: =item
3882 #: ../edit/virt-edit.pod:132
3883 msgid "B<--format> raw|qcow2|..."
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../edit/virt-edit.pod:143
3888 #, no-wrap
3889 msgid ""
3890 " virt-edit --format=raw -a disk.img file\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:147
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:181
3904 msgid "Previous versions of virt-edit allowed you to write either:"
3905 msgstr ""
3906
3907 #. type: verbatim
3908 #: ../edit/virt-edit.pod:187
3909 #, no-wrap
3910 msgid ""
3911 " virt-edit guestname file\n"
3912 "\n"
3913 msgstr ""
3914
3915 #. type: =head1
3916 #: ../edit/virt-edit.pod:195
3917 msgid "NON-INTERACTIVE EDITING"
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../edit/virt-edit.pod:197
3922 msgid ""
3923 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3924 "administrator can interactively edit the file."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../edit/virt-edit.pod:200
3929 msgid ""
3930 "There are two ways also to use C<virt-edit> from scripts in order to make "
3931 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3932 "like this, it's less error-prone to write scripts directly using the "
3933 "libguestfs API and Augeas for configuration file editing.)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../edit/virt-edit.pod:206
3938 msgid ""
3939 "The first method is to temporarily set C<$EDITOR> to any script or program "
3940 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3941 "update C<tmpfile> in place however it likes."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../edit/virt-edit.pod:210
3946 msgid ""
3947 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3948 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3949 "instances of C<foo> with C<bar> in a file:"
3950 msgstr ""
3951
3952 #. type: verbatim
3953 #: ../edit/virt-edit.pod:214
3954 #, no-wrap
3955 msgid ""
3956 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3957 "\n"
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../edit/virt-edit.pod:216
3962 msgid ""
3963 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3964 "For example to delete root's password you could do:"
3965 msgstr ""
3966
3967 #. type: verbatim
3968 #: ../edit/virt-edit.pod:219
3969 #, no-wrap
3970 msgid ""
3971 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3972 "\n"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../edit/virt-edit.pod:221
3977 msgid ""
3978 "What really happens is that the snippet is evaluated as a Perl expression "
3979 "for each line of the file.  The line, including the final C<\\n>, is passed "
3980 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../edit/virt-edit.pod:226
3985 msgid ""
3986 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3987 "C<apache> user account from the password file you can do:"
3988 msgstr ""
3989
3990 #. type: verbatim
3991 #: ../edit/virt-edit.pod:229
3992 #, no-wrap
3993 msgid ""
3994 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../edit/virt-edit.pod:231
4000 msgid ""
4001 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4002 "the end of the file is rather difficult this way since there is no concept "
4003 "of \"last line of the file\" - your expression just doesn't get called "
4004 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4005 "want to do this."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:237
4010 msgid ""
4011 "The variable C<$lineno> contains the current line number.  As is "
4012 "traditional, the first line in the file is number C<1>."
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../edit/virt-edit.pod:240
4017 msgid ""
4018 "The return value from the expression is ignored, but the expression may call "
4019 "C<die> in order to abort the whole program, leaving the original file "
4020 "untouched."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:244
4025 msgid ""
4026 "Remember when matching the end of a line that C<$_> may contain the final "
4027 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4028 "newline then neither of these.  Thus to match or substitute some text at the "
4029 "end of a line, use this regular expression:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:249
4034 #, no-wrap
4035 msgid ""
4036 " /some text(\\r?\\n)?$/\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:251
4042 msgid ""
4043 "Alternately, use the perl C<chomp> function, being careful not to chomp "
4044 "C<$_> itself (since that would remove all newlines from the file):"
4045 msgstr ""
4046
4047 #. type: verbatim
4048 #: ../edit/virt-edit.pod:255
4049 #, no-wrap
4050 msgid ""
4051 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4052 "\n"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../edit/virt-edit.pod:259
4057 msgid ""
4058 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4059 "paths (eg. C<E:\\foo\\bar.txt>)."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:278
4064 msgid ""
4065 "The path is resolved case insensitively to locate the file that should be "
4066 "edited."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:299
4071 msgid ""
4072 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4073 "C<virt-edit> doesn't work."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:302
4078 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4079 msgstr ""
4080
4081 #. type: verbatim
4082 #: ../edit/virt-edit.pod:304
4083 #, no-wrap
4084 msgid ""
4085 " guestfish --rw -i -d domname edit /file\n"
4086 "\n"
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:306
4091 msgid ""
4092 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4093 "path to the file."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:309
4098 msgid ""
4099 "The command above uses libguestfs's guest inspection feature and so does not "
4100 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4101 "disk images that don't contain guests.  To edit a file on a disk image "
4102 "directly, use:"
4103 msgstr ""
4104
4105 #. type: verbatim
4106 #: ../edit/virt-edit.pod:314
4107 #, no-wrap
4108 msgid ""
4109 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4110 "\n"
4111 msgstr ""
4112
4113 #. type: textblock
4114 #: ../edit/virt-edit.pod:316
4115 msgid ""
4116 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4117 "the disk image to edit, and C</file> is the full path to the file."
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../edit/virt-edit.pod:320
4122 msgid ""
4123 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4124 "C<write> or C<upload> instead:"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:323
4129 #, no-wrap
4130 msgid ""
4131 " guestfish --rw -i -d domname touch /newfile\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: verbatim
4136 #: ../edit/virt-edit.pod:325
4137 #, no-wrap
4138 msgid ""
4139 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:327
4145 #, no-wrap
4146 msgid ""
4147 " guestfish --rw -i -d domname upload localfile /newfile\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:237 ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4153 msgid "ENVIRONMENT VARIABLES"
4154 msgstr ""
4155
4156 #. type: =item
4157 #: ../edit/virt-edit.pod:333
4158 msgid "C<EDITOR>"
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../edit/virt-edit.pod:335
4163 msgid ""
4164 "If set, this string is used as the editor.  It may contain arguments, "
4165 "eg. C<\"emacs -nw\">"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../edit/virt-edit.pod:338
4170 msgid "If not set, C<vi> is used."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:356
4175 msgid ""
4176 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4177 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4178 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../erlang/examples/guestfs-erlang.pod:5
4183 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4184 msgstr ""
4185
4186 #. type: verbatim
4187 #: ../erlang/examples/guestfs-erlang.pod:9
4188 #, no-wrap
4189 msgid ""
4190 " {ok, G} = guestfs:create(),\n"
4191 " ok = guestfs:add_drive_opts(G, Disk,\n"
4192 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4193 " ok = guestfs:launch(G),\n"
4194 " [Device] = guestfs:list_devices(G),\n"
4195 " ok = guestfs:close(G).\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../erlang/examples/guestfs-erlang.pod:18
4201 msgid ""
4202 "This manual page documents how to call libguestfs from the Erlang "
4203 "programming language.  This page just documents the differences from the C "
4204 "API and gives some examples.  If you are not familiar with using libguestfs, "
4205 "you also need to read L<guestfs(3)>."
4206 msgstr ""
4207
4208 #. type: =head2
4209 #: ../erlang/examples/guestfs-erlang.pod:23
4210 msgid "OPENING AND CLOSING THE HANDLE"
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../erlang/examples/guestfs-erlang.pod:25
4215 msgid ""
4216 "The Erlang bindings are implemented using an external program called "
4217 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4218 "should specify the full path to the program:"
4219 msgstr ""
4220
4221 #. type: verbatim
4222 #: ../erlang/examples/guestfs-erlang.pod:29
4223 #, no-wrap
4224 msgid ""
4225 " {ok, G} = guestfs:create().\n"
4226 "\n"
4227 msgstr ""
4228
4229 #. type: verbatim
4230 #: ../erlang/examples/guestfs-erlang.pod:31
4231 #, no-wrap
4232 msgid ""
4233 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4234 "\n"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../erlang/examples/guestfs-erlang.pod:33
4239 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../erlang/examples/guestfs-erlang.pod:36
4244 msgid "To close the handle:"
4245 msgstr ""
4246
4247 #. type: verbatim
4248 #: ../erlang/examples/guestfs-erlang.pod:38
4249 #, no-wrap
4250 msgid ""
4251 " ok = guestfs:close(G).\n"
4252 "\n"
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../erlang/examples/guestfs-erlang.pod:40
4257 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../erlang/examples/guestfs-erlang.pod:42
4262 msgid ""
4263 "For functions that take optional arguments, the first arguments are the "
4264 "non-optional ones.  The last argument is a list of tuples supplying the "
4265 "remaining optional arguments."
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../erlang/examples/guestfs-erlang.pod:46
4270 #, no-wrap
4271 msgid ""
4272 " ok = guestfs:add_drive_opts(G, Disk,\n"
4273 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../erlang/examples/guestfs-erlang.pod:49
4279 msgid "If the last argument would be an empty list, you can also omit it:"
4280 msgstr ""
4281
4282 #. type: verbatim
4283 #: ../erlang/examples/guestfs-erlang.pod:51
4284 #, no-wrap
4285 msgid ""
4286 " ok = guestfs:add_drive_opts(G, Disk).\n"
4287 "\n"
4288 msgstr ""
4289
4290 #. type: =head2
4291 #: ../erlang/examples/guestfs-erlang.pod:53
4292 msgid "RETURN VALUES AND ERRORS"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../erlang/examples/guestfs-erlang.pod:55
4297 msgid ""
4298 "On success, most functions return a C<Result> term (which could be a list, "
4299 "string, tuple etc.).  If there is nothing for the function to return, then "
4300 "the atom C<ok> is returned."
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../erlang/examples/guestfs-erlang.pod:59
4305 msgid "On error, you would see one of the following tuples:"
4306 msgstr ""
4307
4308 #. type: =item
4309 #: ../erlang/examples/guestfs-erlang.pod:63
4310 msgid "C<{error, Msg, Errno}>"
4311 msgstr ""
4312
4313 #. type: textblock
4314 #: ../erlang/examples/guestfs-erlang.pod:65
4315 msgid "This indicates an ordinary error from the function."
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../erlang/examples/guestfs-erlang.pod:67
4320 msgid ""
4321 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4322 "(integer)."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../erlang/examples/guestfs-erlang.pod:70
4327 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4328 msgstr ""
4329
4330 #. type: =item
4331 #: ../erlang/examples/guestfs-erlang.pod:72
4332 msgid "C<{unknown, Function}>"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../erlang/examples/guestfs-erlang.pod:74
4337 msgid ""
4338 "This indicates that the function you called is not known.  Generally this "
4339 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4340 "which you should not do."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../erlang/examples/guestfs-erlang.pod:78
4345 msgid "C<Function> is the name of the unknown function."
4346 msgstr ""
4347
4348 #. type: =item
4349 #: ../erlang/examples/guestfs-erlang.pod:80
4350 msgid "C<{unknownarg, Arg}>"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../erlang/examples/guestfs-erlang.pod:82
4355 msgid ""
4356 "This indicates that you called a function with optional arguments, with an "
4357 "unknown argument name."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../erlang/examples/guestfs-erlang.pod:85
4362 msgid "C<Arg> is the name of the unknown argument."
4363 msgstr ""
4364
4365 #. type: =head1
4366 #: ../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
4367 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../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
4372 msgid "@EXAMPLE1@"
4373 msgstr ""
4374
4375 #. type: =head1
4376 #: ../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
4377 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../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
4382 msgid "@EXAMPLE2@"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../erlang/examples/guestfs-erlang.pod:99
4387 msgid ""
4388 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4389 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4390 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4391 "L<http://libguestfs.org/>."
4392 msgstr ""
4393
4394 #. type: =head1
4395 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296 ../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:328 ../inspector/virt-inspector.pod:404 ../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:3354 ../test-tool/libguestfs-test-tool.pod:106
4396 msgid "AUTHORS"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298 ../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:330 ../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:3356 ../test-tool/libguestfs-test-tool.pod:108
4401 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4406 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../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
4411 msgid ""
4412 "The examples in this manual page may be freely copied, modified and "
4413 "distributed without any restrictions."
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../examples/guestfs-testing.pod:306 ../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:3363
4418 msgid ""
4419 "This library is free software; you can redistribute it and/or modify it "
4420 "under the terms of the GNU Lesser General Public License as published by the "
4421 "Free Software Foundation; either version 2 of the License, or (at your "
4422 "option) any later version."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../examples/guestfs-testing.pod:311 ../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:3368
4427 msgid ""
4428 "This library is distributed in the hope that it will be useful, but WITHOUT "
4429 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4430 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4431 "for more details."
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../examples/guestfs-testing.pod:316 ../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:3373
4436 msgid ""
4437 "You should have received a copy of the GNU Lesser General Public License "
4438 "along with this library; if not, write to the Free Software Foundation, "
4439 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../examples/guestfs-examples.pod:5
4444 msgid "guestfs-examples - Examples of using libguestfs from C"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4449 #, no-wrap
4450 msgid ""
4451 " #include <guestfs.h>\n"
4452 " \n"
4453 msgstr ""
4454
4455 #. type: verbatim
4456 #: ../examples/guestfs-examples.pod:11
4457 #, no-wrap
4458 msgid ""
4459 " guestfs_h *g = guestfs_create ();\n"
4460 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4461 " guestfs_launch (g);\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: verbatim
4466 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4467 #, no-wrap
4468 msgid ""
4469 " cc prog.c -o prog -lguestfs\n"
4470 "or:\n"
4471 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../examples/guestfs-examples.pod:21
4477 msgid ""
4478 "This manual page contains examples of calling libguestfs from the C "
4479 "programming language.  If you are not familiar with using libguestfs, you "
4480 "also need to read L<guestfs(3)>."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../examples/guestfs-examples.pod:35
4485 msgid ""
4486 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4487 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4488 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4493 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4494 msgstr ""
4495
4496 #. type: =end
4497 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4498 msgid "comment"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:5
4503 msgid ""
4504 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4505 "here.  The only way which works for both sorts of output is to just write "
4506 "the URL directly.  Do NOT use L<...> for URLs."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../examples/guestfs-recipes.pod:9
4511 msgid ""
4512 "We break with tradition here and don't use ALL CAPS for the section "
4513 "headings, as this makes them much easier to read."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../examples/guestfs-recipes.pod:16
4518 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../examples/guestfs-recipes.pod:20
4523 msgid ""
4524 "This page contains recipes for and links to things you can do using "
4525 "libguestfs, L<guestfish(1)> and the virt tools."
4526 msgstr ""
4527
4528 #. type: =head1
4529 #: ../examples/guestfs-recipes.pod:23
4530 msgid "Audit a virtual machine for setuid files"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../examples/guestfs-recipes.pod:25
4535 msgid ""
4536 "The link below contains a small program which can be used to audit a Linux "
4537 "virtual machine to see what setuid and setgid files it contains."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../examples/guestfs-recipes.pod:28
4542 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4543 msgstr ""
4544
4545 #. type: =head1
4546 #: ../examples/guestfs-recipes.pod:30
4547 msgid "Change the background image in a Windows XP VM"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../examples/guestfs-recipes.pod:32
4552 msgid ""
4553 "The links below explain how to use L<guestfish(1)> to change the background "
4554 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4555 "be substantially different for each version of Windows."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../examples/guestfs-recipes.pod:37
4560 msgid ""
4561 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4562 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4563 msgstr ""
4564
4565 #. type: =head1
4566 #: ../examples/guestfs-recipes.pod:40
4567 msgid "Cloning a virtual machine (Linux)"
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../examples/guestfs-recipes.pod:42
4572 msgid ""
4573 "The guestfish technique described in the link below works well for most "
4574 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4575 "slightly."
4576 msgstr ""
4577
4578 #. type: textblock
4579 #: ../examples/guestfs-recipes.pod:46
4580 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../examples/guestfs-recipes.pod:48
4585 msgid ""
4586 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4587 "discussion."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../examples/guestfs-recipes.pod:51
4592 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4593 msgstr ""
4594
4595 #. type: =head1
4596 #: ../examples/guestfs-recipes.pod:53
4597 msgid "Cloning a virtual machine (Windows)"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../examples/guestfs-recipes.pod:55
4602 msgid ""
4603 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4604 "straightforward.  Currently there is code in the Aeolus Oz project which "
4605 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4606 "we may add sysprepping ability."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../examples/guestfs-recipes.pod:60
4611 msgid ""
4612 "https://github.com/clalancette/oz "
4613 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4614 msgstr ""
4615
4616 #. type: =head1
4617 #: ../examples/guestfs-recipes.pod:63
4618 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../examples/guestfs-recipes.pod:65
4623 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4624 msgstr ""
4625
4626 #. type: verbatim
4627 #: ../examples/guestfs-recipes.pod:67
4628 #, no-wrap
4629 msgid ""
4630 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4631 "\n"
4632 msgstr ""
4633
4634 #. type: textblock
4635 #: ../examples/guestfs-recipes.pod:69
4636 msgid "To export just a subdirectory, eg. C</files>, do:"
4637 msgstr ""
4638
4639 #. type: verbatim
4640 #: ../examples/guestfs-recipes.pod:71
4641 #, no-wrap
4642 msgid ""
4643 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4644 "\n"
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../examples/guestfs-recipes.pod:73
4649 msgid "Create empty disk images"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:75
4654 msgid ""
4655 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4656 "The useful guide below explains the options available."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:78
4661 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4662 msgstr ""
4663
4664 #. type: =head1
4665 #: ../examples/guestfs-recipes.pod:80
4666 msgid "Dump raw filesystem content from inside a disk image or VM"
4667 msgstr ""
4668
4669 #. type: textblock
4670 #: ../examples/guestfs-recipes.pod:82
4671 msgid ""
4672 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4673 "filesystem content from any filesystem in a disk image or a VM (even one "
4674 "which is encrypted or buried inside an LV):"
4675 msgstr ""
4676
4677 #. type: verbatim
4678 #: ../examples/guestfs-recipes.pod:86
4679 #, no-wrap
4680 msgid ""
4681 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../examples/guestfs-recipes.pod:88
4687 #, no-wrap
4688 msgid ""
4689 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../examples/guestfs-recipes.pod:90
4695 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4696 msgstr ""
4697
4698 #. type: =head1
4699 #: ../examples/guestfs-recipes.pod:92
4700 msgid "Edit grub configuration in a VM"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../examples/guestfs-recipes.pod:94
4705 msgid "You can use this to:"
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:100
4710 msgid "Fix a virtual machine that does not boot."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:104
4715 msgid "Change which kernel is used to boot the VM."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../examples/guestfs-recipes.pod:108
4720 msgid "Change kernel command line options."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../examples/guestfs-recipes.pod:112
4725 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../examples/guestfs-recipes.pod:114
4730 #, no-wrap
4731 msgid ""
4732 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../examples/guestfs-recipes.pod:116
4738 msgid ""
4739 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4740 "this:"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../examples/guestfs-recipes.pod:119
4745 #, no-wrap
4746 msgid ""
4747 " virt-rescue -d BrokenGuest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../examples/guestfs-recipes.pod:121
4753 msgid "Export any directory from a VM"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../examples/guestfs-recipes.pod:123
4758 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4759 msgstr ""
4760
4761 #. type: verbatim
4762 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
4763 #, no-wrap
4764 msgid ""
4765 " virt-copy-out -d Guest /home .\n"
4766 "\n"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715 ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685 ../tools/virt-win-reg.pl:717
4771 msgid "Notes:"
4772 msgstr ""
4773
4774 #. type: textblock
4775 #: ../examples/guestfs-recipes.pod:134
4776 msgid ""
4777 "The final dot of the command is not a printing error.  It means we want to "
4778 "copy out to the current directory."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../examples/guestfs-recipes.pod:139
4783 msgid "This creates a directory called C<home> under the current directory."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../examples/guestfs-recipes.pod:143
4788 msgid ""
4789 "If the guest is a Windows guest then you can use drive letters and "
4790 "backslashes, but you must prefix the path with C<win:> and quote it to "
4791 "protect it from the shell, like this:"
4792 msgstr ""
4793
4794 #. type: verbatim
4795 #: ../examples/guestfs-recipes.pod:147
4796 #, no-wrap
4797 msgid ""
4798 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4799 "\n"
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../examples/guestfs-recipes.pod:149
4804 msgid "To get the output as a compressed tarball, do:"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../examples/guestfs-recipes.pod:151
4809 #, no-wrap
4810 msgid ""
4811 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../examples/guestfs-recipes.pod:153
4817 msgid ""
4818 "Although it sounds tempting, this is usually not a reliable way to get a "
4819 "backup from a running guest.  See the entry in the FAQ: "
4820 "http://libguestfs.org/FAQ.html#backup"
4821 msgstr ""
4822
4823 #. type: =head1
4824 #: ../examples/guestfs-recipes.pod:157
4825 msgid "Find out which user is using the most space"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../examples/guestfs-recipes.pod:159
4830 msgid ""
4831 "This simple script examines a Linux guest to find out which user is using "
4832 "the most space in their home directory:"
4833 msgstr ""
4834
4835 #. type: verbatim
4836 #: ../examples/guestfs-recipes.pod:162
4837 #, no-wrap
4838 msgid ""
4839 " #!/bin/sh -\n"
4840 " \n"
4841 msgstr ""
4842
4843 #. type: verbatim
4844 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4845 #, no-wrap
4846 msgid ""
4847 " set -e\n"
4848 " \n"
4849 msgstr ""
4850
4851 #. type: verbatim
4852 #: ../examples/guestfs-recipes.pod:166
4853 #, no-wrap
4854 msgid ""
4855 " vm=\"$1\"\n"
4856 " dir=/home\n"
4857 " \n"
4858 msgstr ""
4859
4860 #. type: verbatim
4861 #: ../examples/guestfs-recipes.pod:169
4862 #, no-wrap
4863 msgid ""
4864 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4865 " \n"
4866 msgstr ""
4867
4868 #. type: verbatim
4869 #: ../examples/guestfs-recipes.pod:171
4870 #, no-wrap
4871 msgid ""
4872 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4873 "     echo -n \"$dir/$d\"\n"
4874 "     echo -ne '\\t'\n"
4875 "     guestfish --remote du \"$dir/$d\";\n"
4876 " done | sort -nr -k 2\n"
4877 " \n"
4878 msgstr ""
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4882 #, no-wrap
4883 msgid ""
4884 " guestfish --remote exit\n"
4885 "\n"
4886 msgstr ""
4887
4888 #. type: =head1
4889 #: ../examples/guestfs-recipes.pod:179
4890 msgid "Get DHCP address from a VM"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../examples/guestfs-recipes.pod:181
4895 msgid ""
4896 "The link below explains the many different possible techniques for getting "
4897 "the last assigned DHCP address of a virtual machine."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../examples/guestfs-recipes.pod:184
4902 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../examples/guestfs-recipes.pod:186
4907 msgid ""
4908 "In the libguestfs source examples directory you will find the latest version "
4909 "of the C<virt-dhcp-address.c> program."
4910 msgstr ""
4911
4912 #. type: =head1
4913 #: ../examples/guestfs-recipes.pod:189
4914 msgid "Get the operating system product name string"
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../examples/guestfs-recipes.pod:191
4919 msgid "Save the following script into a file called C<product-name.sh>:"
4920 msgstr ""
4921
4922 #. type: verbatim
4923 #: ../examples/guestfs-recipes.pod:193
4924 #, no-wrap
4925 msgid ""
4926 " #!/bin/sh -\n"
4927 " set -e\n"
4928 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4929 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4930 " guestfish --remote inspect-get-product-name \"$root\"\n"
4931 " guestfish --remote exit\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../examples/guestfs-recipes.pod:200
4937 msgid "Make the script executable and run it on a named guest:"
4938 msgstr ""
4939
4940 #. type: verbatim
4941 #: ../examples/guestfs-recipes.pod:202
4942 #, no-wrap
4943 msgid ""
4944 " # product-name.sh RHEL60x64\n"
4945 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4946 "\n"
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:205
4951 msgid ""
4952 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4953 "C<xpath> command line tool or from your favourite programming language:"
4954 msgstr ""
4955
4956 #. type: verbatim
4957 #: ../examples/guestfs-recipes.pod:209
4958 #, no-wrap
4959 msgid ""
4960 " # virt-inspector RHEL60x64 > xml\n"
4961 " # xpath '//product_name' < xml\n"
4962 " Found 1 nodes:\n"
4963 " -- NODE --\n"
4964 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4965 "(Santiago)</product_name>\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: =head1
4970 #: ../examples/guestfs-recipes.pod:215
4971 msgid "Get the default boot kernel for a Linux VM"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-recipes.pod:217
4976 msgid ""
4977 "The link below contains a program to print the default boot kernel for a "
4978 "Linux VM."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../examples/guestfs-recipes.pod:220
4983 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../examples/guestfs-recipes.pod:222
4988 msgid ""
4989 "It uses Augeas, and the technique is generally applicable for many different "
4990 "tasks, such as:"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:229
4995 msgid "listing the user accounts in the guest"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:233
5000 msgid "what repositories is it configured to use"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:237
5005 msgid "what NTP servers does it connect to"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:241
5010 msgid "what were the boot messages last time it booted"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:245
5015 msgid "listing who was logged in recently"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:249
5020 msgid "http://augeas.net/"
5021 msgstr ""
5022
5023 #. type: =head1
5024 #: ../examples/guestfs-recipes.pod:251
5025 msgid "Install RPMs in a guest"
5026 msgstr ""
5027
5028 #. type: textblock
5029 #: ../examples/guestfs-recipes.pod:253
5030 msgid ""
5031 "The link below contains a method to install RPMs in a guest.  In fact the "
5032 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5033 "installs them next time the guest is booted.  You could use this technique "
5034 "to install vital security updates in an offline guest."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:259
5039 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5040 msgstr ""
5041
5042 #. type: =head1
5043 #: ../examples/guestfs-recipes.pod:261
5044 msgid "List applications installed in a VM"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:263
5049 msgid "Save the following to a file C<list-apps.sh>:"
5050 msgstr ""
5051
5052 #. type: verbatim
5053 #: ../examples/guestfs-recipes.pod:265
5054 #, no-wrap
5055 msgid ""
5056 " #!/bin/sh -\n"
5057 " set -e\n"
5058 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5059 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5060 " guestfish --remote inspect-list-applications \"$root\"\n"
5061 " guestfish --remote exit\n"
5062 "\n"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../examples/guestfs-recipes.pod:272
5067 msgid ""
5068 "Make the file executable and then you can run it on any named virtual "
5069 "machine:"
5070 msgstr ""
5071
5072 #. type: verbatim
5073 #: ../examples/guestfs-recipes.pod:275
5074 #, no-wrap
5075 msgid ""
5076 " # list-apps.sh WinGuest\n"
5077 " [0] = {\n"
5078 "   app_name: Mozilla Firefox (3.6.12)\n"
5079 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5080 "   app_epoch: 0\n"
5081 "   app_version: 3.6.12 (en-GB)\n"
5082 "   app_release:\n"
5083 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5084 "   app_trans_path:\n"
5085 "   app_publisher: Mozilla\n"
5086 "   app_url: http://www.mozilla.com/en-GB/\n"
5087 "   app_source_package:\n"
5088 "   app_summary:\n"
5089 "   app_description: Mozilla Firefox\n"
5090 " }\n"
5091 " [1] = {\n"
5092 "   app_name: VLC media player\n"
5093 "   app_display_name: VLC media player 1.1.5\n"
5094 "   app_epoch: 0\n"
5095 "   app_version: 1.1.5\n"
5096 "   app_release:\n"
5097 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5098 "   app_trans_path:\n"
5099 "   app_publisher: VideoLAN\n"
5100 "   app_url: http://www.videolan.org/\n"
5101 "   app_source_package:\n"
5102 "   app_summary:\n"
5103 "   app_description:\n"
5104 " }\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:305
5110 msgid ""
5111 "If you want to run the script on disk images (instead of libvirt virtual "
5112 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5113 "L<virt-inspector(1)>."
5114 msgstr ""
5115
5116 #. type: =head1
5117 #: ../examples/guestfs-recipes.pod:309
5118 msgid "List files and directories in a VM"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../examples/guestfs-recipes.pod:311
5123 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5124 msgstr ""
5125
5126 #. type: verbatim
5127 #: ../examples/guestfs-recipes.pod:313
5128 #, no-wrap
5129 msgid ""
5130 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5131 "\n"
5132 msgstr ""
5133
5134 #. type: =head1
5135 #: ../examples/guestfs-recipes.pod:315
5136 msgid "List services in a Windows VM"
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../examples/guestfs-recipes.pod:317
5141 msgid ""
5142 "The link below contains a script that can be used to list out the services "
5143 "from a Windows VM, and whether those services run at boot time or are loaded "
5144 "on demand."
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../examples/guestfs-recipes.pod:321
5149 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5150 msgstr ""
5151
5152 #. type: =head1
5153 #: ../examples/guestfs-recipes.pod:323
5154 msgid "Make a disk image sparse"
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../examples/guestfs-recipes.pod:325
5159 msgid ""
5160 "The link below contains some guides for making a disk image sparse (or "
5161 "reintroducing sparseness)."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../examples/guestfs-recipes.pod:328
5166 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5167 msgstr ""
5168
5169 #. type: =head1
5170 #: ../examples/guestfs-recipes.pod:330
5171 msgid "Monitor disk usage over time"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../examples/guestfs-recipes.pod:332
5176 msgid ""
5177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5178 "The link below contains a guide."
5179 msgstr ""
5180
5181 #. type: textblock
5182 #: ../examples/guestfs-recipes.pod:335
5183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:337
5188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:339
5193 msgid ""
5194 "L<guestfish(1)> plus the tools described in the link below can be used to "
5195 "read out the Windows Event Log from any virtual machine running Windows "
5196 "Vista or a later version."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:343
5201 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5202 msgstr ""
5203
5204 #. type: =head1
5205 #: ../examples/guestfs-recipes.pod:345
5206 msgid "Remove root password (Linux)"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../examples/guestfs-recipes.pod:347
5211 msgid ""
5212 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5213 "files.  One use is to remove the root password from a Linux guest:"
5214 msgstr ""
5215
5216 #. type: verbatim
5217 #: ../examples/guestfs-recipes.pod:350
5218 #, no-wrap
5219 msgid ""
5220 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5221 "\n"
5222 msgstr ""
5223
5224 #. type: =head1
5225 #: ../examples/guestfs-recipes.pod:352
5226 msgid "Remove Administrator password (Windows)"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:354
5231 msgid ""
5232 "The link below contains one technique for removing the Administrator "
5233 "password from a Windows VM, or to be more precise, it gives you a command "
5234 "prompt the next time you log in which you can use to bypass any security:"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../examples/guestfs-recipes.pod:359
5239 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5240 msgstr ""
5241
5242 #. type: =head1
5243 #: ../examples/guestfs-recipes.pod:361
5244 msgid "Unpack a live CD"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:363
5249 msgid ""
5250 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5251 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5252 "layers, as outlined in the guide below."
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../examples/guestfs-recipes.pod:367
5257 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5258 msgstr ""
5259
5260 #. type: =head1
5261 #: ../examples/guestfs-recipes.pod:369
5262 msgid "Uploading and downloading files"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../examples/guestfs-recipes.pod:371
5267 msgid ""
5268 "The link below contains general tips on uploading (copying in)  and "
5269 "downloading (copying out) files from VMs."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../examples/guestfs-recipes.pod:374
5274 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5275 msgstr ""
5276
5277 #. type: =head1
5278 #: ../examples/guestfs-recipes.pod:376
5279 msgid "Use libguestfs tools on VMware ESX guests"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:378
5284 msgid ""
5285 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5286 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5287 msgstr ""
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:382
5291 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:386
5296 msgid ""
5297 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5298 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5299 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5300 "L<http://libguestfs.org/>."
5301 msgstr ""
5302
5303 #. type: textblock
5304 #: ../examples/guestfs-recipes.pod:403
5305 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../examples/guestfs-testing.pod:5
5310 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../examples/guestfs-testing.pod:9
5315 msgid ""
5316 "This page has manual tests you can try on libguestfs.  Everyone has a "
5317 "slightly different combination of platform, hardware and guests, so this "
5318 "testing is very valuable.  Thanks for helping out!"
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-testing.pod:13
5323 msgid "These tests require libguestfs E<ge> 1.14."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-testing.pod:15
5328 msgid ""
5329 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5330 "careful.  The others are safe and won't modify anything."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-testing.pod:18
5335 msgid "You can report bugs you find through this link:"
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-testing.pod:20
5340 msgid "https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-testing.pod:22
5345 msgid ""
5346 "or post on the mailing list (registration is B<not> required, but if you're "
5347 "not registered then you'll have to wait for a moderator to manually approve "
5348 "your message):"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../examples/guestfs-testing.pod:26
5353 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5354 msgstr ""
5355
5356 #. type: =head1
5357 #: ../examples/guestfs-testing.pod:28
5358 msgid "TESTS"
5359 msgstr ""
5360
5361 #. type: =head2
5362 #: ../examples/guestfs-testing.pod:30
5363 msgid "Check KVM acceleration is being used."
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../examples/guestfs-testing.pod:32
5368 msgid ""
5369 "If your host has hardware virt acceleration, then with a hot cache "
5370 "libguestfs should be able to start up in a few seconds.  Run the following "
5371 "command a few times:"
5372 msgstr ""
5373
5374 #. type: verbatim
5375 #: ../examples/guestfs-testing.pod:36
5376 #, no-wrap
5377 msgid ""
5378 " time guestfish -a /dev/null run\n"
5379 "\n"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../examples/guestfs-testing.pod:38
5384 msgid ""
5385 "After a few runs, the time should settle down to a few seconds (under 5 "
5386 "seconds on fast 64 bit hardware)."
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../examples/guestfs-testing.pod:41
5391 msgid "How to check for hardware virt:"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-testing.pod:43
5396 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-testing.pod:45
5401 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5402 msgstr ""
5403
5404 #. type: =head2
5405 #: ../examples/guestfs-testing.pod:48
5406 msgid "Run virt-alignment-scan on all your guests."
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../examples/guestfs-testing.pod:50
5411 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5412 msgstr ""
5413
5414 #. type: verbatim
5415 #: ../examples/guestfs-testing.pod:52
5416 #, no-wrap
5417 msgid ""
5418 " virt-alignment-scan -a /path/to/disk.img\n"
5419 "\n"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 ../src/guestfs.pod:2792
5424 msgid "or:"
5425 msgstr ""
5426
5427 #. type: verbatim
5428 #: ../examples/guestfs-testing.pod:56
5429 #, no-wrap
5430 msgid ""
5431 " virt-alignment-scan -d Guest\n"
5432 "\n"
5433 msgstr ""
5434
5435 #. type: textblock
5436 #: ../examples/guestfs-testing.pod:58
5437 msgid "Does the alignment report match how the guest partitions are aligned?"
5438 msgstr ""
5439
5440 #. type: =head2
5441 #: ../examples/guestfs-testing.pod:60
5442 msgid "Run virt-cat on some files in guests."
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../examples/guestfs-testing.pod:62
5447 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5448 msgstr ""
5449
5450 #. type: verbatim
5451 #: ../examples/guestfs-testing.pod:64
5452 #, no-wrap
5453 msgid ""
5454 " virt-cat LinuxGuest /etc/passwd\n"
5455 "\n"
5456 msgstr ""
5457
5458 #. type: textblock
5459 #: ../examples/guestfs-testing.pod:66
5460 msgid "A recent feature is support for Windows paths, for example:"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../examples/guestfs-testing.pod:68
5465 #, no-wrap
5466 msgid ""
5467 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../examples/guestfs-testing.pod:70
5473 msgid ""
5474 "An even better test is if you have a Windows guest with multiple drives.  Do "
5475 "C<D:>, C<E:> etc paths work correctly?"
5476 msgstr ""
5477
5478 #. type: =head2
5479 #: ../examples/guestfs-testing.pod:73
5480 msgid "B<*> Copy some files into a B<shut off> guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-testing.pod:75
5485 msgid ""
5486 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5487 "or disk image."
5488 msgstr ""
5489
5490 #. type: verbatim
5491 #: ../examples/guestfs-testing.pod:78
5492 #, no-wrap
5493 msgid ""
5494 " virt-copy-in -d Guest /etc /tmp\n"
5495 "\n"
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../examples/guestfs-testing.pod:80
5500 msgid ""
5501 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5502 "(recursively).  If you boot the guest, can you see all of the copied files "
5503 "and directories?"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../examples/guestfs-testing.pod:84
5508 msgid "Shut the guest down and try copying multiple files and directories:"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-testing.pod:86
5513 #, no-wrap
5514 msgid ""
5515 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head2
5520 #: ../examples/guestfs-testing.pod:88
5521 msgid "Copy some files out of a guest."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-testing.pod:90
5526 msgid ""
5527 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5528 "guest or disk image."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-testing.pod:95
5533 msgid "Note the final space and period in the command is not a typo."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-testing.pod:97
5538 msgid "This should copy C</home> from the guest into the current directory."
5539 msgstr ""
5540
5541 #. type: =head2
5542 #: ../examples/guestfs-testing.pod:99
5543 msgid "Run virt-df."
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-testing.pod:101
5548 msgid "L<virt-df(1)> lists disk space.  Run:"
5549 msgstr ""
5550
5551 #. type: verbatim
5552 #: ../examples/guestfs-testing.pod:103
5553 #, no-wrap
5554 msgid ""
5555 " virt-df\n"
5556 "\n"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../examples/guestfs-testing.pod:105
5561 msgid ""
5562 "You can try comparing this to the results from L<df(1)> inside the guest, "
5563 "but there are some provisos:"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-testing.pod:112
5568 msgid "The guest must be idle."
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../examples/guestfs-testing.pod:116
5573 msgid "The guest disks must be synched using L<sync(1)>."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../examples/guestfs-testing.pod:120
5578 msgid ""
5579 "Any action such as booting the guest will write log files causing the "
5580 "numbers to change."
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-testing.pod:125
5585 msgid ""
5586 "We don't guarantee that the numbers will be identical even under these "
5587 "circumstances.  They should be similar.  It would indicate a bug if you saw "
5588 "greatly differing numbers."
5589 msgstr ""
5590
5591 #. type: =head2
5592 #: ../examples/guestfs-testing.pod:129
5593 msgid "Try importing virt-df CSV output into a spreadsheet or database."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
5598 msgid "Run:"
5599 msgstr ""
5600
5601 #. type: verbatim
5602 #: ../examples/guestfs-testing.pod:133
5603 #, no-wrap
5604 msgid ""
5605 " virt-df --csv > /tmp/report.csv\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-testing.pod:135
5611 msgid ""
5612 "Now try to load this into your favorite spreadsheet or database.  Are the "
5613 "results reproduced faithfully in the spreadsheet/database?"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-testing.pod:138
5618 msgid ""
5619 "http://www.postgresql.org/docs/8.1/static/sql-copy.html "
5620 "http://dev.mysql.com/doc/refman/5.1/en/load-data.html"
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../examples/guestfs-testing.pod:141
5625 msgid "B<*> Edit a file in a B<shut off> guest."
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../examples/guestfs-testing.pod:143
5630 msgid ""
5631 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
5632 "Fedora guest:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-testing.pod:146
5637 #, no-wrap
5638 msgid ""
5639 " virt-edit LinuxGuest /etc/sysconfig/network\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-testing.pod:148
5645 msgid "On other Linux guests try editing other files such as:"
5646 msgstr ""
5647
5648 #. type: verbatim
5649 #: ../examples/guestfs-testing.pod:150
5650 #, no-wrap
5651 msgid ""
5652 " virt-edit LinuxGuest /etc/motd\n"
5653 "\n"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-testing.pod:152
5658 msgid "Are the changes seen inside the guest when it is booted?"
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../examples/guestfs-testing.pod:154
5663 msgid "Display the filesystems / partitions / LVs in a guest."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-testing.pod:156
5668 msgid ""
5669 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
5670 "this command on any disk image or guest:"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../examples/guestfs-testing.pod:159
5675 #, no-wrap
5676 msgid ""
5677 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../examples/guestfs-testing.pod:163
5683 #, no-wrap
5684 msgid ""
5685 " virt-filesystems -d Guest --all --long -h\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-testing.pod:165
5691 msgid "Do the results match what is seen in the guest?"
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../examples/guestfs-testing.pod:167
5696 msgid "Run virt-inspector on all your guests."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../examples/guestfs-testing.pod:169
5701 msgid ""
5702 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
5703 "images:"
5704 msgstr ""
5705
5706 #. type: verbatim
5707 #: ../examples/guestfs-testing.pod:172
5708 #, no-wrap
5709 msgid ""
5710 " virt-inspector -a /path/to/disk.img | less\n"
5711 "\n"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../examples/guestfs-testing.pod:176
5716 #, no-wrap
5717 msgid ""
5718 " virt-inspector -d Guest | less\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-testing.pod:178
5724 msgid "Do the results match what is actually in the guest?"
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../examples/guestfs-testing.pod:180
5729 msgid "Try the auditing features of virt-ls on all your guests."
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../examples/guestfs-testing.pod:184
5734 #, no-wrap
5735 msgid ""
5736 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-testing.pod:188
5742 #, no-wrap
5743 msgid ""
5744 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../examples/guestfs-testing.pod:192
5750 #, no-wrap
5751 msgid ""
5752 " virt-ls -lR -d Guest / | grep '^s'\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: verbatim
5757 #: ../examples/guestfs-testing.pod:196
5758 #, no-wrap
5759 msgid ""
5760 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
5761 "\n"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../examples/guestfs-testing.pod:198
5766 msgid "Display files larger than 10MB in home directories:"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../examples/guestfs-testing.pod:200
5771 #, no-wrap
5772 msgid ""
5773 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: verbatim
5778 #: ../examples/guestfs-testing.pod:204
5779 #, no-wrap
5780 msgid ""
5781 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
5782 "\n"
5783 msgstr ""
5784
5785 #. type: verbatim
5786 #: ../examples/guestfs-testing.pod:208
5787 #, no-wrap
5788 msgid ""
5789 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
5790 "\n"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-testing.pod:210
5795 msgid "Do the results match what is in the guest?"
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../examples/guestfs-testing.pod:212
5800 msgid "Create a disk image from a tarball."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../examples/guestfs-testing.pod:214
5805 msgid ""
5806 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
5807 "happen to have:"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../examples/guestfs-testing.pod:217
5812 #, no-wrap
5813 msgid ""
5814 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-testing.pod:219
5820 msgid ""
5821 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
5822 "see the files.  This test is particularly useful if you try it with a "
5823 "Windows guest."
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../examples/guestfs-testing.pod:223
5828 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../examples/guestfs-testing.pod:225
5833 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../examples/guestfs-testing.pod:227
5838 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../examples/guestfs-testing.pod:229
5843 msgid ""
5844 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
5845 "disk image:"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../examples/guestfs-testing.pod:232
5850 #, no-wrap
5851 msgid ""
5852 " virt-rescue -a /path/to/disk.img\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-testing.pod:236
5858 #, no-wrap
5859 msgid ""
5860 " virt-rescue -d Guest\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../examples/guestfs-testing.pod:238
5866 msgid "Can you use ordinary shell commands to examine the guest?"
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../examples/guestfs-testing.pod:240
5871 msgid "B<*> Resize your guests."
5872 msgstr ""
5873
5874 #. type: textblock
5875 #: ../examples/guestfs-testing.pod:242
5876 msgid ""
5877 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
5878 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:246
5883 #, no-wrap
5884 msgid ""
5885 " truncate -s 30G newdisk.img\n"
5886 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
5887 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
5888 " qemu-kvm -m 1024 -hda newdisk.img\n"
5889 "\n"
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../examples/guestfs-testing.pod:251
5894 msgid "Does the guest still boot? Try expanding other partitions."
5895 msgstr ""
5896
5897 #. type: =head2
5898 #: ../examples/guestfs-testing.pod:253
5899 msgid "B<*> Sparsify a guest disk."
5900 msgstr ""
5901
5902 #. type: textblock
5903 #: ../examples/guestfs-testing.pod:255
5904 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
5905 msgstr ""
5906
5907 #. type: verbatim
5908 #: ../examples/guestfs-testing.pod:257
5909 #, no-wrap
5910 msgid ""
5911 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
5912 "\n"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:259
5917 msgid ""
5918 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
5919 "image smaller (use C<du> to check)?"
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../examples/guestfs-testing.pod:262
5924 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:264
5929 msgid ""
5930 "Note that this really will mess up an existing guest, so it's better to "
5931 "clone the guest before trying this."
5932 msgstr ""
5933
5934 #. type: verbatim
5935 #: ../examples/guestfs-testing.pod:267
5936 #, no-wrap
5937 msgid ""
5938 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../examples/guestfs-testing.pod:269
5944 msgid ""
5945 "Was the sysprep successful? After booting, what changes were made and were "
5946 "they successful?"
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../examples/guestfs-testing.pod:272
5951 msgid "Dump the Windows Registry from your Windows guests."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:274
5956 msgid ""
5957 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
5958 "guests that you have."
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../examples/guestfs-testing.pod:277
5963 #, no-wrap
5964 msgid ""
5965 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
5966 "   less\n"
5967 "\n"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../examples/guestfs-testing.pod:280
5972 #, no-wrap
5973 msgid ""
5974 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
5975 "   less\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:283
5981 msgid "Does the output match running C<regedit> inside the guest?"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:285
5986 msgid ""
5987 "A recent feature is the ability to dump user registries, so try this, "
5988 "replacing I<username> with the name of a local user in the guest:"
5989 msgstr ""
5990
5991 #. type: verbatim
5992 #: ../examples/guestfs-testing.pod:288
5993 #, no-wrap
5994 msgid ""
5995 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' "
5996 "|\n"
5997 "   less\n"
5998 "\n"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../examples/guestfs-testing.pod:293
6003 msgid ""
6004 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
6005 "L<http://libguestfs.org/>."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:1
6010 msgid "add-cdrom"
6011 msgstr ""
6012
6013 #. type: verbatim
6014 #: ../fish/guestfish-actions.pod:3
6015 #, no-wrap
6016 msgid ""
6017 " add-cdrom filename\n"
6018 "\n"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6023 msgid "This function adds a virtual CD-ROM disk image to the guest."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6028 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:15
6033 msgid ""
6034 "This call checks for the existence of C<filename>.  This stops you from "
6035 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6036 "and C<http:> URLs.  To specify those, use the general L</config> call "
6037 "instead."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:22
6042 msgid ""
6043 "If you just want to add an ISO file (often you use this as an efficient way "
6044 "to transfer large files into the guest), then you should probably use "
6045 "L</add-drive-ro> instead."
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
6050 msgid ""
6051 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6052 "instead."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941 ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149 ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523 ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595 ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561 ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600 ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167 ../src/guestfs-actions.pod:8347
6057 msgid ""
6058 "Deprecated functions will not be removed from the API, but the fact that "
6059 "they are deprecated indicates that there are problems with correct use of "
6060 "these functions."
6061 msgstr ""
6062
6063 #. type: =head2
6064 #: ../fish/guestfish-actions.pod:35
6065 msgid "add-domain"
6066 msgstr ""
6067
6068 #. type: =head2
6069 #: ../fish/guestfish-actions.pod:37
6070 msgid "domain"
6071 msgstr ""
6072
6073 #. type: verbatim
6074 #: ../fish/guestfish-actions.pod:39
6075 #, no-wrap
6076 msgid ""
6077 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] "
6078 "[live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:41
6084 msgid ""
6085 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6086 "It works by connecting to libvirt, requesting the domain and domain XML from "
6087 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6092 msgid ""
6093 "The number of disks added is returned.  This operation is atomic: if an "
6094 "error is returned, then no disks are added."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6099 msgid ""
6100 "This function does some minimal checks to make sure the libvirt domain is "
6101 "not running (unless C<readonly> is true).  In a future version we will try "
6102 "to acquire the libvirt lock on each disk."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6107 msgid ""
6108 "Disks must be accessible locally.  This often means that adding disks from a "
6109 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6110 "unless those disks are accessible via the same device path locally too."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6115 msgid ""
6116 "The optional C<libvirturi> parameter sets the libvirt URI (see "
6117 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
6118 "default libvirt URI (or one set through an environment variable, see the "
6119 "libvirt documentation for full details)."
6120 msgstr ""
6121
6122 #. type: textblock
6123 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6124 msgid ""
6125 "The optional C<live> flag controls whether this call will try to connect to "
6126 "a running virtual machine C<guestfsd> process if it sees a suitable "
6127 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6128 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6129 "DAEMONS> for more information."
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6134 msgid ""
6135 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6136 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6137 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6138 "as usual."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6143 msgid ""
6144 "The optional C<readonlydisk> parameter controls what we do for disks which "
6145 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6150 msgid "readonlydisk = \"error\""
6151 msgstr ""
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6155 msgid "If C<readonly> is false:"
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6160 msgid ""
6161 "The whole call is aborted with an error if any disk with the "
6162 "E<lt>readonly/E<gt> flag is found."
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6167 msgid "If C<readonly> is true:"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6172 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6173 msgstr ""
6174
6175 #. type: =item
6176 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6177 msgid "readonlydisk = \"read\""
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6182 msgid ""
6183 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6184 "are added read/write."
6185 msgstr ""
6186
6187 #. type: =item
6188 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6189 msgid "readonlydisk = \"write\" (default)"
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6194 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6195 msgstr ""
6196
6197 #. type: =item
6198 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6199 msgid "readonlydisk = \"ignore\""
6200 msgstr ""
6201
6202 #. type: textblock
6203 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6204 msgid "If C<readonly> is true or false:"
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6209 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:122
6214 msgid ""
6215 "The other optional parameters are passed directly through to "
6216 "L</add-drive-opts>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835 ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894 ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171 ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496 ../fish/guestfish-actions.pod:3631
6221 msgid ""
6222 "This command has one or more optional arguments.  See L</OPTIONAL "
6223 "ARGUMENTS>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:127
6228 msgid "add-drive"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:129
6233 #, no-wrap
6234 msgid ""
6235 " add-drive filename\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:131
6241 msgid ""
6242 "This function is the equivalent of calling L</add-drive-opts> with no "
6243 "optional parameters, so the disk is added writable, with the format being "
6244 "detected automatically."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:135
6249 msgid ""
6250 "Automatic detection of the format opens you up to a potential security hole "
6251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6253 "you should think about replacing calls to this function with calls to "
6254 "L</add-drive-opts>, and specifying the format."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:142
6259 msgid "add-drive-opts"
6260 msgstr ""
6261
6262 #. type: =head2
6263 #: ../fish/guestfish-actions.pod:144
6264 msgid "add"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../fish/guestfish-actions.pod:146
6269 #, no-wrap
6270 msgid ""
6271 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] "
6272 "[name:..]\n"
6273 "\n"
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6278 msgid ""
6279 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6280 "The first time you call this function, the disk appears as C</dev/sda>, the "
6281 "second time as C</dev/sdb>, and so on."
6282 msgstr ""
6283
6284 #. type: textblock
6285 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6286 msgid ""
6287 "You don't necessarily need to be root when using libguestfs.  However you "
6288 "obviously do need sufficient permissions to access the filename for whatever "
6289 "operations you want to perform (ie. read access if you just want to read the "
6290 "image or write access if you want to modify the image)."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6295 msgid "This call checks that C<filename> exists."
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6300 msgid "The optional arguments are:"
6301 msgstr ""
6302
6303 #. type: =item
6304 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6305 msgid "C<readonly>"
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6310 msgid ""
6311 "If true then the image is treated as read-only.  Writes are still allowed, "
6312 "but they are stored in a temporary snapshot overlay which is discarded at "
6313 "the end.  The disk that you add is not modified."
6314 msgstr ""
6315
6316 #. type: =item
6317 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6318 msgid "C<format>"
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:173
6323 msgid ""
6324 "This forces the image format.  If you omit this (or use L</add-drive> or "
6325 "L</add-drive-ro>) then the format is automatically detected.  Possible "
6326 "formats include C<raw> and C<qcow2>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6331 msgid ""
6332 "Automatic detection of the format opens you up to a potential security hole "
6333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6334 "RHBZ#642934.  Specifying the format closes this security hole."
6335 msgstr ""
6336
6337 #. type: =item
6338 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6339 msgid "C<iface>"
6340 msgstr ""
6341
6342 #. type: textblock
6343 #: ../fish/guestfish-actions.pod:184
6344 msgid ""
6345 "This rarely-used option lets you emulate the behaviour of the deprecated "
6346 "L</add-drive-with-if> call (q.v.)"
6347 msgstr ""
6348
6349 #. type: =item
6350 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6351 msgid "C<name>"
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6356 msgid ""
6357 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6358 "a hint to the guest inspection process if it is available."
6359 msgstr ""
6360
6361 #. type: =head2
6362 #: ../fish/guestfish-actions.pod:196
6363 msgid "add-drive-ro"
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:198
6368 msgid "add-ro"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:200
6373 #, no-wrap
6374 msgid ""
6375 " add-drive-ro filename\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:202
6381 msgid ""
6382 "This function is the equivalent of calling L</add-drive-opts> with the "
6383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6384 "is added read-only, with the format being detected automatically."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:207
6389 msgid "add-drive-ro-with-if"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:209
6394 #, no-wrap
6395 msgid ""
6396 " add-drive-ro-with-if filename iface\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:211
6402 msgid ""
6403 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6404 "interface emulation to use at run time."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:221
6409 msgid "add-drive-with-if"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:223
6414 #, no-wrap
6415 msgid ""
6416 " add-drive-with-if filename iface\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:225
6422 msgid ""
6423 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6424 "interface emulation to use at run time."
6425 msgstr ""
6426
6427 #. type: =head2
6428 #: ../fish/guestfish-actions.pod:235
6429 msgid "aug-clear"
6430 msgstr ""
6431
6432 #. type: verbatim
6433 #: ../fish/guestfish-actions.pod:237
6434 #, no-wrap
6435 msgid ""
6436 " aug-clear augpath\n"
6437 "\n"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6442 msgid ""
6443 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6444 "L<augtool(1)> C<clear> command."
6445 msgstr ""
6446
6447 #. type: =head2
6448 #: ../fish/guestfish-actions.pod:242
6449 msgid "aug-close"
6450 msgstr ""
6451
6452 #. type: verbatim
6453 #: ../fish/guestfish-actions.pod:244
6454 #, no-wrap
6455 msgid ""
6456 " aug-close\n"
6457 "\n"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:246
6462 msgid ""
6463 "Close the current Augeas handle and free up any resources used by it.  After "
6464 "calling this, you have to call L</aug-init> again before you can use any "
6465 "other Augeas functions."
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../fish/guestfish-actions.pod:251
6470 msgid "aug-defnode"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:253
6475 #, no-wrap
6476 msgid ""
6477 " aug-defnode name expr val\n"
6478 "\n"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6483 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:258
6488 msgid ""
6489 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6490 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6491 "containing that single node."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6496 msgid ""
6497 "On success this returns a pair containing the number of nodes in the "
6498 "nodeset, and a boolean flag if a node was created."
6499 msgstr ""
6500
6501 #. type: =head2
6502 #: ../fish/guestfish-actions.pod:266
6503 msgid "aug-defvar"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../fish/guestfish-actions.pod:268
6508 #, no-wrap
6509 msgid ""
6510 " aug-defvar name expr\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6516 msgid ""
6517 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6518 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6523 msgid ""
6524 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6525 "evaluates to something which is not a nodeset."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:277
6530 msgid "aug-get"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:279
6535 #, no-wrap
6536 msgid ""
6537 " aug-get augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6543 msgid ""
6544 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6545 "node, the C<value> is returned."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:284
6550 msgid "aug-init"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:286
6555 #, no-wrap
6556 msgid ""
6557 " aug-init root flags\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6563 msgid ""
6564 "Create a new Augeas handle for editing configuration files.  If there was "
6565 "any previous Augeas handle associated with this guestfs session, then it is "
6566 "closed."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:292
6571 msgid "You must call this before using any other L</aug-*> commands."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6576 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6581 msgid ""
6582 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6583 "logical I<or> of the following integers:"
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6588 msgid "C<AUG_SAVE_BACKUP> = 1"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6593 msgid "Keep the original file with a C<.augsave> extension."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6598 msgid "C<AUG_SAVE_NEWFILE> = 2"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6603 msgid ""
6604 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6605 "original.  Overrides C<AUG_SAVE_BACKUP>."
6606 msgstr ""
6607
6608 #. type: =item
6609 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6610 msgid "C<AUG_TYPE_CHECK> = 4"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6615 msgid "Typecheck lenses."
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:317
6620 msgid ""
6621 "This option is only useful when debugging Augeas lenses.  Use of this option "
6622 "may require additional memory for the libguestfs appliance.  You may need to "
6623 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6624 msgstr ""
6625
6626 #. type: =item
6627 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6628 msgid "C<AUG_NO_STDINC> = 8"
6629 msgstr ""
6630
6631 #. type: textblock
6632 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6633 msgid "Do not use standard load path for modules."
6634 msgstr ""
6635
6636 #. type: =item
6637 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6638 msgid "C<AUG_SAVE_NOOP> = 16"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6643 msgid "Make save a no-op, just record what would have been changed."
6644 msgstr ""
6645
6646 #. type: =item
6647 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6648 msgid "C<AUG_NO_LOAD> = 32"
6649 msgstr ""
6650
6651 #. type: textblock
6652 #: ../fish/guestfish-actions.pod:332
6653 msgid "Do not load the tree in L</aug-init>."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:336
6658 msgid "To close the handle, you can call L</aug-close>."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6663 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:340
6668 msgid "aug-insert"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:342
6673 #, no-wrap
6674 msgid ""
6675 " aug-insert augpath label true|false\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6681 msgid ""
6682 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6683 "or after C<path> (depending on the boolean flag C<before>)."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6688 msgid ""
6689 "C<path> must match exactly one existing node in the tree, and C<label> must "
6690 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:352
6695 msgid "aug-load"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:354
6700 #, no-wrap
6701 msgid ""
6702 " aug-load\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6708 msgid "Load files into the tree."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6713 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6714 msgstr ""
6715
6716 #. type: =head2
6717 #: ../fish/guestfish-actions.pod:361
6718 msgid "aug-ls"
6719 msgstr ""
6720
6721 #. type: verbatim
6722 #: ../fish/guestfish-actions.pod:363
6723 #, no-wrap
6724 msgid ""
6725 " aug-ls augpath\n"
6726 "\n"
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:365
6731 msgid ""
6732 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6733 "resulting nodes into alphabetical order."
6734 msgstr ""
6735
6736 #. type: =head2
6737 #: ../fish/guestfish-actions.pod:368
6738 msgid "aug-match"
6739 msgstr ""
6740
6741 #. type: verbatim
6742 #: ../fish/guestfish-actions.pod:370
6743 #, no-wrap
6744 msgid ""
6745 " aug-match augpath\n"
6746 "\n"
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6751 msgid ""
6752 "Returns a list of paths which match the path expression C<path>.  The "
6753 "returned paths are sufficiently qualified so that they match exactly one "
6754 "node in the current tree."
6755 msgstr ""
6756
6757 #. type: =head2
6758 #: ../fish/guestfish-actions.pod:376
6759 msgid "aug-mv"
6760 msgstr ""
6761
6762 #. type: verbatim
6763 #: ../fish/guestfish-actions.pod:378
6764 #, no-wrap
6765 msgid ""
6766 " aug-mv src dest\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6772 msgid ""
6773 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6774 "C<dest> is overwritten if it exists."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:383
6779 msgid "aug-rm"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:385
6784 #, no-wrap
6785 msgid ""
6786 " aug-rm augpath\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6792 msgid "Remove C<path> and all of its children."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6797 msgid "On success this returns the number of entries which were removed."
6798 msgstr ""
6799
6800 #. type: =head2
6801 #: ../fish/guestfish-actions.pod:391
6802 msgid "aug-save"
6803 msgstr ""
6804
6805 #. type: verbatim
6806 #: ../fish/guestfish-actions.pod:393
6807 #, no-wrap
6808 msgid ""
6809 " aug-save\n"
6810 "\n"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6815 msgid "This writes all pending changes to disk."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:397
6820 msgid ""
6821 "The flags which were passed to L</aug-init> affect exactly how files are "
6822 "saved."
6823 msgstr ""
6824
6825 #. type: =head2
6826 #: ../fish/guestfish-actions.pod:400
6827 msgid "aug-set"
6828 msgstr ""
6829
6830 #. type: verbatim
6831 #: ../fish/guestfish-actions.pod:402
6832 #, no-wrap
6833 msgid ""
6834 " aug-set augpath val\n"
6835 "\n"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6840 msgid "Set the value associated with C<path> to C<val>."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:406
6845 msgid ""
6846 "In the Augeas API, it is possible to clear a node by setting the value to "
6847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6848 "this call.  Instead you must use the L</aug-clear> call."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:411
6853 msgid "available"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:413
6858 #, no-wrap
6859 msgid ""
6860 " available 'groups ...'\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6866 msgid ""
6867 "This command is used to check the availability of some groups of "
6868 "functionality in the appliance, which not all builds of the libguestfs "
6869 "appliance will be able to provide."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:419
6874 msgid ""
6875 "The libguestfs groups, and the functions that those groups correspond to, "
6876 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6877 "runtime by calling L</available-all-groups>."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6882 msgid ""
6883 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6884 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6885 "and Augeas (configuration file editing) functions."
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6890 msgid "The command returns no error if I<all> requested groups are available."
6891 msgstr ""
6892
6893 #. type: textblock
6894 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6895 msgid ""
6896 "It fails with an error if one or more of the requested groups is unavailable "
6897 "in the appliance."
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6902 msgid ""
6903 "If an unknown group name is included in the list of groups then an error is "
6904 "always returned."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6909 msgid "I<Notes:>"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:443
6914 msgid "You must call L</launch> before calling this function."
6915 msgstr ""
6916
6917 #. type: textblock
6918 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6919 msgid ""
6920 "The reason is because we don't know what groups are supported by the "
6921 "appliance/daemon until it is running and can be queried."
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6926 msgid ""
6927 "If a group of functions is available, this does not necessarily mean that "
6928 "they will work.  You still have to check for errors when calling individual "
6929 "API functions even if they are available."
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6934 msgid ""
6935 "It is usually the job of distro packagers to build complete functionality "
6936 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6937 "with all requirements satisfied, will support everything."
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:465
6942 msgid ""
6943 "This call was added in version C<1.0.80>.  In previous versions of "
6944 "libguestfs all you could do would be to speculatively execute a command to "
6945 "find out if the daemon implemented it.  See also L</version>."
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../fish/guestfish-actions.pod:472
6950 msgid "available-all-groups"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../fish/guestfish-actions.pod:474
6955 #, no-wrap
6956 msgid ""
6957 " available-all-groups\n"
6958 "\n"
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:476
6963 msgid ""
6964 "This command returns a list of all optional groups that this daemon knows "
6965 "about.  Note this returns both supported and unsupported groups.  To find "
6966 "out which ones the daemon can actually support you have to call "
6967 "L</available> on each member of the returned list."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:482
6972 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:484
6977 msgid "base64-in"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:486
6982 #, no-wrap
6983 msgid ""
6984 " base64-in (base64file|-) filename\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6990 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025 ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418 ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870 ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:493
7000 msgid "base64-out"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:495
7005 #, no-wrap
7006 msgid ""
7007 " base64-out filename (base64file|-)\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7013 msgid ""
7014 "This command downloads the contents of C<filename>, writing it out to local "
7015 "file C<base64file> encoded as base64."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:502
7020 msgid "blockdev-flushbufs"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blockdev-flushbufs device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520 ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583 ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599 ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817 ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7038 msgid "This uses the L<blockdev(8)> command."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:511
7043 msgid "blockdev-getbsz"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:513
7048 #, no-wrap
7049 msgid ""
7050 " blockdev-getbsz device\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7056 msgid "This returns the block size of a device."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7061 msgid ""
7062 "(Note this is different from both I<size in blocks> and I<filesystem block "
7063 "size>)."
7064 msgstr ""
7065
7066 #. type: =head2
7067 #: ../fish/guestfish-actions.pod:522
7068 msgid "blockdev-getro"
7069 msgstr ""
7070
7071 #. type: verbatim
7072 #: ../fish/guestfish-actions.pod:524
7073 #, no-wrap
7074 msgid ""
7075 " blockdev-getro device\n"
7076 "\n"
7077 msgstr ""
7078
7079 #. type: textblock
7080 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7081 msgid ""
7082 "Returns a boolean indicating if the block device is read-only (true if "
7083 "read-only, false if not)."
7084 msgstr ""
7085
7086 #. type: =head2
7087 #: ../fish/guestfish-actions.pod:531
7088 msgid "blockdev-getsize64"
7089 msgstr ""
7090
7091 #. type: verbatim
7092 #: ../fish/guestfish-actions.pod:533
7093 #, no-wrap
7094 msgid ""
7095 " blockdev-getsize64 device\n"
7096 "\n"
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7101 msgid "This returns the size of the device in bytes."
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:537
7106 msgid "See also L</blockdev-getsz>."
7107 msgstr ""
7108
7109 #. type: =head2
7110 #: ../fish/guestfish-actions.pod:541
7111 msgid "blockdev-getss"
7112 msgstr ""
7113
7114 #. type: verbatim
7115 #: ../fish/guestfish-actions.pod:543
7116 #, no-wrap
7117 msgid ""
7118 " blockdev-getss device\n"
7119 "\n"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7124 msgid ""
7125 "This returns the size of sectors on a block device.  Usually 512, but can be "
7126 "larger for modern devices."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:548
7131 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7132 msgstr ""
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:553
7136 msgid "blockdev-getsz"
7137 msgstr ""
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:555
7141 #, no-wrap
7142 msgid ""
7143 " blockdev-getsz device\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7149 msgid ""
7150 "This returns the size of the device in units of 512-byte sectors (even if "
7151 "the sectorsize isn't 512 bytes ... weird)."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:560
7156 msgid ""
7157 "See also L</blockdev-getss> for the real sector size of the device, and "
7158 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7159 msgstr ""
7160
7161 #. type: =head2
7162 #: ../fish/guestfish-actions.pod:566
7163 msgid "blockdev-rereadpt"
7164 msgstr ""
7165
7166 #. type: verbatim
7167 #: ../fish/guestfish-actions.pod:568
7168 #, no-wrap
7169 msgid ""
7170 " blockdev-rereadpt device\n"
7171 "\n"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7176 msgid "Reread the partition table on C<device>."
7177 msgstr ""
7178
7179 #. type: =head2
7180 #: ../fish/guestfish-actions.pod:574
7181 msgid "blockdev-setbsz"
7182 msgstr ""
7183
7184 #. type: verbatim
7185 #: ../fish/guestfish-actions.pod:576
7186 #, no-wrap
7187 msgid ""
7188 " blockdev-setbsz device blocksize\n"
7189 "\n"
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7194 msgid "This sets the block size of a device."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:585
7199 msgid "blockdev-setro"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:587
7204 #, no-wrap
7205 msgid ""
7206 " blockdev-setro device\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7212 msgid "Sets the block device named C<device> to read-only."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:593
7217 msgid "blockdev-setrw"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:595
7222 #, no-wrap
7223 msgid ""
7224 " blockdev-setrw device\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7230 msgid "Sets the block device named C<device> to read-write."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:601
7235 msgid "btrfs-filesystem-resize"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:603
7240 #, no-wrap
7241 msgid ""
7242 " btrfs-filesystem-resize mountpoint [size:N]\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7248 msgid "This command resizes a btrfs filesystem."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7253 msgid ""
7254 "Note that unlike other resize calls, the filesystem has to be mounted and "
7255 "the parameter is the mountpoint not the device (this is a requirement of "
7256 "btrfs itself)."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7261 msgid "The optional parameters are:"
7262 msgstr ""
7263
7264 #. type: =item
7265 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7266 msgid "C<size>"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7271 msgid ""
7272 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7273 "resized to the maximum size."
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7278 msgid "See also L<btrfs(8)>."
7279 msgstr ""
7280
7281 #. type: =head2
7282 #: ../fish/guestfish-actions.pod:626
7283 msgid "case-sensitive-path"
7284 msgstr ""
7285
7286 #. type: verbatim
7287 #: ../fish/guestfish-actions.pod:628
7288 #, no-wrap
7289 msgid ""
7290 " case-sensitive-path path\n"
7291 "\n"
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7296 msgid ""
7297 "This can be used to resolve case insensitive paths on a filesystem which is "
7298 "case sensitive.  The use case is to resolve paths which you have read from "
7299 "Windows configuration files or the Windows Registry, to the true path."
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7304 msgid ""
7305 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7306 "(and probably others), which is that although the underlying filesystem is "
7307 "case-insensitive, the driver exports the filesystem to Linux as "
7308 "case-sensitive."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7313 msgid ""
7314 "One consequence of this is that special directories such as C<c:\\windows> "
7315 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7316 "precise details of how they were created.  In Windows itself this would not "
7317 "be a problem."
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7322 msgid ""
7323 "Bug or feature? You decide: "
7324 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7329 msgid ""
7330 "This function resolves the true case of each element in the path and returns "
7331 "the case-sensitive path."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:652
7336 msgid ""
7337 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7338 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7339 "how the directories were originally created under Windows)."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7344 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:660
7349 msgid "See also L</realpath>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:662
7354 msgid "cat"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:664
7359 #, no-wrap
7360 msgid ""
7361 " cat path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7367 msgid "Return the contents of the file named C<path>."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:668
7372 msgid ""
7373 "Note that this function cannot correctly handle binary files (specifically, "
7374 "files containing C<\\0> character which is treated as end of string).  For "
7375 "those you need to use the L</read-file> or L</download> functions which have "
7376 "a more complex interface."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382 ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705 ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922 ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699 ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830 ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251 ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281 ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308 ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372 ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131 ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184 ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222 ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332 ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7381 msgid ""
7382 "Because of the message protocol, there is a transfer limit of somewhere "
7383 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7384 msgstr ""
7385
7386 #. type: =head2
7387 #: ../fish/guestfish-actions.pod:676
7388 msgid "checksum"
7389 msgstr ""
7390
7391 #. type: verbatim
7392 #: ../fish/guestfish-actions.pod:678
7393 #, no-wrap
7394 msgid ""
7395 " checksum csumtype path\n"
7396 "\n"
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7401 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7406 msgid ""
7407 "The type of checksum to compute is given by the C<csumtype> parameter which "
7408 "must have one of the following values:"
7409 msgstr ""
7410
7411 #. type: =item
7412 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7413 msgid "C<crc>"
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7418 msgid ""
7419 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7420 "C<cksum> command."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7425 msgid "C<md5>"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7430 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7435 msgid "C<sha1>"
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7440 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7445 msgid "C<sha224>"
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7450 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7455 msgid "C<sha256>"
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7460 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7465 msgid "C<sha384>"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7470 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7475 msgid "C<sha512>"
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7480 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7481 msgstr ""
7482
7483 #. type: textblock
7484 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7485 msgid "The checksum is returned as a printable string."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:721
7490 msgid "To get the checksum for a device, use L</checksum-device>."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:723
7495 msgid "To get the checksums for many files, use L</checksums-out>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:725
7500 msgid "checksum-device"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:727
7505 #, no-wrap
7506 msgid ""
7507 " checksum-device csumtype device\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:729
7513 msgid ""
7514 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7515 "device named C<device>.  For the types of checksums supported see the "
7516 "L</checksum> command."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:733
7521 msgid "checksums-out"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:735
7526 #, no-wrap
7527 msgid ""
7528 " checksums-out csumtype directory (sumsfile|-)\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7534 msgid ""
7535 "This command computes the checksums of all regular files in C<directory> and "
7536 "then emits a list of those checksums to the local output file C<sumsfile>."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7541 msgid ""
7542 "This can be used for verifying the integrity of a virtual machine.  However "
7543 "to be properly secure you should pay attention to the output of the checksum "
7544 "command (it uses the ones from GNU coreutils).  In particular when the "
7545 "filename is not printable, coreutils uses a special backslash syntax.  For "
7546 "more information, see the GNU coreutils info file."
7547 msgstr ""
7548
7549 #. type: =head2
7550 #: ../fish/guestfish-actions.pod:751
7551 msgid "chmod"
7552 msgstr ""
7553
7554 #. type: verbatim
7555 #: ../fish/guestfish-actions.pod:753
7556 #, no-wrap
7557 msgid ""
7558 " chmod mode path\n"
7559 "\n"
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7564 msgid ""
7565 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7566 "supported."
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7571 msgid ""
7572 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7573 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7574 "C<700>."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259 ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7579 msgid "The mode actually set is affected by the umask."
7580 msgstr ""
7581
7582 #. type: =head2
7583 #: ../fish/guestfish-actions.pod:764
7584 msgid "chown"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:766
7589 #, no-wrap
7590 msgid ""
7591 " chown owner group path\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7597 msgid "Change the file owner to C<owner> and group to C<group>."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7602 msgid ""
7603 "Only numeric uid and gid are supported.  If you want to use names, you will "
7604 "need to locate and parse the password file yourself (Augeas support makes "
7605 "this relatively easy)."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:774
7610 msgid "command"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:776
7615 #, no-wrap
7616 msgid ""
7617 " command 'arguments ...'\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7623 msgid ""
7624 "This call runs a command from the guest filesystem.  The filesystem must be "
7625 "mounted, and must contain a compatible operating system (ie. something "
7626 "Linux, with the same or compatible processor architecture)."
7627 msgstr ""
7628
7629 #. type: textblock
7630 #: ../fish/guestfish-actions.pod:783
7631 msgid ""
7632 "The single parameter is an argv-style list of arguments.  The first element "
7633 "is the name of the program to run.  Subsequent elements are parameters.  The "
7634 "list must be non-empty (ie. must contain a program name).  Note that the "
7635 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7640 msgid "The return value is anything printed to I<stdout> by the command."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7645 msgid ""
7646 "If the command returns a non-zero exit status, then this function returns an "
7647 "error message.  The error message string is the content of I<stderr> from "
7648 "the command."
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7653 msgid ""
7654 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7655 "C</bin>.  If you require a program from another location, you should provide "
7656 "the full path in the first parameter."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7661 msgid ""
7662 "Shared libraries and data files required by the program must be available on "
7663 "filesystems which are mounted in the correct places.  It is the caller's "
7664 "responsibility to ensure all filesystems that are needed are mounted at the "
7665 "right locations."
7666 msgstr ""
7667
7668 #. type: =head2
7669 #: ../fish/guestfish-actions.pod:811
7670 msgid "command-lines"
7671 msgstr ""
7672
7673 #. type: verbatim
7674 #: ../fish/guestfish-actions.pod:813
7675 #, no-wrap
7676 msgid ""
7677 " command-lines 'arguments ...'\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:815
7683 msgid "This is the same as L</command>, but splits the result into a list of lines."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:818
7688 msgid "See also: L</sh-lines>"
7689 msgstr ""
7690
7691 #. type: =head2
7692 #: ../fish/guestfish-actions.pod:823
7693 msgid "compress-device-out"
7694 msgstr ""
7695
7696 #. type: verbatim
7697 #: ../fish/guestfish-actions.pod:825
7698 #, no-wrap
7699 msgid ""
7700 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7701 "\n"
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7706 msgid ""
7707 "This command compresses C<device> and writes it out to the local file "
7708 "C<zdevice>."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:830
7713 msgid ""
7714 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7715 "L</compress-out>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:837
7720 msgid "compress-out"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:839
7725 #, no-wrap
7726 msgid ""
7727 " compress-out ctype file (zfile|-) [level:N]\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7733 msgid ""
7734 "This command compresses C<file> and writes it out to the local file "
7735 "C<zfile>."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7740 msgid ""
7741 "The compression program used is controlled by the C<ctype> parameter.  "
7742 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7743 "Some compression types may not be supported by particular builds of "
7744 "libguestfs, in which case you will get an error containing the substring "
7745 "\"not supported\"."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7750 msgid ""
7751 "The optional C<level> parameter controls compression level.  The meaning and "
7752 "default for this parameter depends on the compression program being used."
7753 msgstr ""
7754
7755 #. type: =head2
7756 #: ../fish/guestfish-actions.pod:858
7757 msgid "config"
7758 msgstr ""
7759
7760 #. type: verbatim
7761 #: ../fish/guestfish-actions.pod:860
7762 #, no-wrap
7763 msgid ""
7764 " config qemuparam qemuvalue\n"
7765 "\n"
7766 msgstr ""
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7770 msgid ""
7771 "This can be used to add arbitrary qemu command line parameters of the form "
7772 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7773 "setting some parameters which would interfere with parameters that we use."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7778 msgid "The first character of C<param> string must be a C<-> (dash)."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7783 msgid "C<value> can be NULL."
7784 msgstr ""
7785
7786 #. type: =head2
7787 #: ../fish/guestfish-actions.pod:871
7788 msgid "copy-device-to-device"
7789 msgstr ""
7790
7791 #. type: verbatim
7792 #: ../fish/guestfish-actions.pod:873
7793 #, no-wrap
7794 msgid ""
7795 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7796 "\n"
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:875
7801 msgid ""
7802 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7803 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7804 "source (device|file) to a destination (device|file)."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7809 msgid ""
7810 "Partial copies can be made since you can specify optionally the source "
7811 "offset, destination offset and size to copy.  These values are all specified "
7812 "in bytes.  If not given, the offsets both default to zero, and the size "
7813 "defaults to copying as much as possible until we hit the end of the source."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7818 msgid ""
7819 "The source and destination may be the same object.  However overlapping "
7820 "regions may not be copied correctly."
7821 msgstr ""
7822
7823 #. type: textblock
7824 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7825 msgid ""
7826 "If the destination is a file, it is created if required.  If the destination "
7827 "file is not large enough, it is extended."
7828 msgstr ""
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:896
7832 msgid "copy-device-to-file"
7833 msgstr ""
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:898
7837 #, no-wrap
7838 msgid ""
7839 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7840 "\n"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7845 msgid "See L</copy-device-to-device> for a general overview of this call."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:905
7850 msgid "copy-file-to-device"
7851 msgstr ""
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:907
7855 #, no-wrap
7856 msgid ""
7857 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: =head2
7862 #: ../fish/guestfish-actions.pod:914
7863 msgid "copy-file-to-file"
7864 msgstr ""
7865
7866 #. type: verbatim
7867 #: ../fish/guestfish-actions.pod:916
7868 #, no-wrap
7869 msgid ""
7870 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7871 "\n"
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:921
7876 msgid ""
7877 "This is B<not> the function you want for copying files.  This is for copying "
7878 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7879 "file copying and moving functions."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:928
7884 msgid "copy-size"
7885 msgstr ""
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:930
7889 #, no-wrap
7890 msgid ""
7891 " copy-size src dest size\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7897 msgid ""
7898 "This command copies exactly C<size> bytes from one source device or file "
7899 "C<src> to another destination device or file C<dest>."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7904 msgid ""
7905 "Note this will fail if the source is too short or if the destination is not "
7906 "large enough."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7911 msgid ""
7912 "I<This function is deprecated.> In new code, use the "
7913 "L</copy_device_to_device> call instead."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:945
7918 msgid "cp"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:947
7923 #, no-wrap
7924 msgid ""
7925 " cp src dest\n"
7926 "\n"
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7931 msgid ""
7932 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7933 "destination filename or destination directory."
7934 msgstr ""
7935
7936 #. type: =head2
7937 #: ../fish/guestfish-actions.pod:952
7938 msgid "cp-a"
7939 msgstr ""
7940
7941 #. type: verbatim
7942 #: ../fish/guestfish-actions.pod:954
7943 #, no-wrap
7944 msgid ""
7945 " cp-a src dest\n"
7946 "\n"
7947 msgstr ""
7948
7949 #. type: textblock
7950 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7951 msgid ""
7952 "This copies a file or directory from C<src> to C<dest> recursively using the "
7953 "C<cp -a> command."
7954 msgstr ""
7955
7956 #. type: =head2
7957 #: ../fish/guestfish-actions.pod:959
7958 msgid "dd"
7959 msgstr ""
7960
7961 #. type: verbatim
7962 #: ../fish/guestfish-actions.pod:961
7963 #, no-wrap
7964 msgid ""
7965 " dd src dest\n"
7966 "\n"
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7971 msgid ""
7972 "This command copies from one source device or file C<src> to another "
7973 "destination device or file C<dest>.  Normally you would use this to copy to "
7974 "or from a device or partition, for example to duplicate a filesystem."
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../fish/guestfish-actions.pod:968
7979 msgid ""
7980 "If the destination is a device, it must be as large or larger than the "
7981 "source file or device, otherwise the copy will fail.  This command cannot do "
7982 "partial copies (see L</copy-device-to-device>)."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:980
7987 msgid "df"
7988 msgstr ""
7989
7990 #. type: verbatim
7991 #: ../fish/guestfish-actions.pod:982
7992 #, no-wrap
7993 msgid ""
7994 " df\n"
7995 "\n"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8000 msgid "This command runs the C<df> command to report disk space used."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8005 msgid ""
8006 "This command is mostly useful for interactive sessions.  It is I<not> "
8007 "intended that you try to parse the output string.  Use L</statvfs> from "
8008 "programs."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:990
8013 msgid "df-h"
8014 msgstr ""
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:992
8018 #, no-wrap
8019 msgid ""
8020 " df-h\n"
8021 "\n"
8022 msgstr ""
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8026 msgid ""
8027 "This command runs the C<df -h> command to report disk space used in "
8028 "human-readable format."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1001
8033 msgid "dmesg"
8034 msgstr ""
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1003
8038 #, no-wrap
8039 msgid ""
8040 " dmesg\n"
8041 "\n"
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8046 msgid ""
8047 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8048 "This is sometimes useful for extended debugging of problems."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1009
8053 msgid ""
8054 "Another way to get the same information is to enable verbose messages with "
8055 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8056 "before running the program."
8057 msgstr ""
8058
8059 #. type: =head2
8060 #: ../fish/guestfish-actions.pod:1014
8061 msgid "download"
8062 msgstr ""
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1016
8066 #, no-wrap
8067 msgid ""
8068 " download remotefilename (filename|-)\n"
8069 "\n"
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8074 msgid ""
8075 "Download file C<remotefilename> and save it as C<filename> on the local "
8076 "machine."
8077 msgstr ""
8078
8079 #. type: textblock
8080 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8081 msgid "C<filename> can also be a named pipe."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1023
8086 msgid "See also L</upload>, L</cat>."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../fish/guestfish-actions.pod:1027
8091 msgid "download-offset"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../fish/guestfish-actions.pod:1029
8096 #, no-wrap
8097 msgid ""
8098 " download-offset remotefilename (filename|-) offset size\n"
8099 "\n"
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8104 msgid ""
8105 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8106 "region must be within the file or device)."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1037
8111 msgid ""
8112 "Note that there is no limit on the amount of data that can be downloaded "
8113 "with this call, unlike with L</pread>, and this call always reads the full "
8114 "amount unless an error occurs."
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1042
8119 msgid "See also L</download>, L</pread>."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1046
8124 msgid "drop-caches"
8125 msgstr ""
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1048
8129 #, no-wrap
8130 msgid ""
8131 " drop-caches whattodrop\n"
8132 "\n"
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8137 msgid ""
8138 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8139 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8140 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8145 msgid "Setting C<whattodrop> to 3 should drop everything."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8150 msgid ""
8151 "This automatically calls L<sync(2)> before the operation, so that the "
8152 "maximum guest memory is freed."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1060
8157 msgid "du"
8158 msgstr ""
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1062
8162 #, no-wrap
8163 msgid ""
8164 " du path\n"
8165 "\n"
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8170 msgid ""
8171 "This command runs the C<du -s> command to estimate file space usage for "
8172 "C<path>."
8173 msgstr ""
8174
8175 #. type: textblock
8176 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8177 msgid ""
8178 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8179 "estimate includes the contents of the directory and all subdirectories "
8180 "(recursively)."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8185 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1074
8190 msgid "e2fsck-f"
8191 msgstr ""
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1076
8195 #, no-wrap
8196 msgid ""
8197 " e2fsck-f device\n"
8198 "\n"
8199 msgstr ""
8200
8201 #. type: textblock
8202 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8203 msgid ""
8204 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8205 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8206 "clean (I<-f>)."
8207 msgstr ""
8208
8209 #. type: textblock
8210 #: ../fish/guestfish-actions.pod:1082
8211 msgid ""
8212 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8213 "should use L</fsck>."
8214 msgstr ""
8215
8216 #. type: =head2
8217 #: ../fish/guestfish-actions.pod:1085
8218 msgid "echo-daemon"
8219 msgstr ""
8220
8221 #. type: verbatim
8222 #: ../fish/guestfish-actions.pod:1087
8223 #, no-wrap
8224 msgid ""
8225 " echo-daemon 'words ...'\n"
8226 "\n"
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8231 msgid ""
8232 "This command concatenates the list of C<words> passed with single spaces "
8233 "between them and returns the resulting string."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8238 msgid "You can use this command to test the connection through to the daemon."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1094
8243 msgid "See also L</ping-daemon>."
8244 msgstr ""
8245
8246 #. type: =head2
8247 #: ../fish/guestfish-actions.pod:1096
8248 msgid "egrep"
8249 msgstr ""
8250
8251 #. type: verbatim
8252 #: ../fish/guestfish-actions.pod:1098
8253 #, no-wrap
8254 msgid ""
8255 " egrep regex path\n"
8256 "\n"
8257 msgstr ""
8258
8259 #. type: textblock
8260 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8261 msgid "This calls the external C<egrep> program and returns the matching lines."
8262 msgstr ""
8263
8264 #. type: =head2
8265 #: ../fish/guestfish-actions.pod:1106
8266 msgid "egrepi"
8267 msgstr ""
8268
8269 #. type: verbatim
8270 #: ../fish/guestfish-actions.pod:1108
8271 #, no-wrap
8272 msgid ""
8273 " egrepi regex path\n"
8274 "\n"
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8279 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../fish/guestfish-actions.pod:1116
8284 msgid "equal"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../fish/guestfish-actions.pod:1118
8289 #, no-wrap
8290 msgid ""
8291 " equal file1 file2\n"
8292 "\n"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8297 msgid ""
8298 "This compares the two files C<file1> and C<file2> and returns true if their "
8299 "content is exactly equal, or false otherwise."
8300 msgstr ""
8301
8302 #. type: textblock
8303 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8304 msgid "The external L<cmp(1)> program is used for the comparison."
8305 msgstr ""
8306
8307 #. type: =head2
8308 #: ../fish/guestfish-actions.pod:1125
8309 msgid "exists"
8310 msgstr ""
8311
8312 #. type: verbatim
8313 #: ../fish/guestfish-actions.pod:1127
8314 #, no-wrap
8315 msgid ""
8316 " exists path\n"
8317 "\n"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8322 msgid ""
8323 "This returns C<true> if and only if there is a file, directory (or anything) "
8324 "with the given C<path> name."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1132
8329 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8330 msgstr ""
8331
8332 #. type: =head2
8333 #: ../fish/guestfish-actions.pod:1134
8334 msgid "fallocate"
8335 msgstr ""
8336
8337 #. type: verbatim
8338 #: ../fish/guestfish-actions.pod:1136
8339 #, no-wrap
8340 msgid ""
8341 " fallocate path len\n"
8342 "\n"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8347 msgid ""
8348 "This command preallocates a file (containing zero bytes) named C<path> of "
8349 "size C<len> bytes.  If the file exists already, it is overwritten."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8354 msgid ""
8355 "Do not confuse this with the guestfish-specific C<alloc> command which "
8356 "allocates a file in the host and attaches it as a device."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1146
8361 msgid ""
8362 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8363 "instead."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1153
8368 msgid "fallocate64"
8369 msgstr ""
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1155
8373 #, no-wrap
8374 msgid ""
8375 " fallocate64 path len\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1161
8381 msgid ""
8382 "Note that this call allocates disk blocks for the file.  To create a sparse "
8383 "file use L</truncate-size> instead."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1164
8388 msgid ""
8389 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8390 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8391 "maximum size of files created through that call to 1GB."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8396 msgid ""
8397 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8398 "commands which create a file in the host and attach it as a device."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1173
8403 msgid "fgrep"
8404 msgstr ""
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1175
8408 #, no-wrap
8409 msgid ""
8410 " fgrep pattern path\n"
8411 "\n"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8416 msgid "This calls the external C<fgrep> program and returns the matching lines."
8417 msgstr ""
8418
8419 #. type: =head2
8420 #: ../fish/guestfish-actions.pod:1183
8421 msgid "fgrepi"
8422 msgstr ""
8423
8424 #. type: verbatim
8425 #: ../fish/guestfish-actions.pod:1185
8426 #, no-wrap
8427 msgid ""
8428 " fgrepi pattern path\n"
8429 "\n"
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8434 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1193
8439 msgid "file"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1195
8444 #, no-wrap
8445 msgid ""
8446 " file path\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8452 msgid ""
8453 "This call uses the standard L<file(1)> command to determine the type or "
8454 "contents of the file."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8459 msgid ""
8460 "This call will also transparently look inside various types of compressed "
8461 "file."
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8466 msgid ""
8467 "The exact command which runs is C<file -zb path>.  Note in particular that "
8468 "the filename is not prepended to the output (the I<-b> option)."
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8473 msgid ""
8474 "The output depends on the output of the underlying L<file(1)> command and it "
8475 "can change in future in ways beyond our control.  In other words, the output "
8476 "is not guaranteed by the ABI."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1211
8481 msgid ""
8482 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8483 "(etc), L</is-zero>."
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../fish/guestfish-actions.pod:1214
8488 msgid "file-architecture"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../fish/guestfish-actions.pod:1216
8493 #, no-wrap
8494 msgid ""
8495 " file-architecture filename\n"
8496 "\n"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8501 msgid ""
8502 "This detects the architecture of the binary C<filename>, and returns it if "
8503 "known."
8504 msgstr ""
8505
8506 #. type: textblock
8507 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8508 msgid "Currently defined architectures are:"
8509 msgstr ""
8510
8511 #. type: =item
8512 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8513 msgid "\"i386\""
8514 msgstr ""
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8518 msgid ""
8519 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8520 "irrespective of the precise processor requirements of the binary."
8521 msgstr ""
8522
8523 #. type: =item
8524 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8525 msgid "\"x86_64\""
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8530 msgid "64 bit x86-64."
8531 msgstr ""
8532
8533 #. type: =item
8534 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8535 msgid "\"sparc\""
8536 msgstr ""
8537
8538 #. type: textblock
8539 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8540 msgid "32 bit SPARC."
8541 msgstr ""
8542
8543 #. type: =item
8544 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8545 msgid "\"sparc64\""
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8550 msgid "64 bit SPARC V9 and above."
8551 msgstr ""
8552
8553 #. type: =item
8554 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8555 msgid "\"ia64\""
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8560 msgid "Intel Itanium."
8561 msgstr ""
8562
8563 #. type: =item
8564 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8565 msgid "\"ppc\""
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8570 msgid "32 bit Power PC."
8571 msgstr ""
8572
8573 #. type: =item
8574 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8575 msgid "\"ppc64\""
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8580 msgid "64 bit Power PC."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8585 msgid "Libguestfs may return other architecture strings in future."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8590 msgid "The function works on at least the following types of files:"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8595 msgid "many types of Un*x and Linux binary"
8596 msgstr ""
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8600 msgid "many types of Un*x and Linux shared library"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8605 msgid "Windows Win32 and Win64 binaries"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8610 msgid "Windows Win32 and Win64 DLLs"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8615 msgid "Win32 binaries and DLLs return C<i386>."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8620 msgid "Win64 binaries and DLLs return C<x86_64>."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8625 msgid "Linux kernel modules"
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8630 msgid "Linux new-style initrd images"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8635 msgid "some non-x86 Linux vmlinuz kernels"
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8640 msgid "What it can't do currently:"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8645 msgid "static libraries (libfoo.a)"
8646 msgstr ""
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8650 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8655 msgid "x86 Linux vmlinuz kernels"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8660 msgid ""
8661 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8662 "compressed code, and are horribly hard to unpack.  If you want to find the "
8663 "architecture of a kernel, use the architecture of the associated initrd or "
8664 "kernel module(s) instead."
8665 msgstr ""
8666
8667 #. type: =head2
8668 #: ../fish/guestfish-actions.pod:1319
8669 msgid "filesize"
8670 msgstr ""
8671
8672 #. type: verbatim
8673 #: ../fish/guestfish-actions.pod:1321
8674 #, no-wrap
8675 msgid ""
8676 " filesize file\n"
8677 "\n"
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8682 msgid "This command returns the size of C<file> in bytes."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1325
8687 msgid ""
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8689 "L</is-file> etc.  To get the size of block devices, use "
8690 "L</blockdev-getsize64>."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1329
8695 msgid "fill"
8696 msgstr ""
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1331
8700 #, no-wrap
8701 msgid ""
8702 " fill c len path\n"
8703 "\n"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8708 msgid ""
8709 "This command creates a new file called C<path>.  The initial content of the "
8710 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8711 "C<[0..255]>."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1337
8716 msgid ""
8717 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8718 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8719 "L</fill-pattern>."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:1342
8724 msgid "fill-pattern"
8725 msgstr ""
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:1344
8729 #, no-wrap
8730 msgid ""
8731 " fill-pattern pattern len path\n"
8732 "\n"
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1346
8737 msgid ""
8738 "This function is like L</fill> except that it creates a new file of length "
8739 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8740 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8741 "bytes."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:1351
8746 msgid "find"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:1353
8751 #, no-wrap
8752 msgid ""
8753 " find directory\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8759 msgid ""
8760 "This command lists out all files and directories, recursively, starting at "
8761 "C<directory>.  It is essentially equivalent to running the shell command "
8762 "C<find directory -print> but some post-processing happens on the output, "
8763 "described below."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8768 msgid ""
8769 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8770 "structure was:"
8771 msgstr ""
8772
8773 #. type: verbatim
8774 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8775 #, no-wrap
8776 msgid ""
8777 " /tmp/a\n"
8778 " /tmp/b\n"
8779 " /tmp/c/d\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1367
8785 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8786 msgstr ""
8787
8788 #. type: verbatim
8789 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8790 #, no-wrap
8791 msgid ""
8792 " a\n"
8793 " b\n"
8794 " c\n"
8795 " c/d\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8801 msgid "If C<directory> is not a directory, then this command returns an error."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8806 msgid "The returned list is sorted."
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1380
8811 msgid "See also L</find0>."
8812 msgstr ""
8813
8814 #. type: =head2
8815 #: ../fish/guestfish-actions.pod:1385
8816 msgid "find0"
8817 msgstr ""
8818
8819 #. type: verbatim
8820 #: ../fish/guestfish-actions.pod:1387
8821 #, no-wrap
8822 msgid ""
8823 " find0 directory (files|-)\n"
8824 "\n"
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8829 msgid ""
8830 "This command lists out all files and directories, recursively, starting at "
8831 "C<directory>, placing the resulting list in the external file called "
8832 "C<files>."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../fish/guestfish-actions.pod:1393
8837 msgid "This command works the same way as L</find> with the following exceptions:"
8838 msgstr ""
8839
8840 #. type: textblock
8841 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8842 msgid "The resulting list is written to an external file."
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8847 msgid ""
8848 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8849 "L<find(1)> option I<-print0>."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8854 msgid "This command is not limited in the number of names that it can return."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8859 msgid "The result list is not sorted."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1420
8864 msgid "findfs-label"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1422
8869 #, no-wrap
8870 msgid ""
8871 " findfs-label label\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8877 msgid ""
8878 "This command searches the filesystems and returns the one which has the "
8879 "given label.  An error is returned if no such filesystem can be found."
8880 msgstr ""
8881
8882 #. type: textblock
8883 #: ../fish/guestfish-actions.pod:1428
8884 msgid "To find the label of a filesystem, use L</vfs-label>."
8885 msgstr ""
8886
8887 #. type: =head2
8888 #: ../fish/guestfish-actions.pod:1430
8889 msgid "findfs-uuid"
8890 msgstr ""
8891
8892 #. type: verbatim
8893 #: ../fish/guestfish-actions.pod:1432
8894 #, no-wrap
8895 msgid ""
8896 " findfs-uuid uuid\n"
8897 "\n"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8902 msgid ""
8903 "This command searches the filesystems and returns the one which has the "
8904 "given UUID.  An error is returned if no such filesystem can be found."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:1438
8909 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1440
8914 msgid "fsck"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1442
8919 #, no-wrap
8920 msgid ""
8921 " fsck fstype device\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8927 msgid ""
8928 "This runs the filesystem checker (fsck) on C<device> which should have "
8929 "filesystem type C<fstype>."
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8934 msgid ""
8935 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8936 "codes from C<fsck>."
8937 msgstr ""
8938
8939 #. type: textblock
8940 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8941 msgid "Multiple status codes can be summed together."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8946 msgid ""
8947 "A non-zero return code can mean \"success\", for example if errors have been "
8948 "corrected on the filesystem."
8949 msgstr ""
8950
8951 #. type: textblock
8952 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8953 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8958 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1472
8963 msgid "get-append"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1474
8968 #, no-wrap
8969 msgid ""
8970 " get-append\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8976 msgid ""
8977 "Return the additional kernel options which are added to the guest kernel "
8978 "command line."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8983 msgid "If C<NULL> then no options are added."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1481
8988 msgid "get-attach-method"
8989 msgstr ""
8990
8991 #. type: verbatim
8992 #: ../fish/guestfish-actions.pod:1483
8993 #, no-wrap
8994 msgid ""
8995 " get-attach-method\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1485
9001 msgid "Return the current attach method.  See L</set-attach-method>."
9002 msgstr ""
9003
9004 #. type: =head2
9005 #: ../fish/guestfish-actions.pod:1487
9006 msgid "get-autosync"
9007 msgstr ""
9008
9009 #. type: verbatim
9010 #: ../fish/guestfish-actions.pod:1489
9011 #, no-wrap
9012 msgid ""
9013 " get-autosync\n"
9014 "\n"
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9019 msgid "Get the autosync flag."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:1493
9024 msgid "get-direct"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:1495
9029 #, no-wrap
9030 msgid ""
9031 " get-direct\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9037 msgid "Return the direct appliance mode flag."
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:1499
9042 msgid "get-e2label"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:1501
9047 #, no-wrap
9048 msgid ""
9049 " get-e2label device\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9055 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1506
9060 msgid ""
9061 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9062 "instead."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1513
9067 msgid "get-e2uuid"
9068 msgstr ""
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1515
9072 #, no-wrap
9073 msgid ""
9074 " get-e2uuid device\n"
9075 "\n"
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9080 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1520
9085 msgid ""
9086 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9087 "instead."
9088 msgstr ""
9089
9090 #. type: =head2
9091 #: ../fish/guestfish-actions.pod:1527
9092 msgid "get-memsize"
9093 msgstr ""
9094
9095 #. type: verbatim
9096 #: ../fish/guestfish-actions.pod:1529
9097 #, no-wrap
9098 msgid ""
9099 " get-memsize\n"
9100 "\n"
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9105 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:1534
9110 msgid ""
9111 "If L</set-memsize> was not called on this handle, and if "
9112 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9113 "value for memsize."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462 ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
9118 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:1541
9123 msgid "get-network"
9124 msgstr ""
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:1543
9128 #, no-wrap
9129 msgid ""
9130 " get-network\n"
9131 "\n"
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9136 msgid "This returns the enable network flag."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:1547
9141 msgid "get-path"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:1549
9146 #, no-wrap
9147 msgid ""
9148 " get-path\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9154 msgid "Return the current search path."
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9159 msgid ""
9160 "This is always non-NULL.  If it wasn't set already, then this will return "
9161 "the default path."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:1556
9166 msgid "get-pgroup"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:1558
9171 #, no-wrap
9172 msgid ""
9173 " get-pgroup\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9179 msgid "This returns the process group flag."
9180 msgstr ""
9181
9182 #. type: =head2
9183 #: ../fish/guestfish-actions.pod:1562
9184 msgid "get-pid"
9185 msgstr ""
9186
9187 #. type: =head2
9188 #: ../fish/guestfish-actions.pod:1564
9189 msgid "pid"
9190 msgstr ""
9191
9192 #. type: verbatim
9193 #: ../fish/guestfish-actions.pod:1566
9194 #, no-wrap
9195 msgid ""
9196 " get-pid\n"
9197 "\n"
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9202 msgid ""
9203 "Return the process ID of the qemu subprocess.  If there is no qemu "
9204 "subprocess, then this will return an error."
9205 msgstr ""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9209 msgid "This is an internal call used for debugging and testing."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../fish/guestfish-actions.pod:1573
9214 msgid "get-qemu"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../fish/guestfish-actions.pod:1575
9219 #, no-wrap
9220 msgid ""
9221 " get-qemu\n"
9222 "\n"
9223 msgstr ""
9224
9225 #. type: textblock
9226 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9227 msgid "Return the current qemu binary."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9232 msgid ""
9233 "This is always non-NULL.  If it wasn't set already, then this will return "
9234 "the default qemu binary name."
9235 msgstr ""
9236
9237 #. type: =head2
9238 #: ../fish/guestfish-actions.pod:1582
9239 msgid "get-recovery-proc"
9240 msgstr ""
9241
9242 #. type: verbatim
9243 #: ../fish/guestfish-actions.pod:1584
9244 #, no-wrap
9245 msgid ""
9246 " get-recovery-proc\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9252 msgid "Return the recovery process enabled flag."
9253 msgstr ""
9254
9255 #. type: =head2
9256 #: ../fish/guestfish-actions.pod:1588
9257 msgid "get-selinux"
9258 msgstr ""
9259
9260 #. type: verbatim
9261 #: ../fish/guestfish-actions.pod:1590
9262 #, no-wrap
9263 msgid ""
9264 " get-selinux\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../fish/guestfish-actions.pod:1592
9270 msgid ""
9271 "This returns the current setting of the selinux flag which is passed to the "
9272 "appliance at boot time.  See L</set-selinux>."
9273 msgstr ""
9274
9275 #. type: =head2
9276 #: ../fish/guestfish-actions.pod:1598
9277 msgid "get-smp"
9278 msgstr ""
9279
9280 #. type: verbatim
9281 #: ../fish/guestfish-actions.pod:1600
9282 #, no-wrap
9283 msgid ""
9284 " get-smp\n"
9285 "\n"
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9290 msgid "This returns the number of virtual CPUs assigned to the appliance."
9291 msgstr ""
9292
9293 #. type: =head2
9294 #: ../fish/guestfish-actions.pod:1604
9295 msgid "get-state"
9296 msgstr ""
9297
9298 #. type: verbatim
9299 #: ../fish/guestfish-actions.pod:1606
9300 #, no-wrap
9301 msgid ""
9302 " get-state\n"
9303 "\n"
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9308 msgid ""
9309 "This returns the current state as an opaque integer.  This is only useful "
9310 "for printing debug and internal error messages."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570 ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626 ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9315 msgid "For more information on states, see L<guestfs(3)>."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:1613
9320 msgid "get-trace"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:1615
9325 #, no-wrap
9326 msgid ""
9327 " get-trace\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9333 msgid "Return the command trace flag."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:1619
9338 msgid "get-umask"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:1621
9343 #, no-wrap
9344 msgid ""
9345 " get-umask\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:1623
9351 msgid ""
9352 "Return the current umask.  By default the umask is C<022> unless it has been "
9353 "set by calling L</umask>."
9354 msgstr ""
9355
9356 #. type: =head2
9357 #: ../fish/guestfish-actions.pod:1626
9358 msgid "get-verbose"
9359 msgstr ""
9360
9361 #. type: verbatim
9362 #: ../fish/guestfish-actions.pod:1628
9363 #, no-wrap
9364 msgid ""
9365 " get-verbose\n"
9366 "\n"
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9371 msgid "This returns the verbose messages flag."
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1632
9376 msgid "getcon"
9377 msgstr ""
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1634
9381 #, no-wrap
9382 msgid ""
9383 " getcon\n"
9384 "\n"
9385 msgstr ""
9386
9387 #. type: textblock
9388 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9389 msgid "This gets the SELinux security context of the daemon."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:1638
9394 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9395 msgstr ""
9396
9397 #. type: =head2
9398 #: ../fish/guestfish-actions.pod:1641
9399 msgid "getxattr"
9400 msgstr ""
9401
9402 #. type: verbatim
9403 #: ../fish/guestfish-actions.pod:1643
9404 #, no-wrap
9405 msgid ""
9406 " getxattr path name\n"
9407 "\n"
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1645
9412 msgid ""
9413 "Get a single extended attribute from file C<path> named C<name>.  This call "
9414 "follows symlinks.  If you want to lookup an extended attribute for the "
9415 "symlink itself, use L</lgetxattr>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9420 msgid ""
9421 "Normally it is better to get all extended attributes from a file in one go "
9422 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9423 "buggy and do not provide a way to list out attributes.  For these "
9424 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9425 "attributes you want in advance and call this function."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722 ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9430 msgid ""
9431 "Extended attribute values are blobs of binary data.  If there is no extended "
9432 "attribute named C<name>, this returns an error."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1659
9437 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9438 msgstr ""
9439
9440 #. type: =head2
9441 #: ../fish/guestfish-actions.pod:1661
9442 msgid "getxattrs"
9443 msgstr ""
9444
9445 #. type: verbatim
9446 #: ../fish/guestfish-actions.pod:1663
9447 #, no-wrap
9448 msgid ""
9449 " getxattrs path\n"
9450 "\n"
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9455 msgid "This call lists the extended attributes of the file or directory C<path>."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9460 msgid ""
9461 "At the system call level, this is a combination of the L<listxattr(2)> and "
9462 "L<getxattr(2)> calls."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:1671
9467 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1673
9472 msgid "glob-expand"
9473 msgstr ""
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1675
9477 #, no-wrap
9478 msgid ""
9479 " glob-expand pattern\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9485 msgid ""
9486 "This command searches for all the pathnames matching C<pattern> according to "
9487 "the wildcard expansion rules used by the shell."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9492 msgid "If no paths match, then this returns an empty list (note: not an error)."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9497 msgid ""
9498 "It is just a wrapper around the C L<glob(3)> function with flags "
9499 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9500 msgstr ""
9501
9502 #. type: =head2
9503 #: ../fish/guestfish-actions.pod:1688
9504 msgid "grep"
9505 msgstr ""
9506
9507 #. type: verbatim
9508 #: ../fish/guestfish-actions.pod:1690
9509 #, no-wrap
9510 msgid ""
9511 " grep regex path\n"
9512 "\n"
9513 msgstr ""
9514
9515 #. type: textblock
9516 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9517 msgid "This calls the external C<grep> program and returns the matching lines."
9518 msgstr ""
9519
9520 #. type: =head2
9521 #: ../fish/guestfish-actions.pod:1698
9522 msgid "grepi"
9523 msgstr ""
9524
9525 #. type: verbatim
9526 #: ../fish/guestfish-actions.pod:1700
9527 #, no-wrap
9528 msgid ""
9529 " grepi regex path\n"
9530 "\n"
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9535 msgid "This calls the external C<grep -i> program and returns the matching lines."
9536 msgstr ""
9537
9538 #. type: =head2
9539 #: ../fish/guestfish-actions.pod:1708
9540 msgid "grub-install"
9541 msgstr ""
9542
9543 #. type: verbatim
9544 #: ../fish/guestfish-actions.pod:1710
9545 #, no-wrap
9546 msgid ""
9547 " grub-install root device\n"
9548 "\n"
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9553 msgid ""
9554 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9555 "with the root directory being C<root>."
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9560 msgid ""
9561 "There is currently no way in the API to install grub2, which is used by most "
9562 "modern Linux guests.  It is possible to run the grub2 command from the "
9563 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9568 msgid ""
9569 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9570 "compatible with itself, so this only works in rather narrow circumstances.  "
9571 "Careful testing with each guest version is advisable."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9576 msgid ""
9577 "If grub-install reports the error \"No suitable drive was found in the "
9578 "generated device map.\" it may be that you need to create a "
9579 "C</boot/grub/device.map> file first that contains the mapping between grub "
9580 "device names and Linux device names.  It is usually sufficient to create a "
9581 "file containing:"
9582 msgstr ""
9583
9584 #. type: verbatim
9585 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9586 #, no-wrap
9587 msgid ""
9588 " (hd0) /dev/vda\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9594 msgid "replacing C</dev/vda> with the name of the installation device."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1748
9599 msgid "head"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1750
9604 #, no-wrap
9605 msgid ""
9606 " head path\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9612 msgid ""
9613 "This command returns up to the first 10 lines of a file as a list of "
9614 "strings."
9615 msgstr ""
9616
9617 #. type: =head2
9618 #: ../fish/guestfish-actions.pod:1758
9619 msgid "head-n"
9620 msgstr ""
9621
9622 #. type: verbatim
9623 #: ../fish/guestfish-actions.pod:1760
9624 #, no-wrap
9625 msgid ""
9626 " head-n nrlines path\n"
9627 "\n"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9632 msgid ""
9633 "If the parameter C<nrlines> is a positive number, this returns the first "
9634 "C<nrlines> lines of the file C<path>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9639 msgid ""
9640 "If the parameter C<nrlines> is a negative number, this returns lines from "
9641 "the file C<path>, excluding the last C<nrlines> lines."
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9646 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:1773
9651 msgid "hexdump"
9652 msgstr ""
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:1775
9656 #, no-wrap
9657 msgid ""
9658 " hexdump path\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9664 msgid ""
9665 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9666 "human-readable, canonical hex dump of the file."
9667 msgstr ""
9668
9669 #. type: =head2
9670 #: ../fish/guestfish-actions.pod:1783
9671 msgid "initrd-cat"
9672 msgstr ""
9673
9674 #. type: verbatim
9675 #: ../fish/guestfish-actions.pod:1785
9676 #, no-wrap
9677 msgid ""
9678 " initrd-cat initrdpath filename\n"
9679 "\n"
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9684 msgid ""
9685 "This command unpacks the file C<filename> from the initrd file called "
9686 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9687 "character."
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9692 msgid ""
9693 "For example, in guestfish you could use the following command to examine the "
9694 "boot script (usually called C</init>)  contained in a Linux initrd or "
9695 "initramfs image:"
9696 msgstr ""
9697
9698 #. type: verbatim
9699 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9700 #, no-wrap
9701 msgid ""
9702 " initrd-cat /boot/initrd-<version>.img init\n"
9703 "\n"
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1797
9708 msgid "See also L</initrd-list>."
9709 msgstr ""
9710
9711 #. type: =head2
9712 #: ../fish/guestfish-actions.pod:1802
9713 msgid "initrd-list"
9714 msgstr ""
9715
9716 #. type: verbatim
9717 #: ../fish/guestfish-actions.pod:1804
9718 #, no-wrap
9719 msgid ""
9720 " initrd-list path\n"
9721 "\n"
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9726 msgid "This command lists out files contained in an initrd."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9731 msgid ""
9732 "The files are listed without any initial C</> character.  The files are "
9733 "listed in the order they appear (not necessarily alphabetical).  Directory "
9734 "names are listed as separate items."
9735 msgstr ""
9736
9737 #. type: textblock
9738 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9739 msgid ""
9740 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9741 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9742 "files)."
9743 msgstr ""
9744
9745 #. type: =head2
9746 #: ../fish/guestfish-actions.pod:1816
9747 msgid "inotify-add-watch"
9748 msgstr ""
9749
9750 #. type: verbatim
9751 #: ../fish/guestfish-actions.pod:1818
9752 #, no-wrap
9753 msgid ""
9754 " inotify-add-watch path mask\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9760 msgid "Watch C<path> for the events listed in C<mask>."
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9765 msgid ""
9766 "Note that if C<path> is a directory then events within that directory are "
9767 "watched, but this does I<not> happen recursively (in subdirectories)."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9772 msgid ""
9773 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9774 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9775 msgstr ""
9776
9777 #. type: =head2
9778 #: ../fish/guestfish-actions.pod:1830
9779 msgid "inotify-close"
9780 msgstr ""
9781
9782 #. type: verbatim
9783 #: ../fish/guestfish-actions.pod:1832
9784 #, no-wrap
9785 msgid ""
9786 " inotify-close\n"
9787 "\n"
9788 msgstr ""
9789
9790 #. type: textblock
9791 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9792 msgid ""
9793 "This closes the inotify handle which was previously opened by inotify_init.  "
9794 "It removes all watches, throws away any pending events, and deallocates all "
9795 "resources."
9796 msgstr ""
9797
9798 #. type: =head2
9799 #: ../fish/guestfish-actions.pod:1838
9800 msgid "inotify-files"
9801 msgstr ""
9802
9803 #. type: verbatim
9804 #: ../fish/guestfish-actions.pod:1840
9805 #, no-wrap
9806 msgid ""
9807 " inotify-files\n"
9808 "\n"
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1842
9813 msgid ""
9814 "This function is a helpful wrapper around L</inotify-read> which just "
9815 "returns a list of pathnames of objects that were touched.  The returned "
9816 "pathnames are sorted and deduplicated."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:1846
9821 msgid "inotify-init"
9822 msgstr ""
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:1848
9826 #, no-wrap
9827 msgid ""
9828 " inotify-init maxevents\n"
9829 "\n"
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9834 msgid ""
9835 "This command creates a new inotify handle.  The inotify subsystem can be "
9836 "used to notify events which happen to objects in the guest filesystem."
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../fish/guestfish-actions.pod:1854
9841 msgid ""
9842 "C<maxevents> is the maximum number of events which will be queued up between "
9843 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9844 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9845 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9846 "but records the fact that it threw them away by setting a flag "
9847 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9848 msgstr ""
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1864
9852 msgid ""
9853 "Before any events are generated, you have to add some watches to the "
9854 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9855 "L</inotify-watch-all>."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1870
9860 msgid ""
9861 "Queued up events should be read periodically by calling L</inotify-read> (or "
9862 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9863 "If you don't read the events out often enough then you risk the internal "
9864 "queue overflowing."
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:1877
9869 msgid ""
9870 "The handle should be closed after use by calling L</inotify-close>.  This "
9871 "also removes any watches automatically."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9876 msgid ""
9877 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9878 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9879 "that there is one global inotify handle per libguestfs instance."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:1886
9884 msgid "inotify-read"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:1888
9889 #, no-wrap
9890 msgid ""
9891 " inotify-read\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9897 msgid ""
9898 "Return the complete queue of events that have happened since the previous "
9899 "read call."
9900 msgstr ""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9904 msgid "If no events have happened, this returns an empty list."
9905 msgstr ""
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9909 msgid ""
9910 "I<Note>: In order to make sure that all events have been read, you must call "
9911 "this function repeatedly until it returns an empty list.  The reason is that "
9912 "the call will read events up to the maximum appliance-to-host message size "
9913 "and leave remaining events in the queue."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../fish/guestfish-actions.pod:1901
9918 msgid "inotify-rm-watch"
9919 msgstr ""
9920
9921 #. type: verbatim
9922 #: ../fish/guestfish-actions.pod:1903
9923 #, no-wrap
9924 msgid ""
9925 " inotify-rm-watch wd\n"
9926 "\n"
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1905
9931 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:1908
9936 msgid "inspect-get-arch"
9937 msgstr ""
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:1910
9941 #, no-wrap
9942 msgid ""
9943 " inspect-get-arch root\n"
9944 "\n"
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:1912
9949 msgid ""
9950 "This returns the architecture of the inspected operating system.  The "
9951 "possible return values are listed under L</file-architecture>."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9956 msgid ""
9957 "If the architecture could not be determined, then the string C<unknown> is "
9958 "returned."
9959 msgstr ""
9960
9961 #. type: textblock
9962 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014 ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105 ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286 ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516 ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
9963 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9964 msgstr ""
9965
9966 #. type: =head2
9967 #: ../fish/guestfish-actions.pod:1921
9968 msgid "inspect-get-distro"
9969 msgstr ""
9970
9971 #. type: verbatim
9972 #: ../fish/guestfish-actions.pod:1923
9973 #, no-wrap
9974 msgid ""
9975 " inspect-get-distro root\n"
9976 "\n"
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9981 msgid "This returns the distro (distribution) of the inspected operating system."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9986 msgid "Currently defined distros are:"
9987 msgstr ""
9988
9989 #. type: =item
9990 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9991 msgid "\"archlinux\""
9992 msgstr ""
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9996 msgid "Arch Linux."
9997 msgstr ""
9998
9999 #. type: =item
10000 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10001 msgid "\"centos\""
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10006 msgid "CentOS."
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10011 msgid "\"debian\""
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10016 msgid "Debian."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10021 msgid "\"fedora\""
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10026 msgid "Fedora."
10027 msgstr ""
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10031 msgid "\"gentoo\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10036 msgid "Gentoo."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10041 msgid "\"linuxmint\""
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10046 msgid "Linux Mint."
10047 msgstr ""
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10051 msgid "\"mageia\""
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10056 msgid "Mageia."
10057 msgstr ""
10058
10059 #. type: =item
10060 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10061 msgid "\"mandriva\""
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10066 msgid "Mandriva."
10067 msgstr ""
10068
10069 #. type: =item
10070 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10071 msgid "\"meego\""
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10076 msgid "MeeGo."
10077 msgstr ""
10078
10079 #. type: =item
10080 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10081 msgid "\"opensuse\""
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10086 msgid "OpenSUSE."
10087 msgstr ""
10088
10089 #. type: =item
10090 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10091 msgid "\"pardus\""
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10096 msgid "Pardus."
10097 msgstr ""
10098
10099 #. type: =item
10100 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10101 msgid "\"redhat-based\""
10102 msgstr ""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10106 msgid "Some Red Hat-derived distro."
10107 msgstr ""
10108
10109 #. type: =item
10110 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10111 msgid "\"rhel\""
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10116 msgid "Red Hat Enterprise Linux."
10117 msgstr ""
10118
10119 #. type: =item
10120 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10121 msgid "\"scientificlinux\""
10122 msgstr ""
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10126 msgid "Scientific Linux."
10127 msgstr ""
10128
10129 #. type: =item
10130 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10131 msgid "\"slackware\""
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10136 msgid "Slackware."
10137 msgstr ""
10138
10139 #. type: =item
10140 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10141 msgid "\"ttylinux\""
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10146 msgid "ttylinux."
10147 msgstr ""
10148
10149 #. type: =item
10150 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10151 msgid "\"ubuntu\""
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10156 msgid "Ubuntu."
10157 msgstr ""
10158
10159 #. type: =item
10160 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084 ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10161 msgid "\"unknown\""
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10166 msgid "The distro could not be determined."
10167 msgstr ""
10168
10169 #. type: =item
10170 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10171 msgid "\"windows\""
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10176 msgid ""
10177 "Windows does not have distributions.  This string is returned if the OS type "
10178 "is Windows."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10183 msgid ""
10184 "Future versions of libguestfs may return other strings here.  The caller "
10185 "should be prepared to handle any string."
10186 msgstr ""
10187
10188 #. type: =head2
10189 #: ../fish/guestfish-actions.pod:2016
10190 msgid "inspect-get-drive-mappings"
10191 msgstr ""
10192
10193 #. type: verbatim
10194 #: ../fish/guestfish-actions.pod:2018
10195 #, no-wrap
10196 msgid ""
10197 " inspect-get-drive-mappings root\n"
10198 "\n"
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10203 msgid ""
10204 "This call is useful for Windows which uses a primitive system of assigning "
10205 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10206 "Windows Registry to find out how disks/partitions are mapped to drive "
10207 "letters, and returns a hash table as in the example below:"
10208 msgstr ""
10209
10210 #. type: verbatim
10211 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10212 #, no-wrap
10213 msgid ""
10214 " C      =>     /dev/vda2\n"
10215 " E      =>     /dev/vdb1\n"
10216 " F      =>     /dev/vdc1\n"
10217 "\n"
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10222 msgid ""
10223 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10224 "and just contains the drive letter, without the customary colon separator "
10225 "character."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10230 msgid ""
10231 "In future we may support other operating systems that also used drive "
10232 "letters, but the keys for those might not be case insensitive and might be "
10233 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10234 "C<h1> etc."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10239 msgid ""
10240 "For Windows guests, currently only hard drive mappings are returned.  "
10241 "Removable disks (eg. DVD-ROMs) are ignored."
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10246 msgid ""
10247 "For guests that do not use drive mappings, or if the drive mappings could "
10248 "not be determined, this returns an empty hash table."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2045
10253 msgid ""
10254 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10255 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10256 msgstr ""
10257
10258 #. type: =head2
10259 #: ../fish/guestfish-actions.pod:2049
10260 msgid "inspect-get-filesystems"
10261 msgstr ""
10262
10263 #. type: verbatim
10264 #: ../fish/guestfish-actions.pod:2051
10265 #, no-wrap
10266 msgid ""
10267 " inspect-get-filesystems root\n"
10268 "\n"
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10273 msgid ""
10274 "This returns a list of all the filesystems that we think are associated with "
10275 "this operating system.  This includes the root filesystem, other ordinary "
10276 "filesystems, and non-mounted devices like swap partitions."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10281 msgid ""
10282 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10283 "to be shared between operating systems."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:2061
10288 msgid ""
10289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10290 "L</inspect-get-mountpoints>."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2064
10295 msgid "inspect-get-format"
10296 msgstr ""
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2066
10300 #, no-wrap
10301 msgid ""
10302 " inspect-get-format root\n"
10303 "\n"
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10308 msgid ""
10309 "This returns the format of the inspected operating system.  You can use it "
10310 "to detect install images, live CDs and similar."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10315 msgid "Currently defined formats are:"
10316 msgstr ""
10317
10318 #. type: =item
10319 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10320 msgid "\"installed\""
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10325 msgid "This is an installed operating system."
10326 msgstr ""
10327
10328 #. type: =item
10329 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10330 msgid "\"installer\""
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10335 msgid ""
10336 "The disk image being inspected is not an installed operating system, but a "
10337 "I<bootable> install disk, live CD, or similar."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10342 msgid "The format of this disk image is not known."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../fish/guestfish-actions.pod:2095
10347 msgid "inspect-get-hostname"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../fish/guestfish-actions.pod:2097
10352 #, no-wrap
10353 msgid ""
10354 " inspect-get-hostname root\n"
10355 "\n"
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10360 msgid ""
10361 "This function returns the hostname of the operating system as found by "
10362 "inspection of the guest's configuration files."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10367 msgid ""
10368 "If the hostname could not be determined, then the string C<unknown> is "
10369 "returned."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2107
10374 msgid "inspect-get-icon"
10375 msgstr ""
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2109
10379 #, no-wrap
10380 msgid ""
10381 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10382 "\n"
10383 msgstr ""
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10387 msgid ""
10388 "This function returns an icon corresponding to the inspected operating "
10389 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10390 "to PNG if necessary)."
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10395 msgid ""
10396 "If it was not possible to get an icon this function returns a zero-length "
10397 "(non-NULL) buffer.  I<Callers must check for this case>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10402 msgid ""
10403 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10404 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10405 "this file will be returned.  You can disable favicons by passing the "
10406 "optional C<favicon> boolean as false (default is true)."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10411 msgid ""
10412 "If finding the favicon fails, then we look in other places in the guest for "
10413 "a suitable icon."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10418 msgid ""
10419 "If the optional C<highquality> boolean is true then only high quality icons "
10420 "are returned, which means only icons of high resolution with an alpha "
10421 "channel.  The default (false) is to return any icon we can, even if it is of "
10422 "substandard quality."
10423 msgstr ""
10424
10425 #. type: textblock
10426 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10427 msgid ""
10428 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10429 "before you call this, since it needs to read information from the guest "
10430 "filesystem during the call."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10435 msgid ""
10436 "B<Security:> The icon data comes from the untrusted guest, and should be "
10437 "treated with caution.  PNG files have been known to contain exploits.  "
10438 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10439 "trying to process or display the icon."
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10444 msgid ""
10445 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10446 "tries to return the largest, highest quality icon available.  The "
10447 "application must scale the icon to the required size."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10452 msgid ""
10453 "Extracting icons from Windows guests requires the external C<wrestool> "
10454 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10455 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10456 "installed separately."
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10461 msgid ""
10462 "Operating system icons are usually trademarks.  Seek legal advice before "
10463 "using trademarks in applications."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2173
10468 msgid "inspect-get-major-version"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2175
10473 #, no-wrap
10474 msgid ""
10475 " inspect-get-major-version root\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10481 msgid "This returns the major version number of the inspected operating system."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10486 msgid ""
10487 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10488 "popular public names used by the operating system.  Notably the operating "
10489 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10490 "1).  You can find out the real versions corresponding to releases of Windows "
10491 "by consulting Wikipedia or MSDN."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10496 msgid "If the version could not be determined, then C<0> is returned."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2191
10501 msgid "inspect-get-minor-version"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2193
10506 #, no-wrap
10507 msgid ""
10508 " inspect-get-minor-version root\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10514 msgid "This returns the minor version number of the inspected operating system."
10515 msgstr ""
10516
10517 #. type: textblock
10518 #: ../fish/guestfish-actions.pod:2200
10519 msgid ""
10520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10521 "L</inspect-get-major-version>."
10522 msgstr ""
10523
10524 #. type: =head2
10525 #: ../fish/guestfish-actions.pod:2203
10526 msgid "inspect-get-mountpoints"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../fish/guestfish-actions.pod:2205
10531 #, no-wrap
10532 msgid ""
10533 " inspect-get-mountpoints root\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10539 msgid ""
10540 "This returns a hash of where we think the filesystems associated with this "
10541 "operating system should be mounted.  Callers should note that this is at "
10542 "best an educated guess made by reading configuration files such as "
10543 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10544 "are non-existent or not mountable and callers should be prepared to handle "
10545 "or ignore failures if they try to mount them."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10550 msgid ""
10551 "Each element in the returned hashtable has a key which is the path of the "
10552 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10553 "mounted there (eg. C</dev/sda1>)."
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10558 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:2224
10563 msgid ""
10564 "For operating systems like Windows which still use drive letters, this call "
10565 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10566 "information about the mapping of drive letters to partitions, see "
10567 "L</inspect-get-drive-mappings>."
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2230
10572 msgid ""
10573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10574 "L</inspect-get-filesystems>."
10575 msgstr ""
10576
10577 #. type: =head2
10578 #: ../fish/guestfish-actions.pod:2233
10579 msgid "inspect-get-package-format"
10580 msgstr ""
10581
10582 #. type: verbatim
10583 #: ../fish/guestfish-actions.pod:2235
10584 #, no-wrap
10585 msgid ""
10586 " inspect-get-package-format root\n"
10587 "\n"
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:2237
10592 msgid ""
10593 "This function and L</inspect-get-package-management> return the package "
10594 "format and package management tool used by the inspected operating system.  "
10595 "For example for Fedora these functions would return C<rpm> (package format) "
10596 "and C<yum> (package management)."
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10601 msgid ""
10602 "This returns the string C<unknown> if we could not determine the package "
10603 "format I<or> if the operating system does not have a real packaging system "
10604 "(eg. Windows)."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10609 msgid ""
10610 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10611 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10612 msgstr ""
10613
10614 #. type: =head2
10615 #: ../fish/guestfish-actions.pod:2253
10616 msgid "inspect-get-package-management"
10617 msgstr ""
10618
10619 #. type: verbatim
10620 #: ../fish/guestfish-actions.pod:2255
10621 #, no-wrap
10622 msgid ""
10623 " inspect-get-package-management root\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2257
10629 msgid ""
10630 "L</inspect-get-package-format> and this function return the package format "
10631 "and package management tool used by the inspected operating system.  For "
10632 "example for Fedora these functions would return C<rpm> (package format) and "
10633 "C<yum> (package management)."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10638 msgid ""
10639 "This returns the string C<unknown> if we could not determine the package "
10640 "management tool I<or> if the operating system does not have a real packaging "
10641 "system (eg. Windows)."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10646 msgid ""
10647 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10648 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10649 "versions of libguestfs may return other strings."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:2274
10654 msgid "inspect-get-product-name"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:2276
10659 #, no-wrap
10660 msgid ""
10661 " inspect-get-product-name root\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10667 msgid ""
10668 "This returns the product name of the inspected operating system.  The "
10669 "product name is generally some freeform string which can be displayed to the "
10670 "user, but should not be parsed by programs."
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10675 msgid ""
10676 "If the product name could not be determined, then the string C<unknown> is "
10677 "returned."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:2288
10682 msgid "inspect-get-product-variant"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:2290
10687 #, no-wrap
10688 msgid ""
10689 " inspect-get-product-variant root\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10695 msgid "This returns the product variant of the inspected operating system."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10700 msgid ""
10701 "For Windows guests, this returns the contents of the Registry key "
10702 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10703 "which is usually a string such as C<Client> or C<Server> (other values are "
10704 "possible).  This can be used to distinguish consumer and enterprise versions "
10705 "of Windows that have the same version number (for example, Windows 7 and "
10706 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10707 "the latter is C<Server>)."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10712 msgid ""
10713 "For enterprise Linux guests, in future we intend this to return the product "
10714 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10715 "implemented at present."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10720 msgid ""
10721 "If the product variant could not be determined, then the string C<unknown> "
10722 "is returned."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2311
10727 msgid ""
10728 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10729 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:2315
10734 msgid "inspect-get-roots"
10735 msgstr ""
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:2317
10739 #, no-wrap
10740 msgid ""
10741 " inspect-get-roots\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2319
10747 msgid ""
10748 "This function is a convenient way to get the list of root devices, as "
10749 "returned from a previous call to L</inspect-os>, but without redoing the "
10750 "whole inspection process."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2323
10755 msgid ""
10756 "This returns an empty list if either no root devices were found or the "
10757 "caller has not called L</inspect-os>."
10758 msgstr ""
10759
10760 #. type: =head2
10761 #: ../fish/guestfish-actions.pod:2328
10762 msgid "inspect-get-type"
10763 msgstr ""
10764
10765 #. type: verbatim
10766 #: ../fish/guestfish-actions.pod:2330
10767 #, no-wrap
10768 msgid ""
10769 " inspect-get-type root\n"
10770 "\n"
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10775 msgid ""
10776 "This returns the type of the inspected operating system.  Currently defined "
10777 "types are:"
10778 msgstr ""
10779
10780 #. type: =item
10781 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10782 msgid "\"linux\""
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10787 msgid "Any Linux-based operating system."
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10792 msgid "Any Microsoft Windows operating system."
10793 msgstr ""
10794
10795 #. type: =item
10796 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10797 msgid "\"freebsd\""
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10802 msgid "FreeBSD."
10803 msgstr ""
10804
10805 #. type: =item
10806 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10807 msgid "\"netbsd\""
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10812 msgid "NetBSD."
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10817 msgid "The operating system type could not be determined."
10818 msgstr ""
10819
10820 #. type: =head2
10821 #: ../fish/guestfish-actions.pod:2364
10822 msgid "inspect-get-windows-current-control-set"
10823 msgstr ""
10824
10825 #. type: verbatim
10826 #: ../fish/guestfish-actions.pod:2366
10827 #, no-wrap
10828 msgid ""
10829 " inspect-get-windows-current-control-set root\n"
10830 "\n"
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10835 msgid ""
10836 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10837 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10838 msgstr ""
10839
10840 #. type: textblock
10841 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10842 msgid ""
10843 "This call assumes that the guest is Windows and that the Registry could be "
10844 "examined by inspection.  If this is not the case then an error is returned."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:2377
10849 msgid "inspect-get-windows-systemroot"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:2379
10854 #, no-wrap
10855 msgid ""
10856 " inspect-get-windows-systemroot root\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10862 msgid ""
10863 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10864 "is a directory path such as C</WINDOWS>."
10865 msgstr ""
10866
10867 #. type: textblock
10868 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10869 msgid ""
10870 "This call assumes that the guest is Windows and that the systemroot could be "
10871 "determined by inspection.  If this is not the case then an error is "
10872 "returned."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2390
10877 msgid "inspect-is-live"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2392
10882 #, no-wrap
10883 msgid ""
10884 " inspect-is-live root\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2394
10890 msgid ""
10891 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10892 "then this returns true if a live image was detected on the disk."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:2400
10897 msgid "inspect-is-multipart"
10898 msgstr ""
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:2402
10902 #, no-wrap
10903 msgid ""
10904 " inspect-is-multipart root\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:2404
10910 msgid ""
10911 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10912 "then this returns true if the disk is part of a set."
10913 msgstr ""
10914
10915 #. type: =head2
10916 #: ../fish/guestfish-actions.pod:2410
10917 msgid "inspect-is-netinst"
10918 msgstr ""
10919
10920 #. type: verbatim
10921 #: ../fish/guestfish-actions.pod:2412
10922 #, no-wrap
10923 msgid ""
10924 " inspect-is-netinst root\n"
10925 "\n"
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:2414
10930 msgid ""
10931 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10932 "then this returns true if the disk is a network installer, ie. not a "
10933 "self-contained install CD but one which is likely to require network access "
10934 "to complete the install."
10935 msgstr ""
10936
10937 #. type: =head2
10938 #: ../fish/guestfish-actions.pod:2422
10939 msgid "inspect-list-applications"
10940 msgstr ""
10941
10942 #. type: verbatim
10943 #: ../fish/guestfish-actions.pod:2424
10944 #, no-wrap
10945 msgid ""
10946 " inspect-list-applications root\n"
10947 "\n"
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10952 msgid "Return the list of applications installed in the operating system."
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:2428
10957 msgid ""
10958 "I<Note:> This call works differently from other parts of the inspection "
10959 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10960 "then mount up the disks, before calling this.  Listing applications is a "
10961 "significantly more difficult operation which requires access to the full "
10962 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10963 "are just returning data cached in the libguestfs handle, this call actually "
10964 "reads parts of the mounted filesystems during the call."
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10969 msgid ""
10970 "This returns an empty list if the inspection code was not able to determine "
10971 "the list of applications."
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10976 msgid "The application structure contains the following fields:"
10977 msgstr ""
10978
10979 #. type: =item
10980 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10981 msgid "C<app_name>"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10986 msgid ""
10987 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10988 "guests, this is the package name."
10989 msgstr ""
10990
10991 #. type: =item
10992 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10993 msgid "C<app_display_name>"
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10998 msgid ""
10999 "The display name of the application, sometimes localized to the install "
11000 "language of the guest operating system."
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11005 msgid ""
11006 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11007 "to display something can use C<app_name> instead."
11008 msgstr ""
11009
11010 #. type: =item
11011 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11012 msgid "C<app_epoch>"
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11017 msgid ""
11018 "For package managers which use epochs, this contains the epoch of the "
11019 "package (an integer).  If unavailable, this is returned as C<0>."
11020 msgstr ""
11021
11022 #. type: =item
11023 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11024 msgid "C<app_version>"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11029 msgid ""
11030 "The version string of the application or package.  If unavailable this is "
11031 "returned as an empty string C<\"\">."
11032 msgstr ""
11033
11034 #. type: =item
11035 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11036 msgid "C<app_release>"
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11041 msgid ""
11042 "The release string of the application or package, for package managers that "
11043 "use this.  If unavailable this is returned as an empty string C<\"\">."
11044 msgstr ""
11045
11046 #. type: =item
11047 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11048 msgid "C<app_install_path>"
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11053 msgid ""
11054 "The installation path of the application (on operating systems such as "
11055 "Windows which use installation paths).  This path is in the format used by "
11056 "the guest operating system, it is not a libguestfs path."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11061 msgid "If unavailable this is returned as an empty string C<\"\">."
11062 msgstr ""
11063
11064 #. type: =item
11065 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11066 msgid "C<app_trans_path>"
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11071 msgid ""
11072 "The install path translated into a libguestfs path.  If unavailable this is "
11073 "returned as an empty string C<\"\">."
11074 msgstr ""
11075
11076 #. type: =item
11077 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11078 msgid "C<app_publisher>"
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11083 msgid ""
11084 "The name of the publisher of the application, for package managers that use "
11085 "this.  If unavailable this is returned as an empty string C<\"\">."
11086 msgstr ""
11087
11088 #. type: =item
11089 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11090 msgid "C<app_url>"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11095 msgid ""
11096 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11097 "returned as an empty string C<\"\">."
11098 msgstr ""
11099
11100 #. type: =item
11101 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11102 msgid "C<app_source_package>"
11103 msgstr ""
11104
11105 #. type: textblock
11106 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11107 msgid ""
11108 "For packaging systems which support this, the name of the source package.  "
11109 "If unavailable this is returned as an empty string C<\"\">."
11110 msgstr ""
11111
11112 #. type: =item
11113 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11114 msgid "C<app_summary>"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11119 msgid ""
11120 "A short (usually one line) description of the application or package.  If "
11121 "unavailable this is returned as an empty string C<\"\">."
11122 msgstr ""
11123
11124 #. type: =item
11125 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11126 msgid "C<app_description>"
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11131 msgid ""
11132 "A longer description of the application or package.  If unavailable this is "
11133 "returned as an empty string C<\"\">."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:2518
11138 msgid "inspect-os"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:2520
11143 #, no-wrap
11144 msgid ""
11145 " inspect-os\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11151 msgid ""
11152 "This function uses other libguestfs functions and certain heuristics to "
11153 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11154 "for operating systems."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11159 msgid "The list returned is empty if no operating systems were found."
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11164 msgid ""
11165 "If one operating system was found, then this returns a list with a single "
11166 "element, which is the name of the root filesystem of this operating system.  "
11167 "It is also possible for this function to return a list containing more than "
11168 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11169 "element being the root filesystem of one of the operating systems."
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:2535
11174 msgid ""
11175 "You can pass the root string(s) returned to other L</inspect-get-*> "
11176 "functions in order to query further information about each operating system, "
11177 "such as the name and version."
11178 msgstr ""
11179
11180 #. type: textblock
11181 #: ../fish/guestfish-actions.pod:2540
11182 msgid ""
11183 "This function uses other libguestfs features such as L</mount-ro> and "
11184 "L</umount-all> in order to mount and unmount filesystems and look at the "
11185 "contents.  This should be called with no disks currently mounted.  The "
11186 "function may also use Augeas, so any existing Augeas handle will be closed."
11187 msgstr ""
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11191 msgid ""
11192 "This function cannot decrypt encrypted disks.  The caller must do that first "
11193 "(supplying the necessary keys) if the disk is encrypted."
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2809
11198 msgid "See also L</list-filesystems>."
11199 msgstr ""
11200
11201 #. type: =head2
11202 #: ../fish/guestfish-actions.pod:2554
11203 msgid "is-blockdev"
11204 msgstr ""
11205
11206 #. type: verbatim
11207 #: ../fish/guestfish-actions.pod:2556
11208 #, no-wrap
11209 msgid ""
11210 " is-blockdev path\n"
11211 "\n"
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11216 msgid ""
11217 "This returns C<true> if and only if there is a block device with the given "
11218 "C<path> name."
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579 ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607 ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651 ../fish/guestfish-actions.pod:2660
11223 msgid "See also L</stat>."
11224 msgstr ""
11225
11226 #. type: =head2
11227 #: ../fish/guestfish-actions.pod:2563
11228 msgid "is-busy"
11229 msgstr ""
11230
11231 #. type: verbatim
11232 #: ../fish/guestfish-actions.pod:2565
11233 #, no-wrap
11234 msgid ""
11235 " is-busy\n"
11236 "\n"
11237 msgstr ""
11238
11239 #. type: textblock
11240 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11241 msgid ""
11242 "This returns true iff this handle is busy processing a command (in the "
11243 "C<BUSY> state)."
11244 msgstr ""
11245
11246 #. type: =head2
11247 #: ../fish/guestfish-actions.pod:2572
11248 msgid "is-chardev"
11249 msgstr ""
11250
11251 #. type: verbatim
11252 #: ../fish/guestfish-actions.pod:2574
11253 #, no-wrap
11254 msgid ""
11255 " is-chardev path\n"
11256 "\n"
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11261 msgid ""
11262 "This returns C<true> if and only if there is a character device with the "
11263 "given C<path> name."
11264 msgstr ""
11265
11266 #. type: =head2
11267 #: ../fish/guestfish-actions.pod:2581
11268 msgid "is-config"
11269 msgstr ""
11270
11271 #. type: verbatim
11272 #: ../fish/guestfish-actions.pod:2583
11273 #, no-wrap
11274 msgid ""
11275 " is-config\n"
11276 "\n"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11281 msgid ""
11282 "This returns true iff this handle is being configured (in the C<CONFIG> "
11283 "state)."
11284 msgstr ""
11285
11286 #. type: =head2
11287 #: ../fish/guestfish-actions.pod:2590
11288 msgid "is-dir"
11289 msgstr ""
11290
11291 #. type: verbatim
11292 #: ../fish/guestfish-actions.pod:2592
11293 #, no-wrap
11294 msgid ""
11295 " is-dir path\n"
11296 "\n"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11301 msgid ""
11302 "This returns C<true> if and only if there is a directory with the given "
11303 "C<path> name.  Note that it returns false for other objects like files."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:2600
11308 msgid "is-fifo"
11309 msgstr ""
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:2602
11313 #, no-wrap
11314 msgid ""
11315 " is-fifo path\n"
11316 "\n"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11321 msgid ""
11322 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11323 "given C<path> name."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:2609
11328 msgid "is-file"
11329 msgstr ""
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:2611
11333 #, no-wrap
11334 msgid ""
11335 " is-file path\n"
11336 "\n"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11341 msgid ""
11342 "This returns C<true> if and only if there is a regular file with the given "
11343 "C<path> name.  Note that it returns false for other objects like "
11344 "directories."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2619
11349 msgid "is-launching"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2621
11354 #, no-wrap
11355 msgid ""
11356 " is-launching\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11362 msgid ""
11363 "This returns true iff this handle is launching the subprocess (in the "
11364 "C<LAUNCHING> state)."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2628
11369 msgid "is-lv"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2630
11374 #, no-wrap
11375 msgid ""
11376 " is-lv device\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11382 msgid ""
11383 "This command tests whether C<device> is a logical volume, and returns true "
11384 "iff this is the case."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:2635
11389 msgid "is-ready"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:2637
11394 #, no-wrap
11395 msgid ""
11396 " is-ready\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11402 msgid ""
11403 "This returns true iff this handle is ready to accept commands (in the "
11404 "C<READY> state)."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2644
11409 msgid "is-socket"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2646
11414 #, no-wrap
11415 msgid ""
11416 " is-socket path\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11422 msgid ""
11423 "This returns C<true> if and only if there is a Unix domain socket with the "
11424 "given C<path> name."
11425 msgstr ""
11426
11427 #. type: =head2
11428 #: ../fish/guestfish-actions.pod:2653
11429 msgid "is-symlink"
11430 msgstr ""
11431
11432 #. type: verbatim
11433 #: ../fish/guestfish-actions.pod:2655
11434 #, no-wrap
11435 msgid ""
11436 " is-symlink path\n"
11437 "\n"
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11442 msgid ""
11443 "This returns C<true> if and only if there is a symbolic link with the given "
11444 "C<path> name."
11445 msgstr ""
11446
11447 #. type: =head2
11448 #: ../fish/guestfish-actions.pod:2662
11449 msgid "is-zero"
11450 msgstr ""
11451
11452 #. type: verbatim
11453 #: ../fish/guestfish-actions.pod:2664
11454 #, no-wrap
11455 msgid ""
11456 " is-zero path\n"
11457 "\n"
11458 msgstr ""
11459
11460 #. type: textblock
11461 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11462 msgid ""
11463 "This returns true iff the file exists and the file is empty or it contains "
11464 "all zero bytes."
11465 msgstr ""
11466
11467 #. type: =head2
11468 #: ../fish/guestfish-actions.pod:2669
11469 msgid "is-zero-device"
11470 msgstr ""
11471
11472 #. type: verbatim
11473 #: ../fish/guestfish-actions.pod:2671
11474 #, no-wrap
11475 msgid ""
11476 " is-zero-device device\n"
11477 "\n"
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11482 msgid "This returns true iff the device exists and contains all zero bytes."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11487 msgid "Note that for large devices this can take a long time to run."
11488 msgstr ""
11489
11490 #. type: =head2
11491 #: ../fish/guestfish-actions.pod:2677
11492 msgid "kill-subprocess"
11493 msgstr ""
11494
11495 #. type: verbatim
11496 #: ../fish/guestfish-actions.pod:2679
11497 #, no-wrap
11498 msgid ""
11499 " kill-subprocess\n"
11500 "\n"
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11505 msgid "This kills the qemu subprocess.  You should never need to call this."
11506 msgstr ""
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2683
11510 msgid "launch"
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:2685
11515 msgid "run"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:2687
11520 #, no-wrap
11521 msgid ""
11522 " launch\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11528 msgid ""
11529 "Internally libguestfs is implemented by running a virtual machine using "
11530 "L<qemu(1)>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11535 msgid ""
11536 "You should call this after configuring the handle (eg. adding drives) but "
11537 "before performing any actions."
11538 msgstr ""
11539
11540 #. type: =head2
11541 #: ../fish/guestfish-actions.pod:2695
11542 msgid "lchown"
11543 msgstr ""
11544
11545 #. type: verbatim
11546 #: ../fish/guestfish-actions.pod:2697
11547 #, no-wrap
11548 msgid ""
11549 " lchown owner group path\n"
11550 "\n"
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:2699
11555 msgid ""
11556 "Change the file owner to C<owner> and group to C<group>.  This is like "
11557 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11558 "the target."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../fish/guestfish-actions.pod:2707
11563 msgid "lgetxattr"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../fish/guestfish-actions.pod:2709
11568 #, no-wrap
11569 msgid ""
11570 " lgetxattr path name\n"
11571 "\n"
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11576 msgid ""
11577 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11578 "is a symlink, then this call returns an extended attribute from the symlink."
11579 msgstr ""
11580
11581 #. type: textblock
11582 #: ../fish/guestfish-actions.pod:2725
11583 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11584 msgstr ""
11585
11586 #. type: =head2
11587 #: ../fish/guestfish-actions.pod:2727
11588 msgid "lgetxattrs"
11589 msgstr ""
11590
11591 #. type: verbatim
11592 #: ../fish/guestfish-actions.pod:2729
11593 #, no-wrap
11594 msgid ""
11595 " lgetxattrs path\n"
11596 "\n"
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2731
11601 msgid ""
11602 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11603 "it returns the extended attributes of the link itself."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:2735
11608 msgid "list-9p"
11609 msgstr ""
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:2737
11613 #, no-wrap
11614 msgid ""
11615 " list-9p\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11621 msgid ""
11622 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11623 "returned."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:2742
11628 msgid "list-devices"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:2744
11633 #, no-wrap
11634 msgid ""
11635 " list-devices\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11641 msgid "List all the block devices."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11646 msgid "The full block device names are returned, eg. C</dev/sda>."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../fish/guestfish-actions.pod:2752
11651 msgid "list-dm-devices"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../fish/guestfish-actions.pod:2754
11656 #, no-wrap
11657 msgid ""
11658 " list-dm-devices\n"
11659 "\n"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11664 msgid "List all device mapper devices."
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../fish/guestfish-actions.pod:2758
11669 msgid ""
11670 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11671 "previous call to L</luks-open>."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2761
11676 msgid ""
11677 "Device mapper devices which correspond to logical volumes are I<not> "
11678 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11679 msgstr ""
11680
11681 #. type: =head2
11682 #: ../fish/guestfish-actions.pod:2765
11683 msgid "list-filesystems"
11684 msgstr ""
11685
11686 #. type: verbatim
11687 #: ../fish/guestfish-actions.pod:2767
11688 #, no-wrap
11689 msgid ""
11690 " list-filesystems\n"
11691 "\n"
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11696 msgid ""
11697 "This inspection command looks for filesystems on partitions, block devices "
11698 "and logical volumes, returning a list of devices containing filesystems and "
11699 "their type."
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11704 msgid ""
11705 "The return value is a hash, where the keys are the devices containing "
11706 "filesystems, and the values are the filesystem types.  For example:"
11707 msgstr ""
11708
11709 #. type: verbatim
11710 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11711 #, no-wrap
11712 msgid ""
11713 " \"/dev/sda1\" => \"ntfs\"\n"
11714 " \"/dev/sda2\" => \"ext2\"\n"
11715 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11716 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11722 msgid ""
11723 "The value can have the special value \"unknown\", meaning the content of the "
11724 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2786
11729 msgid ""
11730 "This command runs other libguestfs commands, which might include L</mount> "
11731 "and L</umount>, and therefore you should use this soon after launch and only "
11732 "when nothing is mounted."
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:2790
11737 msgid ""
11738 "Not all of the filesystems returned will be mountable.  In particular, swap "
11739 "partitions are returned in the list.  Also this command does not check that "
11740 "each filesystem found is valid and mountable, and some filesystems might be "
11741 "mountable but require special options.  Filesystems may not all belong to a "
11742 "single logical operating system (use L</inspect-os> to look for OSes)."
11743 msgstr ""
11744
11745 #. type: =head2
11746 #: ../fish/guestfish-actions.pod:2798
11747 msgid "list-partitions"
11748 msgstr ""
11749
11750 #. type: verbatim
11751 #: ../fish/guestfish-actions.pod:2800
11752 #, no-wrap
11753 msgid ""
11754 " list-partitions\n"
11755 "\n"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11760 msgid "List all the partitions detected on all block devices."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11765 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11766 msgstr ""
11767
11768 #. type: textblock
11769 #: ../fish/guestfish-actions.pod:2806
11770 msgid ""
11771 "This does not return logical volumes.  For that you will need to call "
11772 "L</lvs>."
11773 msgstr ""
11774
11775 #. type: =head2
11776 #: ../fish/guestfish-actions.pod:2811
11777 msgid "ll"
11778 msgstr ""
11779
11780 #. type: verbatim
11781 #: ../fish/guestfish-actions.pod:2813
11782 #, no-wrap
11783 msgid ""
11784 " ll directory\n"
11785 "\n"
11786 msgstr ""
11787
11788 #. type: textblock
11789 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11790 msgid ""
11791 "List the files in C<directory> (relative to the root directory, there is no "
11792 "cwd) in the format of 'ls -la'."
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
11797 msgid ""
11798 "This command is mostly useful for interactive sessions.  It is I<not> "
11799 "intended that you try to parse the output string."
11800 msgstr ""
11801
11802 #. type: =head2
11803 #: ../fish/guestfish-actions.pod:2821
11804 msgid "ln"
11805 msgstr ""
11806
11807 #. type: verbatim
11808 #: ../fish/guestfish-actions.pod:2823
11809 #, no-wrap
11810 msgid ""
11811 " ln target linkname\n"
11812 "\n"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
11817 msgid "This command creates a hard link using the C<ln> command."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2827
11822 msgid "ln-f"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2829
11827 #, no-wrap
11828 msgid ""
11829 " ln-f target linkname\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
11835 msgid ""
11836 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11837 "option removes the link (C<linkname>) if it exists already."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:2834
11842 msgid "ln-s"
11843 msgstr ""
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:2836
11847 #, no-wrap
11848 msgid ""
11849 " ln-s target linkname\n"
11850 "\n"
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
11855 msgid "This command creates a symbolic link using the C<ln -s> command."
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../fish/guestfish-actions.pod:2840
11860 msgid "ln-sf"
11861 msgstr ""
11862
11863 #. type: verbatim
11864 #: ../fish/guestfish-actions.pod:2842
11865 #, no-wrap
11866 msgid ""
11867 " ln-sf target linkname\n"
11868 "\n"
11869 msgstr ""
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
11873 msgid ""
11874 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11875 "option removes the link (C<linkname>) if it exists already."
11876 msgstr ""
11877
11878 #. type: =head2
11879 #: ../fish/guestfish-actions.pod:2847
11880 msgid "lremovexattr"
11881 msgstr ""
11882
11883 #. type: verbatim
11884 #: ../fish/guestfish-actions.pod:2849
11885 #, no-wrap
11886 msgid ""
11887 " lremovexattr xattr path\n"
11888 "\n"
11889 msgstr ""
11890
11891 #. type: textblock
11892 #: ../fish/guestfish-actions.pod:2851
11893 msgid ""
11894 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11895 "it removes an extended attribute of the link itself."
11896 msgstr ""
11897
11898 #. type: =head2
11899 #: ../fish/guestfish-actions.pod:2855
11900 msgid "ls"
11901 msgstr ""
11902
11903 #. type: verbatim
11904 #: ../fish/guestfish-actions.pod:2857
11905 #, no-wrap
11906 msgid ""
11907 " ls directory\n"
11908 "\n"
11909 msgstr ""
11910
11911 #. type: textblock
11912 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
11913 msgid ""
11914 "List the files in C<directory> (relative to the root directory, there is no "
11915 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11916 "shown."
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:2863
11921 msgid ""
11922 "This command is mostly useful for interactive sessions.  Programs should "
11923 "probably use L</readdir> instead."
11924 msgstr ""
11925
11926 #. type: =head2
11927 #: ../fish/guestfish-actions.pod:2866
11928 msgid "lsetxattr"
11929 msgstr ""
11930
11931 #. type: verbatim
11932 #: ../fish/guestfish-actions.pod:2868
11933 #, no-wrap
11934 msgid ""
11935 " lsetxattr xattr val vallen path\n"
11936 "\n"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:2870
11941 msgid ""
11942 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11943 "sets an extended attribute of the link itself."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:2874
11948 msgid "lstat"
11949 msgstr ""
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:2876
11953 #, no-wrap
11954 msgid ""
11955 " lstat path\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678 ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
11961 msgid "Returns file information for the given C<path>."
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:2880
11966 msgid ""
11967 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11968 "the link is stat-ed, not the file it refers to."
11969 msgstr ""
11970
11971 #. type: textblock
11972 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
11973 msgid "This is the same as the C<lstat(2)> system call."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2886
11978 msgid "lstatlist"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2888
11983 #, no-wrap
11984 msgid ""
11985 " lstatlist path 'names ...'\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2890
11991 msgid ""
11992 "This call allows you to perform the L</lstat> operation on multiple files, "
11993 "where all files are in the directory C<path>.  C<names> is the list of files "
11994 "from this directory."
11995 msgstr ""
11996
11997 #. type: textblock
11998 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
11999 msgid ""
12000 "On return you get a list of stat structs, with a one-to-one correspondence "
12001 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12002 "then the C<ino> field of that structure is set to C<-1>."
12003 msgstr ""
12004
12005 #. type: textblock
12006 #: ../fish/guestfish-actions.pod:2899
12007 msgid ""
12008 "This call is intended for programs that want to efficiently list a directory "
12009 "contents without making many round-trips.  See also L</lxattrlist> for a "
12010 "similarly efficient call for getting extended attributes.  Very long "
12011 "directory listings might cause the protocol message size to be exceeded, "
12012 "causing this call to fail.  The caller must split up such requests into "
12013 "smaller groups of names."
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../fish/guestfish-actions.pod:2907
12018 msgid "luks-add-key"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../fish/guestfish-actions.pod:2909
12023 #, no-wrap
12024 msgid ""
12025 " luks-add-key device keyslot\n"
12026 "\n"
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
12031 msgid ""
12032 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12033 "existing key, and is used to access the device.  C<newkey> is the new key to "
12034 "add.  C<keyslot> is the key slot that will be replaced."
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:2916
12039 msgid ""
12040 "Note that if C<keyslot> already contains a key, then this command will "
12041 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12042 msgstr ""
12043
12044 #. type: textblock
12045 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942 ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963 ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
12046 msgid ""
12047 "This command has one or more key or passphrase parameters.  Guestfish will "
12048 "prompt for these separately."
12049 msgstr ""
12050
12051 #. type: =head2
12052 #: ../fish/guestfish-actions.pod:2923
12053 msgid "luks-close"
12054 msgstr ""
12055
12056 #. type: verbatim
12057 #: ../fish/guestfish-actions.pod:2925
12058 #, no-wrap
12059 msgid ""
12060 " luks-close device\n"
12061 "\n"
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:2927
12066 msgid ""
12067 "This closes a LUKS device that was created earlier by L</luks-open> or "
12068 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12069 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12070 "underlying block device."
12071 msgstr ""
12072
12073 #. type: =head2
12074 #: ../fish/guestfish-actions.pod:2933
12075 msgid "luks-format"
12076 msgstr ""
12077
12078 #. type: verbatim
12079 #: ../fish/guestfish-actions.pod:2935
12080 #, no-wrap
12081 msgid ""
12082 " luks-format device keyslot\n"
12083 "\n"
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
12088 msgid ""
12089 "This command erases existing data on C<device> and formats the device as a "
12090 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12091 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12092 msgstr ""
12093
12094 #. type: =head2
12095 #: ../fish/guestfish-actions.pod:2945
12096 msgid "luks-format-cipher"
12097 msgstr ""
12098
12099 #. type: verbatim
12100 #: ../fish/guestfish-actions.pod:2947
12101 #, no-wrap
12102 msgid ""
12103 " luks-format-cipher device keyslot cipher\n"
12104 "\n"
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:2949
12109 msgid ""
12110 "This command is the same as L</luks-format> but it also allows you to set "
12111 "the C<cipher> used."
12112 msgstr ""
12113
12114 #. type: =head2
12115 #: ../fish/guestfish-actions.pod:2955
12116 msgid "luks-kill-slot"
12117 msgstr ""
12118
12119 #. type: verbatim
12120 #: ../fish/guestfish-actions.pod:2957
12121 #, no-wrap
12122 msgid ""
12123 " luks-kill-slot device keyslot\n"
12124 "\n"
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12129 msgid ""
12130 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12131 "device C<device>.  C<key> must be one of the I<other> keys."
12132 msgstr ""
12133
12134 #. type: =head2
12135 #: ../fish/guestfish-actions.pod:2966
12136 msgid "luks-open"
12137 msgstr ""
12138
12139 #. type: verbatim
12140 #: ../fish/guestfish-actions.pod:2968
12141 #, no-wrap
12142 msgid ""
12143 " luks-open device mapname\n"
12144 "\n"
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12149 msgid ""
12150 "This command opens a block device which has been encrypted according to the "
12151 "Linux Unified Key Setup (LUKS) standard."
12152 msgstr ""
12153
12154 #. type: textblock
12155 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12156 msgid "C<device> is the encrypted block device or partition."
12157 msgstr ""
12158
12159 #. type: textblock
12160 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12161 msgid ""
12162 "The caller must supply one of the keys associated with the LUKS block "
12163 "device, in the C<key> parameter."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12168 msgid ""
12169 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12170 "writes to this block device are decrypted from and encrypted to the "
12171 "underlying C<device> respectively."
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:2982
12176 msgid ""
12177 "If this block device contains LVM volume groups, then calling L</vgscan> "
12178 "followed by L</vg-activate-all> will make them visible."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:2986
12183 msgid "Use L</list-dm-devices> to list all device mapper devices."
12184 msgstr ""
12185
12186 #. type: =head2
12187 #: ../fish/guestfish-actions.pod:2992
12188 msgid "luks-open-ro"
12189 msgstr ""
12190
12191 #. type: verbatim
12192 #: ../fish/guestfish-actions.pod:2994
12193 #, no-wrap
12194 msgid ""
12195 " luks-open-ro device mapname\n"
12196 "\n"
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:2996
12201 msgid ""
12202 "This is the same as L</luks-open> except that a read-only mapping is "
12203 "created."
12204 msgstr ""
12205
12206 #. type: =head2
12207 #: ../fish/guestfish-actions.pod:3002
12208 msgid "lvcreate"
12209 msgstr ""
12210
12211 #. type: verbatim
12212 #: ../fish/guestfish-actions.pod:3004
12213 #, no-wrap
12214 msgid ""
12215 " lvcreate logvol volgroup mbytes\n"
12216 "\n"
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12221 msgid ""
12222 "This creates an LVM logical volume called C<logvol> on the volume group "
12223 "C<volgroup>, with C<size> megabytes."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3009
12228 msgid "lvm-canonical-lv-name"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3011
12233 #, no-wrap
12234 msgid ""
12235 " lvm-canonical-lv-name lvname\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12241 msgid ""
12242 "This converts alternative naming schemes for LVs that you might find to the "
12243 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12244 "C</dev/VG/LV>."
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12249 msgid ""
12250 "This command returns an error if the C<lvname> parameter does not refer to a "
12251 "logical volume."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3020
12256 msgid "See also L</is-lv>."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:3022
12261 msgid "lvm-clear-filter"
12262 msgstr ""
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:3024
12266 #, no-wrap
12267 msgid ""
12268 " lvm-clear-filter\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3026
12274 msgid ""
12275 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12276 "block device."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12281 msgid "This command also clears the LVM cache and performs a volume group scan."
12282 msgstr ""
12283
12284 #. type: =head2
12285 #: ../fish/guestfish-actions.pod:3032
12286 msgid "lvm-remove-all"
12287 msgstr ""
12288
12289 #. type: verbatim
12290 #: ../fish/guestfish-actions.pod:3034
12291 #, no-wrap
12292 msgid ""
12293 " lvm-remove-all\n"
12294 "\n"
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12299 msgid ""
12300 "This command removes all LVM logical volumes, volume groups and physical "
12301 "volumes."
12302 msgstr ""
12303
12304 #. type: =head2
12305 #: ../fish/guestfish-actions.pod:3039
12306 msgid "lvm-set-filter"
12307 msgstr ""
12308
12309 #. type: verbatim
12310 #: ../fish/guestfish-actions.pod:3041
12311 #, no-wrap
12312 msgid ""
12313 " lvm-set-filter 'devices ...'\n"
12314 "\n"
12315 msgstr ""
12316
12317 #. type: textblock
12318 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12319 msgid ""
12320 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12321 "block devices in the list C<devices>, and will ignore all other attached "
12322 "block devices."
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12327 msgid ""
12328 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12329 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12330 "there are two types of duplication possible: either cloned PVs/VGs which "
12331 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12332 "same name.  In normal operation you cannot create this situation, but you "
12333 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12334 "inside the LVM metadata."
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12339 msgid "You can filter whole block devices or individual partitions."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12344 msgid ""
12345 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12346 "filesystem), even if you are not filtering out that VG."
12347 msgstr ""
12348
12349 #. type: =head2
12350 #: ../fish/guestfish-actions.pod:3066
12351 msgid "lvremove"
12352 msgstr ""
12353
12354 #. type: verbatim
12355 #: ../fish/guestfish-actions.pod:3068
12356 #, no-wrap
12357 msgid ""
12358 " lvremove device\n"
12359 "\n"
12360 msgstr ""
12361
12362 #. type: textblock
12363 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12364 msgid ""
12365 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12366 "LV, such as C</dev/VG/LV>."
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12371 msgid ""
12372 "You can also remove all LVs in a volume group by specifying the VG name, "
12373 "C</dev/VG>."
12374 msgstr ""
12375
12376 #. type: =head2
12377 #: ../fish/guestfish-actions.pod:3076
12378 msgid "lvrename"
12379 msgstr ""
12380
12381 #. type: verbatim
12382 #: ../fish/guestfish-actions.pod:3078
12383 #, no-wrap
12384 msgid ""
12385 " lvrename logvol newlogvol\n"
12386 "\n"
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12391 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../fish/guestfish-actions.pod:3082
12396 msgid "lvresize"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../fish/guestfish-actions.pod:3084
12401 #, no-wrap
12402 msgid ""
12403 " lvresize device mbytes\n"
12404 "\n"
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12409 msgid ""
12410 "This resizes (expands or shrinks) an existing LVM logical volume to "
12411 "C<mbytes>.  When reducing, data in the reduced part is lost."
12412 msgstr ""
12413
12414 #. type: =head2
12415 #: ../fish/guestfish-actions.pod:3090
12416 msgid "lvresize-free"
12417 msgstr ""
12418
12419 #. type: verbatim
12420 #: ../fish/guestfish-actions.pod:3092
12421 #, no-wrap
12422 msgid ""
12423 " lvresize-free lv percent\n"
12424 "\n"
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12429 msgid ""
12430 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12431 "remaining free space in the volume group.  Commonly you would call this with "
12432 "pc = 100 which expands the logical volume as much as possible, using all "
12433 "remaining free space in the volume group."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:3100
12438 msgid "lvs"
12439 msgstr ""
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:3102
12443 #, no-wrap
12444 msgid ""
12445 " lvs\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12451 msgid ""
12452 "List all the logical volumes detected.  This is the equivalent of the "
12453 "L<lvs(8)> command."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12458 msgid ""
12459 "This returns a list of the logical volume device names "
12460 "(eg. C</dev/VolGroup00/LogVol00>)."
12461 msgstr ""
12462
12463 #. type: textblock
12464 #: ../fish/guestfish-actions.pod:3110
12465 msgid "See also L</lvs-full>, L</list-filesystems>."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:3112
12470 msgid "lvs-full"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:3114
12475 #, no-wrap
12476 msgid ""
12477 " lvs-full\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12483 msgid ""
12484 "List all the logical volumes detected.  This is the equivalent of the "
12485 "L<lvs(8)> command.  The \"full\" version includes all fields."
12486 msgstr ""
12487
12488 #. type: =head2
12489 #: ../fish/guestfish-actions.pod:3119
12490 msgid "lvuuid"
12491 msgstr ""
12492
12493 #. type: verbatim
12494 #: ../fish/guestfish-actions.pod:3121
12495 #, no-wrap
12496 msgid ""
12497 " lvuuid device\n"
12498 "\n"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12503 msgid "This command returns the UUID of the LVM LV C<device>."
12504 msgstr ""
12505
12506 #. type: =head2
12507 #: ../fish/guestfish-actions.pod:3125
12508 msgid "lxattrlist"
12509 msgstr ""
12510
12511 #. type: verbatim
12512 #: ../fish/guestfish-actions.pod:3127
12513 #, no-wrap
12514 msgid ""
12515 " lxattrlist path 'names ...'\n"
12516 "\n"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12521 msgid ""
12522 "This call allows you to get the extended attributes of multiple files, where "
12523 "all files are in the directory C<path>.  C<names> is the list of files from "
12524 "this directory."
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12529 msgid ""
12530 "On return you get a flat list of xattr structs which must be interpreted "
12531 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12532 "C<attrval> in this struct is zero-length to indicate there was an error "
12533 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12534 "number (the number of following attributes for this file, which could be "
12535 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12536 "attributes for the first named file.  This repeats for the second and "
12537 "subsequent files."
12538 msgstr ""
12539
12540 #. type: textblock
12541 #: ../fish/guestfish-actions.pod:3143
12542 msgid ""
12543 "This call is intended for programs that want to efficiently list a directory "
12544 "contents without making many round-trips.  See also L</lstatlist> for a "
12545 "similarly efficient call for getting standard stats.  Very long directory "
12546 "listings might cause the protocol message size to be exceeded, causing this "
12547 "call to fail.  The caller must split up such requests into smaller groups of "
12548 "names."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:3151
12553 msgid "mkdir"
12554 msgstr ""
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:3153
12558 #, no-wrap
12559 msgid ""
12560 " mkdir path\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12566 msgid "Create a directory named C<path>."
12567 msgstr ""
12568
12569 #. type: =head2
12570 #: ../fish/guestfish-actions.pod:3157
12571 msgid "mkdir-mode"
12572 msgstr ""
12573
12574 #. type: verbatim
12575 #: ../fish/guestfish-actions.pod:3159
12576 #, no-wrap
12577 msgid ""
12578 " mkdir-mode path mode\n"
12579 "\n"
12580 msgstr ""
12581
12582 #. type: textblock
12583 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12584 msgid ""
12585 "This command creates a directory, setting the initial permissions of the "
12586 "directory to C<mode>."
12587 msgstr ""
12588
12589 #. type: textblock
12590 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12591 msgid ""
12592 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12593 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12594 "other ways."
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3168
12599 msgid "See also L</mkdir>, L</umask>"
12600 msgstr ""
12601
12602 #. type: =head2
12603 #: ../fish/guestfish-actions.pod:3170
12604 msgid "mkdir-p"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3172
12609 #, no-wrap
12610 msgid ""
12611 " mkdir-p path\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12617 msgid ""
12618 "Create a directory named C<path>, creating any parent directories as "
12619 "necessary.  This is like the C<mkdir -p> shell command."
12620 msgstr ""
12621
12622 #. type: =head2
12623 #: ../fish/guestfish-actions.pod:3177
12624 msgid "mkdtemp"
12625 msgstr ""
12626
12627 #. type: verbatim
12628 #: ../fish/guestfish-actions.pod:3179
12629 #, no-wrap
12630 msgid ""
12631 " mkdtemp template\n"
12632 "\n"
12633 msgstr ""
12634
12635 #. type: textblock
12636 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12637 msgid ""
12638 "This command creates a temporary directory.  The C<template> parameter "
12639 "should be a full pathname for the temporary directory name with the final "
12640 "six characters being \"XXXXXX\"."
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12645 msgid ""
12646 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12647 "being suitable for Windows filesystems."
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12652 msgid "The name of the temporary directory that was created is returned."
12653 msgstr ""
12654
12655 #. type: textblock
12656 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12657 msgid "The temporary directory is created with mode 0700 and is owned by root."
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12662 msgid ""
12663 "The caller is responsible for deleting the temporary directory and its "
12664 "contents after use."
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12669 msgid "See also: L<mkdtemp(3)>"
12670 msgstr ""
12671
12672 #. type: =head2
12673 #: ../fish/guestfish-actions.pod:3200
12674 msgid "mke2fs-J"
12675 msgstr ""
12676
12677 #. type: verbatim
12678 #: ../fish/guestfish-actions.pod:3202
12679 #, no-wrap
12680 msgid ""
12681 " mke2fs-J fstype blocksize device journal\n"
12682 "\n"
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12687 msgid ""
12688 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12689 "C<journal>.  It is equivalent to the command:"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12694 #, no-wrap
12695 msgid ""
12696 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12697 "\n"
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3210
12702 msgid "See also L</mke2journal>."
12703 msgstr ""
12704
12705 #. type: =head2
12706 #: ../fish/guestfish-actions.pod:3212
12707 msgid "mke2fs-JL"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3214
12712 #, no-wrap
12713 msgid ""
12714 " mke2fs-JL fstype blocksize device label\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12720 msgid ""
12721 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12722 "the journal labeled C<label>."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3219
12727 msgid "See also L</mke2journal-L>."
12728 msgstr ""
12729
12730 #. type: =head2
12731 #: ../fish/guestfish-actions.pod:3221
12732 msgid "mke2fs-JU"
12733 msgstr ""
12734
12735 #. type: verbatim
12736 #: ../fish/guestfish-actions.pod:3223
12737 #, no-wrap
12738 msgid ""
12739 " mke2fs-JU fstype blocksize device uuid\n"
12740 "\n"
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12745 msgid ""
12746 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12747 "the journal with UUID C<uuid>."
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:3228
12752 msgid "See also L</mke2journal-U>."
12753 msgstr ""
12754
12755 #. type: =head2
12756 #: ../fish/guestfish-actions.pod:3230
12757 msgid "mke2journal"
12758 msgstr ""
12759
12760 #. type: verbatim
12761 #: ../fish/guestfish-actions.pod:3232
12762 #, no-wrap
12763 msgid ""
12764 " mke2journal blocksize device\n"
12765 "\n"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
12770 msgid ""
12771 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12772 "command:"
12773 msgstr ""
12774
12775 #. type: verbatim
12776 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
12777 #, no-wrap
12778 msgid ""
12779 " mke2fs -O journal_dev -b blocksize device\n"
12780 "\n"
12781 msgstr ""
12782
12783 #. type: =head2
12784 #: ../fish/guestfish-actions.pod:3239
12785 msgid "mke2journal-L"
12786 msgstr ""
12787
12788 #. type: verbatim
12789 #: ../fish/guestfish-actions.pod:3241
12790 #, no-wrap
12791 msgid ""
12792 " mke2journal-L blocksize label device\n"
12793 "\n"
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
12798 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12799 msgstr ""
12800
12801 #. type: =head2
12802 #: ../fish/guestfish-actions.pod:3245
12803 msgid "mke2journal-U"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3247
12808 #, no-wrap
12809 msgid ""
12810 " mke2journal-U blocksize uuid device\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
12816 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:3251
12821 msgid "mkfifo"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:3253
12826 #, no-wrap
12827 msgid ""
12828 " mkfifo mode path\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:3255
12834 msgid ""
12835 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12836 "is just a convenient wrapper around L</mknod>."
12837 msgstr ""
12838
12839 #. type: =head2
12840 #: ../fish/guestfish-actions.pod:3261
12841 msgid "mkfs"
12842 msgstr ""
12843
12844 #. type: verbatim
12845 #: ../fish/guestfish-actions.pod:3263
12846 #, no-wrap
12847 msgid ""
12848 " mkfs fstype device\n"
12849 "\n"
12850 msgstr ""
12851
12852 #. type: textblock
12853 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
12854 msgid ""
12855 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12856 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12857 msgstr ""
12858
12859 #. type: =head2
12860 #: ../fish/guestfish-actions.pod:3269
12861 msgid "mkfs-b"
12862 msgstr ""
12863
12864 #. type: verbatim
12865 #: ../fish/guestfish-actions.pod:3271
12866 #, no-wrap
12867 msgid ""
12868 " mkfs-b fstype blocksize device\n"
12869 "\n"
12870 msgstr ""
12871
12872 #. type: textblock
12873 #: ../fish/guestfish-actions.pod:3273
12874 msgid ""
12875 "This call is similar to L</mkfs>, but it allows you to control the block "
12876 "size of the resulting filesystem.  Supported block sizes depend on the "
12877 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
12882 msgid ""
12883 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12884 "cluster size."
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3281
12889 msgid ""
12890 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12891 "instead."
12892 msgstr ""
12893
12894 #. type: =head2
12895 #: ../fish/guestfish-actions.pod:3288
12896 msgid "mkfs-opts"
12897 msgstr ""
12898
12899 #. type: verbatim
12900 #: ../fish/guestfish-actions.pod:3290
12901 #, no-wrap
12902 msgid ""
12903 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
12904 "[sectorsize:N]\n"
12905 "\n"
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
12910 msgid ""
12911 "This function creates a filesystem on C<device>.  The filesystem type is "
12912 "C<fstype>, for example C<ext3>."
12913 msgstr ""
12914
12915 #. type: =item
12916 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
12917 msgid "C<blocksize>"
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
12922 msgid ""
12923 "The filesystem block size.  Supported block sizes depend on the filesystem "
12924 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12925 "filesystems."
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
12930 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12931 msgstr ""
12932
12933 #. type: =item
12934 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
12935 msgid "C<features>"
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
12940 msgid "This passes the I<-O> parameter to the external mkfs program."
12941 msgstr ""
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
12945 msgid ""
12946 "For certain filesystem types, this allows extra filesystem features to be "
12947 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12948 msgstr ""
12949
12950 #. type: textblock
12951 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
12952 msgid ""
12953 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12954 "type."
12955 msgstr ""
12956
12957 #. type: =item
12958 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
12959 msgid "C<inode>"
12960 msgstr ""
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
12964 msgid ""
12965 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12966 "sets the inode size (only for ext2/3/4 filesystems at present)."
12967 msgstr ""
12968
12969 #. type: =item
12970 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
12971 msgid "C<sectorsize>"
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
12976 msgid ""
12977 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12978 "sets sector size for ufs filesystem."
12979 msgstr ""
12980
12981 #. type: =head2
12982 #: ../fish/guestfish-actions.pod:3335
12983 msgid "mkmountpoint"
12984 msgstr ""
12985
12986 #. type: verbatim
12987 #: ../fish/guestfish-actions.pod:3337
12988 #, no-wrap
12989 msgid ""
12990 " mkmountpoint exemptpath\n"
12991 "\n"
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../fish/guestfish-actions.pod:3339
12996 msgid ""
12997 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12998 "to create extra mountpoints before mounting the first filesystem."
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
13003 msgid ""
13004 "These calls are I<only> necessary in some very limited circumstances, mainly "
13005 "the case where you want to mount a mix of unrelated and/or read-only "
13006 "filesystems together."
13007 msgstr ""
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
13011 msgid ""
13012 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13013 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13014 "inside that.  You can unpack this as follows in guestfish:"
13015 msgstr ""
13016
13017 #. type: verbatim
13018 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
13019 #, no-wrap
13020 msgid ""
13021 " add-ro Fedora-11-i686-Live.iso\n"
13022 " run\n"
13023 " mkmountpoint /cd\n"
13024 " mkmountpoint /sqsh\n"
13025 " mkmountpoint /ext3fs\n"
13026 " mount /dev/sda /cd\n"
13027 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13028 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13029 "\n"
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
13034 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3363
13039 msgid ""
13040 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13041 "unexpected errors if you try to mix these calls.  It is safest to manually "
13042 "unmount filesystems and remove mountpoints after use."
13043 msgstr ""
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:3367
13047 msgid ""
13048 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13049 "for this to work for manual mountpoints, you must ensure that the innermost "
13050 "mountpoints have the longest pathnames, as in the example code above."
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
13055 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:3374
13060 msgid ""
13061 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13062 "L</umount-all> to be called when the handle is closed which can also trigger "
13063 "these issues."
13064 msgstr ""
13065
13066 #. type: =head2
13067 #: ../fish/guestfish-actions.pod:3378
13068 msgid "mknod"
13069 msgstr ""
13070
13071 #. type: verbatim
13072 #: ../fish/guestfish-actions.pod:3380
13073 #, no-wrap
13074 msgid ""
13075 " mknod mode devmajor devminor path\n"
13076 "\n"
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
13081 msgid ""
13082 "This call creates block or character special devices, or named pipes "
13083 "(FIFOs)."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
13088 msgid ""
13089 "The C<mode> parameter should be the mode, using the standard constants.  "
13090 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13091 "used when creating block and character special devices."
13092 msgstr ""
13093
13094 #. type: textblock
13095 #: ../fish/guestfish-actions.pod:3390
13096 msgid ""
13097 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13098 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13099 "regular file).  These constants are available in the standard Linux header "
13100 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13101 "wrappers around this command which bitwise OR in the appropriate constant "
13102 "for you."
13103 msgstr ""
13104
13105 #. type: =head2
13106 #: ../fish/guestfish-actions.pod:3400
13107 msgid "mknod-b"
13108 msgstr ""
13109
13110 #. type: verbatim
13111 #: ../fish/guestfish-actions.pod:3402
13112 #, no-wrap
13113 msgid ""
13114 " mknod-b mode devmajor devminor path\n"
13115 "\n"
13116 msgstr ""
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:3404
13120 msgid ""
13121 "This call creates a block device node called C<path> with mode C<mode> and "
13122 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13123 "wrapper around L</mknod>."
13124 msgstr ""
13125
13126 #. type: =head2
13127 #: ../fish/guestfish-actions.pod:3410
13128 msgid "mknod-c"
13129 msgstr ""
13130
13131 #. type: verbatim
13132 #: ../fish/guestfish-actions.pod:3412
13133 #, no-wrap
13134 msgid ""
13135 " mknod-c mode devmajor devminor path\n"
13136 "\n"
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3414
13141 msgid ""
13142 "This call creates a char device node called C<path> with mode C<mode> and "
13143 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13144 "wrapper around L</mknod>."
13145 msgstr ""
13146
13147 #. type: =head2
13148 #: ../fish/guestfish-actions.pod:3420
13149 msgid "mkswap"
13150 msgstr ""
13151
13152 #. type: verbatim
13153 #: ../fish/guestfish-actions.pod:3422
13154 #, no-wrap
13155 msgid ""
13156 " mkswap device\n"
13157 "\n"
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13162 msgid "Create a swap partition on C<device>."
13163 msgstr ""
13164
13165 #. type: =head2
13166 #: ../fish/guestfish-actions.pod:3426
13167 msgid "mkswap-L"
13168 msgstr ""
13169
13170 #. type: verbatim
13171 #: ../fish/guestfish-actions.pod:3428
13172 #, no-wrap
13173 msgid ""
13174 " mkswap-L label device\n"
13175 "\n"
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13180 msgid "Create a swap partition on C<device> with label C<label>."
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13185 msgid ""
13186 "Note that you cannot attach a swap label to a block device "
13187 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13188 "the kernel or swap tools."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:3436
13193 msgid "mkswap-U"
13194 msgstr ""
13195
13196 #. type: verbatim
13197 #: ../fish/guestfish-actions.pod:3438
13198 #, no-wrap
13199 msgid ""
13200 " mkswap-U uuid device\n"
13201 "\n"
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13206 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:3442
13211 msgid "mkswap-file"
13212 msgstr ""
13213
13214 #. type: verbatim
13215 #: ../fish/guestfish-actions.pod:3444
13216 #, no-wrap
13217 msgid ""
13218 " mkswap-file path\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13224 msgid "Create a swap file."
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3448
13229 msgid ""
13230 "This command just writes a swap file signature to an existing file.  To "
13231 "create the file itself, use something like L</fallocate>."
13232 msgstr ""
13233
13234 #. type: =head2
13235 #: ../fish/guestfish-actions.pod:3451
13236 msgid "modprobe"
13237 msgstr ""
13238
13239 #. type: verbatim
13240 #: ../fish/guestfish-actions.pod:3453
13241 #, no-wrap
13242 msgid ""
13243 " modprobe modulename\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13249 msgid "This loads a kernel module in the appliance."
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13254 msgid ""
13255 "The kernel module must have been whitelisted when libguestfs was built (see "
13256 "C<appliance/kmod.whitelist.in> in the source)."
13257 msgstr ""
13258
13259 #. type: =head2
13260 #: ../fish/guestfish-actions.pod:3460
13261 msgid "mount"
13262 msgstr ""
13263
13264 #. type: verbatim
13265 #: ../fish/guestfish-actions.pod:3462
13266 #, no-wrap
13267 msgid ""
13268 " mount device mountpoint\n"
13269 "\n"
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13274 msgid ""
13275 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13276 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13277 "those block devices contain partitions, they will have the usual names "
13278 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13283 msgid ""
13284 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13285 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13286 "mounted on directories which already exist."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13291 msgid ""
13292 "The mounted filesystem is writable, if we have sufficient permissions on the "
13293 "underlying device."
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:3478
13298 msgid ""
13299 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13300 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13301 "problems for users.  If your program might need to work with older versions "
13302 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13303 "first parameter if you don't want any options)."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:3485
13308 msgid "mount-9p"
13309 msgstr ""
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:3487
13313 #, no-wrap
13314 msgid ""
13315 " mount-9p mounttag mountpoint [options:..]\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13321 msgid ""
13322 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13323 "C<mountpoint>."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13328 msgid ""
13329 "If required, C<trans=virtio> will be automatically added to the options.  "
13330 "Any other options required can be passed in the optional C<options> "
13331 "parameter."
13332 msgstr ""
13333
13334 #. type: =head2
13335 #: ../fish/guestfish-actions.pod:3498
13336 msgid "mount-loop"
13337 msgstr ""
13338
13339 #. type: verbatim
13340 #: ../fish/guestfish-actions.pod:3500
13341 #, no-wrap
13342 msgid ""
13343 " mount-loop file mountpoint\n"
13344 "\n"
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13349 msgid ""
13350 "This command lets you mount C<file> (a filesystem image in a file) on a "
13351 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13352 "mountpoint>."
13353 msgstr ""
13354
13355 #. type: =head2
13356 #: ../fish/guestfish-actions.pod:3506
13357 msgid "mount-options"
13358 msgstr ""
13359
13360 #. type: verbatim
13361 #: ../fish/guestfish-actions.pod:3508
13362 #, no-wrap
13363 msgid ""
13364 " mount-options options device mountpoint\n"
13365 "\n"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3510
13370 msgid ""
13371 "This is the same as the L</mount> command, but it allows you to set the "
13372 "mount options as for the L<mount(8)> I<-o> flag."
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13377 msgid ""
13378 "If the C<options> parameter is an empty string, then no options are passed "
13379 "(all options default to whatever the filesystem uses)."
13380 msgstr ""
13381
13382 #. type: =head2
13383 #: ../fish/guestfish-actions.pod:3518
13384 msgid "mount-ro"
13385 msgstr ""
13386
13387 #. type: verbatim
13388 #: ../fish/guestfish-actions.pod:3520
13389 #, no-wrap
13390 msgid ""
13391 " mount-ro device mountpoint\n"
13392 "\n"
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:3522
13397 msgid ""
13398 "This is the same as the L</mount> command, but it mounts the filesystem with "
13399 "the read-only (I<-o ro>) flag."
13400 msgstr ""
13401
13402 #. type: =head2
13403 #: ../fish/guestfish-actions.pod:3525
13404 msgid "mount-vfs"
13405 msgstr ""
13406
13407 #. type: verbatim
13408 #: ../fish/guestfish-actions.pod:3527
13409 #, no-wrap
13410 msgid ""
13411 " mount-vfs options vfstype device mountpoint\n"
13412 "\n"
13413 msgstr ""
13414
13415 #. type: textblock
13416 #: ../fish/guestfish-actions.pod:3529
13417 msgid ""
13418 "This is the same as the L</mount> command, but it allows you to set both the "
13419 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13420 msgstr ""
13421
13422 #. type: =head2
13423 #: ../fish/guestfish-actions.pod:3533
13424 msgid "mountpoints"
13425 msgstr ""
13426
13427 #. type: verbatim
13428 #: ../fish/guestfish-actions.pod:3535
13429 #, no-wrap
13430 msgid ""
13431 " mountpoints\n"
13432 "\n"
13433 msgstr ""
13434
13435 #. type: textblock
13436 #: ../fish/guestfish-actions.pod:3537
13437 msgid ""
13438 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13439 "This one returns a hash table (map) of device name to directory where the "
13440 "device is mounted."
13441 msgstr ""
13442
13443 #. type: =head2
13444 #: ../fish/guestfish-actions.pod:3541
13445 msgid "mounts"
13446 msgstr ""
13447
13448 #. type: verbatim
13449 #: ../fish/guestfish-actions.pod:3543
13450 #, no-wrap
13451 msgid ""
13452 " mounts\n"
13453 "\n"
13454 msgstr ""
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13458 msgid ""
13459 "This returns the list of currently mounted filesystems.  It returns the list "
13460 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13465 msgid "Some internal mounts are not shown."
13466 msgstr ""
13467
13468 #. type: textblock
13469 #: ../fish/guestfish-actions.pod:3550
13470 msgid "See also: L</mountpoints>"
13471 msgstr ""
13472
13473 #. type: =head2
13474 #: ../fish/guestfish-actions.pod:3552
13475 msgid "mv"
13476 msgstr ""
13477
13478 #. type: verbatim
13479 #: ../fish/guestfish-actions.pod:3554
13480 #, no-wrap
13481 msgid ""
13482 " mv src dest\n"
13483 "\n"
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13488 msgid ""
13489 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13490 "destination filename or destination directory."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3559
13495 msgid "ntfs-3g-probe"
13496 msgstr ""
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3561
13500 #, no-wrap
13501 msgid ""
13502 " ntfs-3g-probe true|false device\n"
13503 "\n"
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13508 msgid ""
13509 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13510 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13511 "read-write, and some cannot be mounted at all)."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13516 msgid ""
13517 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13518 "can be mounted read-write.  Set it to false if you want to test if the "
13519 "volume can be mounted read-only."
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13524 msgid ""
13525 "The return value is an integer which C<0> if the operation would succeed, or "
13526 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13527 msgstr ""
13528
13529 #. type: =head2
13530 #: ../fish/guestfish-actions.pod:3575
13531 msgid "ntfsresize"
13532 msgstr ""
13533
13534 #. type: verbatim
13535 #: ../fish/guestfish-actions.pod:3577
13536 #, no-wrap
13537 msgid ""
13538 " ntfsresize device\n"
13539 "\n"
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13544 msgid ""
13545 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13546 "size of the underlying device."
13547 msgstr ""
13548
13549 #. type: textblock
13550 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13551 msgid ""
13552 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13553 "consistency check (for safety).  You have to boot into Windows to perform "
13554 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13555 "resize filesystems which have been marked in this way.  So in effect it is "
13556 "not possible to call ntfsresize multiple times on a single filesystem "
13557 "without booting into Windows between each resize."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13562 msgid "See also L<ntfsresize(8)>."
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13567 msgid ""
13568 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13569 "call instead."
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../fish/guestfish-actions.pod:3599
13574 msgid "ntfsresize-opts"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../fish/guestfish-actions.pod:3601
13579 #, no-wrap
13580 msgid ""
13581 " ntfsresize-opts device [size:N] [force:true|false]\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13587 msgid ""
13588 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13589 "resized to fit the container (eg. partition)."
13590 msgstr ""
13591
13592 #. type: =item
13593 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13594 msgid "C<force>"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13599 msgid ""
13600 "If this option is true, then force the resize of the filesystem even if the "
13601 "filesystem is marked as requiring a consistency check."
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:3620
13606 msgid ""
13607 "After the resize operation, the filesystem is always marked as requiring a "
13608 "consistency check (for safety).  You have to boot into Windows to perform "
13609 "this check and clear this condition.  If you I<don't> set the C<force> "
13610 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13611 "a single filesystem without booting into Windows between each resize."
13612 msgstr ""
13613
13614 #. type: =head2
13615 #: ../fish/guestfish-actions.pod:3633
13616 msgid "ntfsresize-size"
13617 msgstr ""
13618
13619 #. type: verbatim
13620 #: ../fish/guestfish-actions.pod:3635
13621 #, no-wrap
13622 msgid ""
13623 " ntfsresize-size device size\n"
13624 "\n"
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3637
13629 msgid ""
13630 "This command is the same as L</ntfsresize> except that it allows you to "
13631 "specify the new size (in bytes) explicitly."
13632 msgstr ""
13633
13634 #. type: =head2
13635 #: ../fish/guestfish-actions.pod:3647
13636 msgid "part-add"
13637 msgstr ""
13638
13639 #. type: verbatim
13640 #: ../fish/guestfish-actions.pod:3649
13641 #, no-wrap
13642 msgid ""
13643 " part-add device prlogex startsect endsect\n"
13644 "\n"
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3651
13649 msgid ""
13650 "This command adds a partition to C<device>.  If there is no partition table "
13651 "on the device, call L</part-init> first."
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13656 msgid ""
13657 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13658 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13659 "C<logical>) and C<e> (or C<extended>) partition types."
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13664 msgid ""
13665 "C<startsect> and C<endsect> are the start and end of the partition in "
13666 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13667 "from the end of the disk (C<-1> is the last sector)."
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:3663
13672 msgid ""
13673 "Creating a partition which covers the whole disk is not so easy.  Use "
13674 "L</part-disk> to do that."
13675 msgstr ""
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3666
13679 msgid "part-del"
13680 msgstr ""
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3668
13684 #, no-wrap
13685 msgid ""
13686 " part-del device partnum\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13692 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13697 msgid ""
13698 "Note that in the case of MBR partitioning, deleting an extended partition "
13699 "also deletes any logical partitions it contains."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3676
13704 msgid "part-disk"
13705 msgstr ""
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3678
13709 #, no-wrap
13710 msgid ""
13711 " part-disk device parttype\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3680
13717 msgid ""
13718 "This command is simply a combination of L</part-init> followed by "
13719 "L</part-add> to create a single primary partition covering the whole disk."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3684
13724 msgid ""
13725 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13726 "possible values are described in L</part-init>."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:3687
13731 msgid "part-get-bootable"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:3689
13736 #, no-wrap
13737 msgid ""
13738 " part-get-bootable device partnum\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
13744 msgid ""
13745 "This command returns true if the partition C<partnum> on C<device> has the "
13746 "bootable flag set."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3694
13751 msgid "See also L</part-set-bootable>."
13752 msgstr ""
13753
13754 #. type: =head2
13755 #: ../fish/guestfish-actions.pod:3696
13756 msgid "part-get-mbr-id"
13757 msgstr ""
13758
13759 #. type: verbatim
13760 #: ../fish/guestfish-actions.pod:3698
13761 #, no-wrap
13762 msgid ""
13763 " part-get-mbr-id device partnum\n"
13764 "\n"
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
13769 msgid ""
13770 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13771 "partition C<partnum>."
13772 msgstr ""
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
13776 msgid ""
13777 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13778 "undefined results for other partition table types (see "
13779 "L</part-get-parttype>)."
13780 msgstr ""
13781
13782 #. type: =head2
13783 #: ../fish/guestfish-actions.pod:3707
13784 msgid "part-get-parttype"
13785 msgstr ""
13786
13787 #. type: verbatim
13788 #: ../fish/guestfish-actions.pod:3709
13789 #, no-wrap
13790 msgid ""
13791 " part-get-parttype device\n"
13792 "\n"
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
13797 msgid ""
13798 "This command examines the partition table on C<device> and returns the "
13799 "partition table type (format) being used."
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3714
13804 msgid ""
13805 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13806 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13807 "possible, although unusual.  See L</part-init> for a full list."
13808 msgstr ""
13809
13810 #. type: =head2
13811 #: ../fish/guestfish-actions.pod:3719
13812 msgid "part-init"
13813 msgstr ""
13814
13815 #. type: verbatim
13816 #: ../fish/guestfish-actions.pod:3721
13817 #, no-wrap
13818 msgid ""
13819 " part-init device parttype\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
13825 msgid ""
13826 "This creates an empty partition table on C<device> of one of the partition "
13827 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13828 "(for large disks)."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3727
13833 msgid ""
13834 "Initially there are no partitions.  Following this, you should call "
13835 "L</part-add> for each partition required."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
13840 msgid "Possible values for C<parttype> are:"
13841 msgstr ""
13842
13843 #. type: =item
13844 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
13845 msgid "B<efi>"
13846 msgstr ""
13847
13848 #. type: =item
13849 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
13850 msgid "B<gpt>"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
13855 msgid "Intel EFI / GPT partition table."
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
13860 msgid ""
13861 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13862 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13863 "the C<mbr> format."
13864 msgstr ""
13865
13866 #. type: =item
13867 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
13868 msgid "B<mbr>"
13869 msgstr ""
13870
13871 #. type: =item
13872 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
13873 msgid "B<msdos>"
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
13878 msgid ""
13879 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13880 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13881 "TB.  For large disks we recommend using C<gpt>."
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
13886 msgid "Other partition table types that may work but are not supported include:"
13887 msgstr ""
13888
13889 #. type: =item
13890 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
13891 msgid "B<aix>"
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
13896 msgid "AIX disk labels."
13897 msgstr ""
13898
13899 #. type: =item
13900 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
13901 msgid "B<amiga>"
13902 msgstr ""
13903
13904 #. type: =item
13905 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
13906 msgid "B<rdb>"
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
13911 msgid "Amiga \"Rigid Disk Block\" format."
13912 msgstr ""
13913
13914 #. type: =item
13915 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
13916 msgid "B<bsd>"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
13921 msgid "BSD disk labels."
13922 msgstr ""
13923
13924 #. type: =item
13925 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
13926 msgid "B<dasd>"
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
13931 msgid "DASD, used on IBM mainframes."
13932 msgstr ""
13933
13934 #. type: =item
13935 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
13936 msgid "B<dvh>"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
13941 msgid "MIPS/SGI volumes."
13942 msgstr ""
13943
13944 #. type: =item
13945 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
13946 msgid "B<mac>"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
13951 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13952 msgstr ""
13953
13954 #. type: =item
13955 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
13956 msgid "B<pc98>"
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
13961 msgid "NEC PC-98 format, common in Japan apparently."
13962 msgstr ""
13963
13964 #. type: =item
13965 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
13966 msgid "B<sun>"
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
13971 msgid "Sun disk labels."
13972 msgstr ""
13973
13974 #. type: =head2
13975 #: ../fish/guestfish-actions.pod:3796
13976 msgid "part-list"
13977 msgstr ""
13978
13979 #. type: verbatim
13980 #: ../fish/guestfish-actions.pod:3798
13981 #, no-wrap
13982 msgid ""
13983 " part-list device\n"
13984 "\n"
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
13989 msgid ""
13990 "This command parses the partition table on C<device> and returns the list of "
13991 "partitions found."
13992 msgstr ""
13993
13994 #. type: textblock
13995 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
13996 msgid "The fields in the returned structure are:"
13997 msgstr ""
13998
13999 #. type: =item
14000 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
14001 msgid "B<part_num>"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
14006 msgid "Partition number, counting from 1."
14007 msgstr ""
14008
14009 #. type: =item
14010 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
14011 msgid "B<part_start>"
14012 msgstr ""
14013
14014 #. type: textblock
14015 #: ../fish/guestfish-actions.pod:3813
14016 msgid ""
14017 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14018 "the device's sector size, see L</blockdev-getss>."
14019 msgstr ""
14020
14021 #. type: =item
14022 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
14023 msgid "B<part_end>"
14024 msgstr ""
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
14028 msgid "End of the partition in bytes."
14029 msgstr ""
14030
14031 #. type: =item
14032 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
14033 msgid "B<part_size>"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
14038 msgid "Size of the partition in bytes."
14039 msgstr ""
14040
14041 #. type: =head2
14042 #: ../fish/guestfish-actions.pod:3826
14043 msgid "part-set-bootable"
14044 msgstr ""
14045
14046 #. type: verbatim
14047 #: ../fish/guestfish-actions.pod:3828
14048 #, no-wrap
14049 msgid ""
14050 " part-set-bootable device partnum true|false\n"
14051 "\n"
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
14056 msgid ""
14057 "This sets the bootable flag on partition numbered C<partnum> on device "
14058 "C<device>.  Note that partitions are numbered from 1."
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
14063 msgid ""
14064 "The bootable flag is used by some operating systems (notably Windows) to "
14065 "determine which partition to boot from.  It is by no means universally "
14066 "recognized."
14067 msgstr ""
14068
14069 #. type: =head2
14070 #: ../fish/guestfish-actions.pod:3837
14071 msgid "part-set-mbr-id"
14072 msgstr ""
14073
14074 #. type: verbatim
14075 #: ../fish/guestfish-actions.pod:3839
14076 #, no-wrap
14077 msgid ""
14078 " part-set-mbr-id device partnum idbyte\n"
14079 "\n"
14080 msgstr ""
14081
14082 #. type: textblock
14083 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
14084 msgid ""
14085 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14086 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14087 "documentation are in fact hexadecimal numbers, but usually documented "
14088 "without any leading \"0x\" which might be confusing."
14089 msgstr ""
14090
14091 #. type: =head2
14092 #: ../fish/guestfish-actions.pod:3851
14093 msgid "part-set-name"
14094 msgstr ""
14095
14096 #. type: verbatim
14097 #: ../fish/guestfish-actions.pod:3853
14098 #, no-wrap
14099 msgid ""
14100 " part-set-name device partnum name\n"
14101 "\n"
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14106 msgid ""
14107 "This sets the partition name on partition numbered C<partnum> on device "
14108 "C<device>.  Note that partitions are numbered from 1."
14109 msgstr ""
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14113 msgid ""
14114 "The partition name can only be set on certain types of partition table.  "
14115 "This works on C<gpt> but not on C<mbr> partitions."
14116 msgstr ""
14117
14118 #. type: =head2
14119 #: ../fish/guestfish-actions.pod:3861
14120 msgid "part-to-dev"
14121 msgstr ""
14122
14123 #. type: verbatim
14124 #: ../fish/guestfish-actions.pod:3863
14125 #, no-wrap
14126 msgid ""
14127 " part-to-dev partition\n"
14128 "\n"
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14133 msgid ""
14134 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14135 "partition number, returning the device name (eg. \"/dev/sdb\")."
14136 msgstr ""
14137
14138 #. type: textblock
14139 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14140 msgid ""
14141 "The named partition must exist, for example as a string returned from "
14142 "L</list-partitions>."
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:3872
14147 msgid "See also L</part-to-partnum>."
14148 msgstr ""
14149
14150 #. type: =head2
14151 #: ../fish/guestfish-actions.pod:3874
14152 msgid "part-to-partnum"
14153 msgstr ""
14154
14155 #. type: verbatim
14156 #: ../fish/guestfish-actions.pod:3876
14157 #, no-wrap
14158 msgid ""
14159 " part-to-partnum partition\n"
14160 "\n"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14165 msgid ""
14166 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14167 "partition number (eg. C<1>)."
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:3884
14172 msgid "See also L</part-to-dev>."
14173 msgstr ""
14174
14175 #. type: =head2
14176 #: ../fish/guestfish-actions.pod:3886
14177 msgid "ping-daemon"
14178 msgstr ""
14179
14180 #. type: verbatim
14181 #: ../fish/guestfish-actions.pod:3888
14182 #, no-wrap
14183 msgid ""
14184 " ping-daemon\n"
14185 "\n"
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14190 msgid ""
14191 "This is a test probe into the guestfs daemon running inside the qemu "
14192 "subprocess.  Calling this function checks that the daemon responds to the "
14193 "ping message, without affecting the daemon or attached block device(s) in "
14194 "any other way."
14195 msgstr ""
14196
14197 #. type: =head2
14198 #: ../fish/guestfish-actions.pod:3895
14199 msgid "pread"
14200 msgstr ""
14201
14202 #. type: verbatim
14203 #: ../fish/guestfish-actions.pod:3897
14204 #, no-wrap
14205 msgid ""
14206 " pread path count offset\n"
14207 "\n"
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14212 msgid ""
14213 "This command lets you read part of a file.  It reads C<count> bytes of the "
14214 "file, starting at C<offset>, from file C<path>."
14215 msgstr ""
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14219 msgid ""
14220 "This may read fewer bytes than requested.  For further details see the "
14221 "L<pread(2)> system call."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3905
14226 msgid "See also L</pwrite>, L</pread-device>."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:3910
14231 msgid "pread-device"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:3912
14236 #, no-wrap
14237 msgid ""
14238 " pread-device device count offset\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14244 msgid ""
14245 "This command lets you read part of a file.  It reads C<count> bytes of "
14246 "C<device>, starting at C<offset>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:3920
14251 msgid "See also L</pread>."
14252 msgstr ""
14253
14254 #. type: =head2
14255 #: ../fish/guestfish-actions.pod:3925
14256 msgid "pvcreate"
14257 msgstr ""
14258
14259 #. type: verbatim
14260 #: ../fish/guestfish-actions.pod:3927
14261 #, no-wrap
14262 msgid ""
14263 " pvcreate device\n"
14264 "\n"
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14269 msgid ""
14270 "This creates an LVM physical volume on the named C<device>, where C<device> "
14271 "should usually be a partition name such as C</dev/sda1>."
14272 msgstr ""
14273
14274 #. type: =head2
14275 #: ../fish/guestfish-actions.pod:3933
14276 msgid "pvremove"
14277 msgstr ""
14278
14279 #. type: verbatim
14280 #: ../fish/guestfish-actions.pod:3935
14281 #, no-wrap
14282 msgid ""
14283 " pvremove device\n"
14284 "\n"
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14289 msgid ""
14290 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14291 "it."
14292 msgstr ""
14293
14294 #. type: textblock
14295 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14296 msgid ""
14297 "The implementation uses the C<pvremove> command which refuses to wipe "
14298 "physical volumes that contain any volume groups, so you have to remove those "
14299 "first."
14300 msgstr ""
14301
14302 #. type: =head2
14303 #: ../fish/guestfish-actions.pod:3944
14304 msgid "pvresize"
14305 msgstr ""
14306
14307 #. type: verbatim
14308 #: ../fish/guestfish-actions.pod:3946
14309 #, no-wrap
14310 msgid ""
14311 " pvresize device\n"
14312 "\n"
14313 msgstr ""
14314
14315 #. type: textblock
14316 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14317 msgid ""
14318 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14319 "the new size of the underlying device."
14320 msgstr ""
14321
14322 #. type: =head2
14323 #: ../fish/guestfish-actions.pod:3951
14324 msgid "pvresize-size"
14325 msgstr ""
14326
14327 #. type: verbatim
14328 #: ../fish/guestfish-actions.pod:3953
14329 #, no-wrap
14330 msgid ""
14331 " pvresize-size device size\n"
14332 "\n"
14333 msgstr ""
14334
14335 #. type: textblock
14336 #: ../fish/guestfish-actions.pod:3955
14337 msgid ""
14338 "This command is the same as L</pvresize> except that it allows you to "
14339 "specify the new size (in bytes) explicitly."
14340 msgstr ""
14341
14342 #. type: =head2
14343 #: ../fish/guestfish-actions.pod:3958
14344 msgid "pvs"
14345 msgstr ""
14346
14347 #. type: verbatim
14348 #: ../fish/guestfish-actions.pod:3960
14349 #, no-wrap
14350 msgid ""
14351 " pvs\n"
14352 "\n"
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14357 msgid ""
14358 "List all the physical volumes detected.  This is the equivalent of the "
14359 "L<pvs(8)> command."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14364 msgid ""
14365 "This returns a list of just the device names that contain PVs "
14366 "(eg. C</dev/sda2>)."
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:3968
14371 msgid "See also L</pvs-full>."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3970
14376 msgid "pvs-full"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3972
14381 #, no-wrap
14382 msgid ""
14383 " pvs-full\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14389 msgid ""
14390 "List all the physical volumes detected.  This is the equivalent of the "
14391 "L<pvs(8)> command.  The \"full\" version includes all fields."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:3977
14396 msgid "pvuuid"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:3979
14401 #, no-wrap
14402 msgid ""
14403 " pvuuid device\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14409 msgid "This command returns the UUID of the LVM PV C<device>."
14410 msgstr ""
14411
14412 #. type: =head2
14413 #: ../fish/guestfish-actions.pod:3983
14414 msgid "pwrite"
14415 msgstr ""
14416
14417 #. type: verbatim
14418 #: ../fish/guestfish-actions.pod:3985
14419 #, no-wrap
14420 msgid ""
14421 " pwrite path content offset\n"
14422 "\n"
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14427 msgid ""
14428 "This command writes to part of a file.  It writes the data buffer C<content> "
14429 "to the file C<path> starting at offset C<offset>."
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14434 msgid ""
14435 "This command implements the L<pwrite(2)> system call, and like that system "
14436 "call it may not write the full data requested.  The return value is the "
14437 "number of bytes that were actually written to the file.  This could even be "
14438 "0, although short writes are unlikely for regular files in ordinary "
14439 "circumstances."
14440 msgstr ""
14441
14442 #. type: textblock
14443 #: ../fish/guestfish-actions.pod:3996
14444 msgid "See also L</pread>, L</pwrite-device>."
14445 msgstr ""
14446
14447 #. type: =head2
14448 #: ../fish/guestfish-actions.pod:4001
14449 msgid "pwrite-device"
14450 msgstr ""
14451
14452 #. type: verbatim
14453 #: ../fish/guestfish-actions.pod:4003
14454 #, no-wrap
14455 msgid ""
14456 " pwrite-device device content offset\n"
14457 "\n"
14458 msgstr ""
14459
14460 #. type: textblock
14461 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14462 msgid ""
14463 "This command writes to part of a device.  It writes the data buffer "
14464 "C<content> to C<device> starting at offset C<offset>."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14469 msgid ""
14470 "This command implements the L<pwrite(2)> system call, and like that system "
14471 "call it may not write the full data requested (although short writes to disk "
14472 "devices and partitions are probably impossible with standard Linux kernels)."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4013
14477 msgid "See also L</pwrite>."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:4018
14482 msgid "read-file"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:4020
14487 #, no-wrap
14488 msgid ""
14489 " read-file path\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14495 msgid "This calls returns the contents of the file C<path> as a buffer."
14496 msgstr ""
14497
14498 #. type: textblock
14499 #: ../fish/guestfish-actions.pod:4025
14500 msgid ""
14501 "Unlike L</cat>, this function can correctly handle files that contain "
14502 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14503 "is limited in the total size of file that can be handled."
14504 msgstr ""
14505
14506 #. type: =head2
14507 #: ../fish/guestfish-actions.pod:4033
14508 msgid "read-lines"
14509 msgstr ""
14510
14511 #. type: verbatim
14512 #: ../fish/guestfish-actions.pod:4035
14513 #, no-wrap
14514 msgid ""
14515 " read-lines path\n"
14516 "\n"
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14521 msgid ""
14522 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14523 "C<CRLF> character sequences are I<not> returned."
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:4042
14528 msgid ""
14529 "Note that this function cannot correctly handle binary files (specifically, "
14530 "files containing C<\\0> character which is treated as end of line).  For "
14531 "those you need to use the L</read-file> function which has a more complex "
14532 "interface."
14533 msgstr ""
14534
14535 #. type: =head2
14536 #: ../fish/guestfish-actions.pod:4047
14537 msgid "readdir"
14538 msgstr ""
14539
14540 #. type: verbatim
14541 #: ../fish/guestfish-actions.pod:4049
14542 #, no-wrap
14543 msgid ""
14544 " readdir dir\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14550 msgid "This returns the list of directory entries in directory C<dir>."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14555 msgid ""
14556 "All entries in the directory are returned, including C<.> and C<..>.  The "
14557 "entries are I<not> sorted, but returned in the same order as the underlying "
14558 "filesystem."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14563 msgid ""
14564 "Also this call returns basic file type information about each file.  The "
14565 "C<ftyp> field will contain one of the following characters:"
14566 msgstr ""
14567
14568 #. type: =item
14569 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14570 msgid "'b'"
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14575 msgid "Block special"
14576 msgstr ""
14577
14578 #. type: =item
14579 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14580 msgid "'c'"
14581 msgstr ""
14582
14583 #. type: textblock
14584 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14585 msgid "Char special"
14586 msgstr ""
14587
14588 #. type: =item
14589 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14590 msgid "'d'"
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14595 msgid "Directory"
14596 msgstr ""
14597
14598 #. type: =item
14599 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14600 msgid "'f'"
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14605 msgid "FIFO (named pipe)"
14606 msgstr ""
14607
14608 #. type: =item
14609 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14610 msgid "'l'"
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14615 msgid "Symbolic link"
14616 msgstr ""
14617
14618 #. type: =item
14619 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14620 msgid "'r'"
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14625 msgid "Regular file"
14626 msgstr ""
14627
14628 #. type: =item
14629 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14630 msgid "'s'"
14631 msgstr ""
14632
14633 #. type: textblock
14634 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14635 msgid "Socket"
14636 msgstr ""
14637
14638 #. type: =item
14639 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14640 msgid "'u'"
14641 msgstr ""
14642
14643 #. type: textblock
14644 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14645 msgid "Unknown file type"
14646 msgstr ""
14647
14648 #. type: =item
14649 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14650 msgid "'?'"
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14655 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4101
14660 msgid ""
14661 "This function is primarily intended for use by programs.  To get a simple "
14662 "list of names, use L</ls>.  To get a printable directory for human "
14663 "consumption, use L</ll>."
14664 msgstr ""
14665
14666 #. type: =head2
14667 #: ../fish/guestfish-actions.pod:4105
14668 msgid "readlink"
14669 msgstr ""
14670
14671 #. type: verbatim
14672 #: ../fish/guestfish-actions.pod:4107
14673 #, no-wrap
14674 msgid ""
14675 " readlink path\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14681 msgid "This command reads the target of a symbolic link."
14682 msgstr ""
14683
14684 #. type: =head2
14685 #: ../fish/guestfish-actions.pod:4111
14686 msgid "readlinklist"
14687 msgstr ""
14688
14689 #. type: verbatim
14690 #: ../fish/guestfish-actions.pod:4113
14691 #, no-wrap
14692 msgid ""
14693 " readlinklist path 'names ...'\n"
14694 "\n"
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
14699 msgid ""
14700 "This call allows you to do a C<readlink> operation on multiple files, where "
14701 "all files are in the directory C<path>.  C<names> is the list of files from "
14702 "this directory."
14703 msgstr ""
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
14707 msgid ""
14708 "On return you get a list of strings, with a one-to-one correspondence to the "
14709 "C<names> list.  Each string is the value of the symbolic link."
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
14714 msgid ""
14715 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14716 "result string is the empty string C<\"\">.  However the whole operation is "
14717 "completed even if there were C<readlink(2)> errors, and so you can call this "
14718 "function with names where you don't know if they are symbolic links already "
14719 "(albeit slightly less efficient)."
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
14724 msgid ""
14725 "This call is intended for programs that want to efficiently list a directory "
14726 "contents without making many round-trips.  Very long directory listings "
14727 "might cause the protocol message size to be exceeded, causing this call to "
14728 "fail.  The caller must split up such requests into smaller groups of names."
14729 msgstr ""
14730
14731 #. type: =head2
14732 #: ../fish/guestfish-actions.pod:4137
14733 msgid "realpath"
14734 msgstr ""
14735
14736 #. type: verbatim
14737 #: ../fish/guestfish-actions.pod:4139
14738 #, no-wrap
14739 msgid ""
14740 " realpath path\n"
14741 "\n"
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
14746 msgid ""
14747 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14748 "has no C<.>, C<..> or symbolic link path elements."
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4144
14753 msgid "removexattr"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:4146
14758 #, no-wrap
14759 msgid ""
14760 " removexattr xattr path\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
14766 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4151
14771 msgid "See also: L</lremovexattr>, L<attr(5)>."
14772 msgstr ""
14773
14774 #. type: =head2
14775 #: ../fish/guestfish-actions.pod:4153
14776 msgid "resize2fs"
14777 msgstr ""
14778
14779 #. type: verbatim
14780 #: ../fish/guestfish-actions.pod:4155
14781 #, no-wrap
14782 msgid ""
14783 " resize2fs device\n"
14784 "\n"
14785 msgstr ""
14786
14787 #. type: textblock
14788 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
14789 msgid ""
14790 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14791 "underlying device."
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4160
14796 msgid ""
14797 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14798 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14799 "gives an error about this and sometimes not.  In any case, it is always safe "
14800 "to call L</e2fsck-f> before calling this function."
14801 msgstr ""
14802
14803 #. type: =head2
14804 #: ../fish/guestfish-actions.pod:4166
14805 msgid "resize2fs-M"
14806 msgstr ""
14807
14808 #. type: verbatim
14809 #: ../fish/guestfish-actions.pod:4168
14810 #, no-wrap
14811 msgid ""
14812 " resize2fs-M device\n"
14813 "\n"
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:4170
14818 msgid ""
14819 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14820 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14821 "command."
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4174
14826 msgid ""
14827 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14828 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14829 "multiplied together, give the resulting size of the minimal filesystem in "
14830 "bytes."
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4179
14835 msgid "resize2fs-size"
14836 msgstr ""
14837
14838 #. type: verbatim
14839 #: ../fish/guestfish-actions.pod:4181
14840 #, no-wrap
14841 msgid ""
14842 " resize2fs-size device size\n"
14843 "\n"
14844 msgstr ""
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4183
14848 msgid ""
14849 "This command is the same as L</resize2fs> except that it allows you to "
14850 "specify the new size (in bytes) explicitly."
14851 msgstr ""
14852
14853 #. type: =head2
14854 #: ../fish/guestfish-actions.pod:4186
14855 msgid "rm"
14856 msgstr ""
14857
14858 #. type: verbatim
14859 #: ../fish/guestfish-actions.pod:4188
14860 #, no-wrap
14861 msgid ""
14862 " rm path\n"
14863 "\n"
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
14868 msgid "Remove the single file C<path>."
14869 msgstr ""
14870
14871 #. type: =head2
14872 #: ../fish/guestfish-actions.pod:4192
14873 msgid "rm-rf"
14874 msgstr ""
14875
14876 #. type: verbatim
14877 #: ../fish/guestfish-actions.pod:4194
14878 #, no-wrap
14879 msgid ""
14880 " rm-rf path\n"
14881 "\n"
14882 msgstr ""
14883
14884 #. type: textblock
14885 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
14886 msgid ""
14887 "Remove the file or directory C<path>, recursively removing the contents if "
14888 "its a directory.  This is like the C<rm -rf> shell command."
14889 msgstr ""
14890
14891 #. type: =head2
14892 #: ../fish/guestfish-actions.pod:4200
14893 msgid "rmdir"
14894 msgstr ""
14895
14896 #. type: verbatim
14897 #: ../fish/guestfish-actions.pod:4202
14898 #, no-wrap
14899 msgid ""
14900 " rmdir path\n"
14901 "\n"
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
14906 msgid "Remove the single directory C<path>."
14907 msgstr ""
14908
14909 #. type: =head2
14910 #: ../fish/guestfish-actions.pod:4206
14911 msgid "rmmountpoint"
14912 msgstr ""
14913
14914 #. type: verbatim
14915 #: ../fish/guestfish-actions.pod:4208
14916 #, no-wrap
14917 msgid ""
14918 " rmmountpoint exemptpath\n"
14919 "\n"
14920 msgstr ""
14921
14922 #. type: textblock
14923 #: ../fish/guestfish-actions.pod:4210
14924 msgid ""
14925 "This calls removes a mountpoint that was previously created with "
14926 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
14927 msgstr ""
14928
14929 #. type: =head2
14930 #: ../fish/guestfish-actions.pod:4214
14931 msgid "scrub-device"
14932 msgstr ""
14933
14934 #. type: verbatim
14935 #: ../fish/guestfish-actions.pod:4216
14936 #, no-wrap
14937 msgid ""
14938 " scrub-device device\n"
14939 "\n"
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
14944 msgid ""
14945 "This command writes patterns over C<device> to make data retrieval more "
14946 "difficult."
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570 ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
14951 msgid ""
14952 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14953 "more details."
14954 msgstr ""
14955
14956 #. type: =head2
14957 #: ../fish/guestfish-actions.pod:4224
14958 msgid "scrub-file"
14959 msgstr ""
14960
14961 #. type: verbatim
14962 #: ../fish/guestfish-actions.pod:4226
14963 #, no-wrap
14964 msgid ""
14965 " scrub-file file\n"
14966 "\n"
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
14971 msgid ""
14972 "This command writes patterns over a file to make data retrieval more "
14973 "difficult."
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
14978 msgid "The file is I<removed> after scrubbing."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:4236
14983 msgid "scrub-freespace"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:4238
14988 #, no-wrap
14989 msgid ""
14990 " scrub-freespace dir\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:4240
14996 msgid ""
14997 "This command creates the directory C<dir> and then fills it with files until "
14998 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14999 "deletes them.  The intention is to scrub any free space on the partition "
15000 "containing C<dir>."
15001 msgstr ""
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4249
15005 msgid "set-append"
15006 msgstr ""
15007
15008 #. type: =head2
15009 #: ../fish/guestfish-actions.pod:4251
15010 msgid "append"
15011 msgstr ""
15012
15013 #. type: verbatim
15014 #: ../fish/guestfish-actions.pod:4253
15015 #, no-wrap
15016 msgid ""
15017 " set-append append\n"
15018 "\n"
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
15023 msgid ""
15024 "This function is used to add additional options to the guest kernel command "
15025 "line."
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
15030 msgid ""
15031 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15032 "environment variable."
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
15037 msgid ""
15038 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15039 "(libguestfs always adds a few of its own)."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:4264
15044 msgid "set-attach-method"
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4266
15049 msgid "attach-method"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4268
15054 #, no-wrap
15055 msgid ""
15056 " set-attach-method attachmethod\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
15062 msgid ""
15063 "Set the method that libguestfs uses to connect to the back end guestfsd "
15064 "daemon.  Possible methods are:"
15065 msgstr ""
15066
15067 #. type: =item
15068 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644 ../src/guestfs.pod:2916
15069 msgid "C<appliance>"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
15074 msgid ""
15075 "Launch an appliance and connect to it.  This is the ordinary method and the "
15076 "default."
15077 msgstr ""
15078
15079 #. type: =item
15080 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
15081 msgid "C<unix:I<path>>"
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
15086 msgid "Connect to the Unix domain socket I<path>."
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15091 msgid ""
15092 "This method lets you connect to an existing daemon or (using virtio-serial) "
15093 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15094 "RUNNING DAEMONS>."
15095 msgstr ""
15096
15097 #. type: =head2
15098 #: ../fish/guestfish-actions.pod:4290
15099 msgid "set-autosync"
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-actions.pod:4292
15104 msgid "autosync"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-actions.pod:4294
15109 #, no-wrap
15110 msgid ""
15111 " set-autosync true|false\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15117 msgid ""
15118 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15119 "effort attempt to make filesystems consistent and synchronized when the "
15120 "handle is closed (also if the program exits without closing handles)."
15121 msgstr ""
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15125 msgid ""
15126 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15127 "disabled by default)."
15128 msgstr ""
15129
15130 #. type: =head2
15131 #: ../fish/guestfish-actions.pod:4304
15132 msgid "set-direct"
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:4306
15137 msgid "direct"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:4308
15142 #, no-wrap
15143 msgid ""
15144 " set-direct true|false\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15150 msgid ""
15151 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15152 "passed directly through to the appliance once it is launched."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4314
15157 msgid ""
15158 "One consequence of this is that log messages aren't caught by the library "
15159 "and handled by L</set-log-message-callback>, but go straight to stdout."
15160 msgstr ""
15161
15162 #. type: textblock
15163 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15164 msgid "You probably don't want to use this unless you know what you are doing."
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15169 msgid "The default is disabled."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:4323
15174 msgid "set-e2label"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:4325
15179 #, no-wrap
15180 msgid ""
15181 " set-e2label device label\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15187 msgid ""
15188 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15189 "C<label>.  Filesystem labels are limited to 16 characters."
15190 msgstr ""
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-actions.pod:4331
15194 msgid ""
15195 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15196 "label on a filesystem."
15197 msgstr ""
15198
15199 #. type: =head2
15200 #: ../fish/guestfish-actions.pod:4334
15201 msgid "set-e2uuid"
15202 msgstr ""
15203
15204 #. type: verbatim
15205 #: ../fish/guestfish-actions.pod:4336
15206 #, no-wrap
15207 msgid ""
15208 " set-e2uuid device uuid\n"
15209 "\n"
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15214 msgid ""
15215 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15216 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15217 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15218 msgstr ""
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4343
15222 msgid ""
15223 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15224 "UUID of a filesystem."
15225 msgstr ""
15226
15227 #. type: =head2
15228 #: ../fish/guestfish-actions.pod:4346
15229 msgid "set-memsize"
15230 msgstr ""
15231
15232 #. type: =head2
15233 #: ../fish/guestfish-actions.pod:4348
15234 msgid "memsize"
15235 msgstr ""
15236
15237 #. type: verbatim
15238 #: ../fish/guestfish-actions.pod:4350
15239 #, no-wrap
15240 msgid ""
15241 " set-memsize memsize\n"
15242 "\n"
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4352
15247 msgid ""
15248 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15249 "This only has any effect if called before L</launch>."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15254 msgid ""
15255 "You can also change this by setting the environment variable "
15256 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15257 msgstr ""
15258
15259 #. type: =head2
15260 #: ../fish/guestfish-actions.pod:4363
15261 msgid "set-network"
15262 msgstr ""
15263
15264 #. type: =head2
15265 #: ../fish/guestfish-actions.pod:4365
15266 msgid "network"
15267 msgstr ""
15268
15269 #. type: verbatim
15270 #: ../fish/guestfish-actions.pod:4367
15271 #, no-wrap
15272 msgid ""
15273 " set-network true|false\n"
15274 "\n"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15279 msgid ""
15280 "If C<network> is true, then the network is enabled in the libguestfs "
15281 "appliance.  The default is false."
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15286 msgid ""
15287 "This affects whether commands are able to access the network (see "
15288 "L<guestfs(3)/RUNNING COMMANDS>)."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4375
15293 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15294 msgstr ""
15295
15296 #. type: =head2
15297 #: ../fish/guestfish-actions.pod:4378
15298 msgid "set-path"
15299 msgstr ""
15300
15301 #. type: verbatim
15302 #: ../fish/guestfish-actions.pod:4382
15303 #, no-wrap
15304 msgid ""
15305 " set-path searchpath\n"
15306 "\n"
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15311 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15312 msgstr ""
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15316 msgid ""
15317 "The default is C<$libdir/guestfs> unless overridden by setting "
15318 "C<LIBGUESTFS_PATH> environment variable."
15319 msgstr ""
15320
15321 #. type: textblock
15322 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15323 msgid "Setting C<path> to C<NULL> restores the default path."
15324 msgstr ""
15325
15326 #. type: =head2
15327 #: ../fish/guestfish-actions.pod:4391
15328 msgid "set-pgroup"
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4393
15333 msgid "pgroup"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:4395
15338 #, no-wrap
15339 msgid ""
15340 " set-pgroup true|false\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15346 msgid ""
15347 "If C<pgroup> is true, child processes are placed into their own process "
15348 "group."
15349 msgstr ""
15350
15351 #. type: textblock
15352 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15353 msgid ""
15354 "The practical upshot of this is that signals like C<SIGINT> (from users "
15355 "pressing C<^C>) won't be received by the child process."
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15360 msgid ""
15361 "The default for this flag is false, because usually you want C<^C> to kill "
15362 "the subprocess."
15363 msgstr ""
15364
15365 #. type: =head2
15366 #: ../fish/guestfish-actions.pod:4406
15367 msgid "set-qemu"
15368 msgstr ""
15369
15370 #. type: =head2
15371 #: ../fish/guestfish-actions.pod:4408
15372 msgid "qemu"
15373 msgstr ""
15374
15375 #. type: verbatim
15376 #: ../fish/guestfish-actions.pod:4410
15377 #, no-wrap
15378 msgid ""
15379 " set-qemu qemu\n"
15380 "\n"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15385 msgid "Set the qemu binary that we will use."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15390 msgid "The default is chosen when the library was compiled by the configure script."
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15395 msgid ""
15396 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15397 "variable."
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15402 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15407 msgid ""
15408 "Note that you should call this function as early as possible after creating "
15409 "the handle.  This is because some pre-launch operations depend on testing "
15410 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15411 "don't retest features, and so you might see inconsistent results.  Using the "
15412 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15413 "the qemu binary at the same time as the handle is created."
15414 msgstr ""
15415
15416 #. type: =head2
15417 #: ../fish/guestfish-actions.pod:4430
15418 msgid "set-recovery-proc"
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-actions.pod:4432
15423 msgid "recovery-proc"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-actions.pod:4434
15428 #, no-wrap
15429 msgid ""
15430 " set-recovery-proc true|false\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:4436
15436 msgid ""
15437 "If this is called with the parameter C<false> then L</launch> does not "
15438 "create a recovery process.  The purpose of the recovery process is to stop "
15439 "runaway qemu processes in the case where the main program aborts abruptly."
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-actions.pod:4441
15444 msgid ""
15445 "This only has any effect if called before L</launch>, and the default is "
15446 "true."
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15451 msgid ""
15452 "About the only time when you would want to disable this is if the main "
15453 "process will fork itself into the background (\"daemonize\" itself).  In "
15454 "this case the recovery process thinks that the main program has disappeared "
15455 "and so kills qemu, which is not very helpful."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:4450
15460 msgid "set-selinux"
15461 msgstr ""
15462
15463 #. type: =head2
15464 #: ../fish/guestfish-actions.pod:4452
15465 msgid "selinux"
15466 msgstr ""
15467
15468 #. type: verbatim
15469 #: ../fish/guestfish-actions.pod:4454
15470 #, no-wrap
15471 msgid ""
15472 " set-selinux true|false\n"
15473 "\n"
15474 msgstr ""
15475
15476 #. type: textblock
15477 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15478 msgid ""
15479 "This sets the selinux flag that is passed to the appliance at boot time.  "
15480 "The default is C<selinux=0> (disabled)."
15481 msgstr ""
15482
15483 #. type: textblock
15484 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15485 msgid ""
15486 "Note that if SELinux is enabled, it is always in Permissive mode "
15487 "(C<enforcing=0>)."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:4465
15492 msgid "set-smp"
15493 msgstr ""
15494
15495 #. type: =head2
15496 #: ../fish/guestfish-actions.pod:4467
15497 msgid "smp"
15498 msgstr ""
15499
15500 #. type: verbatim
15501 #: ../fish/guestfish-actions.pod:4469
15502 #, no-wrap
15503 msgid ""
15504 " set-smp smp\n"
15505 "\n"
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15510 msgid ""
15511 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15512 "C<1>.  Increasing this may improve performance, though often it has no "
15513 "effect."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4475
15518 msgid "This function must be called before L</launch>."
15519 msgstr ""
15520
15521 #. type: =head2
15522 #: ../fish/guestfish-actions.pod:4477
15523 msgid "set-trace"
15524 msgstr ""
15525
15526 #. type: =head2
15527 #: ../fish/guestfish-actions.pod:4479
15528 msgid "trace"
15529 msgstr ""
15530
15531 #. type: verbatim
15532 #: ../fish/guestfish-actions.pod:4481
15533 #, no-wrap
15534 msgid ""
15535 " set-trace true|false\n"
15536 "\n"
15537 msgstr ""
15538
15539 #. type: textblock
15540 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15541 msgid ""
15542 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15543 "return values are traced."
15544 msgstr ""
15545
15546 #. type: textblock
15547 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15548 msgid ""
15549 "If you want to trace C API calls into libguestfs (and other libraries) then "
15550 "possibly a better way is to use the external ltrace(1) command."
15551 msgstr ""
15552
15553 #. type: textblock
15554 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15555 msgid ""
15556 "Command traces are disabled unless the environment variable "
15557 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15558 msgstr ""
15559
15560 #. type: textblock
15561 #: ../fish/guestfish-actions.pod:4493
15562 msgid ""
15563 "Trace messages are normally sent to C<stderr>, unless you register a "
15564 "callback to send them somewhere else (see L</set-event-callback>)."
15565 msgstr ""
15566
15567 #. type: =head2
15568 #: ../fish/guestfish-actions.pod:4497
15569 msgid "set-verbose"
15570 msgstr ""
15571
15572 #. type: =head2
15573 #: ../fish/guestfish-actions.pod:4499
15574 msgid "verbose"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish-actions.pod:4501
15579 #, no-wrap
15580 msgid ""
15581 " set-verbose true|false\n"
15582 "\n"
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15587 msgid "If C<verbose> is true, this turns on verbose messages."
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15592 msgid ""
15593 "Verbose messages are disabled unless the environment variable "
15594 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15595 msgstr ""
15596
15597 #. type: textblock
15598 #: ../fish/guestfish-actions.pod:4508
15599 msgid ""
15600 "Verbose messages are normally sent to C<stderr>, unless you register a "
15601 "callback to send them somewhere else (see L</set-event-callback>)."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4512
15606 msgid "setcon"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4514
15611 #, no-wrap
15612 msgid ""
15613 " setcon context\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15619 msgid ""
15620 "This sets the SELinux security context of the daemon to the string "
15621 "C<context>."
15622 msgstr ""
15623
15624 #. type: textblock
15625 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15626 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15627 msgstr ""
15628
15629 #. type: =head2
15630 #: ../fish/guestfish-actions.pod:4521
15631 msgid "setxattr"
15632 msgstr ""
15633
15634 #. type: verbatim
15635 #: ../fish/guestfish-actions.pod:4523
15636 #, no-wrap
15637 msgid ""
15638 " setxattr xattr val vallen path\n"
15639 "\n"
15640 msgstr ""
15641
15642 #. type: textblock
15643 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
15644 msgid ""
15645 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15646 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-actions.pod:4529
15651 msgid "See also: L</lsetxattr>, L<attr(5)>."
15652 msgstr ""
15653
15654 #. type: =head2
15655 #: ../fish/guestfish-actions.pod:4531
15656 msgid "sfdisk"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-actions.pod:4533
15661 #, no-wrap
15662 msgid ""
15663 " sfdisk device cyls heads sectors 'lines ...'\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
15669 msgid ""
15670 "This is a direct interface to the L<sfdisk(8)> program for creating "
15671 "partitions on block devices."
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
15676 msgid "C<device> should be a block device, for example C</dev/sda>."
15677 msgstr ""
15678
15679 #. type: textblock
15680 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
15681 msgid ""
15682 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15683 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15684 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15685 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15686 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15687 "the kernel) cannot work out the right geometry and you will need to tell it."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
15692 msgid ""
15693 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15694 "refer to the L<sfdisk(8)> manpage."
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
15699 msgid ""
15700 "To create a single partition occupying the whole disk, you would pass "
15701 "C<lines> as a single element list, when the single element being the string "
15702 "C<,> (comma)."
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:4555
15707 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578 ../fish/guestfish-actions.pod:4597
15712 msgid ""
15713 "I<This function is deprecated.> In new code, use the L</part_add> call "
15714 "instead."
15715 msgstr ""
15716
15717 #. type: =head2
15718 #: ../fish/guestfish-actions.pod:4565
15719 msgid "sfdiskM"
15720 msgstr ""
15721
15722 #. type: verbatim
15723 #: ../fish/guestfish-actions.pod:4567
15724 #, no-wrap
15725 msgid ""
15726 " sfdiskM device 'lines ...'\n"
15727 "\n"
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4569
15732 msgid ""
15733 "This is a simplified interface to the L</sfdisk> command, where partition "
15734 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15735 "you don't need to specify the cyls, heads and sectors parameters which were "
15736 "rarely if ever used anyway."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4575
15741 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15742 msgstr ""
15743
15744 #. type: =head2
15745 #: ../fish/guestfish-actions.pod:4585
15746 msgid "sfdisk-N"
15747 msgstr ""
15748
15749 #. type: verbatim
15750 #: ../fish/guestfish-actions.pod:4587
15751 #, no-wrap
15752 msgid ""
15753 " sfdisk-N device partnum cyls heads sectors line\n"
15754 "\n"
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
15759 msgid ""
15760 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15761 "(note: C<n> counts from 1)."
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:4592
15766 msgid ""
15767 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15768 "cyls/heads/sectors parameters."
15769 msgstr ""
15770
15771 #. type: textblock
15772 #: ../fish/guestfish-actions.pod:4595
15773 msgid "See also: L</part-add>"
15774 msgstr ""
15775
15776 #. type: =head2
15777 #: ../fish/guestfish-actions.pod:4604
15778 msgid "sfdisk-disk-geometry"
15779 msgstr ""
15780
15781 #. type: verbatim
15782 #: ../fish/guestfish-actions.pod:4606
15783 #, no-wrap
15784 msgid ""
15785 " sfdisk-disk-geometry device\n"
15786 "\n"
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish-actions.pod:4608
15791 msgid ""
15792 "This displays the disk geometry of C<device> read from the partition table.  "
15793 "Especially in the case where the underlying block device has been resized, "
15794 "this can be different from the kernel's idea of the geometry (see "
15795 "L</sfdisk-kernel-geometry>)."
15796 msgstr ""
15797
15798 #. type: textblock
15799 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
15800 msgid "The result is in human-readable format, and not designed to be parsed."
15801 msgstr ""
15802
15803 #. type: =head2
15804 #: ../fish/guestfish-actions.pod:4616
15805 msgid "sfdisk-kernel-geometry"
15806 msgstr ""
15807
15808 #. type: verbatim
15809 #: ../fish/guestfish-actions.pod:4618
15810 #, no-wrap
15811 msgid ""
15812 " sfdisk-kernel-geometry device\n"
15813 "\n"
15814 msgstr ""
15815
15816 #. type: textblock
15817 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
15818 msgid "This displays the kernel's idea of the geometry of C<device>."
15819 msgstr ""
15820
15821 #. type: =head2
15822 #: ../fish/guestfish-actions.pod:4625
15823 msgid "sfdisk-l"
15824 msgstr ""
15825
15826 #. type: verbatim
15827 #: ../fish/guestfish-actions.pod:4627
15828 #, no-wrap
15829 msgid ""
15830 " sfdisk-l device\n"
15831 "\n"
15832 msgstr ""
15833
15834 #. type: textblock
15835 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
15836 msgid ""
15837 "This displays the partition table on C<device>, in the human-readable output "
15838 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15839 msgstr ""
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4633
15843 msgid "See also: L</part-list>"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4635
15848 msgid ""
15849 "I<This function is deprecated.> In new code, use the L</part_list> call "
15850 "instead."
15851 msgstr ""
15852
15853 #. type: =head2
15854 #: ../fish/guestfish-actions.pod:4642
15855 msgid "sh"
15856 msgstr ""
15857
15858 #. type: verbatim
15859 #: ../fish/guestfish-actions.pod:4644
15860 #, no-wrap
15861 msgid ""
15862 " sh command\n"
15863 "\n"
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
15868 msgid ""
15869 "This call runs a command from the guest filesystem via the guest's "
15870 "C</bin/sh>."
15871 msgstr ""
15872
15873 #. type: textblock
15874 #: ../fish/guestfish-actions.pod:4649
15875 msgid "This is like L</command>, but passes the command to:"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
15880 #, no-wrap
15881 msgid ""
15882 " /bin/sh -c \"command\"\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
15888 msgid ""
15889 "Depending on the guest's shell, this usually results in wildcards being "
15890 "expanded, shell expressions being interpolated and so on."
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../fish/guestfish-actions.pod:4657
15895 msgid "All the provisos about L</command> apply to this call."
15896 msgstr ""
15897
15898 #. type: =head2
15899 #: ../fish/guestfish-actions.pod:4659
15900 msgid "sh-lines"
15901 msgstr ""
15902
15903 #. type: verbatim
15904 #: ../fish/guestfish-actions.pod:4661
15905 #, no-wrap
15906 msgid ""
15907 " sh-lines command\n"
15908 "\n"
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-actions.pod:4663
15913 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:4666
15918 msgid "See also: L</command-lines>"
15919 msgstr ""
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:4668
15923 msgid "sleep"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish-actions.pod:4670
15928 #, no-wrap
15929 msgid ""
15930 " sleep secs\n"
15931 "\n"
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
15936 msgid "Sleep for C<secs> seconds."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-actions.pod:4674
15941 msgid "stat"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish-actions.pod:4676
15946 #, no-wrap
15947 msgid ""
15948 " stat path\n"
15949 "\n"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
15954 msgid "This is the same as the C<stat(2)> system call."
15955 msgstr ""
15956
15957 #. type: =head2
15958 #: ../fish/guestfish-actions.pod:4682
15959 msgid "statvfs"
15960 msgstr ""
15961
15962 #. type: verbatim
15963 #: ../fish/guestfish-actions.pod:4684
15964 #, no-wrap
15965 msgid ""
15966 " statvfs path\n"
15967 "\n"
15968 msgstr ""
15969
15970 #. type: textblock
15971 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
15972 msgid ""
15973 "Returns file system statistics for any mounted file system.  C<path> should "
15974 "be a file or directory in the mounted file system (typically it is the mount "
15975 "point itself, but it doesn't need to be)."
15976 msgstr ""
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
15980 msgid "This is the same as the C<statvfs(2)> system call."
15981 msgstr ""
15982
15983 #. type: =head2
15984 #: ../fish/guestfish-actions.pod:4692
15985 msgid "strings"
15986 msgstr ""
15987
15988 #. type: verbatim
15989 #: ../fish/guestfish-actions.pod:4694
15990 #, no-wrap
15991 msgid ""
15992 " strings path\n"
15993 "\n"
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
15998 msgid ""
15999 "This runs the L<strings(1)> command on a file and returns the list of "
16000 "printable strings found."
16001 msgstr ""
16002
16003 #. type: =head2
16004 #: ../fish/guestfish-actions.pod:4702
16005 msgid "strings-e"
16006 msgstr ""
16007
16008 #. type: verbatim
16009 #: ../fish/guestfish-actions.pod:4704
16010 #, no-wrap
16011 msgid ""
16012 " strings-e encoding path\n"
16013 "\n"
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4706
16018 msgid ""
16019 "This is like the L</strings> command, but allows you to specify the encoding "
16020 "of strings that are looked for in the source file C<path>."
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
16025 msgid "Allowed encodings are:"
16026 msgstr ""
16027
16028 #. type: =item
16029 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
16030 msgid "s"
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:4716
16035 msgid ""
16036 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16037 "ISO-8859-X (this is what L</strings> uses)."
16038 msgstr ""
16039
16040 #. type: =item
16041 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
16042 msgid "S"
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
16047 msgid "Single 8-bit-byte characters."
16048 msgstr ""
16049
16050 #. type: =item
16051 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
16052 msgid "b"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
16057 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16058 msgstr ""
16059
16060 #. type: =item
16061 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16062 msgid "l (lower case letter L)"
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
16067 msgid ""
16068 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16069 "examining binaries in Windows guests."
16070 msgstr ""
16071
16072 #. type: =item
16073 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
16074 msgid "B"
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
16079 msgid "32-bit big endian such as UCS-4BE."
16080 msgstr ""
16081
16082 #. type: =item
16083 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16084 msgid "L"
16085 msgstr ""
16086
16087 #. type: textblock
16088 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16089 msgid "32-bit little endian such as UCS-4LE."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16094 msgid "The returned strings are transcoded to UTF-8."
16095 msgstr ""
16096
16097 #. type: =head2
16098 #: ../fish/guestfish-actions.pod:4748
16099 msgid "swapoff-device"
16100 msgstr ""
16101
16102 #. type: verbatim
16103 #: ../fish/guestfish-actions.pod:4750
16104 #, no-wrap
16105 msgid ""
16106 " swapoff-device device\n"
16107 "\n"
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:4752
16112 msgid ""
16113 "This command disables the libguestfs appliance swap device or partition "
16114 "named C<device>.  See L</swapon-device>."
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../fish/guestfish-actions.pod:4756
16119 msgid "swapoff-file"
16120 msgstr ""
16121
16122 #. type: verbatim
16123 #: ../fish/guestfish-actions.pod:4758
16124 #, no-wrap
16125 msgid ""
16126 " swapoff-file file\n"
16127 "\n"
16128 msgstr ""
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16132 msgid "This command disables the libguestfs appliance swap on file."
16133 msgstr ""
16134
16135 #. type: =head2
16136 #: ../fish/guestfish-actions.pod:4762
16137 msgid "swapoff-label"
16138 msgstr ""
16139
16140 #. type: verbatim
16141 #: ../fish/guestfish-actions.pod:4764
16142 #, no-wrap
16143 msgid ""
16144 " swapoff-label label\n"
16145 "\n"
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16150 msgid ""
16151 "This command disables the libguestfs appliance swap on labeled swap "
16152 "partition."
16153 msgstr ""
16154
16155 #. type: =head2
16156 #: ../fish/guestfish-actions.pod:4769
16157 msgid "swapoff-uuid"
16158 msgstr ""
16159
16160 #. type: verbatim
16161 #: ../fish/guestfish-actions.pod:4771
16162 #, no-wrap
16163 msgid ""
16164 " swapoff-uuid uuid\n"
16165 "\n"
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16170 msgid ""
16171 "This command disables the libguestfs appliance swap partition with the given "
16172 "UUID."
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4776
16177 msgid "swapon-device"
16178 msgstr ""
16179
16180 #. type: verbatim
16181 #: ../fish/guestfish-actions.pod:4778
16182 #, no-wrap
16183 msgid ""
16184 " swapon-device device\n"
16185 "\n"
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../fish/guestfish-actions.pod:4780
16190 msgid ""
16191 "This command enables the libguestfs appliance to use the swap device or "
16192 "partition named C<device>.  The increased memory is made available for all "
16193 "commands, for example those run using L</command> or L</sh>."
16194 msgstr ""
16195
16196 #. type: textblock
16197 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16198 msgid ""
16199 "Note that you should not swap to existing guest swap partitions unless you "
16200 "know what you are doing.  They may contain hibernation information, or other "
16201 "information that the guest doesn't want you to trash.  You also risk leaking "
16202 "information about the host to the guest this way.  Instead, attach a new "
16203 "host device to the guest and swap on that."
16204 msgstr ""
16205
16206 #. type: =head2
16207 #: ../fish/guestfish-actions.pod:4792
16208 msgid "swapon-file"
16209 msgstr ""
16210
16211 #. type: verbatim
16212 #: ../fish/guestfish-actions.pod:4794
16213 #, no-wrap
16214 msgid ""
16215 " swapon-file file\n"
16216 "\n"
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:4796
16221 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16222 msgstr ""
16223
16224 #. type: =head2
16225 #: ../fish/guestfish-actions.pod:4799
16226 msgid "swapon-label"
16227 msgstr ""
16228
16229 #. type: verbatim
16230 #: ../fish/guestfish-actions.pod:4801
16231 #, no-wrap
16232 msgid ""
16233 " swapon-label label\n"
16234 "\n"
16235 msgstr ""
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:4803
16239 msgid ""
16240 "This command enables swap to a labeled swap partition.  See "
16241 "L</swapon-device> for other notes."
16242 msgstr ""
16243
16244 #. type: =head2
16245 #: ../fish/guestfish-actions.pod:4806
16246 msgid "swapon-uuid"
16247 msgstr ""
16248
16249 #. type: verbatim
16250 #: ../fish/guestfish-actions.pod:4808
16251 #, no-wrap
16252 msgid ""
16253 " swapon-uuid uuid\n"
16254 "\n"
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4810
16259 msgid ""
16260 "This command enables swap to a swap partition with the given UUID.  See "
16261 "L</swapon-device> for other notes."
16262 msgstr ""
16263
16264 #. type: =head2
16265 #: ../fish/guestfish-actions.pod:4813
16266 msgid "sync"
16267 msgstr ""
16268
16269 #. type: verbatim
16270 #: ../fish/guestfish-actions.pod:4815
16271 #, no-wrap
16272 msgid ""
16273 " sync\n"
16274 "\n"
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16279 msgid ""
16280 "This syncs the disk, so that any writes are flushed through to the "
16281 "underlying disk image."
16282 msgstr ""
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16286 msgid ""
16287 "You should always call this if you have modified a disk image, before "
16288 "closing the handle."
16289 msgstr ""
16290
16291 #. type: =head2
16292 #: ../fish/guestfish-actions.pod:4823
16293 msgid "tail"
16294 msgstr ""
16295
16296 #. type: verbatim
16297 #: ../fish/guestfish-actions.pod:4825
16298 #, no-wrap
16299 msgid ""
16300 " tail path\n"
16301 "\n"
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16306 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish-actions.pod:4833
16311 msgid "tail-n"
16312 msgstr ""
16313
16314 #. type: verbatim
16315 #: ../fish/guestfish-actions.pod:4835
16316 #, no-wrap
16317 msgid ""
16318 " tail-n nrlines path\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16324 msgid ""
16325 "If the parameter C<nrlines> is a positive number, this returns the last "
16326 "C<nrlines> lines of the file C<path>."
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16331 msgid ""
16332 "If the parameter C<nrlines> is a negative number, this returns lines from "
16333 "the file C<path>, starting with the C<-nrlines>th line."
16334 msgstr ""
16335
16336 #. type: =head2
16337 #: ../fish/guestfish-actions.pod:4848
16338 msgid "tar-in"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../fish/guestfish-actions.pod:4850
16343 #, no-wrap
16344 msgid ""
16345 " tar-in (tarfile|-) directory\n"
16346 "\n"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16351 msgid ""
16352 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16353 "tar file) into C<directory>."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-actions.pod:4855
16358 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16359 msgstr ""
16360
16361 #. type: =head2
16362 #: ../fish/guestfish-actions.pod:4860
16363 msgid "tar-out"
16364 msgstr ""
16365
16366 #. type: verbatim
16367 #: ../fish/guestfish-actions.pod:4862
16368 #, no-wrap
16369 msgid ""
16370 " tar-out directory (tarfile|-)\n"
16371 "\n"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16376 msgid ""
16377 "This command packs the contents of C<directory> and downloads it to local "
16378 "file C<tarfile>."
16379 msgstr ""
16380
16381 #. type: textblock
16382 #: ../fish/guestfish-actions.pod:4867
16383 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16384 msgstr ""
16385
16386 #. type: =head2
16387 #: ../fish/guestfish-actions.pod:4872
16388 msgid "tgz-in"
16389 msgstr ""
16390
16391 #. type: verbatim
16392 #: ../fish/guestfish-actions.pod:4874
16393 #, no-wrap
16394 msgid ""
16395 " tgz-in (tarball|-) directory\n"
16396 "\n"
16397 msgstr ""
16398
16399 #. type: textblock
16400 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16401 msgid ""
16402 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16403 "tar file) into C<directory>."
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish-actions.pod:4879
16408 msgid "To upload an uncompressed tarball, use L</tar-in>."
16409 msgstr ""
16410
16411 #. type: =head2
16412 #: ../fish/guestfish-actions.pod:4883
16413 msgid "tgz-out"
16414 msgstr ""
16415
16416 #. type: verbatim
16417 #: ../fish/guestfish-actions.pod:4885
16418 #, no-wrap
16419 msgid ""
16420 " tgz-out directory (tarball|-)\n"
16421 "\n"
16422 msgstr ""
16423
16424 #. type: textblock
16425 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16426 msgid ""
16427 "This command packs the contents of C<directory> and downloads it to local "
16428 "file C<tarball>."
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-actions.pod:4890
16433 msgid "To download an uncompressed tarball, use L</tar-out>."
16434 msgstr ""
16435
16436 #. type: =head2
16437 #: ../fish/guestfish-actions.pod:4894
16438 msgid "touch"
16439 msgstr ""
16440
16441 #. type: verbatim
16442 #: ../fish/guestfish-actions.pod:4896
16443 #, no-wrap
16444 msgid ""
16445 " touch path\n"
16446 "\n"
16447 msgstr ""
16448
16449 #. type: textblock
16450 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16451 msgid ""
16452 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16453 "timestamps on a file, or, if the file does not exist, to create a new "
16454 "zero-length file."
16455 msgstr ""
16456
16457 #. type: textblock
16458 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16459 msgid ""
16460 "This command only works on regular files, and will fail on other file types "
16461 "such as directories, symbolic links, block special etc."
16462 msgstr ""
16463
16464 #. type: =head2
16465 #: ../fish/guestfish-actions.pod:4905
16466 msgid "truncate"
16467 msgstr ""
16468
16469 #. type: verbatim
16470 #: ../fish/guestfish-actions.pod:4907
16471 #, no-wrap
16472 msgid ""
16473 " truncate path\n"
16474 "\n"
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16479 msgid ""
16480 "This command truncates C<path> to a zero-length file.  The file must exist "
16481 "already."
16482 msgstr ""
16483
16484 #. type: =head2
16485 #: ../fish/guestfish-actions.pod:4912
16486 msgid "truncate-size"
16487 msgstr ""
16488
16489 #. type: verbatim
16490 #: ../fish/guestfish-actions.pod:4914
16491 #, no-wrap
16492 msgid ""
16493 " truncate-size path size\n"
16494 "\n"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16499 msgid ""
16500 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16501 "already."
16502 msgstr ""
16503
16504 #. type: textblock
16505 #: ../fish/guestfish-actions.pod:4919
16506 msgid ""
16507 "If the current file size is less than C<size> then the file is extended to "
16508 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16509 "blocks are not allocated for the file until you write to it).  To create a "
16510 "non-sparse file of zeroes, use L</fallocate64> instead."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../fish/guestfish-actions.pod:4925
16515 msgid "tune2fs-l"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../fish/guestfish-actions.pod:4927
16520 #, no-wrap
16521 msgid ""
16522 " tune2fs-l device\n"
16523 "\n"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16528 msgid ""
16529 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16530 "C<device>."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16535 msgid ""
16536 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16537 "for more details.  The list of fields returned isn't clearly defined, and "
16538 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16539 "and the filesystem itself."
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:4937
16544 msgid "txz-in"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:4939
16549 #, no-wrap
16550 msgid ""
16551 " txz-in (tarball|-) directory\n"
16552 "\n"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16557 msgid ""
16558 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16559 "tar file) into C<directory>."
16560 msgstr ""
16561
16562 #. type: =head2
16563 #: ../fish/guestfish-actions.pod:4946
16564 msgid "txz-out"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish-actions.pod:4948
16569 #, no-wrap
16570 msgid ""
16571 " txz-out directory (tarball|-)\n"
16572 "\n"
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
16577 msgid ""
16578 "This command packs the contents of C<directory> and downloads it to local "
16579 "file C<tarball> (as an xz compressed tar archive)."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../fish/guestfish-actions.pod:4955
16584 msgid "umask"
16585 msgstr ""
16586
16587 #. type: verbatim
16588 #: ../fish/guestfish-actions.pod:4957
16589 #, no-wrap
16590 msgid ""
16591 " umask mask\n"
16592 "\n"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
16597 msgid ""
16598 "This function sets the mask used for creating new files and device nodes to "
16599 "C<mask & 0777>."
16600 msgstr ""
16601
16602 #. type: textblock
16603 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
16604 msgid ""
16605 "Typical umask values would be C<022> which creates new files with "
16606 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16607 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
16612 msgid ""
16613 "The default umask is C<022>.  This is important because it means that "
16614 "directories and device nodes will be created with C<0644> or C<0755> mode "
16615 "even if you specify C<0777>."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish-actions.pod:4971
16620 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
16625 msgid "This call returns the previous umask."
16626 msgstr ""
16627
16628 #. type: =head2
16629 #: ../fish/guestfish-actions.pod:4976
16630 msgid "umount"
16631 msgstr ""
16632
16633 #. type: =head2
16634 #: ../fish/guestfish-actions.pod:4978
16635 msgid "unmount"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish-actions.pod:4980
16640 #, no-wrap
16641 msgid ""
16642 " umount pathordevice\n"
16643 "\n"
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
16648 msgid ""
16649 "This unmounts the given filesystem.  The filesystem may be specified either "
16650 "by its mountpoint (path) or the device which contains the filesystem."
16651 msgstr ""
16652
16653 #. type: =head2
16654 #: ../fish/guestfish-actions.pod:4986
16655 msgid "umount-all"
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-actions.pod:4988
16660 msgid "unmount-all"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-actions.pod:4990
16665 #, no-wrap
16666 msgid ""
16667 " umount-all\n"
16668 "\n"
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
16673 msgid "This unmounts all mounted filesystems."
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
16678 msgid "Some internal mounts are not unmounted by this call."
16679 msgstr ""
16680
16681 #. type: =head2
16682 #: ../fish/guestfish-actions.pod:4996
16683 msgid "upload"
16684 msgstr ""
16685
16686 #. type: verbatim
16687 #: ../fish/guestfish-actions.pod:4998
16688 #, no-wrap
16689 msgid ""
16690 " upload (filename|-) remotefilename\n"
16691 "\n"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
16696 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish-actions.pod:5005
16701 msgid "See also L</download>."
16702 msgstr ""
16703
16704 #. type: =head2
16705 #: ../fish/guestfish-actions.pod:5009
16706 msgid "upload-offset"
16707 msgstr ""
16708
16709 #. type: verbatim
16710 #: ../fish/guestfish-actions.pod:5011
16711 #, no-wrap
16712 msgid ""
16713 " upload-offset (filename|-) remotefilename offset\n"
16714 "\n"
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
16719 msgid ""
16720 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16721 "The intention is to overwrite parts of existing files or devices, although "
16722 "if a non-existant file is specified then it is created with a \"hole\" "
16723 "before C<offset>.  The size of the data written is implicit in the size of "
16724 "the source C<filename>."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish-actions.pod:5023
16729 msgid ""
16730 "Note that there is no limit on the amount of data that can be uploaded with "
16731 "this call, unlike with L</pwrite>, and this call always writes the full "
16732 "amount unless an error occurs."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5028
16737 msgid "See also L</upload>, L</pwrite>."
16738 msgstr ""
16739
16740 #. type: =head2
16741 #: ../fish/guestfish-actions.pod:5032
16742 msgid "utimens"
16743 msgstr ""
16744
16745 #. type: verbatim
16746 #: ../fish/guestfish-actions.pod:5034
16747 #, no-wrap
16748 msgid ""
16749 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16750 "\n"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
16755 msgid "This command sets the timestamps of a file with nanosecond precision."
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
16760 msgid ""
16761 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16762 "from the epoch."
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
16767 msgid ""
16768 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16769 "nanoseconds from the epoch."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
16774 msgid ""
16775 "If the C<*nsecs> field contains the special value C<-1> then the "
16776 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16777 "ignored in this case)."
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
16782 msgid ""
16783 "If the C<*nsecs> field contains the special value C<-2> then the "
16784 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16785 "in this case)."
16786 msgstr ""
16787
16788 #. type: =head2
16789 #: ../fish/guestfish-actions.pod:5053
16790 msgid "version"
16791 msgstr ""
16792
16793 #. type: verbatim
16794 #: ../fish/guestfish-actions.pod:5055
16795 #, no-wrap
16796 msgid ""
16797 " version\n"
16798 "\n"
16799 msgstr ""
16800
16801 #. type: textblock
16802 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
16803 msgid "Return the libguestfs version number that the program is linked against."
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
16808 msgid ""
16809 "Note that because of dynamic linking this is not necessarily the version of "
16810 "libguestfs that you compiled against.  You can compile the program, and then "
16811 "at runtime dynamically link against a completely different C<libguestfs.so> "
16812 "library."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
16817 msgid ""
16818 "This call was added in version C<1.0.58>.  In previous versions of "
16819 "libguestfs there was no way to get the version number.  From C code you can "
16820 "use dynamic linker functions to find out if this symbol exists (if it "
16821 "doesn't, then it's an earlier version)."
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
16826 msgid ""
16827 "The call returns a structure with four elements.  The first three (C<major>, "
16828 "C<minor> and C<release>) are numbers and correspond to the usual version "
16829 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16830 "but may be used for distro-specific information."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
16835 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
16840 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-actions.pod:5082
16845 msgid ""
16846 "I<Note:> Don't use this call to test for availability of features.  In "
16847 "enterprise distributions we backport features from later versions into "
16848 "earlier versions, making this an unreliable way to test for features.  Use "
16849 "L</available> instead."
16850 msgstr ""
16851
16852 #. type: =head2
16853 #: ../fish/guestfish-actions.pod:5088
16854 msgid "vfs-label"
16855 msgstr ""
16856
16857 #. type: verbatim
16858 #: ../fish/guestfish-actions.pod:5090
16859 #, no-wrap
16860 msgid ""
16861 " vfs-label device\n"
16862 "\n"
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
16867 msgid "This returns the filesystem label of the filesystem on C<device>."
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
16872 msgid "If the filesystem is unlabeled, this returns the empty string."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:5097
16877 msgid "To find a filesystem from the label, use L</findfs-label>."
16878 msgstr ""
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:5099
16882 msgid "vfs-type"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish-actions.pod:5101
16887 #, no-wrap
16888 msgid ""
16889 " vfs-type device\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
16895 msgid ""
16896 "This command gets the filesystem type corresponding to the filesystem on "
16897 "C<device>."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
16902 msgid ""
16903 "For most filesystems, the result is the name of the Linux VFS module which "
16904 "would be used to mount this filesystem if you mounted it without specifying "
16905 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16906 msgstr ""
16907
16908 #. type: =head2
16909 #: ../fish/guestfish-actions.pod:5111
16910 msgid "vfs-uuid"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../fish/guestfish-actions.pod:5113
16915 #, no-wrap
16916 msgid ""
16917 " vfs-uuid device\n"
16918 "\n"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
16923 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
16928 msgid "If the filesystem does not have a UUID, this returns the empty string."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-actions.pod:5120
16933 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16934 msgstr ""
16935
16936 #. type: =head2
16937 #: ../fish/guestfish-actions.pod:5122
16938 msgid "vg-activate"
16939 msgstr ""
16940
16941 #. type: verbatim
16942 #: ../fish/guestfish-actions.pod:5124
16943 #, no-wrap
16944 msgid ""
16945 " vg-activate true|false 'volgroups ...'\n"
16946 "\n"
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
16951 msgid ""
16952 "This command activates or (if C<activate> is false) deactivates all logical "
16953 "volumes in the listed volume groups C<volgroups>."
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
16958 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
16963 msgid ""
16964 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16965 "activated or deactivated."
16966 msgstr ""
16967
16968 #. type: =head2
16969 #: ../fish/guestfish-actions.pod:5134
16970 msgid "vg-activate-all"
16971 msgstr ""
16972
16973 #. type: verbatim
16974 #: ../fish/guestfish-actions.pod:5136
16975 #, no-wrap
16976 msgid ""
16977 " vg-activate-all true|false\n"
16978 "\n"
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
16983 msgid ""
16984 "This command activates or (if C<activate> is false) deactivates all logical "
16985 "volumes in all volume groups."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
16990 msgid "This command is the same as running C<vgchange -a y|n>"
16991 msgstr ""
16992
16993 #. type: =head2
16994 #: ../fish/guestfish-actions.pod:5143
16995 msgid "vgcreate"
16996 msgstr ""
16997
16998 #. type: verbatim
16999 #: ../fish/guestfish-actions.pod:5145
17000 #, no-wrap
17001 msgid ""
17002 " vgcreate volgroup 'physvols ...'\n"
17003 "\n"
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
17008 msgid ""
17009 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17010 "of physical volumes C<physvols>."
17011 msgstr ""
17012
17013 #. type: =head2
17014 #: ../fish/guestfish-actions.pod:5150
17015 msgid "vglvuuids"
17016 msgstr ""
17017
17018 #. type: verbatim
17019 #: ../fish/guestfish-actions.pod:5152
17020 #, no-wrap
17021 msgid ""
17022 " vglvuuids vgname\n"
17023 "\n"
17024 msgstr ""
17025
17026 #. type: textblock
17027 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
17028 msgid ""
17029 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17030 "volumes created in this volume group."
17031 msgstr ""
17032
17033 #. type: textblock
17034 #: ../fish/guestfish-actions.pod:5157
17035 msgid ""
17036 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17037 "logical volumes and volume groups."
17038 msgstr ""
17039
17040 #. type: textblock
17041 #: ../fish/guestfish-actions.pod:5160
17042 msgid "See also L</vgpvuuids>."
17043 msgstr ""
17044
17045 #. type: =head2
17046 #: ../fish/guestfish-actions.pod:5162
17047 msgid "vgpvuuids"
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish-actions.pod:5164
17052 #, no-wrap
17053 msgid ""
17054 " vgpvuuids vgname\n"
17055 "\n"
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
17060 msgid ""
17061 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17062 "volumes that this volume group resides on."
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish-actions.pod:5169
17067 msgid ""
17068 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17069 "physical volumes and volume groups."
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-actions.pod:5172
17074 msgid "See also L</vglvuuids>."
17075 msgstr ""
17076
17077 #. type: =head2
17078 #: ../fish/guestfish-actions.pod:5174
17079 msgid "vgremove"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish-actions.pod:5176
17084 #, no-wrap
17085 msgid ""
17086 " vgremove vgname\n"
17087 "\n"
17088 msgstr ""
17089
17090 #. type: textblock
17091 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17092 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17097 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17098 msgstr ""
17099
17100 #. type: =head2
17101 #: ../fish/guestfish-actions.pod:5183
17102 msgid "vgrename"
17103 msgstr ""
17104
17105 #. type: verbatim
17106 #: ../fish/guestfish-actions.pod:5185
17107 #, no-wrap
17108 msgid ""
17109 " vgrename volgroup newvolgroup\n"
17110 "\n"
17111 msgstr ""
17112
17113 #. type: textblock
17114 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17115 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17116 msgstr ""
17117
17118 #. type: =head2
17119 #: ../fish/guestfish-actions.pod:5189
17120 msgid "vgs"
17121 msgstr ""
17122
17123 #. type: verbatim
17124 #: ../fish/guestfish-actions.pod:5191
17125 #, no-wrap
17126 msgid ""
17127 " vgs\n"
17128 "\n"
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17133 msgid ""
17134 "List all the volumes groups detected.  This is the equivalent of the "
17135 "L<vgs(8)> command."
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17140 msgid ""
17141 "This returns a list of just the volume group names that were detected "
17142 "(eg. C<VolGroup00>)."
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish-actions.pod:5199
17147 msgid "See also L</vgs-full>."
17148 msgstr ""
17149
17150 #. type: =head2
17151 #: ../fish/guestfish-actions.pod:5201
17152 msgid "vgs-full"
17153 msgstr ""
17154
17155 #. type: verbatim
17156 #: ../fish/guestfish-actions.pod:5203
17157 #, no-wrap
17158 msgid ""
17159 " vgs-full\n"
17160 "\n"
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17165 msgid ""
17166 "List all the volumes groups detected.  This is the equivalent of the "
17167 "L<vgs(8)> command.  The \"full\" version includes all fields."
17168 msgstr ""
17169
17170 #. type: =head2
17171 #: ../fish/guestfish-actions.pod:5208
17172 msgid "vgscan"
17173 msgstr ""
17174
17175 #. type: verbatim
17176 #: ../fish/guestfish-actions.pod:5210
17177 #, no-wrap
17178 msgid ""
17179 " vgscan\n"
17180 "\n"
17181 msgstr ""
17182
17183 #. type: textblock
17184 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17185 msgid ""
17186 "This rescans all block devices and rebuilds the list of LVM physical "
17187 "volumes, volume groups and logical volumes."
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../fish/guestfish-actions.pod:5215
17192 msgid "vguuid"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish-actions.pod:5217
17197 #, no-wrap
17198 msgid ""
17199 " vguuid vgname\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17205 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17206 msgstr ""
17207
17208 #. type: =head2
17209 #: ../fish/guestfish-actions.pod:5221
17210 msgid "wc-c"
17211 msgstr ""
17212
17213 #. type: verbatim
17214 #: ../fish/guestfish-actions.pod:5223
17215 #, no-wrap
17216 msgid ""
17217 " wc-c path\n"
17218 "\n"
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17223 msgid ""
17224 "This command counts the characters in a file, using the C<wc -c> external "
17225 "command."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../fish/guestfish-actions.pod:5228
17230 msgid "wc-l"
17231 msgstr ""
17232
17233 #. type: verbatim
17234 #: ../fish/guestfish-actions.pod:5230
17235 #, no-wrap
17236 msgid ""
17237 " wc-l path\n"
17238 "\n"
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17243 msgid ""
17244 "This command counts the lines in a file, using the C<wc -l> external "
17245 "command."
17246 msgstr ""
17247
17248 #. type: =head2
17249 #: ../fish/guestfish-actions.pod:5235
17250 msgid "wc-w"
17251 msgstr ""
17252
17253 #. type: verbatim
17254 #: ../fish/guestfish-actions.pod:5237
17255 #, no-wrap
17256 msgid ""
17257 " wc-w path\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17263 msgid ""
17264 "This command counts the words in a file, using the C<wc -w> external "
17265 "command."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-actions.pod:5242
17270 msgid "write"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-actions.pod:5244
17275 #, no-wrap
17276 msgid ""
17277 " write path content\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17283 msgid ""
17284 "This call creates a file called C<path>.  The content of the file is the "
17285 "string C<content> (which can contain any 8 bit data)."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5249
17290 msgid "See also L</write-append>."
17291 msgstr ""
17292
17293 #. type: =head2
17294 #: ../fish/guestfish-actions.pod:5254
17295 msgid "write-append"
17296 msgstr ""
17297
17298 #. type: verbatim
17299 #: ../fish/guestfish-actions.pod:5256
17300 #, no-wrap
17301 msgid ""
17302 " write-append path content\n"
17303 "\n"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17308 msgid ""
17309 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17310 "not exist, then a new file is created."
17311 msgstr ""
17312
17313 #. type: textblock
17314 #: ../fish/guestfish-actions.pod:5261
17315 msgid "See also L</write>."
17316 msgstr ""
17317
17318 #. type: =head2
17319 #: ../fish/guestfish-actions.pod:5266
17320 msgid "write-file"
17321 msgstr ""
17322
17323 #. type: verbatim
17324 #: ../fish/guestfish-actions.pod:5268
17325 #, no-wrap
17326 msgid ""
17327 " write-file path content size\n"
17328 "\n"
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17333 msgid ""
17334 "This call creates a file called C<path>.  The contents of the file is the "
17335 "string C<content> (which can contain any 8 bit data), with length C<size>."
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17340 msgid ""
17341 "As a special case, if C<size> is C<0> then the length is calculated using "
17342 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17347 msgid ""
17348 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17349 "I<not> work, even if the length is specified."
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:5284
17354 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17355 msgstr ""
17356
17357 #. type: =head2
17358 #: ../fish/guestfish-actions.pod:5291
17359 msgid "zegrep"
17360 msgstr ""
17361
17362 #. type: verbatim
17363 #: ../fish/guestfish-actions.pod:5293
17364 #, no-wrap
17365 msgid ""
17366 " zegrep regex path\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17372 msgid "This calls the external C<zegrep> program and returns the matching lines."
17373 msgstr ""
17374
17375 #. type: =head2
17376 #: ../fish/guestfish-actions.pod:5301
17377 msgid "zegrepi"
17378 msgstr ""
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish-actions.pod:5303
17382 #, no-wrap
17383 msgid ""
17384 " zegrepi regex path\n"
17385 "\n"
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17390 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17391 msgstr ""
17392
17393 #. type: =head2
17394 #: ../fish/guestfish-actions.pod:5311
17395 msgid "zero"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish-actions.pod:5313
17400 #, no-wrap
17401 msgid ""
17402 " zero device\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17408 msgid "This command writes zeroes over the first few blocks of C<device>."
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17413 msgid ""
17414 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17415 "securely wipe the device).  It should be sufficient to remove any partition "
17416 "tables, filesystem superblocks and so on."
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17421 msgid ""
17422 "If blocks are already zero, then this command avoids writing zeroes.  This "
17423 "prevents the underlying device from becoming non-sparse or growing "
17424 "unnecessarily."
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../fish/guestfish-actions.pod:5325
17429 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17430 msgstr ""
17431
17432 #. type: =head2
17433 #: ../fish/guestfish-actions.pod:5328
17434 msgid "zero-device"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish-actions.pod:5330
17439 #, no-wrap
17440 msgid ""
17441 " zero-device device\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: textblock
17446 #: ../fish/guestfish-actions.pod:5332
17447 msgid ""
17448 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17449 "which just zeroes the first few blocks of a device."
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5340
17454 msgid "zerofree"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5342
17459 #, no-wrap
17460 msgid ""
17461 " zerofree device\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17467 msgid ""
17468 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17469 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17470 "possible to compress the filesystem more effectively."
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17475 msgid "You should B<not> run this program if the filesystem is mounted."
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17480 msgid ""
17481 "It is possible that using this program can damage the filesystem or data on "
17482 "the filesystem."
17483 msgstr ""
17484
17485 #. type: =head2
17486 #: ../fish/guestfish-actions.pod:5355
17487 msgid "zfgrep"
17488 msgstr ""
17489
17490 #. type: verbatim
17491 #: ../fish/guestfish-actions.pod:5357
17492 #, no-wrap
17493 msgid ""
17494 " zfgrep pattern path\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17500 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17501 msgstr ""
17502
17503 #. type: =head2
17504 #: ../fish/guestfish-actions.pod:5365
17505 msgid "zfgrepi"
17506 msgstr ""
17507
17508 #. type: verbatim
17509 #: ../fish/guestfish-actions.pod:5367
17510 #, no-wrap
17511 msgid ""
17512 " zfgrepi pattern path\n"
17513 "\n"
17514 msgstr ""
17515
17516 #. type: textblock
17517 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17518 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17519 msgstr ""
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-actions.pod:5375
17523 msgid "zfile"
17524 msgstr ""
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish-actions.pod:5377
17528 #, no-wrap
17529 msgid ""
17530 " zfile meth path\n"
17531 "\n"
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
17536 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
17541 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17542 msgstr ""
17543
17544 #. type: textblock
17545 #: ../fish/guestfish-actions.pod:5384
17546 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish-actions.pod:5387
17551 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
17552 msgstr ""
17553
17554 #. type: =head2
17555 #: ../fish/guestfish-actions.pod:5394
17556 msgid "zgrep"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish-actions.pod:5396
17561 #, no-wrap
17562 msgid ""
17563 " zgrep regex path\n"
17564 "\n"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
17569 msgid "This calls the external C<zgrep> program and returns the matching lines."
17570 msgstr ""
17571
17572 #. type: =head2
17573 #: ../fish/guestfish-actions.pod:5404
17574 msgid "zgrepi"
17575 msgstr ""
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish-actions.pod:5406
17579 #, no-wrap
17580 msgid ""
17581 " zgrepi regex path\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
17587 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17588 msgstr ""
17589
17590 #. type: =head2
17591 #: ../fish/guestfish-commands.pod:1
17592 msgid "alloc"
17593 msgstr ""
17594
17595 #. type: =head2
17596 #: ../fish/guestfish-commands.pod:3
17597 msgid "allocate"
17598 msgstr ""
17599
17600 #. type: verbatim
17601 #: ../fish/guestfish-commands.pod:5
17602 #, no-wrap
17603 msgid ""
17604 " alloc filename size\n"
17605 "\n"
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../fish/guestfish-commands.pod:7
17610 msgid ""
17611 "This creates an empty (zeroed) file of the given size, and then adds so it "
17612 "can be further examined."
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17617 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17618 msgstr ""
17619
17620 #. type: textblock
17621 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17622 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish-commands.pod:14
17627 msgid ""
17628 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17629 "image, see L</PREPARED DISK IMAGES>."
17630 msgstr ""
17631
17632 #. type: =head2
17633 #: ../fish/guestfish-commands.pod:17
17634 msgid "copy-in"
17635 msgstr ""
17636
17637 #. type: verbatim
17638 #: ../fish/guestfish-commands.pod:19
17639 #, no-wrap
17640 msgid ""
17641 " copy-in local [local ...] /remotedir\n"
17642 "\n"
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../fish/guestfish-commands.pod:21
17647 msgid ""
17648 "C<copy-in> copies local files or directories recursively into the disk "
17649 "image, placing them in the directory called C</remotedir> (which must "
17650 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17651 "other commands as necessary."
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-commands.pod:26
17656 msgid ""
17657 "Multiple local files and directories can be specified, but the last "
17658 "parameter must always be a remote directory.  Wildcards cannot be used."
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-commands.pod:30
17663 msgid "copy-out"
17664 msgstr ""
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-commands.pod:32
17668 #, no-wrap
17669 msgid ""
17670 " copy-out remote [remote ...] localdir\n"
17671 "\n"
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-commands.pod:34
17676 msgid ""
17677 "C<copy-out> copies remote files or directories recursively out of the disk "
17678 "image, placing them on the host disk in a local directory called C<localdir> "
17679 "(which must exist).  This guestfish meta-command turns into a sequence of "
17680 "L</download>, L</tar-out> and other commands as necessary."
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish-commands.pod:40
17685 msgid ""
17686 "Multiple remote files and directories can be specified, but the last "
17687 "parameter must always be a local directory.  To download to the current "
17688 "directory, use C<.> as in:"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish-commands.pod:44
17693 #, no-wrap
17694 msgid ""
17695 " copy-out /home .\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish-commands.pod:46
17701 msgid ""
17702 "Wildcards cannot be used in the ordinary command, but you can use them with "
17703 "the help of L</glob> like this:"
17704 msgstr ""
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish-commands.pod:49
17708 #, no-wrap
17709 msgid ""
17710 " glob copy-out /home/* .\n"
17711 "\n"
17712 msgstr ""
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-commands.pod:51
17716 msgid "display"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-commands.pod:53
17721 #, no-wrap
17722 msgid ""
17723 " display filename\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish-commands.pod:55
17729 msgid ""
17730 "Use C<display> (a graphical display program) to display an image file.  It "
17731 "downloads the file, and runs C<display> on it."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish-commands.pod:58
17736 msgid ""
17737 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17738 "environment variable.  For example to use the GNOME display program:"
17739 msgstr ""
17740
17741 #. type: verbatim
17742 #: ../fish/guestfish-commands.pod:61
17743 #, no-wrap
17744 msgid ""
17745 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17746 "\n"
17747 msgstr ""
17748
17749 #. type: textblock
17750 #: ../fish/guestfish-commands.pod:63
17751 msgid "See also L<display(1)>."
17752 msgstr ""
17753
17754 #. type: =head2
17755 #: ../fish/guestfish-commands.pod:65
17756 msgid "echo"
17757 msgstr ""
17758
17759 #. type: verbatim
17760 #: ../fish/guestfish-commands.pod:67
17761 #, no-wrap
17762 msgid ""
17763 " echo [params ...]\n"
17764 "\n"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish-commands.pod:69
17769 msgid "This echos the parameters to the terminal."
17770 msgstr ""
17771
17772 #. type: =head2
17773 #: ../fish/guestfish-commands.pod:71
17774 msgid "edit"
17775 msgstr ""
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-commands.pod:73
17779 msgid "vi"
17780 msgstr ""
17781
17782 #. type: =head2
17783 #: ../fish/guestfish-commands.pod:75
17784 msgid "emacs"
17785 msgstr ""
17786
17787 #. type: verbatim
17788 #: ../fish/guestfish-commands.pod:77
17789 #, no-wrap
17790 msgid ""
17791 " edit filename\n"
17792 "\n"
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-commands.pod:79
17797 msgid ""
17798 "This is used to edit a file.  It downloads the file, edits it locally using "
17799 "your editor, then uploads the result."
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish-commands.pod:82
17804 msgid ""
17805 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17806 "or C<emacs> you will get those corresponding editors."
17807 msgstr ""
17808
17809 #. type: =head2
17810 #: ../fish/guestfish-commands.pod:86
17811 msgid "glob"
17812 msgstr ""
17813
17814 #. type: verbatim
17815 #: ../fish/guestfish-commands.pod:88
17816 #, no-wrap
17817 msgid ""
17818 " glob command args...\n"
17819 "\n"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish-commands.pod:90
17824 msgid ""
17825 "Expand wildcards in any paths in the args list, and run C<command> "
17826 "repeatedly on each matching path."
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-commands.pod:93
17831 msgid "See L</WILDCARDS AND GLOBBING>."
17832 msgstr ""
17833
17834 #. type: =head2
17835 #: ../fish/guestfish-commands.pod:95
17836 msgid "hexedit"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish-commands.pod:97
17841 #, no-wrap
17842 msgid ""
17843 " hexedit <filename|device>\n"
17844 " hexedit <filename|device> <max>\n"
17845 " hexedit <filename|device> <start> <max>\n"
17846 "\n"
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish-commands.pod:101
17851 msgid ""
17852 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17853 "device."
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-commands.pod:104
17858 msgid ""
17859 "This command works by downloading potentially the whole file or device, "
17860 "editing it locally, then uploading it.  If the file or device is large, you "
17861 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17862 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17863 "usual modifiers allowed such as C<1M> (1 megabyte)."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-commands.pod:111
17868 msgid "For example to edit the first few sectors of a disk you might do:"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-commands.pod:114
17873 #, no-wrap
17874 msgid ""
17875 " hexedit /dev/sda 1M\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish-commands.pod:116
17881 msgid ""
17882 "which would allow you to edit anywhere within the first megabyte of the "
17883 "disk."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-commands.pod:119
17888 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17889 msgstr ""
17890
17891 #. type: verbatim
17892 #: ../fish/guestfish-commands.pod:121
17893 #, no-wrap
17894 msgid ""
17895 " hexedit /dev/sda1 0x400 0x400\n"
17896 "\n"
17897 msgstr ""
17898
17899 #. type: textblock
17900 #: ../fish/guestfish-commands.pod:123
17901 msgid "(assuming the superblock is in the standard location)."
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-commands.pod:125
17906 msgid ""
17907 "This command requires the external L<hexedit(1)> program.  You can specify "
17908 "another program to use by setting the C<HEXEDITOR> environment variable."
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish-commands.pod:129
17913 msgid "See also L</hexdump>."
17914 msgstr ""
17915
17916 #. type: =head2
17917 #: ../fish/guestfish-commands.pod:131
17918 msgid "lcd"
17919 msgstr ""
17920
17921 #. type: verbatim
17922 #: ../fish/guestfish-commands.pod:133
17923 #, no-wrap
17924 msgid ""
17925 " lcd directory\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish-commands.pod:135
17931 msgid "Change the local directory, ie. the current directory of guestfish itself."
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish-commands.pod:138
17936 msgid "Note that C<!cd> won't do what you might expect."
17937 msgstr ""
17938
17939 #. type: =head2
17940 #: ../fish/guestfish-commands.pod:140
17941 msgid "man"
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish-commands.pod:142
17946 msgid "manual"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish-commands.pod:144
17951 #, no-wrap
17952 msgid ""
17953 "  man\n"
17954 "\n"
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish-commands.pod:146
17959 msgid "Opens the manual page for guestfish."
17960 msgstr ""
17961
17962 #. type: =head2
17963 #: ../fish/guestfish-commands.pod:148
17964 msgid "more"
17965 msgstr ""
17966
17967 #. type: =head2
17968 #: ../fish/guestfish-commands.pod:150
17969 msgid "less"
17970 msgstr ""
17971
17972 #. type: verbatim
17973 #: ../fish/guestfish-commands.pod:152
17974 #, no-wrap
17975 msgid ""
17976 " more filename\n"
17977 "\n"
17978 msgstr ""
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish-commands.pod:154
17982 #, no-wrap
17983 msgid ""
17984 " less filename\n"
17985 "\n"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-commands.pod:156
17990 msgid "This is used to view a file."
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish-commands.pod:158
17995 msgid ""
17996 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17997 "C<less> you will get the C<less> command specifically."
17998 msgstr ""
17999
18000 #. type: =head2
18001 #: ../fish/guestfish-commands.pod:161
18002 msgid "reopen"
18003 msgstr ""
18004
18005 #. type: verbatim
18006 #: ../fish/guestfish-commands.pod:163
18007 #, no-wrap
18008 msgid ""
18009 "  reopen\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-commands.pod:165
18015 msgid ""
18016 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18017 "normally, because the handle is closed properly when guestfish exits.  "
18018 "However this is occasionally useful for testing."
18019 msgstr ""
18020
18021 #. type: =head2
18022 #: ../fish/guestfish-commands.pod:169
18023 msgid "setenv"
18024 msgstr ""
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish-commands.pod:171
18028 #, no-wrap
18029 msgid ""
18030 "  setenv VAR value\n"
18031 "\n"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish-commands.pod:173
18036 msgid "Set the environment variable C<VAR> to the string C<value>."
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../fish/guestfish-commands.pod:175
18041 msgid "To print the value of an environment variable use a shell command such as:"
18042 msgstr ""
18043
18044 #. type: verbatim
18045 #: ../fish/guestfish-commands.pod:178
18046 #, no-wrap
18047 msgid ""
18048 " !echo $VAR\n"
18049 "\n"
18050 msgstr ""
18051
18052 #. type: =head2
18053 #: ../fish/guestfish-commands.pod:180
18054 msgid "sparse"
18055 msgstr ""
18056
18057 #. type: verbatim
18058 #: ../fish/guestfish-commands.pod:182
18059 #, no-wrap
18060 msgid ""
18061 " sparse filename size\n"
18062 "\n"
18063 msgstr ""
18064
18065 #. type: textblock
18066 #: ../fish/guestfish-commands.pod:184
18067 msgid ""
18068 "This creates an empty sparse file of the given size, and then adds so it can "
18069 "be further examined."
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-commands.pod:187
18074 msgid ""
18075 "In all respects it works the same as the L</alloc> command, except that the "
18076 "image file is allocated sparsely, which means that disk blocks are not "
18077 "assigned to the file until they are needed.  Sparse disk files only use "
18078 "space when written to, but they are slower and there is a danger you could "
18079 "run out of real disk space during a write operation."
18080 msgstr ""
18081
18082 #. type: =head2
18083 #: ../fish/guestfish-commands.pod:197
18084 msgid "supported"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish-commands.pod:199
18089 #, no-wrap
18090 msgid ""
18091 " supported\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish-commands.pod:201
18097 msgid ""
18098 "This command returns a list of the optional groups known to the daemon, and "
18099 "indicates which ones are supported by this build of the libguestfs "
18100 "appliance."
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish-commands.pod:205
18105 msgid "See also L<guestfs(3)/AVAILABILITY>."
18106 msgstr ""
18107
18108 #. type: =head2
18109 #: ../fish/guestfish-commands.pod:207
18110 msgid "time"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish-commands.pod:209
18115 #, no-wrap
18116 msgid ""
18117 " time command args...\n"
18118 "\n"
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish-commands.pod:211
18123 msgid ""
18124 "Run the command as usual, but print the elapsed time afterwards.  This can "
18125 "be useful for benchmarking operations."
18126 msgstr ""
18127
18128 #. type: =head2
18129 #: ../fish/guestfish-commands.pod:214
18130 msgid "unsetenv"
18131 msgstr ""
18132
18133 #. type: verbatim
18134 #: ../fish/guestfish-commands.pod:216
18135 #, no-wrap
18136 msgid ""
18137 "  unsetenv VAR\n"
18138 "\n"
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish-commands.pod:218
18143 msgid "Remove C<VAR> from the environment."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:5
18148 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18149 msgstr ""
18150
18151 #. type: verbatim
18152 #: ../fish/guestfish.pod:9
18153 #, no-wrap
18154 msgid ""
18155 " guestfish [--options] [commands]\n"
18156 "\n"
18157 msgstr ""
18158
18159 #. type: verbatim
18160 #: ../fish/guestfish.pod:11
18161 #, no-wrap
18162 msgid ""
18163 " guestfish\n"
18164 "\n"
18165 msgstr ""
18166
18167 #. type: verbatim
18168 #: ../fish/guestfish.pod:13
18169 #, no-wrap
18170 msgid ""
18171 " guestfish [--ro|--rw] -a disk.img\n"
18172 "\n"
18173 msgstr ""
18174
18175 #. type: verbatim
18176 #: ../fish/guestfish.pod:15
18177 #, no-wrap
18178 msgid ""
18179 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18180 "\n"
18181 msgstr ""
18182
18183 #. type: verbatim
18184 #: ../fish/guestfish.pod:17
18185 #, no-wrap
18186 msgid ""
18187 " guestfish -d libvirt-domain\n"
18188 "\n"
18189 msgstr ""
18190
18191 #. type: verbatim
18192 #: ../fish/guestfish.pod:19
18193 #, no-wrap
18194 msgid ""
18195 " guestfish [--ro|--rw] -a disk.img -i\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/guestfish.pod:21
18201 #, no-wrap
18202 msgid ""
18203 " guestfish -d libvirt-domain -i\n"
18204 "\n"
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../fish/guestfish.pod:25
18209 msgid ""
18210 "Using guestfish in read/write mode on live virtual machines can be "
18211 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18212 "option to use guestfish safely if the disk image or virtual machine might be "
18213 "live."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:32
18218 msgid ""
18219 "Guestfish is a shell and command-line tool for examining and modifying "
18220 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18221 "functionality of the guestfs API, see L<guestfs(3)>."
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:36
18226 msgid ""
18227 "Guestfish gives you structured access to the libguestfs API, from shell "
18228 "scripts or the command line or interactively.  If you want to rescue a "
18229 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18230 "command."
18231 msgstr ""
18232
18233 #. type: =head2
18234 #: ../fish/guestfish.pod:43
18235 msgid "As an interactive shell"
18236 msgstr ""
18237
18238 #. type: verbatim
18239 #: ../fish/guestfish.pod:45
18240 #, no-wrap
18241 msgid ""
18242 " $ guestfish\n"
18243 " \n"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../fish/guestfish.pod:47
18248 #, no-wrap
18249 msgid ""
18250 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18251 " editing virtual machine filesystems.\n"
18252 " \n"
18253 msgstr ""
18254
18255 #. type: verbatim
18256 #: ../fish/guestfish.pod:50
18257 #, no-wrap
18258 msgid ""
18259 " Type: 'help' for a list of commands\n"
18260 "       'man' to read the manual\n"
18261 "       'quit' to quit the shell\n"
18262 " \n"
18263 msgstr ""
18264
18265 #. type: verbatim
18266 #: ../fish/guestfish.pod:54
18267 #, no-wrap
18268 msgid ""
18269 " ><fs> add-ro disk.img\n"
18270 " ><fs> run\n"
18271 " ><fs> list-filesystems\n"
18272 " /dev/sda1: ext4\n"
18273 " /dev/vg_guest/lv_root: ext4\n"
18274 " /dev/vg_guest/lv_swap: swap\n"
18275 " ><fs> mount /dev/vg_guest/lv_root /\n"
18276 " ><fs> cat /etc/fstab\n"
18277 " # /etc/fstab\n"
18278 " # Created by anaconda\n"
18279 " [...]\n"
18280 " ><fs> exit\n"
18281 "\n"
18282 msgstr ""
18283
18284 #. type: =head2
18285 #: ../fish/guestfish.pod:67
18286 msgid "From shell scripts"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:69
18291 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18292 msgstr ""
18293
18294 #. type: verbatim
18295 #: ../fish/guestfish.pod:71
18296 #, no-wrap
18297 msgid ""
18298 " guestfish <<_EOF_\n"
18299 " add disk.img\n"
18300 " run\n"
18301 " mount /dev/vg_guest/lv_root /\n"
18302 " write /etc/motd \"Welcome, new users\"\n"
18303 " _EOF_\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../fish/guestfish.pod:78
18309 msgid "List the LVM logical volumes in a disk image:"
18310 msgstr ""
18311
18312 #. type: verbatim
18313 #: ../fish/guestfish.pod:80
18314 #, no-wrap
18315 msgid ""
18316 " guestfish -a disk.img --ro <<_EOF_\n"
18317 " run\n"
18318 " lvs\n"
18319 " _EOF_\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:85
18325 msgid "List all the filesystems in a disk image:"
18326 msgstr ""
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish.pod:87
18330 #, no-wrap
18331 msgid ""
18332 " guestfish -a disk.img --ro <<_EOF_\n"
18333 " run\n"
18334 " list-filesystems\n"
18335 " _EOF_\n"
18336 "\n"
18337 msgstr ""
18338
18339 #. type: =head2
18340 #: ../fish/guestfish.pod:92
18341 msgid "On one command line"
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18346 msgid "Update C</etc/resolv.conf> in a guest:"
18347 msgstr ""
18348
18349 #. type: verbatim
18350 #: ../fish/guestfish.pod:96
18351 #, no-wrap
18352 msgid ""
18353 " guestfish \\\n"
18354 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18355 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18356 "\n"
18357 msgstr ""
18358
18359 #. type: textblock
18360 #: ../fish/guestfish.pod:100
18361 msgid "Edit C</boot/grub/grub.conf> interactively:"
18362 msgstr ""
18363
18364 #. type: verbatim
18365 #: ../fish/guestfish.pod:102
18366 #, no-wrap
18367 msgid ""
18368 " guestfish --rw --add disk.img \\\n"
18369 "   --mount /dev/vg_guest/lv_root \\\n"
18370 "   --mount /dev/sda1:/boot \\\n"
18371 "   edit /boot/grub/grub.conf\n"
18372 "\n"
18373 msgstr ""
18374
18375 #. type: =head2
18376 #: ../fish/guestfish.pod:107
18377 msgid "Mount disks automatically"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:109
18382 msgid ""
18383 "Use the I<-i> option to automatically mount the disks from a virtual "
18384 "machine:"
18385 msgstr ""
18386
18387 #. type: verbatim
18388 #: ../fish/guestfish.pod:112
18389 #, no-wrap
18390 msgid ""
18391 " guestfish --ro -a disk.img -i cat /etc/group\n"
18392 "\n"
18393 msgstr ""
18394
18395 #. type: verbatim
18396 #: ../fish/guestfish.pod:114
18397 #, no-wrap
18398 msgid ""
18399 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18400 "\n"
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish.pod:116
18405 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18406 msgstr ""
18407
18408 #. type: verbatim
18409 #: ../fish/guestfish.pod:118
18410 #, no-wrap
18411 msgid ""
18412 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18413 "\n"
18414 msgstr ""
18415
18416 #. type: =head2
18417 #: ../fish/guestfish.pod:120
18418 msgid "As a script interpreter"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:122
18423 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18424 msgstr ""
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish.pod:124
18428 #, no-wrap
18429 msgid ""
18430 " #!/usr/bin/guestfish -f\n"
18431 " sparse test1.img 100M\n"
18432 " run\n"
18433 " part-disk /dev/sda mbr\n"
18434 " mkfs ext2 /dev/sda1\n"
18435 "\n"
18436 msgstr ""
18437
18438 #. type: =head2
18439 #: ../fish/guestfish.pod:130
18440 msgid "Start with a prepared disk"
18441 msgstr ""
18442
18443 #. type: textblock
18444 #: ../fish/guestfish.pod:132
18445 msgid ""
18446 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18447 "single ext2-formatted partition:"
18448 msgstr ""
18449
18450 #. type: verbatim
18451 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18452 #, no-wrap
18453 msgid ""
18454 " guestfish -N fs\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:137
18460 msgid "To list what is available do:"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18465 #, no-wrap
18466 msgid ""
18467 " guestfish -N help | less\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: =head2
18472 #: ../fish/guestfish.pod:141
18473 msgid "Remote control"
18474 msgstr ""
18475
18476 #. type: verbatim
18477 #: ../fish/guestfish.pod:143
18478 #, no-wrap
18479 msgid ""
18480 " eval \"`guestfish --listen`\"\n"
18481 " guestfish --remote add-ro disk.img\n"
18482 " guestfish --remote run\n"
18483 " guestfish --remote lvs\n"
18484 "\n"
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../fish/guestfish.pod:154
18489 msgid "Displays general help on options."
18490 msgstr ""
18491
18492 #. type: =item
18493 #: ../fish/guestfish.pod:158
18494 msgid "B<--cmd-help>"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish.pod:160
18499 msgid "Lists all available guestfish commands."
18500 msgstr ""
18501
18502 #. type: =item
18503 #: ../fish/guestfish.pod:162
18504 msgid "B<-h cmd>"
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:164
18509 msgid "B<--cmd-help cmd>"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:166
18514 msgid "Displays detailed help on a single command C<cmd>."
18515 msgstr ""
18516
18517 #. type: =item
18518 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18519 msgid "B<-a image>"
18520 msgstr ""
18521
18522 #. type: =item
18523 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18524 msgid "B<--add image>"
18525 msgstr ""
18526
18527 #. type: textblock
18528 #: ../fish/guestfish.pod:172
18529 msgid "Add a block device or virtual machine image to the shell."
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:177
18534 msgid ""
18535 "Using this flag is mostly equivalent to using the C<add> command, with "
18536 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18537 "the I<--format=...> flag was given."
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18542 msgid ""
18543 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18544 "URI to use.  The default is to use the default libvirt connection."
18545 msgstr ""
18546
18547 #. type: =item
18548 #: ../fish/guestfish.pod:189
18549 msgid "B<--csh>"
18550 msgstr ""
18551
18552 #. type: textblock
18553 #: ../fish/guestfish.pod:191
18554 msgid ""
18555 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18556 "section L</REMOTE CONTROL AND CSH> below."
18557 msgstr ""
18558
18559 #. type: =item
18560 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18561 msgid "B<-d libvirt-domain>"
18562 msgstr ""
18563
18564 #. type: =item
18565 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18566 msgid "B<--domain libvirt-domain>"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18571 msgid ""
18572 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18573 "used, then any libvirt domain can be used.  However in write mode, only "
18574 "libvirt domains which are shut down can be named here."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18579 msgid "Domain UUIDs can be used instead of names."
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:204
18584 msgid ""
18585 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18586 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18587 "if the I<--format:...> flag was given."
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fish/guestfish.pod:208
18592 msgid "B<-D>"
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:210
18597 msgid "B<--no-dest-paths>"
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish.pod:212
18602 msgid ""
18603 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18604 "to hit the tab key to complete paths on the guest filesystem, but this "
18605 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18606 "allow this feature to be disabled."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18611 msgid ""
18612 "When prompting for keys and passphrases, guestfish normally turns echoing "
18613 "off so you cannot see what you are typing.  If you are not worried about "
18614 "Tempest attacks and there is no one else in the room you can specify this "
18615 "flag to see what you are typing."
18616 msgstr ""
18617
18618 #. type: =item
18619 #: ../fish/guestfish.pod:224
18620 msgid "B<-f file>"
18621 msgstr ""
18622
18623 #. type: =item
18624 #: ../fish/guestfish.pod:226
18625 msgid "B<--file file>"
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/guestfish.pod:228
18630 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18631 msgstr ""
18632
18633 #. type: verbatim
18634 #: ../fish/guestfish.pod:231
18635 #, no-wrap
18636 msgid ""
18637 " #!/usr/bin/guestfish -f\n"
18638 "\n"
18639 msgstr ""
18640
18641 #. type: verbatim
18642 #: ../fish/guestfish.pod:244
18643 #, no-wrap
18644 msgid ""
18645 " guestfish --format=raw -a disk.img\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: verbatim
18650 #: ../fish/guestfish.pod:248
18651 #, no-wrap
18652 msgid ""
18653 " guestfish --format=raw -a disk.img --format -a another.img\n"
18654 "\n"
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:253
18659 msgid ""
18660 "If you have untrusted raw-format guest disk images, you should use this "
18661 "option to specify the disk format.  This avoids a possible security problem "
18662 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18663 msgstr ""
18664
18665 #. type: =item
18666 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18667 msgid "B<--inspector>"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18672 msgid ""
18673 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18674 "system and mount filesystems as they would be mounted on the real virtual "
18675 "machine."
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/guestfish.pod:266
18680 msgid "Typical usage is either:"
18681 msgstr ""
18682
18683 #. type: verbatim
18684 #: ../fish/guestfish.pod:268
18685 #, no-wrap
18686 msgid ""
18687 " guestfish -d myguest -i\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:270
18693 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18694 msgstr ""
18695
18696 #. type: verbatim
18697 #: ../fish/guestfish.pod:272
18698 #, no-wrap
18699 msgid ""
18700 " guestfish --ro -d myguest -i\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/guestfish.pod:274
18706 msgid "(for active domains, readonly), or specify the block device directly:"
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/guestfish.pod:276
18711 #, no-wrap
18712 msgid ""
18713 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:278
18719 msgid ""
18720 "Note that the command line syntax changed slightly over older versions of "
18721 "guestfish.  You can still use the old syntax:"
18722 msgstr ""
18723
18724 #. type: verbatim
18725 #: ../fish/guestfish.pod:281
18726 #, no-wrap
18727 msgid ""
18728 " guestfish [--ro] -i disk.img\n"
18729 "\n"
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish.pod:283
18734 #, no-wrap
18735 msgid ""
18736 " guestfish [--ro] -i libvirt-domain\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:285
18742 msgid ""
18743 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18744 "then using other commands to mount the filesystems that were found."
18745 msgstr ""
18746
18747 #. type: =item
18748 #: ../fish/guestfish.pod:294
18749 msgid "B<--listen>"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:296
18754 msgid ""
18755 "Fork into the background and listen for remote commands.  See section "
18756 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18757 msgstr ""
18758
18759 #. type: =item
18760 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18761 msgid "B<--live>"
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18766 msgid ""
18767 "Connect to a live virtual machine.  (Experimental, see "
18768 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
18769 msgstr ""
18770
18771 #. type: =item
18772 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18773 msgid "B<-m dev[:mountpoint[:options]]>"
18774 msgstr ""
18775
18776 #. type: =item
18777 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18778 msgid "B<--mount dev[:mountpoint[:options]]>"
18779 msgstr ""
18780
18781 #. type: textblock
18782 #: ../fish/guestfish.pod:308
18783 msgid "Mount the named partition or logical volume on the given mountpoint."
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:310
18788 msgid "If the mountpoint is omitted, it defaults to C</>."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:312
18793 msgid "You have to mount something on C</> before most commands will work."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish.pod:314
18798 msgid ""
18799 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18800 "launched."
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:317
18805 msgid ""
18806 "If you don't know what filesystems a disk image contains, you can either run "
18807 "guestfish without this option, then list the partitions, filesystems and LVs "
18808 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18809 "commands), or you can use the L<virt-filesystems(1)> program."
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18814 msgid ""
18815 "The third (and rarely used) part of the mount parameter is the list of mount "
18816 "options used to mount the underlying filesystem.  If this is not given, then "
18817 "the mount options are either the empty string or C<ro> (the latter if the "
18818 "I<--ro> flag is used).  By specifying the mount options, you override this "
18819 "default choice.  Probably the only time you would use this is to enable ACLs "
18820 "and/or extended attributes if the filesystem can support them:"
18821 msgstr ""
18822
18823 #. type: verbatim
18824 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18825 #, no-wrap
18826 msgid ""
18827 " -m /dev/sda1:/:acl,user_xattr\n"
18828 "\n"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:333
18833 msgid "Using this flag is equivalent to using the C<mount-options> command."
18834 msgstr ""
18835
18836 #. type: =item
18837 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:441
18838 msgid "B<-n>"
18839 msgstr ""
18840
18841 #. type: =item
18842 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18843 msgid "B<--no-sync>"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:339
18848 msgid ""
18849 "Disable autosync.  This is enabled by default.  See the discussion of "
18850 "autosync in the L<guestfs(3)> manpage."
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:342
18855 msgid "B<-N type>"
18856 msgstr ""
18857
18858 #. type: =item
18859 #: ../fish/guestfish.pod:344
18860 msgid "B<--new type>"
18861 msgstr ""
18862
18863 #. type: =item
18864 #: ../fish/guestfish.pod:346
18865 msgid "B<-N help>"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/guestfish.pod:348
18870 msgid ""
18871 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18872 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18873 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18874 "IMAGES> below."
18875 msgstr ""
18876
18877 #. type: =item
18878 #: ../fish/guestfish.pod:353
18879 msgid "B<--progress-bars>"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:355
18884 msgid "Enable progress bars, even when guestfish is used non-interactively."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish.pod:357
18889 msgid ""
18890 "Progress bars are enabled by default when guestfish is used as an "
18891 "interactive shell."
18892 msgstr ""
18893
18894 #. type: =item
18895 #: ../fish/guestfish.pod:360
18896 msgid "B<--no-progress-bars>"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:362
18901 msgid "Disable progress bars."
18902 msgstr ""
18903
18904 #. type: =item
18905 #: ../fish/guestfish.pod:364
18906 msgid "B<--remote[=pid]>"
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:366
18911 msgid ""
18912 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18913 "CONTROL GUESTFISH OVER A SOCKET> below."
18914 msgstr ""
18915
18916 #. type: =item
18917 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
18918 msgid "B<-r>"
18919 msgstr ""
18920
18921 #. type: =item
18922 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
18923 msgid "B<--ro>"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:373
18928 msgid ""
18929 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18930 "mounts are done read-only."
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18935 msgid ""
18936 "The option must always be used if the disk image or virtual machine might be "
18937 "running, and is generally recommended in cases where you don't need write "
18938 "access to the disk."
18939 msgstr ""
18940
18941 #. type: textblock
18942 #: ../fish/guestfish.pod:380
18943 msgid ""
18944 "Note that prepared disk images created with I<-N> are not affected by this "
18945 "option.  Also commands like C<add> are not affected - you have to specify "
18946 "the C<readonly:true> option explicitly if you need it."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:384
18951 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18952 msgstr ""
18953
18954 #. type: =item
18955 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
18956 msgid "B<--selinux>"
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/guestfish.pod:388
18961 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:394
18966 msgid ""
18967 "Enable very verbose messages.  This is particularly useful if you find a "
18968 "bug."
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../fish/guestfish.pod:401
18973 msgid "Display the guestfish / libguestfs version number and exit."
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
18978 msgid "B<-w>"
18979 msgstr ""
18980
18981 #. type: =item
18982 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
18983 msgid "B<--rw>"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18988 msgid ""
18989 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18990 "mounts are done read-write."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:410
18995 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:414
19000 msgid "Echo each command before executing it."
19001 msgstr ""
19002
19003 #. type: =head1
19004 #: ../fish/guestfish.pod:418
19005 msgid "COMMANDS ON COMMAND LINE"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish.pod:420
19010 msgid "Any additional (non-option) arguments are treated as commands to execute."
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish.pod:423
19015 msgid ""
19016 "Commands to execute should be separated by a colon (C<:>), where the colon "
19017 "is a separate parameter.  Thus:"
19018 msgstr ""
19019
19020 #. type: verbatim
19021 #: ../fish/guestfish.pod:426
19022 #, no-wrap
19023 msgid ""
19024 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19025 "\n"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:428
19030 msgid ""
19031 "If there are no additional arguments, then we enter a shell, either an "
19032 "interactive shell with a prompt (if the input is a terminal) or a "
19033 "non-interactive shell."
19034 msgstr ""
19035
19036 #. type: textblock
19037 #: ../fish/guestfish.pod:432
19038 msgid ""
19039 "In either command line mode or non-interactive shell, the first command that "
19040 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19041 "prompt) if a command fails, you can continue to enter commands."
19042 msgstr ""
19043
19044 #. type: =head1
19045 #: ../fish/guestfish.pod:437
19046 msgid "USING launch (OR run)"
19047 msgstr ""
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:439
19051 msgid ""
19052 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19053 "then launch it, then mount any disks you need, and finally issue "
19054 "actions/commands.  So the general order of the day is:"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:447
19059 msgid "add or -a/--add"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../fish/guestfish.pod:451
19064 msgid "launch (aka run)"
19065 msgstr ""
19066
19067 #. type: textblock
19068 #: ../fish/guestfish.pod:455
19069 msgid "mount or -m/--mount"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:459
19074 msgid "any other commands"
19075 msgstr ""
19076
19077 #. type: textblock
19078 #: ../fish/guestfish.pod:463
19079 msgid ""
19080 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19081 "guest before mounting or performing any other commands."
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../fish/guestfish.pod:466
19086 msgid ""
19087 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19088 "I<--new> options were given then C<run> is done automatically, simply "
19089 "because guestfish can't perform the action you asked for without doing this."
19090 msgstr ""
19091
19092 #. type: =head1
19093 #: ../fish/guestfish.pod:471
19094 msgid "OPENING DISKS FOR READ AND WRITE"
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:473
19099 msgid ""
19100 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19101 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19102 "I<-i> and I<-m> open disk images read-only or for writing."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:478
19107 msgid ""
19108 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19109 "opening disk images supplied on the command line for write.  To open a disk "
19110 "image read-only you have to do I<-a image --ro>."
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:482
19115 msgid ""
19116 "This matters: If you accidentally open a live VM disk image writable then "
19117 "you will cause irreversible disk corruption."
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:485
19122 msgid ""
19123 "In a future libguestfs we intend to change the default the other way.  Disk "
19124 "images will be opened read-only.  You will have to either specify "
19125 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19126 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19127 "access for disk images specified by those other command line options."
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:492
19132 msgid ""
19133 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19134 "which does nothing (it is already the default).  However it is highly "
19135 "recommended that you use this option to indicate that you need write access, "
19136 "and prepare your scripts for the day when this option will be required for "
19137 "write access."
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:498
19142 msgid ""
19143 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19144 "other libguestfs program apart from guestfish and guestmount."
19145 msgstr ""
19146
19147 #. type: =head1
19148 #: ../fish/guestfish.pod:501
19149 msgid "QUOTING"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:503
19154 msgid ""
19155 "You can quote ordinary parameters using either single or double quotes.  For "
19156 "example:"
19157 msgstr ""
19158
19159 #. type: verbatim
19160 #: ../fish/guestfish.pod:506
19161 #, no-wrap
19162 msgid ""
19163 " add \"file with a space.img\"\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: verbatim
19168 #: ../fish/guestfish.pod:508
19169 #, no-wrap
19170 msgid ""
19171 " rm '/file name'\n"
19172 "\n"
19173 msgstr ""
19174
19175 #. type: verbatim
19176 #: ../fish/guestfish.pod:510
19177 #, no-wrap
19178 msgid ""
19179 " rm '/\"'\n"
19180 "\n"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish.pod:512
19185 msgid ""
19186 "A few commands require a list of strings to be passed.  For these, use a "
19187 "whitespace-separated list, enclosed in quotes.  Strings containing "
19188 "whitespace to be passed through must be enclosed in single quotes.  A "
19189 "literal single quote must be escaped with a backslash."
19190 msgstr ""
19191
19192 #. type: verbatim
19193 #: ../fish/guestfish.pod:517
19194 #, no-wrap
19195 msgid ""
19196 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19197 " command \"/bin/echo 'foo      bar'\"\n"
19198 " command \"/bin/echo \\'foo\\'\"\n"
19199 "\n"
19200 msgstr ""
19201
19202 #. type: =head2
19203 #: ../fish/guestfish.pod:521
19204 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fish/guestfish.pod:523
19209 msgid ""
19210 "In double-quoted arguments (only) use backslash to insert special "
19211 "characters:"
19212 msgstr ""
19213
19214 #. type: =item
19215 #: ../fish/guestfish.pod:528
19216 msgid "C<\\a>"
19217 msgstr ""
19218
19219 #. type: textblock
19220 #: ../fish/guestfish.pod:530
19221 msgid "Alert (bell) character."
19222 msgstr ""
19223
19224 #. type: =item
19225 #: ../fish/guestfish.pod:532
19226 msgid "C<\\b>"
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../fish/guestfish.pod:534
19231 msgid "Backspace character."
19232 msgstr ""
19233
19234 #. type: =item
19235 #: ../fish/guestfish.pod:536
19236 msgid "C<\\f>"
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:538
19241 msgid "Form feed character."
19242 msgstr ""
19243
19244 #. type: =item
19245 #: ../fish/guestfish.pod:540
19246 msgid "C<\\n>"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../fish/guestfish.pod:542
19251 msgid "Newline character."
19252 msgstr ""
19253
19254 #. type: =item
19255 #: ../fish/guestfish.pod:544
19256 msgid "C<\\r>"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fish/guestfish.pod:546
19261 msgid "Carriage return character."
19262 msgstr ""
19263
19264 #. type: =item
19265 #: ../fish/guestfish.pod:548
19266 msgid "C<\\t>"
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fish/guestfish.pod:550
19271 msgid "Horizontal tab character."
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:552
19276 msgid "C<\\v>"
19277 msgstr ""
19278
19279 #. type: textblock
19280 #: ../fish/guestfish.pod:554
19281 msgid "Vertical tab character."
19282 msgstr ""
19283
19284 #. type: =item
19285 #: ../fish/guestfish.pod:556
19286 msgid "C<\\\">"
19287 msgstr ""
19288
19289 #. type: textblock
19290 #: ../fish/guestfish.pod:558
19291 msgid "A literal double quote character."
19292 msgstr ""
19293
19294 #. type: =item
19295 #: ../fish/guestfish.pod:560
19296 msgid "C<\\ooo>"
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fish/guestfish.pod:562
19301 msgid ""
19302 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19303 "(unlike C)."
19304 msgstr ""
19305
19306 #. type: =item
19307 #: ../fish/guestfish.pod:565
19308 msgid "C<\\xhh>"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:567
19313 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish.pod:570
19318 msgid ""
19319 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19320 "strings."
19321 msgstr ""
19322
19323 #. type: =item
19324 #: ../fish/guestfish.pod:573
19325 msgid "C<\\\\>"
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:575
19330 msgid "A literal backslash character."
19331 msgstr ""
19332
19333 #. type: =head1
19334 #: ../fish/guestfish.pod:579
19335 msgid "OPTIONAL ARGUMENTS"
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:581
19340 msgid ""
19341 "Some commands take optional arguments.  These arguments appear in this "
19342 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../fish/guestfish.pod:585
19347 #, no-wrap
19348 msgid ""
19349 " add-drive-opts filename\n"
19350 "\n"
19351 msgstr ""
19352
19353 #. type: verbatim
19354 #: ../fish/guestfish.pod:587
19355 #, no-wrap
19356 msgid ""
19357 " add-drive-opts filename readonly:true\n"
19358 "\n"
19359 msgstr ""
19360
19361 #. type: verbatim
19362 #: ../fish/guestfish.pod:589
19363 #, no-wrap
19364 msgid ""
19365 " add-drive-opts filename format:qcow2 readonly:false\n"
19366 "\n"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:591
19371 msgid ""
19372 "Each optional argument can appear at most once.  All optional arguments must "
19373 "appear after the required ones."
19374 msgstr ""
19375
19376 #. type: =head1
19377 #: ../fish/guestfish.pod:594
19378 msgid "NUMBERS"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:596
19383 msgid "This section applies to all commands which can take integers as parameters."
19384 msgstr ""
19385
19386 #. type: =head2
19387 #: ../fish/guestfish.pod:599
19388 msgid "SIZE SUFFIX"
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:601
19393 msgid ""
19394 "When the command takes a parameter measured in bytes, you can use one of the "
19395 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19396 msgstr ""
19397
19398 #. type: =item
19399 #: ../fish/guestfish.pod:607
19400 msgid "B<k> or B<K> or B<KiB>"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fish/guestfish.pod:609
19405 msgid "The size in kilobytes (multiplied by 1024)."
19406 msgstr ""
19407
19408 #. type: =item
19409 #: ../fish/guestfish.pod:611
19410 msgid "B<KB>"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fish/guestfish.pod:613
19415 msgid "The size in SI 1000 byte units."
19416 msgstr ""
19417
19418 #. type: =item
19419 #: ../fish/guestfish.pod:615
19420 msgid "B<M> or B<MiB>"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:617
19425 msgid "The size in megabytes (multiplied by 1048576)."
19426 msgstr ""
19427
19428 #. type: =item
19429 #: ../fish/guestfish.pod:619
19430 msgid "B<MB>"
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:621
19435 msgid "The size in SI 1000000 byte units."
19436 msgstr ""
19437
19438 #. type: =item
19439 #: ../fish/guestfish.pod:623
19440 msgid "B<G> or B<GiB>"
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fish/guestfish.pod:625
19445 msgid "The size in gigabytes (multiplied by 2**30)."
19446 msgstr ""
19447
19448 #. type: =item
19449 #: ../fish/guestfish.pod:627
19450 msgid "B<GB>"
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../fish/guestfish.pod:629
19455 msgid "The size in SI 10**9 byte units."
19456 msgstr ""
19457
19458 #. type: =item
19459 #: ../fish/guestfish.pod:631
19460 msgid "B<T> or B<TiB>"
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish.pod:633
19465 msgid "The size in terabytes (multiplied by 2**40)."
19466 msgstr ""
19467
19468 #. type: =item
19469 #: ../fish/guestfish.pod:635
19470 msgid "B<TB>"
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../fish/guestfish.pod:637
19475 msgid "The size in SI 10**12 byte units."
19476 msgstr ""
19477
19478 #. type: =item
19479 #: ../fish/guestfish.pod:639
19480 msgid "B<P> or B<PiB>"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:641
19485 msgid "The size in petabytes (multiplied by 2**50)."
19486 msgstr ""
19487
19488 #. type: =item
19489 #: ../fish/guestfish.pod:643
19490 msgid "B<PB>"
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:645
19495 msgid "The size in SI 10**15 byte units."
19496 msgstr ""
19497
19498 #. type: =item
19499 #: ../fish/guestfish.pod:647
19500 msgid "B<E> or B<EiB>"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:649
19505 msgid "The size in exabytes (multiplied by 2**60)."
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:651
19510 msgid "B<EB>"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:653
19515 msgid "The size in SI 10**18 byte units."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:655
19520 msgid "B<Z> or B<ZiB>"
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:657
19525 msgid "The size in zettabytes (multiplied by 2**70)."
19526 msgstr ""
19527
19528 #. type: =item
19529 #: ../fish/guestfish.pod:659
19530 msgid "B<ZB>"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:661
19535 msgid "The size in SI 10**21 byte units."
19536 msgstr ""
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:663
19540 msgid "B<Y> or B<YiB>"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:665
19545 msgid "The size in yottabytes (multiplied by 2**80)."
19546 msgstr ""
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:667
19550 msgid "B<YB>"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:669
19555 msgid "The size in SI 10**24 byte units."
19556 msgstr ""
19557
19558 #. type: verbatim
19559 #: ../fish/guestfish.pod:675
19560 #, no-wrap
19561 msgid ""
19562 " truncate-size /file 1G\n"
19563 "\n"
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:677
19568 msgid "would truncate the file to 1 gigabyte."
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:679
19573 msgid ""
19574 "Be careful because a few commands take sizes in kilobytes or megabytes "
19575 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19576 "Adding a suffix will probably not do what you expect."
19577 msgstr ""
19578
19579 #. type: =head2
19580 #: ../fish/guestfish.pod:683
19581 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:685
19586 msgid ""
19587 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19588 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19589 msgstr ""
19590
19591 #. type: verbatim
19592 #: ../fish/guestfish.pod:688
19593 #, no-wrap
19594 msgid ""
19595 " 1234      decimal number 1234\n"
19596 " 02322     octal number, equivalent to decimal 1234\n"
19597 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19598 "\n"
19599 msgstr ""
19600
19601 #. type: textblock
19602 #: ../fish/guestfish.pod:692
19603 msgid ""
19604 "When using the C<chmod> command, you almost always want to specify an octal "
19605 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19606 "L<chmod(1)> program):"
19607 msgstr ""
19608
19609 #. type: verbatim
19610 #: ../fish/guestfish.pod:696
19611 #, no-wrap
19612 msgid ""
19613 " chmod 0777 /public  # OK\n"
19614 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../fish/guestfish.pod:699
19620 msgid ""
19621 "Commands that return numbers usually print them in decimal, but some "
19622 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19623 "octal, preceeded by C<0>)."
19624 msgstr ""
19625
19626 #. type: =head1
19627 #: ../fish/guestfish.pod:703
19628 msgid "WILDCARDS AND GLOBBING"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/guestfish.pod:705
19633 msgid ""
19634 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19635 "(globbing) by default.  So for example the following will not do what you "
19636 "expect:"
19637 msgstr ""
19638
19639 #. type: verbatim
19640 #: ../fish/guestfish.pod:709
19641 #, no-wrap
19642 msgid ""
19643 " rm-rf /home/*\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:711
19649 msgid ""
19650 "Assuming you don't have a directory called literally C</home/*> then the "
19651 "above command will return an error."
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:714
19656 msgid "To perform wildcard expansion, use the C<glob> command."
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:716
19661 #, no-wrap
19662 msgid ""
19663 " glob rm-rf /home/*\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:718
19669 msgid ""
19670 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19671 "many times), equivalent to:"
19672 msgstr ""
19673
19674 #. type: verbatim
19675 #: ../fish/guestfish.pod:721
19676 #, no-wrap
19677 msgid ""
19678 " rm-rf /home/jim\n"
19679 " rm-rf /home/joe\n"
19680 " rm-rf /home/mary\n"
19681 "\n"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:725
19686 msgid "C<glob> only works on simple guest paths and not on device names."
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:727
19691 msgid ""
19692 "If you have several parameters, each containing a wildcard, then glob will "
19693 "perform a Cartesian product."
19694 msgstr ""
19695
19696 #. type: =head1
19697 #: ../fish/guestfish.pod:730
19698 msgid "COMMENTS"
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:732
19703 msgid ""
19704 "Any line which starts with a I<#> character is treated as a comment and "
19705 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19706 "a command.  For example:"
19707 msgstr ""
19708
19709 #. type: verbatim
19710 #: ../fish/guestfish.pod:736
19711 #, no-wrap
19712 msgid ""
19713 " # this is a comment\n"
19714 "         # this is a comment\n"
19715 " foo # NOT a comment\n"
19716 "\n"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:740
19721 msgid "Blank lines are also ignored."
19722 msgstr ""
19723
19724 #. type: =head1
19725 #: ../fish/guestfish.pod:742
19726 msgid "RUNNING COMMANDS LOCALLY"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:744
19731 msgid ""
19732 "Any line which starts with a I<!> character is treated as a command sent to "
19733 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19734 msgstr ""
19735
19736 #. type: verbatim
19737 #: ../fish/guestfish.pod:748
19738 #, no-wrap
19739 msgid ""
19740 " !mkdir local\n"
19741 " tgz-out /remote local/remote-data.tar.gz\n"
19742 "\n"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:751
19747 msgid ""
19748 "will create a directory C<local> on the host, and then export the contents "
19749 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19750 "(See C<tgz-out>)."
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/guestfish.pod:755
19755 msgid ""
19756 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19757 "effect, due to the way that subprocesses work in Unix."
19758 msgstr ""
19759
19760 #. type: =head2
19761 #: ../fish/guestfish.pod:758
19762 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19763 msgstr ""
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:760
19767 msgid ""
19768 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19769 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19770 "and executed as guestfish commands."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:764
19775 msgid ""
19776 "Thus you can use shell script to construct arbitrary guestfish commands "
19777 "which are then parsed by guestfish."
19778 msgstr ""
19779
19780 #. type: textblock
19781 #: ../fish/guestfish.pod:767
19782 msgid ""
19783 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19784 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19785 "if we use a shell script to create the guestfish commands for us:"
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../fish/guestfish.pod:772
19790 #, no-wrap
19791 msgid ""
19792 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:774
19798 msgid "or with names like C</foo.001>:"
19799 msgstr ""
19800
19801 #. type: verbatim
19802 #: ../fish/guestfish.pod:776
19803 #, no-wrap
19804 msgid ""
19805 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19806 "\n"
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:778
19811 msgid ""
19812 "When using guestfish interactively it can be helpful to just run the shell "
19813 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19814 "ordinary I<!> local command), see what guestfish commands it would run, and "
19815 "when you are happy with those prepend the C<E<lt>> character to run the "
19816 "guestfish commands for real."
19817 msgstr ""
19818
19819 #. type: =head1
19820 #: ../fish/guestfish.pod:784
19821 msgid "PIPES"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../fish/guestfish.pod:786
19826 msgid ""
19827 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19828 "command (a guestfish command) to the second command (any host command).  For "
19829 "example:"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../fish/guestfish.pod:790
19834 #, no-wrap
19835 msgid ""
19836 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19837 "\n"
19838 msgstr ""
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:792
19842 msgid ""
19843 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19844 "program).  The above command would list all accounts in the guest filesystem "
19845 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19846 msgstr ""
19847
19848 #. type: verbatim
19849 #: ../fish/guestfish.pod:797
19850 #, no-wrap
19851 msgid ""
19852 " hexdump /bin/ls | head\n"
19853 " list-devices | tail -1\n"
19854 " tgz-out / - | tar ztf -\n"
19855 "\n"
19856 msgstr ""
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:801
19860 msgid ""
19861 "The space before the pipe symbol is required, any space after the pipe "
19862 "symbol is optional.  Everything after the pipe symbol is just passed "
19863 "straight to the host shell, so it can contain redirections, globs and "
19864 "anything else that makes sense on the host side."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:806
19869 msgid ""
19870 "To use a literal argument which begins with a pipe symbol, you have to quote "
19871 "it, eg:"
19872 msgstr ""
19873
19874 #. type: verbatim
19875 #: ../fish/guestfish.pod:809
19876 #, no-wrap
19877 msgid ""
19878 " echo \"|\"\n"
19879 "\n"
19880 msgstr ""
19881
19882 #. type: =head1
19883 #: ../fish/guestfish.pod:811
19884 msgid "HOME DIRECTORIES"
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:813
19889 msgid ""
19890 "If a parameter starts with the character C<~> then the tilde may be expanded "
19891 "as a home directory path (either C<~> for the current user's home directory, "
19892 "or C<~user> for another user)."
19893 msgstr ""
19894
19895 #. type: textblock
19896 #: ../fish/guestfish.pod:817
19897 msgid ""
19898 "Note that home directory expansion happens for users known I<on the host>, "
19899 "not in the guest filesystem."
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/guestfish.pod:820
19904 msgid ""
19905 "To use a literal argument which begins with a tilde, you have to quote it, "
19906 "eg:"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/guestfish.pod:823
19911 #, no-wrap
19912 msgid ""
19913 " echo \"~\"\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: =head2
19918 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19919 msgid "ENCRYPTED DISKS"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:827
19924 msgid ""
19925 "Libguestfs has some support for Linux guests encrypted according to the "
19926 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19927 "disk encryption systems used by modern Linux guests.  Currently only "
19928 "LVM-on-LUKS is supported."
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:832
19933 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19934 msgstr ""
19935
19936 #. type: verbatim
19937 #: ../fish/guestfish.pod:834
19938 #, no-wrap
19939 msgid ""
19940 " ><fs> vfs-type /dev/sda2\n"
19941 " crypto_LUKS\n"
19942 "\n"
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:837
19947 msgid ""
19948 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19949 "device called C</dev/mapper/luksdev>."
19950 msgstr ""
19951
19952 #. type: verbatim
19953 #: ../fish/guestfish.pod:840
19954 #, no-wrap
19955 msgid ""
19956 " ><fs> luks-open /dev/sda2 luksdev\n"
19957 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19958 "\n"
19959 msgstr ""
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:843
19963 msgid ""
19964 "Finally you have to tell LVM to scan for volume groups on the newly created "
19965 "mapper device:"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../fish/guestfish.pod:846
19970 #, no-wrap
19971 msgid ""
19972 " vgscan\n"
19973 " vg-activate-all true\n"
19974 "\n"
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../fish/guestfish.pod:849
19979 msgid "The logical volume(s) can now be mounted in the usual way."
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../fish/guestfish.pod:851
19984 msgid ""
19985 "Before closing a LUKS device you must unmount any logical volumes on it and "
19986 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19987 "one.  Then you can close the mapper device:"
19988 msgstr ""
19989
19990 #. type: verbatim
19991 #: ../fish/guestfish.pod:855
19992 #, no-wrap
19993 msgid ""
19994 " vg-activate false /dev/VG\n"
19995 " luks-close /dev/mapper/luksdev\n"
19996 "\n"
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fish/guestfish.pod:860
20001 msgid ""
20002 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20003 "letters and paths (with some limitations).  The following commands are "
20004 "equivalent:"
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/guestfish.pod:864
20009 #, no-wrap
20010 msgid ""
20011 " file /WINDOWS/system32/config/system.LOG\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: verbatim
20016 #: ../fish/guestfish.pod:866
20017 #, no-wrap
20018 msgid ""
20019 " file win:\\windows\\system32\\config\\system.log\n"
20020 "\n"
20021 msgstr ""
20022
20023 #. type: verbatim
20024 #: ../fish/guestfish.pod:868
20025 #, no-wrap
20026 msgid ""
20027 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20028 "\n"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:870
20033 msgid ""
20034 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20035 "where the drive is mounted, prepending that to the path, changing all "
20036 "backslash characters to forward slash, then resolving the result using "
20037 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20038 "then the parameter might be rewritten like this:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fish/guestfish.pod:876
20043 #, no-wrap
20044 msgid ""
20045 " win:e:\\foo\\bar => /e/FOO/bar\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:878
20051 msgid "This only works in argument positions that expect a path."
20052 msgstr ""
20053
20054 #. type: =head1
20055 #: ../fish/guestfish.pod:880
20056 msgid "UPLOADING AND DOWNLOADING FILES"
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:882
20061 msgid ""
20062 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20063 "others which upload from or download to a local file, you can use the "
20064 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fish/guestfish.pod:886
20069 #, no-wrap
20070 msgid ""
20071 " upload - /foo\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fish/guestfish.pod:888
20077 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20078 msgstr ""
20079
20080 #. type: verbatim
20081 #: ../fish/guestfish.pod:891
20082 #, no-wrap
20083 msgid ""
20084 " tar-out /etc - | tar tf -\n"
20085 "\n"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../fish/guestfish.pod:893
20090 msgid ""
20091 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20092 "command (see L</PIPES>)."
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/guestfish.pod:896
20097 msgid ""
20098 "When using C<-> to read from stdin, the input is read up to the end of "
20099 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20100 "some arbitrary end marker:"
20101 msgstr ""
20102
20103 #. type: verbatim
20104 #: ../fish/guestfish.pod:900
20105 #, no-wrap
20106 msgid ""
20107 " upload -<<END /foo\n"
20108 " input line 1\n"
20109 " input line 2\n"
20110 " input line 3\n"
20111 " END\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:906
20117 msgid ""
20118 "Any string of characters can be used instead of C<END>.  The end marker must "
20119 "appear on a line of its own, without any preceeding or following characters "
20120 "(not even spaces)."
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fish/guestfish.pod:910
20125 msgid ""
20126 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20127 "upload local files (so-called \"FileIn\" parameters in the generator)."
20128 msgstr ""
20129
20130 #. type: =head1
20131 #: ../fish/guestfish.pod:913
20132 msgid "EXIT ON ERROR BEHAVIOUR"
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:915
20137 msgid ""
20138 "By default, guestfish will ignore any errors when in interactive mode "
20139 "(ie. taking commands from a human over a tty), and will exit on the first "
20140 "error in non-interactive mode (scripts, commands given on the command line)."
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fish/guestfish.pod:920
20145 msgid ""
20146 "If you prefix a command with a I<-> character, then that command will not "
20147 "cause guestfish to exit, even if that (one) command returns an error."
20148 msgstr ""
20149
20150 #. type: =head1
20151 #: ../fish/guestfish.pod:924
20152 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:926
20157 msgid ""
20158 "Guestfish can be remote-controlled over a socket.  This is useful "
20159 "particularly in shell scripts where you want to make several different "
20160 "changes to a filesystem, but you don't want the overhead of starting up a "
20161 "guestfish process each time."
20162 msgstr ""
20163
20164 #. type: textblock
20165 #: ../fish/guestfish.pod:931
20166 msgid "Start a guestfish server process using:"
20167 msgstr ""
20168
20169 #. type: verbatim
20170 #: ../fish/guestfish.pod:933
20171 #, no-wrap
20172 msgid ""
20173 " eval \"`guestfish --listen`\"\n"
20174 "\n"
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:935
20179 msgid "and then send it commands by doing:"
20180 msgstr ""
20181
20182 #. type: verbatim
20183 #: ../fish/guestfish.pod:937
20184 #, no-wrap
20185 msgid ""
20186 " guestfish --remote cmd [...]\n"
20187 "\n"
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../fish/guestfish.pod:939
20192 msgid "To cause the server to exit, send it the exit command:"
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/guestfish.pod:943
20197 msgid ""
20198 "Note that the server will normally exit if there is an error in a command.  "
20199 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20200 "BEHAVIOUR>."
20201 msgstr ""
20202
20203 #. type: =head2
20204 #: ../fish/guestfish.pod:947
20205 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../fish/guestfish.pod:949
20210 msgid ""
20211 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20212 "is how the I<--remote> option knows where to send the commands.  You can "
20213 "have several guestfish listener processes running using:"
20214 msgstr ""
20215
20216 #. type: verbatim
20217 #: ../fish/guestfish.pod:953
20218 #, no-wrap
20219 msgid ""
20220 " eval \"`guestfish --listen`\"\n"
20221 " pid1=$GUESTFISH_PID\n"
20222 " eval \"`guestfish --listen`\"\n"
20223 " pid2=$GUESTFISH_PID\n"
20224 " ...\n"
20225 " guestfish --remote=$pid1 cmd\n"
20226 " guestfish --remote=$pid2 cmd\n"
20227 "\n"
20228 msgstr ""
20229
20230 #. type: =head2
20231 #: ../fish/guestfish.pod:961
20232 msgid "REMOTE CONTROL AND CSH"
20233 msgstr ""
20234
20235 #. type: textblock
20236 #: ../fish/guestfish.pod:963
20237 msgid ""
20238 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20239 "option:"
20240 msgstr ""
20241
20242 #. type: verbatim
20243 #: ../fish/guestfish.pod:966
20244 #, no-wrap
20245 msgid ""
20246 " eval \"`guestfish --listen --csh`\"\n"
20247 "\n"
20248 msgstr ""
20249
20250 #. type: =head2
20251 #: ../fish/guestfish.pod:968
20252 msgid "REMOTE CONTROL DETAILS"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:970
20257 msgid ""
20258 "Remote control happens over a Unix domain socket called "
20259 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20260 "of the process, and C<$PID> is the process ID of the server."
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:974
20265 msgid "Guestfish client and server versions must match exactly."
20266 msgstr ""
20267
20268 #. type: =head2
20269 #: ../fish/guestfish.pod:976
20270 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:978
20275 msgid ""
20276 "From Bash, you can use the following code which creates a guestfish "
20277 "instance, correctly quotes the command line, handles failure to start, and "
20278 "cleans up guestfish when the script exits:"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20283 #, no-wrap
20284 msgid ""
20285 " #!/bin/bash -\n"
20286 " \n"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../fish/guestfish.pod:986
20291 #, no-wrap
20292 msgid ""
20293 " guestfish[0]=\"guestfish\"\n"
20294 " guestfish[1]=\"--listen\"\n"
20295 " guestfish[2]=\"--ro\"\n"
20296 " guestfish[3]=\"-a\"\n"
20297 " guestfish[4]=\"disk.img\"\n"
20298 " \n"
20299 msgstr ""
20300
20301 #. type: verbatim
20302 #: ../fish/guestfish.pod:992
20303 #, no-wrap
20304 msgid ""
20305 " GUESTFISH_PID=\n"
20306 " eval $(\"${guestfish[@]}\")\n"
20307 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20308 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20309 "     exit 1\n"
20310 " fi\n"
20311 " \n"
20312 msgstr ""
20313
20314 #. type: verbatim
20315 #: ../fish/guestfish.pod:999
20316 #, no-wrap
20317 msgid ""
20318 " cleanup_guestfish ()\n"
20319 " {\n"
20320 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20321 " }\n"
20322 " trap cleanup_guestfish EXIT ERR\n"
20323 " \n"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../fish/guestfish.pod:1005
20328 #, no-wrap
20329 msgid ""
20330 " guestfish --remote -- run\n"
20331 " \n"
20332 msgstr ""
20333
20334 #. type: verbatim
20335 #: ../fish/guestfish.pod:1007
20336 #, no-wrap
20337 msgid ""
20338 " # ...\n"
20339 "\n"
20340 msgstr ""
20341
20342 #. type: =head2
20343 #: ../fish/guestfish.pod:1009
20344 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fish/guestfish.pod:1011
20349 msgid ""
20350 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20351 "context hangs, ie. don't do (note the backquotes):"
20352 msgstr ""
20353
20354 #. type: verbatim
20355 #: ../fish/guestfish.pod:1014
20356 #, no-wrap
20357 msgid ""
20358 " a=`guestfish --remote run`\n"
20359 "\n"
20360 msgstr ""
20361
20362 #. type: textblock
20363 #: ../fish/guestfish.pod:1016
20364 msgid ""
20365 "Since the C<run> command produces no output on stdout, this is not useful "
20366 "anyway.  For further information see "
20367 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20368 msgstr ""
20369
20370 #. type: =head1
20371 #: ../fish/guestfish.pod:1020
20372 msgid "PREPARED DISK IMAGES"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:1022
20377 msgid ""
20378 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20379 "preformatted disk images that guestfish can make for you to save typing.  "
20380 "This is particularly useful for testing purposes.  This option is used "
20381 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20382 "can be mixed with I<-a>)."
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:1028
20387 msgid ""
20388 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20389 "the second and so on.  Existing files in the current directory are "
20390 "I<overwritten>."
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../fish/guestfish.pod:1032
20395 msgid ""
20396 "The type briefly describes how the disk should be sized, partitioned, how "
20397 "filesystem(s) should be created, and how content should be added.  "
20398 "Optionally the type can be followed by extra parameters, separated by C<:> "
20399 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20400 "sparsely-allocated disk, containing a single partition, with the partition "
20401 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20402 "on a 1GB disk instead."
20403 msgstr ""
20404
20405 #. type: textblock
20406 #: ../fish/guestfish.pod:1040
20407 msgid "To list the available types and any extra parameters they take, run:"
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/guestfish.pod:1044
20412 msgid ""
20413 "Note that the prepared filesystem is not mounted.  You would usually have to "
20414 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:1048
20419 msgid ""
20420 "If any I<-N> or I<--new> options are given, the guest is automatically "
20421 "launched."
20422 msgstr ""
20423
20424 #. type: textblock
20425 #: ../fish/guestfish.pod:1053
20426 msgid "Create a 100MB disk with an ext4-formatted partition:"
20427 msgstr ""
20428
20429 #. type: verbatim
20430 #: ../fish/guestfish.pod:1055
20431 #, no-wrap
20432 msgid ""
20433 " guestfish -N fs:ext4\n"
20434 "\n"
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../fish/guestfish.pod:1057
20439 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20440 msgstr ""
20441
20442 #. type: verbatim
20443 #: ../fish/guestfish.pod:1059
20444 #, no-wrap
20445 msgid ""
20446 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20447 "\n"
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:1061
20452 msgid "Create a blank 200MB disk:"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:1063
20457 #, no-wrap
20458 msgid ""
20459 " guestfish -N disk:200M\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: =head1
20464 #: ../fish/guestfish.pod:1065
20465 msgid "PROGRESS BARS"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:1067
20470 msgid ""
20471 "Some (not all) long-running commands send progress notification messages as "
20472 "they are running.  Guestfish turns these messages into progress bars."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:1071
20477 msgid ""
20478 "When a command that supports progress bars takes longer than two seconds to "
20479 "run, and if progress bars are enabled, then you will see one appearing below "
20480 "the command:"
20481 msgstr ""
20482
20483 #. type: verbatim
20484 #: ../fish/guestfish.pod:1075
20485 #, no-wrap
20486 msgid ""
20487 " ><fs> copy-size /large-file /another-file 2048M\n"
20488 " / 10% [#####-----------------------------------------] 00:30\n"
20489 "\n"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:1078
20494 msgid ""
20495 "The spinner on the left hand side moves round once for every progress "
20496 "notification received from the backend.  This is a (reasonably) golden "
20497 "assurance that the command is \"doing something\" even if the progress bar "
20498 "is not moving, because the command is able to send the progress "
20499 "notifications.  When the bar reaches 100% and the command finishes, the "
20500 "spinner disappears."
20501 msgstr ""
20502
20503 #. type: textblock
20504 #: ../fish/guestfish.pod:1085
20505 msgid ""
20506 "Progress bars are enabled by default when guestfish is used interactively.  "
20507 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20508 "and you can disable them completely using I<--no-progress-bars>."
20509 msgstr ""
20510
20511 #. type: =head1
20512 #: ../fish/guestfish.pod:1090
20513 msgid "GUESTFISH COMMANDS"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:1092
20518 msgid ""
20519 "The commands in this section are guestfish convenience commands, in other "
20520 "words, they are not part of the L<guestfs(3)> API."
20521 msgstr ""
20522
20523 #. type: =head2
20524 #: ../fish/guestfish.pod:1095
20525 msgid "help"
20526 msgstr ""
20527
20528 #. type: verbatim
20529 #: ../fish/guestfish.pod:1097
20530 #, no-wrap
20531 msgid ""
20532 " help\n"
20533 " help cmd\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:1100
20539 msgid "Without any parameter, this provides general help."
20540 msgstr ""
20541
20542 #. type: textblock
20543 #: ../fish/guestfish.pod:1102
20544 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20545 msgstr ""
20546
20547 #. type: =head2
20548 #: ../fish/guestfish.pod:1104
20549 msgid "quit | exit"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:1106
20554 msgid "This exits guestfish.  You can also use C<^D> key."
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:1108
20559 msgid "@FISH_COMMANDS@"
20560 msgstr ""
20561
20562 #. type: =head1
20563 #: ../fish/guestfish.pod:1110
20564 msgid "COMMANDS"
20565 msgstr ""
20566
20567 #. type: textblock
20568 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20569 msgid "@ACTIONS@"
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:1116
20574 msgid ""
20575 "guestfish returns 0 if the commands completed without error, or 1 if there "
20576 "was an error."
20577 msgstr ""
20578
20579 #. type: =item
20580 #: ../fish/guestfish.pod:1123
20581 msgid "EDITOR"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:1125
20586 msgid ""
20587 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20588 "C<vi>."
20589 msgstr ""
20590
20591 #. type: =item
20592 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
20593 msgid "FEBOOTSTRAP_KERNEL"
20594 msgstr ""
20595
20596 #. type: =item
20597 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
20598 msgid "FEBOOTSTRAP_MODULES"
20599 msgstr ""
20600
20601 #. type: textblock
20602 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
20603 msgid ""
20604 "These two environment variables allow the kernel that libguestfs uses in the "
20605 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20606 "most recent host kernel is chosen.  For more information about kernel "
20607 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20608 "available in febootstrap E<ge> 3.8."
20609 msgstr ""
20610
20611 #. type: =item
20612 #: ../fish/guestfish.pod:1138
20613 msgid "GUESTFISH_DISPLAY_IMAGE"
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../fish/guestfish.pod:1140
20618 msgid ""
20619 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20620 "If not set, it uses L<display(1)>."
20621 msgstr ""
20622
20623 #. type: =item
20624 #: ../fish/guestfish.pod:1143
20625 msgid "GUESTFISH_PID"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:1145
20630 msgid ""
20631 "Used with the I<--remote> option to specify the remote guestfish process to "
20632 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20633 msgstr ""
20634
20635 #. type: =item
20636 #: ../fish/guestfish.pod:1149
20637 msgid "HEXEDITOR"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fish/guestfish.pod:1151
20642 msgid ""
20643 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20644 "not specified, the external L<hexedit(1)> program is used."
20645 msgstr ""
20646
20647 #. type: =item
20648 #: ../fish/guestfish.pod:1155
20649 msgid "HOME"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fish/guestfish.pod:1157
20654 msgid ""
20655 "If compiled with GNU readline support, various files in the home directory "
20656 "can be used.  See L</FILES>."
20657 msgstr ""
20658
20659 #. type: =item
20660 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
20661 msgid "LIBGUESTFS_APPEND"
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
20666 msgid "Pass additional options to the guest kernel."
20667 msgstr ""
20668
20669 #. type: =item
20670 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
20671 msgid "LIBGUESTFS_DEBUG"
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../fish/guestfish.pod:1166
20676 msgid ""
20677 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20678 "effect as using the B<-v> option."
20679 msgstr ""
20680
20681 #. type: =item
20682 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
20683 msgid "LIBGUESTFS_MEMSIZE"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
20688 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
20689 msgstr ""
20690
20691 #. type: verbatim
20692 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
20693 #, no-wrap
20694 msgid ""
20695 " LIBGUESTFS_MEMSIZE=700\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: =item
20700 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
20701 msgid "LIBGUESTFS_PATH"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:1178
20706 msgid ""
20707 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20708 "the discussion of paths in L<guestfs(3)>."
20709 msgstr ""
20710
20711 #. type: =item
20712 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
20713 msgid "LIBGUESTFS_QEMU"
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
20718 msgid ""
20719 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20720 "which was found at compile time by the configure script is used."
20721 msgstr ""
20722
20723 #. type: =item
20724 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
20725 msgid "LIBGUESTFS_TRACE"
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:1189
20730 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20731 msgstr ""
20732
20733 #. type: =item
20734 #: ../fish/guestfish.pod:1191
20735 msgid "PAGER"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:1193
20740 msgid ""
20741 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20742 "C<more>."
20743 msgstr ""
20744
20745 #. type: =item
20746 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:241 ../src/guestfs.pod:3262
20747 msgid "TMPDIR"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
20752 msgid ""
20753 "Location of temporary directory, defaults to C</tmp> except for the cached "
20754 "supermin appliance which defaults to C</var/tmp>."
20755 msgstr ""
20756
20757 #. type: textblock
20758 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
20759 msgid ""
20760 "If libguestfs was compiled to use the supermin appliance then the real "
20761 "appliance is cached in this directory, shared between all handles belonging "
20762 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20763 "use in case C</var/tmp> is not large enough."
20764 msgstr ""
20765
20766 #. type: =head1
20767 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
20768 msgid "FILES"
20769 msgstr ""
20770
20771 #. type: =item
20772 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
20773 msgid "$HOME/.libguestfs-tools.rc"
20774 msgstr ""
20775
20776 #. type: =item
20777 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
20778 msgid "/etc/libguestfs-tools.conf"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
20783 msgid ""
20784 "This configuration file controls the default read-only or read-write mode "
20785 "(I<--ro> or I<--rw>)."
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:1220
20790 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20791 msgstr ""
20792
20793 #. type: =item
20794 #: ../fish/guestfish.pod:1222
20795 msgid "$HOME/.guestfish"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/guestfish.pod:1224
20800 msgid ""
20801 "If compiled with GNU readline support, then the command history is saved in "
20802 "this file."
20803 msgstr ""
20804
20805 #. type: =item
20806 #: ../fish/guestfish.pod:1227
20807 msgid "$HOME/.inputrc"
20808 msgstr ""
20809
20810 #. type: =item
20811 #: ../fish/guestfish.pod:1229
20812 msgid "/etc/inputrc"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:1231
20817 msgid ""
20818 "If compiled with GNU readline support, then these files can be used to "
20819 "configure readline.  For further information, please see "
20820 "L<readline(3)/INITIALIZATION FILE>."
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:1235
20825 msgid "To write rules which only apply to guestfish, use:"
20826 msgstr ""
20827
20828 #. type: verbatim
20829 #: ../fish/guestfish.pod:1237
20830 #, no-wrap
20831 msgid ""
20832 " $if guestfish\n"
20833 " ...\n"
20834 " $endif\n"
20835 "\n"
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:1241
20840 msgid ""
20841 "Variables that you can set in inputrc that change the behaviour of guestfish "
20842 "in useful ways include:"
20843 msgstr ""
20844
20845 #. type: =item
20846 #: ../fish/guestfish.pod:1246
20847 msgid "completion-ignore-case (default: on)"
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:1248
20852 msgid ""
20853 "By default, guestfish will ignore case when tab-completing paths on the "
20854 "disk.  Use:"
20855 msgstr ""
20856
20857 #. type: verbatim
20858 #: ../fish/guestfish.pod:1251
20859 #, no-wrap
20860 msgid ""
20861 " set completion-ignore-case off\n"
20862 "\n"
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../fish/guestfish.pod:1253
20867 msgid "to make guestfish case sensitive."
20868 msgstr ""
20869
20870 #. type: =item
20871 #: ../fish/guestfish.pod:1257
20872 msgid "test1.img"
20873 msgstr ""
20874
20875 #. type: =item
20876 #: ../fish/guestfish.pod:1259
20877 msgid "test2.img (etc)"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1261
20882 msgid ""
20883 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20884 "will be created in the file C<test1.img> in the current directory.  The "
20885 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20886 "the same name will be overwritten."
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../fish/guestfish.pod:1270
20891 msgid ""
20892 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
20893 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
20894 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
20895 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
20896 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
20897 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
20898 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
20899 "L<febootstrap-supermin-helper(8)>."
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360 ../test-tool/libguestfs-test-tool.pod:112
20904 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/virt-copy-in.pod:5
20909 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
20910 msgstr ""
20911
20912 #. type: verbatim
20913 #: ../fish/virt-copy-in.pod:9
20914 #, no-wrap
20915 msgid ""
20916 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20917 "\n"
20918 msgstr ""
20919
20920 #. type: verbatim
20921 #: ../fish/virt-copy-in.pod:11
20922 #, no-wrap
20923 msgid ""
20924 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20925 "\n"
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../fish/virt-copy-in.pod:15
20930 msgid ""
20931 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20932 "causing disk corruption.  The virtual machine must be shut down before you "
20933 "use this command."
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../fish/virt-copy-in.pod:21
20938 msgid ""
20939 "C<virt-copy-in> copies files and directories from the local disk into a "
20940 "virtual machine disk image or named libvirt domain."
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../fish/virt-copy-in.pod:24
20945 msgid ""
20946 "You can give one of more filenames and directories on the command line.  "
20947 "Directories are copied in recursively.  The final parameter must be the "
20948 "destination directory in the disk image which must be an absolute path "
20949 "starting with a C</> character."
20950 msgstr ""
20951
20952 #. type: verbatim
20953 #: ../fish/virt-copy-in.pod:33
20954 #, no-wrap
20955 msgid ""
20956 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20957 "\n"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20962 msgid "Upload a home directory to a guest:"
20963 msgstr ""
20964
20965 #. type: verbatim
20966 #: ../fish/virt-copy-in.pod:37
20967 #, no-wrap
20968 msgid ""
20969 " virt-copy-in -d MyGuest skel /home\n"
20970 "\n"
20971 msgstr ""
20972
20973 #. type: =head1
20974 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20975 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fish/virt-copy-in.pod:41
20980 msgid ""
20981 "This command is just a simple shell script wrapper around the "
20982 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
20983 "trivial copy, you are probably better off using guestfish directly."
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20988 msgid ""
20989 "Since the shell script just passes options straight to guestfish, read "
20990 "L<guestfish(1)> to see the full list of options."
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../fish/virt-copy-in.pod:52
20995 msgid ""
20996 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20997 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21002 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../fish/virt-copy-out.pod:5
21007 msgid ""
21008 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21009 "image."
21010 msgstr ""
21011
21012 #. type: verbatim
21013 #: ../fish/virt-copy-out.pod:9
21014 #, no-wrap
21015 msgid ""
21016 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21017 "\n"
21018 msgstr ""
21019
21020 #. type: verbatim
21021 #: ../fish/virt-copy-out.pod:11
21022 #, no-wrap
21023 msgid ""
21024 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21025 "\n"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/virt-copy-out.pod:15
21030 msgid ""
21031 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21032 "image or named libvirt domain."
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../fish/virt-copy-out.pod:18
21037 msgid ""
21038 "You can give one of more filenames and directories on the command line.  "
21039 "Directories are copied out recursively."
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../fish/virt-copy-out.pod:23
21044 msgid "Download the home directories from a virtual machine:"
21045 msgstr ""
21046
21047 #. type: verbatim
21048 #: ../fish/virt-copy-out.pod:25
21049 #, no-wrap
21050 msgid ""
21051 " mkdir homes\n"
21052 " virt-copy-out -d MyGuest /home homes\n"
21053 "\n"
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/virt-copy-out.pod:30
21058 msgid ""
21059 "This command is just a simple shell script wrapper around the "
21060 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21061 "trivial copy, you are probably better off using guestfish directly."
21062 msgstr ""
21063
21064 #. type: textblock
21065 #: ../fish/virt-copy-out.pod:41
21066 msgid ""
21067 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21068 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../fish/virt-tar-in.pod:5
21073 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../fish/virt-tar-in.pod:9
21078 #, no-wrap
21079 msgid ""
21080 " virt-tar-in -a disk.img data.tar /destination\n"
21081 "\n"
21082 msgstr ""
21083
21084 #. type: verbatim
21085 #: ../fish/virt-tar-in.pod:11
21086 #, no-wrap
21087 msgid ""
21088 " virt-tar-in -d domain data.tar /destination\n"
21089 "\n"
21090 msgstr ""
21091
21092 #. type: verbatim
21093 #: ../fish/virt-tar-in.pod:13
21094 #, no-wrap
21095 msgid ""
21096 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21097 "\n"
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../fish/virt-tar-in.pod:17
21102 msgid ""
21103 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21104 "causing disk corruption.  The virtual machine must be shut down before you "
21105 "use this command."
21106 msgstr ""
21107
21108 #. type: textblock
21109 #: ../fish/virt-tar-in.pod:23
21110 msgid ""
21111 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21112 "image or named libvirt domain."
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../fish/virt-tar-in.pod:26
21117 msgid ""
21118 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21119 "standard input.  The second parameter is the absolute target directory to "
21120 "unpack into."
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../fish/virt-tar-in.pod:34
21125 #, no-wrap
21126 msgid ""
21127 " virt-tar-in -d MyGuest homes.tar /home\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/virt-tar-in.pod:38
21133 msgid ""
21134 "This command is just a simple shell script wrapper around the "
21135 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21136 "copy, you are probably better off using guestfish directly."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../fish/virt-tar-in.pod:49
21141 msgid ""
21142 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21143 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21144 "L<http://libguestfs.org/>."
21145 msgstr ""
21146
21147 #. type: textblock
21148 #: ../fish/virt-tar-out.pod:5
21149 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21150 msgstr ""
21151
21152 #. type: verbatim
21153 #: ../fish/virt-tar-out.pod:9
21154 #, no-wrap
21155 msgid ""
21156 " virt-tar-out -a disk.img /dir files.tar\n"
21157 "\n"
21158 msgstr ""
21159
21160 #. type: verbatim
21161 #: ../fish/virt-tar-out.pod:11
21162 #, no-wrap
21163 msgid ""
21164 " virt-tar-out -d domain /dir files.tar\n"
21165 "\n"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fish/virt-tar-out.pod:13
21170 #, no-wrap
21171 msgid ""
21172 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/virt-tar-out.pod:17
21178 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../fish/virt-tar-out.pod:20
21183 msgid ""
21184 "The first parameter is the absolute path of the virtual machine directory.  "
21185 "The second parameter is the tar file to write.  Use C<-> to write to "
21186 "standard output."
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/virt-tar-out.pod:26
21191 msgid "Download the home directories from a guest:"
21192 msgstr ""
21193
21194 #. type: verbatim
21195 #: ../fish/virt-tar-out.pod:28
21196 #, no-wrap
21197 msgid ""
21198 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fish/virt-tar-out.pod:32
21204 msgid ""
21205 "This command is just a simple shell script wrapper around the "
21206 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21207 "trivial copy, you are probably better off using guestfish directly."
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/virt-tar-out.pod:43
21212 msgid ""
21213 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21214 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fuse/guestmount.pod:5
21219 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fuse/guestmount.pod:9
21224 #, no-wrap
21225 msgid ""
21226 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: verbatim
21231 #: ../fuse/guestmount.pod:11
21232 #, no-wrap
21233 msgid ""
21234 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21235 "\n"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../fuse/guestmount.pod:13
21240 #, no-wrap
21241 msgid ""
21242 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21243 "\n"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fuse/guestmount.pod:17
21248 msgid ""
21249 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21250 "machines.  If you do this, you risk disk corruption in the VM."
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fuse/guestmount.pod:22
21255 msgid ""
21256 "The guestmount program can be used to mount virtual machine filesystems and "
21257 "other disk images on the host.  It uses libguestfs for access to the guest "
21258 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21259 "a mountable device."
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../fuse/guestmount.pod:27
21264 msgid ""
21265 "Along with other options, you have to give at least one device (I<-a> "
21266 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21267 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21268 "this works is better explained in the L<guestfish(1)> manual page, or by "
21269 "looking at the examples below."
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../fuse/guestmount.pod:33
21274 msgid ""
21275 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21276 "by you, and the filesystem will not be visible to any other users unless you "
21277 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21278 "the filesystem, use the C<fusermount -u> command."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../fuse/guestmount.pod:41
21283 msgid ""
21284 "For a typical Windows guest which has its main filesystem on the first "
21285 "partition:"
21286 msgstr ""
21287
21288 #. type: verbatim
21289 #: ../fuse/guestmount.pod:44
21290 #, no-wrap
21291 msgid ""
21292 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21293 "\n"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../fuse/guestmount.pod:46
21298 msgid ""
21299 "For a typical Linux guest which has a /boot filesystem on the first "
21300 "partition, and the root filesystem on a logical volume:"
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../fuse/guestmount.pod:49
21305 #, no-wrap
21306 msgid ""
21307 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21308 "\n"
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../fuse/guestmount.pod:51
21313 msgid "To get libguestfs to detect guest mountpoints for you:"
21314 msgstr ""
21315
21316 #. type: verbatim
21317 #: ../fuse/guestmount.pod:53
21318 #, no-wrap
21319 msgid ""
21320 " guestmount -a guest.img -i --ro /mnt\n"
21321 "\n"
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../fuse/guestmount.pod:55
21326 msgid "For a libvirt guest called \"Guest\" you could do:"
21327 msgstr ""
21328
21329 #. type: verbatim
21330 #: ../fuse/guestmount.pod:57
21331 #, no-wrap
21332 msgid ""
21333 " guestmount -d Guest -i --ro /mnt\n"
21334 "\n"
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../fuse/guestmount.pod:59
21339 msgid ""
21340 "If you don't know what filesystems are contained in a guest or disk image, "
21341 "use L<virt-filesystems(1)> first:"
21342 msgstr ""
21343
21344 #. type: verbatim
21345 #: ../fuse/guestmount.pod:62
21346 #, no-wrap
21347 msgid ""
21348 " virt-filesystems MyGuest\n"
21349 "\n"
21350 msgstr ""
21351
21352 #. type: textblock
21353 #: ../fuse/guestmount.pod:64
21354 msgid ""
21355 "If you want to trace the libguestfs calls but without excessive debugging "
21356 "information, we recommend:"
21357 msgstr ""
21358
21359 #. type: verbatim
21360 #: ../fuse/guestmount.pod:67
21361 #, no-wrap
21362 msgid ""
21363 " guestmount [...] --trace /mnt\n"
21364 "\n"
21365 msgstr ""
21366
21367 #. type: textblock
21368 #: ../fuse/guestmount.pod:69
21369 msgid "If you want to debug the program, we recommend:"
21370 msgstr ""
21371
21372 #. type: verbatim
21373 #: ../fuse/guestmount.pod:71
21374 #, no-wrap
21375 msgid ""
21376 " guestmount [...] --trace --verbose /mnt\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: =head1
21381 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:627
21382 msgid "NOTES"
21383 msgstr ""
21384
21385 #. type: =head2
21386 #: ../fuse/guestmount.pod:75
21387 msgid "Other users cannot see the filesystem by default"
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fuse/guestmount.pod:77
21392 msgid ""
21393 "If you mount a filesystem as one user (eg. root), then other users will not "
21394 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21395 "option when mounting:"
21396 msgstr ""
21397
21398 #. type: verbatim
21399 #: ../fuse/guestmount.pod:81
21400 #, no-wrap
21401 msgid ""
21402 " sudo guestmount [...] -o allow_other /mnt\n"
21403 "\n"
21404 msgstr ""
21405
21406 #. type: =head2
21407 #: ../fuse/guestmount.pod:83
21408 msgid "Enabling FUSE"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fuse/guestmount.pod:85
21413 msgid ""
21414 "On some distros, you may need to add yourself to a special group "
21415 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21416 "Debian and derivatives."
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../fuse/guestmount.pod:89
21421 msgid ""
21422 "On other distros, no special group is required.  It is not necessary on "
21423 "Fedora or Red Hat Enterprise Linux."
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../fuse/guestmount.pod:100
21428 msgid "Add a block device or virtual machine image."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../fuse/guestmount.pod:123
21433 msgid "B<--dir-cache-timeout N>"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../fuse/guestmount.pod:125
21438 msgid ""
21439 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21440 "seconds.  The readdir cache [actually, there are several semi-independent "
21441 "caches] is populated after a readdir(2) call with the stat and extended "
21442 "attributes of the files in the directory, in anticipation that they will be "
21443 "requested soon after."
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../fuse/guestmount.pod:131
21448 msgid ""
21449 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21450 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21451 "requests, only cache existing ones."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fuse/guestmount.pod:151
21456 msgid ""
21457 "If you have untrusted raw-format guest disk images, you should use this "
21458 "option to specify the disk format.  This avoids a possible security problem "
21459 "with malicious guests (CVE-2010-3851).  See also "
21460 "L<guestfs(3)/guestfs_add_drive_opts>."
21461 msgstr ""
21462
21463 #. type: =item
21464 #: ../fuse/guestmount.pod:156
21465 msgid "B<--fuse-help>"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fuse/guestmount.pod:158
21470 msgid "Display help on special FUSE options (see I<-o> below)."
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../fuse/guestmount.pod:162
21475 msgid "Display brief help and exit."
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../fuse/guestmount.pod:186
21480 msgid ""
21481 "Mount the named partition or logical volume on the given mountpoint B<in the "
21482 "guest> (this has nothing to do with mountpoints in the host)."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../fuse/guestmount.pod:189
21487 msgid ""
21488 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21489 "something on C</>."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fuse/guestmount.pod:206
21494 msgid ""
21495 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21496 "unmounted.  If you specify this option, then we don't attempt to sync the "
21497 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21498 msgstr ""
21499
21500 #. type: =item
21501 #: ../fuse/guestmount.pod:211
21502 msgid "B<-o option>"
21503 msgstr ""
21504
21505 #. type: =item
21506 #: ../fuse/guestmount.pod:213
21507 msgid "B<--option option>"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fuse/guestmount.pod:215
21512 msgid "Pass extra options to FUSE."
21513 msgstr ""
21514
21515 #. type: textblock
21516 #: ../fuse/guestmount.pod:217
21517 msgid ""
21518 "To get a list of all the extra options supported by FUSE, use the command "
21519 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21520 "of them are a good idea."
21521 msgstr ""
21522
21523 #. type: verbatim
21524 #: ../fuse/guestmount.pod:221
21525 #, no-wrap
21526 msgid ""
21527 " guestmount --fuse-help\n"
21528 "\n"
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../fuse/guestmount.pod:223
21533 msgid "Some potentially useful FUSE options:"
21534 msgstr ""
21535
21536 #. type: =item
21537 #: ../fuse/guestmount.pod:227
21538 msgid "B<-o allow_other>"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fuse/guestmount.pod:229
21543 msgid "Allow other users to see the filesystem."
21544 msgstr ""
21545
21546 #. type: =item
21547 #: ../fuse/guestmount.pod:231
21548 msgid "B<-o attr_timeout=N>"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fuse/guestmount.pod:233
21553 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21554 msgstr ""
21555
21556 #. type: =item
21557 #: ../fuse/guestmount.pod:235
21558 msgid "B<-o kernel_cache>"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../fuse/guestmount.pod:237
21563 msgid ""
21564 "Allow the kernel to cache files (reduces the number of reads that have to go "
21565 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21566 "afford the extra memory usage."
21567 msgstr ""
21568
21569 #. type: =item
21570 #: ../fuse/guestmount.pod:241
21571 msgid "B<-o uid=N> B<-o gid=N>"
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../fuse/guestmount.pod:243
21576 msgid ""
21577 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21578 "the chosen values."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fuse/guestmount.pod:252
21583 msgid ""
21584 "Add devices and mount everything read-only.  Also disallow writes and make "
21585 "the disk appear read-only to FUSE."
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../fuse/guestmount.pod:255
21590 msgid ""
21591 "This is highly recommended if you are not going to edit the guest disk.  If "
21592 "the guest is running and this option is I<not> supplied, then there is a "
21593 "strong risk of disk corruption in the guest.  We try to prevent this from "
21594 "happening, but it is not always possible."
21595 msgstr ""
21596
21597 #. type: textblock
21598 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21599 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../fuse/guestmount.pod:264
21604 msgid "Enable SELinux support for the guest."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fuse/guestmount.pod:270
21609 msgid "Enable verbose messages from underlying libguestfs."
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../fuse/guestmount.pod:276
21614 msgid "Display the program version and exit."
21615 msgstr ""
21616
21617 #. type: textblock
21618 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21619 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21620 msgstr ""
21621
21622 #. type: =item
21623 #: ../fuse/guestmount.pod:289
21624 msgid "B<--trace>"
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../fuse/guestmount.pod:291
21629 msgid "Trace libguestfs calls and entry into each FUSE function."
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../fuse/guestmount.pod:293
21634 msgid "This also stops the daemon from forking into the background."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../fuse/guestmount.pod:319
21639 msgid ""
21640 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21641 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
21642 "L<http://fuse.sf.net/>."
21643 msgstr ""
21644
21645 #. type: textblock
21646 #: ../fuse/guestmount.pod:334
21647 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21648 msgstr ""
21649
21650 #. type: textblock
21651 #: ../inspector/virt-inspector.pod:5
21652 msgid ""
21653 "virt-inspector - Display operating system version and other information "
21654 "about a virtual machine"
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../inspector/virt-inspector.pod:9
21659 #, no-wrap
21660 msgid ""
21661 " virt-inspector [--options] -d domname\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: verbatim
21666 #: ../inspector/virt-inspector.pod:11
21667 #, no-wrap
21668 msgid ""
21669 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21670 "\n"
21671 msgstr ""
21672
21673 #. type: verbatim
21674 #: ../inspector/virt-inspector.pod:15
21675 #, no-wrap
21676 msgid ""
21677 " virt-inspector domname\n"
21678 "\n"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21683 #, no-wrap
21684 msgid ""
21685 " virt-inspector disk.img [disk.img ...]\n"
21686 "\n"
21687 msgstr ""
21688
21689 #. type: textblock
21690 #: ../inspector/virt-inspector.pod:21
21691 msgid ""
21692 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21693 "determine the version of the operating system and other information about "
21694 "the virtual machine."
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../inspector/virt-inspector.pod:25
21699 msgid "Virt-inspector produces XML output for feeding into other programs."
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../inspector/virt-inspector.pod:27
21704 msgid ""
21705 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21706 "the libvirt domain (see: C<virsh list --all>)."
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../inspector/virt-inspector.pod:30
21711 msgid ""
21712 "You can also run virt-inspector directly on disk images from a single "
21713 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21714 "has several block devices, in which case you should list several I<-a> "
21715 "options one after another, with the first corresponding to the guest's "
21716 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
21717 msgstr ""
21718
21719 #. type: textblock
21720 #: ../inspector/virt-inspector.pod:37
21721 msgid ""
21722 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21723 "keys and similar."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../inspector/virt-inspector.pod:40
21728 msgid ""
21729 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21730 "inspect several virtual machines, you have to run virt-inspector several "
21731 "times (for example, from a shell script for-loop)."
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../inspector/virt-inspector.pod:45
21736 msgid ""
21737 "Because virt-inspector needs direct access to guest images, it won't "
21738 "normally work over remote libvirt connections."
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../inspector/virt-inspector.pod:48
21743 msgid ""
21744 "All of the information available from virt-inspector is also available "
21745 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21746 "The same information can also be fetched using guestfish or via libguestfs "
21747 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21748 "WITH OTHER PROGRAMMING LANGUAGES>)."
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../inspector/virt-inspector.pod:81
21753 msgid ""
21754 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21755 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21756 "at all."
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../inspector/virt-inspector.pod:94
21761 msgid ""
21762 "When prompting for keys and passphrases, virt-inspector normally turns "
21763 "echoing off so you cannot see what you are typing.  If you are not worried "
21764 "about Tempest attacks and there is no one else in the room you can specify "
21765 "this flag to see what you are typing."
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../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
21770 msgid ""
21771 "Specify the format of disk images given on the command line.  If this is "
21772 "omitted then the format is autodetected from the content of the disk image."
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../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
21777 msgid ""
21778 "If disk images are requested from libvirt, then this program asks libvirt "
21779 "for this information.  In this case, the value of the format parameter is "
21780 "ignored."
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397 ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:137 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21785 msgid ""
21786 "If working with untrusted raw-format guest disk images, you should ensure "
21787 "the format is always specified."
21788 msgstr ""
21789
21790 #. type: =item
21791 #: ../inspector/virt-inspector.pod:135
21792 msgid "B<--xpath> query"
21793 msgstr ""
21794
21795 #. type: textblock
21796 #: ../inspector/virt-inspector.pod:137
21797 msgid ""
21798 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
21799 "In this mode virt-inspector simply runs an XPath query; all other inspection "
21800 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../inspector/virt-inspector.pod:146
21805 msgid "Previous versions of virt-inspector allowed you to write either:"
21806 msgstr ""
21807
21808 #. type: verbatim
21809 #: ../inspector/virt-inspector.pod:152
21810 #, no-wrap
21811 msgid ""
21812 " virt-inspector guestname\n"
21813 "\n"
21814 msgstr ""
21815
21816 #. type: =head1
21817 #: ../inspector/virt-inspector.pod:160
21818 msgid "XML FORMAT"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../inspector/virt-inspector.pod:162
21823 msgid ""
21824 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21825 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21826 "just an overview."
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../inspector/virt-inspector.pod:166
21831 msgid ""
21832 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21833 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21834 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21835 "which is vanishingly rare in real world VMs."
21836 msgstr ""
21837
21838 #. type: =head2
21839 #: ../inspector/virt-inspector.pod:171
21840 msgid "E<lt>operatingsystemE<gt>"
21841 msgstr ""
21842
21843 #. type: textblock
21844 #: ../inspector/virt-inspector.pod:173
21845 msgid ""
21846 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21847 "describe the operating system, its architecture, the descriptive \"product "
21848 "name\" string, the type of OS and so on, as in this example:"
21849 msgstr ""
21850
21851 #. type: verbatim
21852 #: ../inspector/virt-inspector.pod:177
21853 #, no-wrap
21854 msgid ""
21855 " <operatingsystems>\n"
21856 "   <operatingsystem>\n"
21857 "     <root>/dev/sda2</root>\n"
21858 "     <name>windows</name>\n"
21859 "     <arch>i386</arch>\n"
21860 "     <distro>windows</distro>\n"
21861 "     <product_name>Windows 7 Enterprise</product_name>\n"
21862 "     <product_variant>Client</product_variant>\n"
21863 "     <major_version>6</major_version>\n"
21864 "     <minor_version>1</minor_version>\n"
21865 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21866 "     <format>installed</format>\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: textblock
21871 #: ../inspector/virt-inspector.pod:190
21872 msgid ""
21873 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21874 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21875 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21876 "architecture.  The other fields are fairly self-explanatory, but because "
21877 "these fields are taken directly from the libguestfs inspection API you can "
21878 "find precise information from L<guestfs(3)/INSPECTION>."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../inspector/virt-inspector.pod:198
21883 msgid ""
21884 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21885 "of view of libguestfs (block devices may have completely different names "
21886 "inside the VM itself)."
21887 msgstr ""
21888
21889 #. type: =head2
21890 #: ../inspector/virt-inspector.pod:202
21891 msgid "E<lt>mountpointsE<gt>"
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../inspector/virt-inspector.pod:204
21896 msgid ""
21897 "Un*x-like guests typically have multiple filesystems which are mounted at "
21898 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21899 "element which looks like this:"
21900 msgstr ""
21901
21902 #. type: verbatim
21903 #: ../inspector/virt-inspector.pod:208
21904 #, no-wrap
21905 msgid ""
21906 " <operatingsystems>\n"
21907 "   <operatingsystem>\n"
21908 "     ...\n"
21909 "     <mountpoints>\n"
21910 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21911 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21912 "     </mountpoints>\n"
21913 "\n"
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../inspector/virt-inspector.pod:216
21918 msgid ""
21919 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21920 "and may have completely different names inside the guest.  Only mountable "
21921 "filesystems appear in this list, not things like swap devices."
21922 msgstr ""
21923
21924 #. type: =head2
21925 #: ../inspector/virt-inspector.pod:221
21926 msgid "E<lt>filesystemsE<gt>"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../inspector/virt-inspector.pod:223
21931 msgid ""
21932 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21933 "filesystems belonging to the guest, including swap and empty partitions.  "
21934 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21935 "this OS or shared with this OS and other OSes)."
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../inspector/virt-inspector.pod:229
21940 msgid "You might see something like this:"
21941 msgstr ""
21942
21943 #. type: verbatim
21944 #: ../inspector/virt-inspector.pod:231
21945 #, no-wrap
21946 msgid ""
21947 " <operatingsystems>\n"
21948 "   <operatingsystem>\n"
21949 "     ...\n"
21950 "     <filesystems>\n"
21951 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21952 "         <type>ext4</type>\n"
21953 "         <label>Fedora-13-x86_64</label>\n"
21954 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21955 "       </filesystem>\n"
21956 "\n"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../inspector/virt-inspector.pod:241
21961 msgid ""
21962 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21963 "the label, and the UUID."
21964 msgstr ""
21965
21966 #. type: =head2
21967 #: ../inspector/virt-inspector.pod:244
21968 msgid "E<lt>applicationsE<gt>"
21969 msgstr ""
21970
21971 #. type: textblock
21972 #: ../inspector/virt-inspector.pod:246
21973 msgid ""
21974 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21975 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21976 "machine."
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../inspector/virt-inspector.pod:250
21981 msgid ""
21982 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21983 "Typical values would be C<rpm> and C<deb>."
21984 msgstr ""
21985
21986 #. type: textblock
21987 #: ../inspector/virt-inspector.pod:253
21988 msgid ""
21989 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21990 "Typical values include C<yum>, C<up2date> and C<apt>"
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../inspector/virt-inspector.pod:256
21995 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21996 msgstr ""
21997
21998 #. type: verbatim
21999 #: ../inspector/virt-inspector.pod:259
22000 #, no-wrap
22001 msgid ""
22002 " <operatingsystems>\n"
22003 "   <operatingsystem>\n"
22004 "     ...\n"
22005 "     <applications>\n"
22006 "       <application>\n"
22007 "         <name>coreutils</name>\n"
22008 "         <version>8.5</version>\n"
22009 "         <release>1</release>\n"
22010 "       </application>\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: textblock
22015 #: ../inspector/virt-inspector.pod:269
22016 msgid ""
22017 "The version and release fields may not be available for some types guests.  "
22018 "Other fields are possible, see "
22019 "L<guestfs(3)/guestfs_inspect_list_applications>."
22020 msgstr ""
22021
22022 #. type: =head2
22023 #: ../inspector/virt-inspector.pod:273
22024 msgid "E<lt>drive_mappingsE<gt>"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../inspector/virt-inspector.pod:275
22029 msgid ""
22030 "For operating systems like Windows which use drive letters, virt-inspector "
22031 "is able to find out how drive letters map to filesystems."
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../inspector/virt-inspector.pod:279
22036 #, no-wrap
22037 msgid ""
22038 " <operatingsystems>\n"
22039 "   <operatingsystem>\n"
22040 "     ...\n"
22041 "     <drive_mappings>\n"
22042 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22043 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22044 "     </drive_mappings>\n"
22045 "\n"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../inspector/virt-inspector.pod:287
22050 msgid ""
22051 "In the example above, drive C maps to the filesystem on the second partition "
22052 "on the first disk, and drive E maps to the filesystem on the first partition "
22053 "on the second disk."
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../inspector/virt-inspector.pod:291
22058 msgid ""
22059 "Note that this only covers permanent local filesystem mappings, not things "
22060 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22061 "here."
22062 msgstr ""
22063
22064 #. type: =head2
22065 #: ../inspector/virt-inspector.pod:295
22066 msgid "E<lt>iconE<gt>"
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../inspector/virt-inspector.pod:297
22071 msgid ""
22072 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22073 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22074 "very large and high quality."
22075 msgstr ""
22076
22077 #. type: verbatim
22078 #: ../inspector/virt-inspector.pod:301
22079 #, no-wrap
22080 msgid ""
22081 " <operatingsystems>\n"
22082 "   <operatingsystem>\n"
22083 "     ...\n"
22084 "     <icon>\n"
22085 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22086 "       [... many lines of base64 data ...]\n"
22087 "     </icon>\n"
22088 "\n"
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../inspector/virt-inspector.pod:309
22093 msgid ""
22094 "To display the icon, you have to extract it and convert the base64 data back "
22095 "to a binary file.  Use an XPath query or simply an editor to extract the "
22096 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22097 "to a PNG file:"
22098 msgstr ""
22099
22100 #. type: verbatim
22101 #: ../inspector/virt-inspector.pod:314
22102 #, no-wrap
22103 msgid ""
22104 " base64 -i -d < icon.data > icon.png\n"
22105 "\n"
22106 msgstr ""
22107
22108 #. type: =head2
22109 #: ../inspector/virt-inspector.pod:316
22110 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../inspector/virt-inspector.pod:318
22115 msgid ""
22116 "Virt-inspector can detect some operating system installers on install disks, "
22117 "live CDs, bootable USB keys and more."
22118 msgstr ""
22119
22120 #. type: textblock
22121 #: ../inspector/virt-inspector.pod:321
22122 msgid ""
22123 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22124 "fields may be present to indicate a live CD, network installer, or one part "
22125 "of a multipart CD.  For example:"
22126 msgstr ""
22127
22128 #. type: verbatim
22129 #: ../inspector/virt-inspector.pod:325
22130 #, no-wrap
22131 msgid ""
22132 " <operatingsystems>\n"
22133 "   <operatingsystem>\n"
22134 "     <root>/dev/sda</root>\n"
22135 "     <name>linux</name>\n"
22136 "     <arch>i386</arch>\n"
22137 "     <distro>ubuntu</distro>\n"
22138 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22139 "Meerkat&quot;</product_name>\n"
22140 "     <major_version>10</major_version>\n"
22141 "     <minor_version>10</minor_version>\n"
22142 "     <format>installer</format>\n"
22143 "     <live/>\n"
22144 "\n"
22145 msgstr ""
22146
22147 #. type: =head1
22148 #: ../inspector/virt-inspector.pod:337
22149 msgid "XPATH QUERIES"
22150 msgstr ""
22151
22152 #. type: textblock
22153 #: ../inspector/virt-inspector.pod:339
22154 msgid ""
22155 "Virt-inspector includes built in support for running XPath queries.  The "
22156 "reason for including XPath support directly in virt-inspector is simply that "
22157 "there are no good and widely available command line programs that can do "
22158 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22159 "available on Red Hat Enterprise Linux."
22160 msgstr ""
22161
22162 #. type: textblock
22163 #: ../inspector/virt-inspector.pod:346
22164 msgid ""
22165 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22166 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22167 "result on stdout.  All other inspection features are disabled in this mode."
22168 msgstr ""
22169
22170 #. type: verbatim
22171 #: ../inspector/virt-inspector.pod:353
22172 #, no-wrap
22173 msgid ""
22174 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22175 " <filesystems>\n"
22176 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22177 "        <type>ext4</type>\n"
22178 " [...]\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: verbatim
22183 #: ../inspector/virt-inspector.pod:359
22184 #, no-wrap
22185 msgid ""
22186 " $ virt-inspector -d Guest | \\\n"
22187 "     virt-inspector --xpath "
22188 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22189 " ext4\n"
22190 "\n"
22191 msgstr ""
22192
22193 #. type: verbatim
22194 #: ../inspector/virt-inspector.pod:363
22195 #, no-wrap
22196 msgid ""
22197 " $ virt-inspector -d Guest | \\\n"
22198 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22199 " [displays the guest icon, if there is one]\n"
22200 "\n"
22201 msgstr ""
22202
22203 #. type: =head1
22204 #: ../inspector/virt-inspector.pod:374
22205 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../inspector/virt-inspector.pod:376
22210 msgid ""
22211 "Early versions of libguestfs shipped with a different virt-inspector program "
22212 "written in Perl (the current version is written in C).  The XML output of "
22213 "the Perl virt-inspector was different and it could also output in other "
22214 "formats like text."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../inspector/virt-inspector.pod:381
22219 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../inspector/virt-inspector.pod:384
22224 msgid ""
22225 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22226 "versions of virt-inspector with different names:"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../inspector/virt-inspector.pod:387
22231 #, no-wrap
22232 msgid ""
22233 " virt-inspector     Old Perl version.\n"
22234 " virt-inspector2    New C version.\n"
22235 "\n"
22236 msgstr ""
22237
22238 #. type: textblock
22239 #: ../inspector/virt-inspector.pod:397
22240 msgid ""
22241 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22242 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../inspector/virt-inspector.pod:414
22247 msgid "Matthew Booth L<mbooth@redhat.com>"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../java/examples/guestfs-java.pod:5
22252 msgid "guestfs-java - How to use libguestfs from Java"
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../java/examples/guestfs-java.pod:9
22257 #, no-wrap
22258 msgid ""
22259 " import com.redhat.et.libguestfs.*;\n"
22260 " \n"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../java/examples/guestfs-java.pod:11
22265 #, no-wrap
22266 msgid ""
22267 " GuestFS g = new GuestFS ();\n"
22268 " g.add_drive_opts (\"disk.img\", null);\n"
22269 " g.launch ();\n"
22270 "\n"
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../java/examples/guestfs-java.pod:17
22275 msgid ""
22276 "This manual page documents how to call libguestfs from the Java programming "
22277 "language.  This page just documents the differences from the C API and gives "
22278 "some examples.  If you are not familiar with using libguestfs, you also need "
22279 "to read L<guestfs(3)>."
22280 msgstr ""
22281
22282 #. type: =head2
22283 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22284 msgid "CLOSING THE HANDLE"
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../java/examples/guestfs-java.pod:24
22289 msgid ""
22290 "The handle is closed when it is reaped by the garbage collector.  Because "
22291 "libguestfs handles include a lot of state, it is also possible to close (and "
22292 "hence free) them explicitly by calling the C<close> method."
22293 msgstr ""
22294
22295 #. type: =head2
22296 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22297 msgid "EXCEPTIONS"
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../java/examples/guestfs-java.pod:31
22302 msgid ""
22303 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22304 "exception.  This has a single parameter which is the error message (a "
22305 "C<String>)."
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../java/examples/guestfs-java.pod:35
22310 msgid "Calling any method on a closed handle raises the same exception."
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../java/examples/guestfs-java.pod:47
22315 msgid ""
22316 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22317 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22318 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22319 "L<http://caml.inria.fr/>."
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../ocaml/examples/guestfs-ocaml.pod:5
22324 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../ocaml/examples/guestfs-ocaml.pod:9
22329 msgid "Module style:"
22330 msgstr ""
22331
22332 #. type: verbatim
22333 #: ../ocaml/examples/guestfs-ocaml.pod:11
22334 #, no-wrap
22335 msgid ""
22336 " let g = Guestfs.create () in\n"
22337 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22338 " Guestfs.launch g;\n"
22339 "\n"
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../ocaml/examples/guestfs-ocaml.pod:15
22344 msgid "Object-oriented style:"
22345 msgstr ""
22346
22347 #. type: verbatim
22348 #: ../ocaml/examples/guestfs-ocaml.pod:17
22349 #, no-wrap
22350 msgid ""
22351 " let g = new Guestfs.guestfs () in\n"
22352 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22353 " g#launch ();\n"
22354 "\n"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../ocaml/examples/guestfs-ocaml.pod:21
22359 #, no-wrap
22360 msgid ""
22361 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22362 "or:\n"
22363 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../ocaml/examples/guestfs-ocaml.pod:27
22369 msgid ""
22370 "This manual page documents how to call libguestfs from the OCaml programming "
22371 "language.  This page just documents the differences from the C API and gives "
22372 "some examples.  If you are not familiar with using libguestfs, you also need "
22373 "to read L<guestfs(3)>."
22374 msgstr ""
22375
22376 #. type: =head2
22377 #: ../ocaml/examples/guestfs-ocaml.pod:32
22378 msgid "PROGRAMMING STYLES"
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../ocaml/examples/guestfs-ocaml.pod:34
22383 msgid ""
22384 "There are two different programming styles supported by the OCaml bindings.  "
22385 "You can use a module style, with each C function mapped to an OCaml "
22386 "function:"
22387 msgstr ""
22388
22389 #. type: verbatim
22390 #: ../ocaml/examples/guestfs-ocaml.pod:38
22391 #, no-wrap
22392 msgid ""
22393 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22394 "\n"
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../ocaml/examples/guestfs-ocaml.pod:40
22399 msgid "becomes:"
22400 msgstr ""
22401
22402 #. type: verbatim
22403 #: ../ocaml/examples/guestfs-ocaml.pod:42
22404 #, no-wrap
22405 msgid ""
22406 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22407 "\n"
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../ocaml/examples/guestfs-ocaml.pod:44
22412 msgid ""
22413 "Alternately you can use an object-oriented style, calling methods on the "
22414 "class C<Guestfs.guestfs>:"
22415 msgstr ""
22416
22417 #. type: verbatim
22418 #: ../ocaml/examples/guestfs-ocaml.pod:47
22419 #, no-wrap
22420 msgid ""
22421 " method set_verbose : bool -> unit\n"
22422 "\n"
22423 msgstr ""
22424
22425 #. type: textblock
22426 #: ../ocaml/examples/guestfs-ocaml.pod:49
22427 msgid ""
22428 "The object-oriented style is usually briefer, and the minor performance "
22429 "penalty isn't noticable in the general overhead of performing libguestfs "
22430 "functions."
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../ocaml/examples/guestfs-ocaml.pod:55
22435 msgid ""
22436 "The handle is closed when it is reaped by the garbage collector.  Because "
22437 "libguestfs handles include a lot of state, it is also possible to close (and "
22438 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22439 "method."
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../ocaml/examples/guestfs-ocaml.pod:62
22444 msgid ""
22445 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22446 "exception.  This has a single parameter which is the error message (a "
22447 "string)."
22448 msgstr ""
22449
22450 #. type: textblock
22451 #: ../ocaml/examples/guestfs-ocaml.pod:66
22452 msgid ""
22453 "Calling any function/method on a closed handle raises "
22454 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
22455 "that you called."
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../ocaml/examples/guestfs-ocaml.pod:80
22460 msgid ""
22461 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22462 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22463 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22464 "L<http://caml.inria.fr/>."
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../perl/examples/guestfs-perl.pod:5
22469 msgid "guestfs-perl - How to use libguestfs from Perl"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../perl/examples/guestfs-perl.pod:9
22474 #, no-wrap
22475 msgid ""
22476 " use Sys::Guestfs;\n"
22477 " \n"
22478 msgstr ""
22479
22480 #. type: verbatim
22481 #: ../perl/examples/guestfs-perl.pod:11
22482 #, no-wrap
22483 msgid ""
22484 " my $h = Sys::Guestfs->new ();\n"
22485 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22486 " $h->launch ();\n"
22487 " $h->mount_options ('', '/dev/sda1', '/');\n"
22488 " $h->touch ('/hello');\n"
22489 " $h->sync ();\n"
22490 "\n"
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../perl/examples/guestfs-perl.pod:20
22495 msgid ""
22496 "This manual page documents how to call libguestfs from the Perl programming "
22497 "language.  This page just documents the differences from the C API and gives "
22498 "some examples.  If you are not familiar with using libguestfs, you also need "
22499 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22500 msgstr ""
22501
22502 #. type: =head2
22503 #: ../perl/examples/guestfs-perl.pod:26
22504 msgid "ERRORS"
22505 msgstr ""
22506
22507 #. type: textblock
22508 #: ../perl/examples/guestfs-perl.pod:28
22509 msgid ""
22510 "Errors from libguestfs functions turn into calls to C<croak> (see "
22511 "L<Carp(3)>)."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../perl/examples/guestfs-perl.pod:41
22516 msgid ""
22517 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
22518 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
22519 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
22520 "L<http://libguestfs.org/>."
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../python/examples/guestfs-python.pod:5
22525 msgid "guestfs-python - How to use libguestfs from Python"
22526 msgstr ""
22527
22528 #. type: verbatim
22529 #: ../python/examples/guestfs-python.pod:9
22530 #, no-wrap
22531 msgid ""
22532 " import guestfs\n"
22533 " g = guestfs.GuestFS ()\n"
22534 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22535 " g.launch\n"
22536 "\n"
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../python/examples/guestfs-python.pod:16
22541 msgid ""
22542 "This manual page documents how to call libguestfs from the Python "
22543 "programming language.  This page just documents the differences from the C "
22544 "API and gives some examples.  If you are not familiar with using libguestfs, "
22545 "you also need to read L<guestfs(3)>."
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../python/examples/guestfs-python.pod:23
22550 msgid ""
22551 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22552 "single string argument which is the error message."
22553 msgstr ""
22554
22555 #. type: =head2
22556 #: ../python/examples/guestfs-python.pod:26
22557 msgid "MORE DOCUMENTATION"
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../python/examples/guestfs-python.pod:28
22562 msgid "Type:"
22563 msgstr ""
22564
22565 #. type: verbatim
22566 #: ../python/examples/guestfs-python.pod:30
22567 #, no-wrap
22568 msgid ""
22569 " $ python\n"
22570 " >>> import guestfs\n"
22571 " >>> help (guestfs)\n"
22572 "\n"
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../python/examples/guestfs-python.pod:44
22577 msgid ""
22578 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22579 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22580 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22581 msgstr ""
22582
22583 #. type: textblock
22584 #: ../rescue/virt-rescue.pod:5
22585 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22586 msgstr ""
22587
22588 #. type: verbatim
22589 #: ../rescue/virt-rescue.pod:9
22590 #, no-wrap
22591 msgid ""
22592 " virt-rescue [--options] -d domname\n"
22593 "\n"
22594 msgstr ""
22595
22596 #. type: verbatim
22597 #: ../rescue/virt-rescue.pod:11
22598 #, no-wrap
22599 msgid ""
22600 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22601 "\n"
22602 msgstr ""
22603
22604 #. type: verbatim
22605 #: ../rescue/virt-rescue.pod:15
22606 #, no-wrap
22607 msgid ""
22608 " virt-rescue [--options] domname\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: verbatim
22613 #: ../rescue/virt-rescue.pod:17
22614 #, no-wrap
22615 msgid ""
22616 " virt-rescue [--options] disk.img [disk.img ...]\n"
22617 "\n"
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../rescue/virt-rescue.pod:21
22622 msgid ""
22623 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22624 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22625 "you from doing this, but doesn't catch all cases."
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../rescue/virt-rescue.pod:25
22630 msgid ""
22631 "However if you use the I<--ro> (read only) option, then you can attach a "
22632 "shell to a live virtual machine.  The results might be strange or "
22633 "inconsistent at times but you won't get disk corruption."
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../rescue/virt-rescue.pod:31
22638 msgid ""
22639 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22640 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22641 "recovery tools which you can use to examine or rescue a virtual machine or "
22642 "disk image."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../rescue/virt-rescue.pod:36
22647 msgid ""
22648 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22649 "on disk image(s):"
22650 msgstr ""
22651
22652 #. type: verbatim
22653 #: ../rescue/virt-rescue.pod:39
22654 #, no-wrap
22655 msgid ""
22656 " virt-rescue -d GuestName\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: verbatim
22661 #: ../rescue/virt-rescue.pod:41
22662 #, no-wrap
22663 msgid ""
22664 " virt-rescue --ro -a /path/to/disk.img\n"
22665 "\n"
22666 msgstr ""
22667
22668 #. type: verbatim
22669 #: ../rescue/virt-rescue.pod:43
22670 #, no-wrap
22671 msgid ""
22672 " virt-rescue -a /dev/sdc\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: textblock
22677 #: ../rescue/virt-rescue.pod:45
22678 msgid "For live VMs you I<must> use the --ro option."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../rescue/virt-rescue.pod:47
22683 msgid ""
22684 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22685 "in an interactive bash shell where you can use many ordinary Linux "
22686 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22687 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22688 "is an empty directory called C</sysroot> where you can mount filesystems."
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../rescue/virt-rescue.pod:54
22693 msgid ""
22694 "In the example below, we list logical volumes, then choose one to mount "
22695 "under C</sysroot>:"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../rescue/virt-rescue.pod:57
22700 #, no-wrap
22701 msgid ""
22702 " ><rescue> lvs\n"
22703 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22704 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22705 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22706 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22707 " ><rescue> ls /sysroot\n"
22708 "\n"
22709 msgstr ""
22710
22711 #. type: textblock
22712 #: ../rescue/virt-rescue.pod:64
22713 msgid ""
22714 "If you don't know what filesystems are available on the virtual machine then "
22715 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../rescue/virt-rescue.pod:70
22720 msgid ""
22721 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22722 "virtual machine.  For example you can use it on a blank file if you want to "
22723 "partition that file (although we would recommend using L<guestfish(1)> "
22724 "instead as it is more suitable for this purpose).  You can even use "
22725 "virt-rescue on things like SD cards."
22726 msgstr ""
22727
22728 #. type: textblock
22729 #: ../rescue/virt-rescue.pod:76
22730 msgid ""
22731 "Virt-rescue does not require root.  You only need to run it as root if you "
22732 "need root to open the disk image."
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../rescue/virt-rescue.pod:79
22737 msgid ""
22738 "This tool is just designed for quick interactive hacking on a virtual "
22739 "machine.  For more structured access to a virtual machine disk image, you "
22740 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22741 "make scripted changes to guests, use L<guestfish(1)>."
22742 msgstr ""
22743
22744 #. type: =item
22745 #: ../rescue/virt-rescue.pod:103
22746 msgid "B<--append kernelopts>"
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../rescue/virt-rescue.pod:105
22751 msgid "Pass additional options to the rescue kernel."
22752 msgstr ""
22753
22754 #. type: verbatim
22755 #: ../rescue/virt-rescue.pod:135
22756 #, no-wrap
22757 msgid ""
22758 " virt-rescue --format=raw -a disk.img\n"
22759 "\n"
22760 msgstr ""
22761
22762 #. type: verbatim
22763 #: ../rescue/virt-rescue.pod:139
22764 #, no-wrap
22765 msgid ""
22766 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: =item
22771 #: ../rescue/virt-rescue.pod:148
22772 msgid "B<-m MB>"
22773 msgstr ""
22774
22775 #. type: =item
22776 #: ../rescue/virt-rescue.pod:150
22777 msgid "B<--memsize MB>"
22778 msgstr ""
22779
22780 #. type: textblock
22781 #: ../rescue/virt-rescue.pod:152
22782 msgid ""
22783 "Change the amount of memory allocated to the rescue system.  The default is "
22784 "set by libguestfs and is small but adequate for running system tools.  The "
22785 "occasional program might need more memory.  The parameter is specified in "
22786 "megabytes."
22787 msgstr ""
22788
22789 #. type: =item
22790 #: ../rescue/virt-rescue.pod:157
22791 msgid "B<--network>"
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../rescue/virt-rescue.pod:159
22796 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../rescue/virt-rescue.pod:165
22801 msgid "Open the image read-only."
22802 msgstr ""
22803
22804 #. type: textblock
22805 #: ../rescue/virt-rescue.pod:175
22806 msgid ""
22807 "Enable SELinux in the rescue appliance.  You should read "
22808 "L<guestfs(3)/SELINUX> before using this option."
22809 msgstr ""
22810
22811 #. type: =item
22812 #: ../rescue/virt-rescue.pod:178
22813 msgid "B<--smp> N"
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../rescue/virt-rescue.pod:180
22818 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../rescue/virt-rescue.pod:198
22823 msgid ""
22824 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22825 "are done read-write."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../rescue/virt-rescue.pod:211
22830 msgid "Previous versions of virt-rescue allowed you to write either:"
22831 msgstr ""
22832
22833 #. type: verbatim
22834 #: ../rescue/virt-rescue.pod:213
22835 #, no-wrap
22836 msgid ""
22837 " virt-rescue disk.img [disk.img ...]\n"
22838 "\n"
22839 msgstr ""
22840
22841 #. type: verbatim
22842 #: ../rescue/virt-rescue.pod:217
22843 #, no-wrap
22844 msgid ""
22845 " virt-rescue guestname\n"
22846 "\n"
22847 msgstr ""
22848
22849 #. type: =head1
22850 #: ../rescue/virt-rescue.pod:225
22851 msgid "NETWORK"
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../rescue/virt-rescue.pod:227
22856 msgid ""
22857 "Adding the I<--network> option enables QEMU user networking in the rescue "
22858 "appliance.  There are some differences between user networking and ordinary "
22859 "networking:"
22860 msgstr ""
22861
22862 #. type: =item
22863 #: ../rescue/virt-rescue.pod:233
22864 msgid "ping does not work"
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../rescue/virt-rescue.pod:235
22869 msgid ""
22870 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22871 "send the ping packets, and because virt-rescue must be able to run as "
22872 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
22873 "command.  The ping command will appear to resolve addresses but will not be "
22874 "able to send or receive any packets.  This does not mean that the network is "
22875 "not working."
22876 msgstr ""
22877
22878 #. type: =item
22879 #: ../rescue/virt-rescue.pod:242
22880 msgid "cannot receive connections"
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../rescue/virt-rescue.pod:244
22885 msgid "QEMU user networking cannot receive incoming connections."
22886 msgstr ""
22887
22888 #. type: =item
22889 #: ../rescue/virt-rescue.pod:246
22890 msgid "making TCP connections"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../rescue/virt-rescue.pod:248
22895 msgid ""
22896 "The virt-rescue appliance needs to be small and so does not include many "
22897 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22898 "make TCP connections from the shell using the magical "
22899 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22900 msgstr ""
22901
22902 #. type: verbatim
22903 #: ../rescue/virt-rescue.pod:253
22904 #, no-wrap
22905 msgid ""
22906 " exec 3<>/dev/tcp/redhat.com/80\n"
22907 " echo \"GET /\" >&3\n"
22908 " cat <&3\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../rescue/virt-rescue.pod:257
22914 msgid "See L<bash(1)> for more details."
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../rescue/virt-rescue.pod:263
22919 msgid ""
22920 "Several environment variables affect virt-rescue.  See "
22921 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../rescue/virt-rescue.pod:290
22926 msgid ""
22927 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22928 "L<http://libguestfs.org/>."
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../resize/virt-resize.pod:5
22933 msgid "virt-resize - Resize a virtual machine disk"
22934 msgstr ""
22935
22936 #. type: verbatim
22937 #: ../resize/virt-resize.pod:9
22938 #, no-wrap
22939 msgid ""
22940 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22941 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22942 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22943 "\n"
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../resize/virt-resize.pod:15
22948 msgid ""
22949 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22950 "larger or smaller overall, and resizing or deleting any partitions contained "
22951 "within."
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../resize/virt-resize.pod:19
22956 msgid ""
22957 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22958 "not> be used on live virtual machines - for consistent results, shut the "
22959 "virtual machine down before resizing it."
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../resize/virt-resize.pod:23
22964 msgid ""
22965 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22966 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22967 msgstr ""
22968
22969 #. type: =item
22970 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:208 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
22971 msgid "1."
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../resize/virt-resize.pod:33
22976 msgid ""
22977 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22978 "fill the extra 5GB of space."
22979 msgstr ""
22980
22981 #. type: verbatim
22982 #: ../resize/virt-resize.pod:36
22983 #, no-wrap
22984 msgid ""
22985 " virt-filesystems --long -h --all -a olddisk\n"
22986 " \n"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../resize/virt-resize.pod:38
22991 #, no-wrap
22992 msgid ""
22993 " truncate -r olddisk newdisk\n"
22994 " truncate -s +5G newdisk\n"
22995 " \n"
22996 msgstr ""
22997
22998 #. type: verbatim
22999 #: ../resize/virt-resize.pod:41
23000 #, no-wrap
23001 msgid ""
23002 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23003 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23004 "\n"
23005 msgstr ""
23006
23007 #. type: =item
23008 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:215 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23009 msgid "2."
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../resize/virt-resize.pod:46
23014 msgid ""
23015 "As above, but make the /boot partition 200MB bigger, while giving the "
23016 "remaining space to /dev/sda2:"
23017 msgstr ""
23018
23019 #. type: verbatim
23020 #: ../resize/virt-resize.pod:49
23021 #, no-wrap
23022 msgid ""
23023 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23024 "   olddisk newdisk\n"
23025 "\n"
23026 msgstr ""
23027
23028 #. type: =item
23029 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23030 msgid "3."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../resize/virt-resize.pod:54
23035 msgid ""
23036 "As in the first example, but expand a logical volume as the final step.  "
23037 "This is what you would typically use for Linux guests that use LVM:"
23038 msgstr ""
23039
23040 #. type: verbatim
23041 #: ../resize/virt-resize.pod:58
23042 #, no-wrap
23043 msgid ""
23044 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23045 "   olddisk newdisk\n"
23046 "\n"
23047 msgstr ""
23048
23049 #. type: =item
23050 #: ../resize/virt-resize.pod:61
23051 msgid "4."
23052 msgstr ""
23053
23054 #. type: textblock
23055 #: ../resize/virt-resize.pod:63
23056 msgid ""
23057 "As in the first example, but the output format will be qcow2 instead of a "
23058 "raw disk:"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../resize/virt-resize.pod:66
23063 #, no-wrap
23064 msgid ""
23065 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23066 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23067 "\n"
23068 msgstr ""
23069
23070 #. type: =head1
23071 #: ../resize/virt-resize.pod:71
23072 msgid "DETAILED USAGE"
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../resize/virt-resize.pod:73
23077 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23078 msgstr ""
23079
23080 #. type: =item
23081 #: ../resize/virt-resize.pod:77
23082 msgid "1. Shut down the virtual machine"
23083 msgstr ""
23084
23085 #. type: =item
23086 #: ../resize/virt-resize.pod:79
23087 msgid "2. Locate input disk image"
23088 msgstr ""
23089
23090 #. type: textblock
23091 #: ../resize/virt-resize.pod:81
23092 msgid ""
23093 "Locate the input disk image (ie. the file or device on the host containing "
23094 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23095 "dumpxml> like this to find the disk image name:"
23096 msgstr ""
23097
23098 #. type: verbatim
23099 #: ../resize/virt-resize.pod:85
23100 #, no-wrap
23101 msgid ""
23102 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23103 " Found 1 nodes:\n"
23104 " -- NODE --\n"
23105 " <source dev=\"/dev/vg/lv_guest\" />\n"
23106 "\n"
23107 msgstr ""
23108
23109 #. type: =item
23110 #: ../resize/virt-resize.pod:90
23111 msgid "3. Look at current sizing"
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../resize/virt-resize.pod:92
23116 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../resize/virt-resize.pod:95
23121 #, no-wrap
23122 msgid ""
23123 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23124 " Name       Type       Size  Parent\n"
23125 " /dev/sda1  partition  101M  /dev/sda\n"
23126 " /dev/sda2  partition  7.9G  /dev/sda\n"
23127 " /dev/sda   device     8.0G  -\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: textblock
23132 #: ../resize/virt-resize.pod:101
23133 msgid ""
23134 "(This example is a virtual machine with an 8 GB disk which we would like to "
23135 "expand up to 10 GB)."
23136 msgstr ""
23137
23138 #. type: =item
23139 #: ../resize/virt-resize.pod:104
23140 msgid "4. Create output disk"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:106
23145 msgid ""
23146 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23147 "to store the resized output disk."
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../resize/virt-resize.pod:109
23152 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23153 msgstr ""
23154
23155 #. type: verbatim
23156 #: ../resize/virt-resize.pod:112
23157 #, no-wrap
23158 msgid ""
23159 " # rm -f outdisk\n"
23160 " # truncate -s 10G outdisk\n"
23161 "\n"
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../resize/virt-resize.pod:115
23166 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../resize/virt-resize.pod:117
23171 #, no-wrap
23172 msgid ""
23173 " # lvcreate -L 10G -n lv_name vg_name\n"
23174 "\n"
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../resize/virt-resize.pod:119
23179 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23180 msgstr ""
23181
23182 #. type: verbatim
23183 #: ../resize/virt-resize.pod:121
23184 #, no-wrap
23185 msgid ""
23186 " # virsh pool-list\n"
23187 " # virsh vol-create-as poolname newvol 10G\n"
23188 "\n"
23189 msgstr ""
23190
23191 #. type: =item
23192 #: ../resize/virt-resize.pod:124
23193 msgid "5. Resize"
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../resize/virt-resize.pod:126
23198 msgid ""
23199 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23200 "file) and the output disk.  The output disk is the one created in the "
23201 "previous step."
23202 msgstr ""
23203
23204 #. type: verbatim
23205 #: ../resize/virt-resize.pod:130
23206 #, no-wrap
23207 msgid ""
23208 " # virt-resize indisk outdisk\n"
23209 "\n"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:132
23214 msgid ""
23215 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23216 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23217 "larger, then an extra, empty partition is created at the end of the disk "
23218 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23219 "error."
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../resize/virt-resize.pod:138
23224 msgid ""
23225 "More realistically you'd want to expand existing partitions in the disk "
23226 "image by passing extra options (for the full list see the L</OPTIONS> "
23227 "section below)."
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../resize/virt-resize.pod:142
23232 msgid ""
23233 "L</--expand> is the most useful option.  It expands the named partition "
23234 "within the disk to fill any extra space:"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../resize/virt-resize.pod:145
23239 #, no-wrap
23240 msgid ""
23241 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23242 "\n"
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../resize/virt-resize.pod:147
23247 msgid ""
23248 "(In this case, an extra partition is I<not> created at the end of the disk, "
23249 "because there will be no unused space)."
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../resize/virt-resize.pod:150
23254 msgid ""
23255 "L</--resize> is the other commonly used option.  The following would "
23256 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23257 "rest of the available space:"
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../resize/virt-resize.pod:154
23262 #, no-wrap
23263 msgid ""
23264 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23265 "     indisk outdisk\n"
23266 "\n"
23267 msgstr ""
23268
23269 #. type: textblock
23270 #: ../resize/virt-resize.pod:157
23271 msgid ""
23272 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23273 "if virt-resize knows how, it will resize the contents, the equivalent of "
23274 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23275 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23276 "filesystems, so you would have to online resize them after booting the "
23277 "guest."
23278 msgstr ""
23279
23280 #. type: textblock
23281 #: ../resize/virt-resize.pod:164
23282 msgid "Other options are covered below."
23283 msgstr ""
23284
23285 #. type: =item
23286 #: ../resize/virt-resize.pod:166
23287 msgid "6. Test"
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../resize/virt-resize.pod:168
23292 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../resize/virt-resize.pod:170
23297 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23298 msgstr ""
23299
23300 #. type: verbatim
23301 #: ../resize/virt-resize.pod:172
23302 #, no-wrap
23303 msgid ""
23304 " # virsh edit guestname\n"
23305 "\n"
23306 msgstr ""
23307
23308 #. type: textblock
23309 #: ../resize/virt-resize.pod:174
23310 msgid ""
23311 "Change E<lt>source ...E<gt>, see "
23312 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../resize/virt-resize.pod:177
23317 msgid "Then start up the domain with the new, resized disk:"
23318 msgstr ""
23319
23320 #. type: verbatim
23321 #: ../resize/virt-resize.pod:179
23322 #, no-wrap
23323 msgid ""
23324 " # virsh start guestname\n"
23325 "\n"
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../resize/virt-resize.pod:181
23330 msgid ""
23331 "and check that it still works.  See also the L</NOTES> section below for "
23332 "additional information."
23333 msgstr ""
23334
23335 #. type: =item
23336 #: ../resize/virt-resize.pod:184
23337 msgid "7. Resize LVs etc inside the guest"
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../resize/virt-resize.pod:186
23342 msgid "(This can also be done offline using L<guestfish(1)>)"
23343 msgstr ""
23344
23345 #. type: textblock
23346 #: ../resize/virt-resize.pod:188
23347 msgid ""
23348 "Once the guest has booted you should see the new space available, at least "
23349 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23350 "may need to resize LVs inside PVs, and also resize filesystem types that "
23351 "virt-resize does not know how to expand."
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../resize/virt-resize.pod:195
23356 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../resize/virt-resize.pod:197
23361 msgid ""
23362 "Shrinking is somewhat more complex than expanding, and only an overview is "
23363 "given here."
23364 msgstr ""
23365
23366 #. type: textblock
23367 #: ../resize/virt-resize.pod:200
23368 msgid ""
23369 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23370 "filesystems).  The user has to shrink content before passing the disk image "
23371 "to virt-resize, and virt-resize will check that the content has been shrunk "
23372 "properly."
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../resize/virt-resize.pod:205
23377 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23378 msgstr ""
23379
23380 #. type: textblock
23381 #: ../resize/virt-resize.pod:207
23382 msgid ""
23383 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23384 "steps 3 and 4 above to allocate a new disk image."
23385 msgstr ""
23386
23387 #. type: textblock
23388 #: ../resize/virt-resize.pod:210
23389 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23390 msgstr ""
23391
23392 #. type: =head2
23393 #: ../resize/virt-resize.pod:213
23394 msgid "IGNORING OR DELETING PARTITIONS"
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../resize/virt-resize.pod:215
23399 msgid ""
23400 "virt-resize also gives a convenient way to ignore or delete partitions when "
23401 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23402 "up the copy where you don't care about the existing contents of a "
23403 "partition.  Deleting a partition removes it completely, but note that it "
23404 "also renumbers any partitions after the one which is deleted, which can "
23405 "leave some guests unbootable."
23406 msgstr ""
23407
23408 #. type: =head2
23409 #: ../resize/virt-resize.pod:222
23410 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23411 msgstr ""
23412
23413 #. type: textblock
23414 #: ../resize/virt-resize.pod:224
23415 msgid ""
23416 "If the input disk is in qcow2 format, then you may prefer that the output is "
23417 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23418 "the fly.  The output format is simply determined by the format of the empty "
23419 "output container that you provide.  Thus to create qcow2 output, use:"
23420 msgstr ""
23421
23422 #. type: verbatim
23423 #: ../resize/virt-resize.pod:230
23424 #, no-wrap
23425 msgid ""
23426 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23427 "\n"
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../resize/virt-resize.pod:232
23432 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:234
23437 msgid "Similarly, to get non-sparse raw output use:"
23438 msgstr ""
23439
23440 #. type: verbatim
23441 #: ../resize/virt-resize.pod:236
23442 #, no-wrap
23443 msgid ""
23444 " fallocate -l size outdisk\n"
23445 "\n"
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../resize/virt-resize.pod:238
23450 msgid ""
23451 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
23452 "if=/dev/zero of=outdisk bs=1M count=..>)"
23453 msgstr ""
23454
23455 #. type: =head2
23456 #: ../resize/virt-resize.pod:241
23457 msgid "LOGICAL PARTITIONS"
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../resize/virt-resize.pod:243
23462 msgid ""
23463 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23464 "tables) cannot be resized."
23465 msgstr ""
23466
23467 #. type: textblock
23468 #: ../resize/virt-resize.pod:246
23469 msgid ""
23470 "To understand what is going on, firstly one of the four partitions "
23471 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
23472 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
23473 "partition type."
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../resize/virt-resize.pod:251
23478 msgid "Logical partitions live inside the extended partition."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../resize/virt-resize.pod:253
23483 msgid ""
23484 "The extended partition can be expanded, but not shrunk (unless you force it, "
23485 "which is not advisable).  When the extended partition is copied across, all "
23486 "the logical partitions contained inside are copied over implicitly.  "
23487 "Virt-resize does not look inside the extended partition, so it copies the "
23488 "logical partitions blindly."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../resize/virt-resize.pod:259
23493 msgid ""
23494 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23495 "line.  Doing so will give an error."
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23500 msgid "Display help."
23501 msgstr ""
23502
23503 #. type: =item
23504 #: ../resize/virt-resize.pod:270
23505 msgid "B<--align-first auto>"
23506 msgstr ""
23507
23508 #. type: =item
23509 #: ../resize/virt-resize.pod:272
23510 msgid "B<--align-first never>"
23511 msgstr ""
23512
23513 #. type: =item
23514 #: ../resize/virt-resize.pod:274
23515 msgid "B<--align-first always>"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../resize/virt-resize.pod:276
23520 msgid ""
23521 "Align the first partition for improved performance (see also the "
23522 "I<--alignment> option)."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../resize/virt-resize.pod:279
23527 msgid ""
23528 "The default is I<--align-first auto> which only aligns the first partition "
23529 "if it is safe to do so.  That is, only when we know how to fix the "
23530 "bootloader automatically, and at the moment that can only be done for "
23531 "Windows guests."
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../resize/virt-resize.pod:284
23536 msgid ""
23537 "I<--align-first never> means we never move the first partition.  This is the "
23538 "safest option.  Try this if the guest does not boot after resizing."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../resize/virt-resize.pod:288
23543 msgid ""
23544 "I<--align-first always> means we always align the first partition (if it "
23545 "needs to be aligned).  For some guests this will break the bootloader, "
23546 "making the guest unbootable."
23547 msgstr ""
23548
23549 #. type: =item
23550 #: ../resize/virt-resize.pod:292
23551 msgid "B<--alignment N>"
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../resize/virt-resize.pod:294
23556 msgid ""
23557 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23558 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../resize/virt-resize.pod:298
23563 msgid ""
23564 "Assuming 512 byte sector size inside the guest, here are some suitable "
23565 "values for this:"
23566 msgstr ""
23567
23568 #. type: =item
23569 #: ../resize/virt-resize.pod:303
23570 msgid "I<--alignment 1> (512 bytes)"
23571 msgstr ""
23572
23573 #. type: textblock
23574 #: ../resize/virt-resize.pod:305
23575 msgid ""
23576 "The partitions would be packed together as closely as possible, but would be "
23577 "completely unaligned.  In some cases this can cause very poor performance.  "
23578 "See L<virt-alignment-scan(1)> for further details."
23579 msgstr ""
23580
23581 #. type: =item
23582 #: ../resize/virt-resize.pod:309
23583 msgid "I<--alignment 8> (4K)"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:311
23588 msgid ""
23589 "This would be the minimum acceptable alignment for reasonable performance on "
23590 "modern hosts."
23591 msgstr ""
23592
23593 #. type: =item
23594 #: ../resize/virt-resize.pod:314
23595 msgid "I<--alignment 128> (64K)"
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../resize/virt-resize.pod:316
23600 msgid ""
23601 "This alignment provides good performance when the host is using high end "
23602 "network storage."
23603 msgstr ""
23604
23605 #. type: =item
23606 #: ../resize/virt-resize.pod:319
23607 msgid "I<--alignment 2048> (1M)"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:321
23612 msgid ""
23613 "This is the standard alignment used by all newly installed guests since "
23614 "around 2008."
23615 msgstr ""
23616
23617 #. type: =item
23618 #: ../resize/virt-resize.pod:326
23619 msgid "B<-d>"
23620 msgstr ""
23621
23622 #. type: =item
23623 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
23624 msgid "B<--debug>"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
23629 msgid "Enable debugging messages."
23630 msgstr ""
23631
23632 #. type: =item
23633 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:124
23634 msgid "B<--debug-gc>"
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../resize/virt-resize.pod:334
23639 msgid ""
23640 "Debug garbage collection and memory allocation.  This is only useful when "
23641 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
23642 msgstr ""
23643
23644 #. type: =item
23645 #: ../resize/virt-resize.pod:338
23646 msgid "B<--delete part>"
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../resize/virt-resize.pod:340
23651 msgid ""
23652 "Delete the named partition.  It would be more accurate to describe this as "
23653 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23654 "the original disk image is left intact."
23655 msgstr ""
23656
23657 #. type: textblock
23658 #: ../resize/virt-resize.pod:344
23659 msgid ""
23660 "Note that when you delete a partition, then anything contained in the "
23661 "partition is also deleted.  Furthermore, this causes any partitions that "
23662 "come after to be I<renumbered>, which can easily make your guest unbootable."
23663 msgstr ""
23664
23665 #. type: textblock
23666 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410 ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:150
23667 msgid "You can give this option multiple times."
23668 msgstr ""
23669
23670 #. type: =item
23671 #: ../resize/virt-resize.pod:351
23672 msgid "B<--expand part>"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../resize/virt-resize.pod:353
23677 msgid ""
23678 "Expand the named partition so it uses up all extra space (space left over "
23679 "after any other resize changes that you request have been done)."
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../resize/virt-resize.pod:356
23684 msgid ""
23685 "If virt-resize knows how, it will expand the direct content of the "
23686 "partition.  For example, if the partition is an LVM PV, it will expand the "
23687 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23688 "content it doesn't know about alone."
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../resize/virt-resize.pod:361
23693 msgid "Currently virt-resize can resize:"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../resize/virt-resize.pod:367
23698 msgid "ext2, ext3 and ext4 filesystems."
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:371
23703 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23704 msgstr ""
23705
23706 #. type: textblock
23707 #: ../resize/virt-resize.pod:373
23708 msgid ""
23709 "The filesystem must have been shut down consistently last time it was used.  "
23710 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23711 "consistency check, so at the first boot after resizing Windows will check "
23712 "the disk."
23713 msgstr ""
23714
23715 #. type: textblock
23716 #: ../resize/virt-resize.pod:380
23717 msgid ""
23718 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23719 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23720 "resize LVs as desired after boot."
23721 msgstr ""
23722
23723 #. type: textblock
23724 #: ../resize/virt-resize.pod:386
23725 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
23730 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23731 msgstr ""
23732
23733 #. type: =item
23734 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:130 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23735 msgid "B<--format> raw"
23736 msgstr ""
23737
23738 #. type: textblock
23739 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:134
23740 msgid ""
23741 "Specify the format of the input disk image.  If this flag is not given then "
23742 "it is auto-detected from the image itself."
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:400
23747 msgid ""
23748 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23749 "AND NON-SPARSE RAW FORMATS>."
23750 msgstr ""
23751
23752 #. type: =item
23753 #: ../resize/virt-resize.pod:403
23754 msgid "B<--ignore part>"
23755 msgstr ""
23756
23757 #. type: textblock
23758 #: ../resize/virt-resize.pod:405
23759 msgid ""
23760 "Ignore the named partition.  Effectively this means the partition is "
23761 "allocated on the destination disk, but the content is not copied across from "
23762 "the source disk.  The content of the partition will be blank (all zero "
23763 "bytes)."
23764 msgstr ""
23765
23766 #. type: =item
23767 #: ../resize/virt-resize.pod:412
23768 msgid "B<--LV-expand logvol>"
23769 msgstr ""
23770
23771 #. type: textblock
23772 #: ../resize/virt-resize.pod:414
23773 msgid ""
23774 "This takes the logical volume and, as a final step, expands it to fill all "
23775 "the space available in its volume group.  A typical usage, assuming a Linux "
23776 "guest with a single PV C</dev/sda2> and a root device called "
23777 "C</dev/vg_guest/lv_root> would be:"
23778 msgstr ""
23779
23780 #. type: verbatim
23781 #: ../resize/virt-resize.pod:419
23782 #, no-wrap
23783 msgid ""
23784 " virt-resize indisk outdisk \\\n"
23785 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23786 "\n"
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../resize/virt-resize.pod:422
23791 msgid ""
23792 "This would first expand the partition (and PV), and then expand the root "
23793 "device to fill the extra space in the PV."
23794 msgstr ""
23795
23796 #. type: textblock
23797 #: ../resize/virt-resize.pod:425
23798 msgid ""
23799 "The contents of the LV are also resized if virt-resize knows how to do "
23800 "that.  You can stop virt-resize from trying to expand the content by using "
23801 "the option I<--no-expand-content>."
23802 msgstr ""
23803
23804 #. type: textblock
23805 #: ../resize/virt-resize.pod:429
23806 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../resize/virt-resize.pod:431
23811 msgid ""
23812 "You can give this option multiple times, I<but> it doesn't make sense to do "
23813 "this unless the logical volumes you specify are all in different volume "
23814 "groups."
23815 msgstr ""
23816
23817 #. type: =item
23818 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:152
23819 msgid "B<--machine-readable>"
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:154
23824 msgid ""
23825 "This option is used to make the output more machine friendly when being "
23826 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23827 msgstr ""
23828
23829 #. type: =item
23830 #: ../resize/virt-resize.pod:443
23831 msgid "B<--dryrun>"
23832 msgstr ""
23833
23834 #. type: textblock
23835 #: ../resize/virt-resize.pod:445
23836 msgid "Print a summary of what would be done, but don't do anything."
23837 msgstr ""
23838
23839 #. type: =item
23840 #: ../resize/virt-resize.pod:447
23841 msgid "B<--no-copy-boot-loader>"
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../resize/virt-resize.pod:449
23846 msgid ""
23847 "By default, virt-resize copies over some sectors at the start of the disk "
23848 "(up to the beginning of the first partition).  Commonly these sectors "
23849 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23850 "in order for the guest to boot correctly."
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../resize/virt-resize.pod:454
23855 msgid ""
23856 "If you specify this flag, then this initial copy is not done.  You may need "
23857 "to reinstall the boot loader in this case."
23858 msgstr ""
23859
23860 #. type: =item
23861 #: ../resize/virt-resize.pod:457
23862 msgid "B<--no-extra-partition>"
23863 msgstr ""
23864
23865 #. type: textblock
23866 #: ../resize/virt-resize.pod:459
23867 msgid ""
23868 "By default, virt-resize creates an extra partition if there is any extra, "
23869 "unused space after all resizing has happened.  Use this option to prevent "
23870 "the extra partition from being created.  If you do this then the extra space "
23871 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23872 "tool in the guest."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../resize/virt-resize.pod:465
23877 msgid ""
23878 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23879 "will be created."
23880 msgstr ""
23881
23882 #. type: =item
23883 #: ../resize/virt-resize.pod:468
23884 msgid "B<--no-expand-content>"
23885 msgstr ""
23886
23887 #. type: textblock
23888 #: ../resize/virt-resize.pod:470
23889 msgid ""
23890 "By default, virt-resize will try to expand the direct contents of "
23891 "partitions, if it knows how (see I<--expand> option above)."
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../resize/virt-resize.pod:473
23896 msgid ""
23897 "If you give the I<--no-expand-content> option then virt-resize will not "
23898 "attempt this."
23899 msgstr ""
23900
23901 #. type: =item
23902 #: ../resize/virt-resize.pod:476
23903 msgid "B<--ntfsresize-force>"
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../resize/virt-resize.pod:478
23908 msgid ""
23909 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23910 "the NTFS disk is marked as needing a consistency check.  You have to use "
23911 "this option if you want to resize a Windows guest multiple times without "
23912 "booting into Windows between each resize."
23913 msgstr ""
23914
23915 #. type: =item
23916 #: ../resize/virt-resize.pod:484
23917 msgid "B<--output-format> raw"
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../resize/virt-resize.pod:486
23922 msgid ""
23923 "Specify the format of the output disk image.  If this flag is not given then "
23924 "it is auto-detected from the image itself."
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../resize/virt-resize.pod:492
23929 msgid ""
23930 "Note that this option I<does not create> the output format.  This option "
23931 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23932 "need to create the output disk with the right format.  See L</QCOW2 AND "
23933 "NON-SPARSE RAW FORMATS>."
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:501
23938 msgid "Don't print the summary."
23939 msgstr ""
23940
23941 #. type: =item
23942 #: ../resize/virt-resize.pod:503
23943 msgid "B<--resize part=size>"
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:505
23948 msgid ""
23949 "Resize the named partition (expanding or shrinking it) so that it has the "
23950 "given size."
23951 msgstr ""
23952
23953 #. type: textblock
23954 #: ../resize/virt-resize.pod:508
23955 msgid ""
23956 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23957 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23958 "size; or as a relative number or percentage.  For example:"
23959 msgstr ""
23960
23961 #. type: verbatim
23962 #: ../resize/virt-resize.pod:514
23963 #, no-wrap
23964 msgid ""
23965 " --resize /dev/sda2=10G\n"
23966 "\n"
23967 msgstr ""
23968
23969 #. type: verbatim
23970 #: ../resize/virt-resize.pod:516
23971 #, no-wrap
23972 msgid ""
23973 " --resize /dev/sda4=90%\n"
23974 "\n"
23975 msgstr ""
23976
23977 #. type: verbatim
23978 #: ../resize/virt-resize.pod:518
23979 #, no-wrap
23980 msgid ""
23981 " --resize /dev/sda2=+1G\n"
23982 "\n"
23983 msgstr ""
23984
23985 #. type: verbatim
23986 #: ../resize/virt-resize.pod:520
23987 #, no-wrap
23988 msgid ""
23989 " --resize /dev/sda2=-200M\n"
23990 "\n"
23991 msgstr ""
23992
23993 #. type: verbatim
23994 #: ../resize/virt-resize.pod:522
23995 #, no-wrap
23996 msgid ""
23997 " --resize /dev/sda1=+128K\n"
23998 "\n"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../resize/virt-resize.pod:524
24003 #, no-wrap
24004 msgid ""
24005 " --resize /dev/sda1=+10%\n"
24006 "\n"
24007 msgstr ""
24008
24009 #. type: verbatim
24010 #: ../resize/virt-resize.pod:526
24011 #, no-wrap
24012 msgid ""
24013 " --resize /dev/sda1=-10%\n"
24014 "\n"
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../resize/virt-resize.pod:528
24019 msgid ""
24020 "You can increase the size of any partition.  Virt-resize will expand the "
24021 "direct content of the partition if it knows how (see I<--expand> below)."
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../resize/virt-resize.pod:532
24026 msgid ""
24027 "You can only I<decrease> the size of partitions that contain filesystems or "
24028 "PVs which have already been shrunk.  Virt-resize will check this has been "
24029 "done before proceeding, or else will print an error (see also "
24030 "I<--resize-force>)."
24031 msgstr ""
24032
24033 #. type: =item
24034 #: ../resize/virt-resize.pod:539
24035 msgid "B<--resize-force part=size>"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:541
24040 msgid ""
24041 "This is the same as I<--resize> except that it will let you decrease the "
24042 "size of any partition.  Generally this means you will lose any data which "
24043 "was at the end of the partition you shrink, but you may not care about that "
24044 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24045 "as a swap partition)."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../resize/virt-resize.pod:547
24050 msgid "See also the I<--ignore> option."
24051 msgstr ""
24052
24053 #. type: =item
24054 #: ../resize/virt-resize.pod:549
24055 msgid "B<--shrink part>"
24056 msgstr ""
24057
24058 #. type: textblock
24059 #: ../resize/virt-resize.pod:551
24060 msgid ""
24061 "Shrink the named partition until the overall disk image fits in the "
24062 "destination.  The named partition B<must> contain a filesystem or PV which "
24063 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24064 "online tools).  Virt-resize will check this and give an error if it has not "
24065 "been done."
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../resize/virt-resize.pod:557
24070 msgid ""
24071 "The amount by which the overall disk must be shrunk (after carrying out all "
24072 "other operations requested by the user) is called the \"deficit\".  For "
24073 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24074 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24075 "would give an error unless the user specified a partition to shrink and that "
24076 "partition had more than a gigabyte of free space."
24077 msgstr ""
24078
24079 #. type: =head1
24080 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:182
24081 msgid "MACHINE READABLE OUTPUT"
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../resize/virt-resize.pod:577
24086 msgid ""
24087 "The I<--machine-readable> option can be used to make the output more machine "
24088 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24089 "etc."
24090 msgstr ""
24091
24092 #. type: textblock
24093 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:188
24094 msgid "There are two ways to use this option."
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../resize/virt-resize.pod:583
24099 msgid ""
24100 "Firstly use the option on its own to query the capabilities of the "
24101 "virt-resize binary.  Typical output looks like this:"
24102 msgstr ""
24103
24104 #. type: verbatim
24105 #: ../resize/virt-resize.pod:586
24106 #, no-wrap
24107 msgid ""
24108 " $ virt-resize --machine-readable\n"
24109 " virt-resize\n"
24110 " ntfsresize-force\n"
24111 " 32bitok\n"
24112 " ntfs\n"
24113 " btrfs\n"
24114 "\n"
24115 msgstr ""
24116
24117 #. type: textblock
24118 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:198
24119 msgid ""
24120 "A list of features is printed, one per line, and the program exits with "
24121 "status 0."
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:201
24126 msgid ""
24127 "Secondly use the option in conjunction with other options to make the "
24128 "regular program output more machine friendly."
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:204
24133 msgid "At the moment this means:"
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:210
24138 msgid ""
24139 "Progress bar messages can be parsed from stdout by looking for this regular "
24140 "expression:"
24141 msgstr ""
24142
24143 #. type: verbatim
24144 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:213
24145 #, no-wrap
24146 msgid ""
24147 " ^[0-9]+/[0-9]+$\n"
24148 "\n"
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:217
24153 msgid ""
24154 "The calling program should treat messages sent to stdout (except for "
24155 "progress bar messages) as status messages.  They can be logged and/or "
24156 "displayed to the user."
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../resize/virt-resize.pod:618
24161 msgid ""
24162 "The calling program should treat messages sent to stderr as error messages.  "
24163 "In addition, virt-resize exits with a non-zero status code if there was a "
24164 "fatal error."
24165 msgstr ""
24166
24167 #. type: textblock
24168 #: ../resize/virt-resize.pod:624
24169 msgid ""
24170 "Versions of the program prior to 1.13.9 did not support the "
24171 "I<--machine-readable> option and will return an error."
24172 msgstr ""
24173
24174 #. type: =head2
24175 #: ../resize/virt-resize.pod:629
24176 msgid "\"Partition 1 does not end on cylinder boundary.\""
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../resize/virt-resize.pod:631
24181 msgid ""
24182 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24183 "I<--alignment> parameter).  Usually this means the partitions will not be "
24184 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24185 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24186 "drives.  Alignment of partitions to cylinders is not required by any modern "
24187 "operating system."
24188 msgstr ""
24189
24190 #. type: =head2
24191 #: ../resize/virt-resize.pod:638
24192 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../resize/virt-resize.pod:640
24197 msgid ""
24198 "In Windows Vista and later versions, Microsoft switched to using a separate "
24199 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24200 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24201 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24202 "the second partition (ie. C: drive)  should work."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:647
24207 msgid ""
24208 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24209 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24210 "it find errors) is nothing to worry about."
24211 msgstr ""
24212
24213 #. type: =head2
24214 #: ../resize/virt-resize.pod:651
24215 msgid "GUEST BOOT STUCK AT \"GRUB\""
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../resize/virt-resize.pod:653
24220 msgid ""
24221 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24222 "printing C<GRUB> on the console, try reinstalling grub."
24223 msgstr ""
24224
24225 #. type: verbatim
24226 #: ../resize/virt-resize.pod:656
24227 #, no-wrap
24228 msgid ""
24229 " guestfish -i -a newdisk\n"
24230 " ><fs> cat /boot/grub/device.map\n"
24231 " # check the contents of this file are sensible or\n"
24232 " # edit the file if necessary\n"
24233 " ><fs> grub-install / /dev/vda\n"
24234 " ><fs> exit\n"
24235 "\n"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../resize/virt-resize.pod:663
24240 msgid ""
24241 "For more flexible guest reconfiguration, including if you need to specify "
24242 "other parameters to grub-install, use L<virt-rescue(1)>."
24243 msgstr ""
24244
24245 #. type: =head1
24246 #: ../resize/virt-resize.pod:666
24247 msgid "ALTERNATIVE TOOLS"
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../resize/virt-resize.pod:668
24252 msgid ""
24253 "There are several proprietary tools for resizing partitions.  We won't "
24254 "mention any here."
24255 msgstr ""
24256
24257 #. type: textblock
24258 #: ../resize/virt-resize.pod:671
24259 msgid ""
24260 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24261 "operations on disk images.  They can resize and move partitions, but I don't "
24262 "think they can do anything with the contents, and they certainly don't "
24263 "understand LVM."
24264 msgstr ""
24265
24266 #. type: textblock
24267 #: ../resize/virt-resize.pod:676
24268 msgid ""
24269 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24270 "but at a much lower level.  You will probably end up hand-calculating sector "
24271 "offsets, which is something that virt-resize was designed to avoid.  If you "
24272 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24273 "I<--debug> flag."
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../resize/virt-resize.pod:696
24278 msgid ""
24279 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24280 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24281 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24282 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24283 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../ruby/examples/guestfs-ruby.pod:5
24288 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24289 msgstr ""
24290
24291 #. type: verbatim
24292 #: ../ruby/examples/guestfs-ruby.pod:9
24293 #, no-wrap
24294 msgid ""
24295 " require 'guestfs'\n"
24296 " g = Guestfs::Guestfs.new()\n"
24297 " g.add_drive_opts(\"disk.img\",\n"
24298 "                  :readonly => 1, :format => \"raw\")\n"
24299 " g.launch()\n"
24300 "\n"
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../ruby/examples/guestfs-ruby.pod:17
24305 msgid ""
24306 "This manual page documents how to call libguestfs from the Ruby programming "
24307 "language.  This page just documents the differences from the C API and gives "
24308 "some examples.  If you are not familiar with using libguestfs, you also need "
24309 "to read L<guestfs(3)>."
24310 msgstr ""
24311
24312 #. type: textblock
24313 #: ../ruby/examples/guestfs-ruby.pod:24
24314 msgid ""
24315 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24316 "This has a single parameter which is the error message (a string)."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../ruby/examples/guestfs-ruby.pod:38
24321 msgid ""
24322 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24323 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24324 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../sparsify/virt-sparsify.pod:5
24329 msgid "virt-sparsify - Make a virtual machine disk sparse"
24330 msgstr ""
24331
24332 #. type: verbatim
24333 #: ../sparsify/virt-sparsify.pod:9
24334 #, no-wrap
24335 msgid ""
24336 " virt-sparsify [--options] indisk outdisk\n"
24337 "\n"
24338 msgstr ""
24339
24340 #. type: textblock
24341 #: ../sparsify/virt-sparsify.pod:13
24342 msgid ""
24343 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24344 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24345 "the disk image can be converted back to free space on the host."
24346 msgstr ""
24347
24348 #. type: textblock
24349 #: ../sparsify/virt-sparsify.pod:18
24350 msgid ""
24351 "Virt-sparsify can locate and sparsify free space in most filesystems "
24352 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24353 msgstr ""
24354
24355 #. type: textblock
24356 #: ../sparsify/virt-sparsify.pod:21
24357 msgid ""
24358 "Virt-sparsify can also convert between some disk formats, for example "
24359 "converting a raw disk image to a thin-provisioned qcow2 image."
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../sparsify/virt-sparsify.pod:24
24364 msgid ""
24365 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24366 "machines.  If a virtual machine has more than one attached disk, you must "
24367 "sparsify each one separately."
24368 msgstr ""
24369
24370 #. type: =head2
24371 #: ../sparsify/virt-sparsify.pod:28
24372 msgid "IMPORTANT LIMITATIONS"
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../sparsify/virt-sparsify.pod:34
24377 msgid ""
24378 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24379 "image to a destination image, leaving the source unchanged.  I<Check that "
24380 "the sparsification was successful before deleting the source image>."
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../sparsify/virt-sparsify.pod:41
24385 msgid "The virtual machine I<must be shut down> before using this tool."
24386 msgstr ""
24387
24388 #. type: textblock
24389 #: ../sparsify/virt-sparsify.pod:45
24390 msgid ""
24391 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24392 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24393 "usually much less space is required."
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../sparsify/virt-sparsify.pod:51
24398 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../sparsify/virt-sparsify.pod:56
24403 msgid "Virt-sparsify cannot handle encrypted disks."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../sparsify/virt-sparsify.pod:60
24408 msgid ""
24409 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24410 "this space is often used for critical items like bootloaders so it's not "
24411 "really unused."
24412 msgstr ""
24413
24414 #. type: textblock
24415 #: ../sparsify/virt-sparsify.pod:66
24416 msgid ""
24417 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24418 "to do this unless we can be sure there is no hibernation data, so at the "
24419 "moment swap partitions are ignored."
24420 msgstr ""
24421
24422 #. type: textblock
24423 #: ../sparsify/virt-sparsify.pod:72
24424 msgid ""
24425 "You may also want to read the manual pages for the associated tools "
24426 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../sparsify/virt-sparsify.pod:77
24431 msgid "Typical usage is:"
24432 msgstr ""
24433
24434 #. type: verbatim
24435 #: ../sparsify/virt-sparsify.pod:79
24436 #, no-wrap
24437 msgid ""
24438 " virt-sparsify indisk outdisk\n"
24439 "\n"
24440 msgstr ""
24441
24442 #. type: textblock
24443 #: ../sparsify/virt-sparsify.pod:81
24444 msgid ""
24445 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24446 "is created, or overwritten if it already exists.  The format of the input "
24447 "disk is detected (eg. qcow2) and the same format is used for the output "
24448 "disk."
24449 msgstr ""
24450
24451 #. type: textblock
24452 #: ../sparsify/virt-sparsify.pod:86
24453 msgid "To convert between formats, use the I<--convert> option:"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../sparsify/virt-sparsify.pod:88
24458 #, no-wrap
24459 msgid ""
24460 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24461 "\n"
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../sparsify/virt-sparsify.pod:90
24466 msgid ""
24467 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24468 "can find within the source disk image.  You can get it to ignore (don't zero "
24469 "free space on) certain filesystems by doing:"
24470 msgstr ""
24471
24472 #. type: verbatim
24473 #: ../sparsify/virt-sparsify.pod:94
24474 #, no-wrap
24475 msgid ""
24476 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../sparsify/virt-sparsify.pod:96
24482 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24483 msgstr ""
24484
24485 #. type: =item
24486 #: ../sparsify/virt-sparsify.pod:107
24487 msgid "B<--convert> raw"
24488 msgstr ""
24489
24490 #. type: =item
24491 #: ../sparsify/virt-sparsify.pod:109
24492 msgid "B<--convert> qcow2"
24493 msgstr ""
24494
24495 #. type: =item
24496 #: ../sparsify/virt-sparsify.pod:111
24497 msgid "B<--convert> [other formats]"
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../sparsify/virt-sparsify.pod:113
24502 msgid ""
24503 "Use C<output-format> as the format for the destination image.  If this is "
24504 "not specified, then the input format is used."
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../sparsify/virt-sparsify.pod:116
24509 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../sparsify/virt-sparsify.pod:118
24514 msgid ""
24515 "You can also use any format supported by the L<qemu-img(1)> program, "
24516 "eg. C<vmdk>, but support for other formats is reliant on qemu."
24517 msgstr ""
24518
24519 #. type: textblock
24520 #: ../sparsify/virt-sparsify.pod:121
24521 msgid ""
24522 "Specifying the I<--convert> option is usually a good idea, because then "
24523 "virt-sparsify doesn't need to try to guess the input format."
24524 msgstr ""
24525
24526 #. type: textblock
24527 #: ../sparsify/virt-sparsify.pod:126
24528 msgid ""
24529 "Debug garbage collection and memory allocation.  This is only useful when "
24530 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
24531 msgstr ""
24532
24533 #. type: =item
24534 #: ../sparsify/virt-sparsify.pod:132
24535 msgid "B<--format> qcow2"
24536 msgstr ""
24537
24538 #. type: =item
24539 #: ../sparsify/virt-sparsify.pod:140
24540 msgid "B<--ignore> filesystem"
24541 msgstr ""
24542
24543 #. type: =item
24544 #: ../sparsify/virt-sparsify.pod:142
24545 msgid "B<--ignore> volgroup"
24546 msgstr ""
24547
24548 #. type: textblock
24549 #: ../sparsify/virt-sparsify.pod:144
24550 msgid ""
24551 "Ignore the named filesystem.  Free space on the filesystem will not be "
24552 "zeroed, but existing blocks of zeroes will still be sparsified."
24553 msgstr ""
24554
24555 #. type: textblock
24556 #: ../sparsify/virt-sparsify.pod:147
24557 msgid ""
24558 "In the second form, this ignores the named volume group.  Use the volume "
24559 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24560 msgstr ""
24561
24562 #. type: textblock
24563 #: ../sparsify/virt-sparsify.pod:162
24564 msgid "This disables progress bars and other unnecessary output."
24565 msgstr ""
24566
24567 #. type: textblock
24568 #: ../sparsify/virt-sparsify.pod:184
24569 msgid ""
24570 "The I<--machine-readable> option can be used to make the output more machine "
24571 "friendly, which is useful when calling virt-sparsify from other programs, "
24572 "GUIs etc."
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../sparsify/virt-sparsify.pod:190
24577 msgid ""
24578 "Firstly use the option on its own to query the capabilities of the "
24579 "virt-sparsify binary.  Typical output looks like this:"
24580 msgstr ""
24581
24582 #. type: verbatim
24583 #: ../sparsify/virt-sparsify.pod:193
24584 #, no-wrap
24585 msgid ""
24586 " $ virt-sparsify --machine-readable\n"
24587 " virt-sparsify\n"
24588 " ntfs\n"
24589 " btrfs\n"
24590 "\n"
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../sparsify/virt-sparsify.pod:223
24595 msgid ""
24596 "The calling program should treat messages sent to stderr as error messages.  "
24597 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24598 "fatal error."
24599 msgstr ""
24600
24601 #. type: textblock
24602 #: ../sparsify/virt-sparsify.pod:229
24603 msgid ""
24604 "All versions of virt-sparsify have supported the I<--machine-readable> "
24605 "option."
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../sparsify/virt-sparsify.pod:243
24610 msgid ""
24611 "Location of the temporary directory used for the potentially large temporary "
24612 "overlay file."
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../sparsify/virt-sparsify.pod:246
24617 msgid ""
24618 "You should ensure there is enough free space in the worst case for a full "
24619 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24620 "to another directory that has enough space."
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../sparsify/virt-sparsify.pod:250
24625 msgid "This defaults to C</tmp>."
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../sparsify/virt-sparsify.pod:254
24630 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24631 msgstr ""
24632
24633 #. type: textblock
24634 #: ../sparsify/virt-sparsify.pod:258
24635 msgid ""
24636 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24637 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
24638 "L<qemu-img(1)>, L<http://libguestfs.org/>."
24639 msgstr ""
24640
24641 #. type: =head2
24642 #: ../src/guestfs-actions.pod:1
24643 msgid "guestfs_add_cdrom"
24644 msgstr ""
24645
24646 #. type: verbatim
24647 #: ../src/guestfs-actions.pod:3
24648 #, no-wrap
24649 msgid ""
24650 " int\n"
24651 " guestfs_add_cdrom (guestfs_h *g,\n"
24652 "                    const char *filename);\n"
24653 "\n"
24654 msgstr ""
24655
24656 #. type: textblock
24657 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
24658 msgid ""
24659 "I<This function is deprecated.> In new code, use the "
24660 "L</guestfs_add_drive_opts> call instead."
24661 msgstr ""
24662
24663 #. type: textblock
24664 #: ../src/guestfs-actions.pod:24
24665 msgid ""
24666 "This call checks for the existence of C<filename>.  This stops you from "
24667 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24668 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24669 "instead."
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../src/guestfs-actions.pod:31
24674 msgid ""
24675 "If you just want to add an ISO file (often you use this as an efficient way "
24676 "to transfer large files into the guest), then you should probably use "
24677 "C<guestfs_add_drive_ro> instead."
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291 ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559 ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705 ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879 ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372 ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721 ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481 ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711 ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305 ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513 ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705 ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750 ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984 ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841 ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078 ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336 ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397 ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425 ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705 ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906 ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975 ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033 ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129 ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182 ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8295
24682 msgid "This function returns 0 on success or -1 on error."
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620 ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552 ../src/guestfs-actions.pod:8075
24687 msgid "(Added in 0.3)"
24688 msgstr ""
24689
24690 #. type: =head2
24691 #: ../src/guestfs-actions.pod:41
24692 msgid "guestfs_add_domain"
24693 msgstr ""
24694
24695 #. type: verbatim
24696 #: ../src/guestfs-actions.pod:43
24697 #, no-wrap
24698 msgid ""
24699 " int\n"
24700 " guestfs_add_domain (guestfs_h *g,\n"
24701 "                     const char *dom,\n"
24702 "                     ...);\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5626
24708 msgid ""
24709 "You may supply a list of optional arguments to this call.  Use zero or more "
24710 "of the following pairs of parameters, and terminate the list with C<-1> on "
24711 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24712 msgstr ""
24713
24714 #. type: verbatim
24715 #: ../src/guestfs-actions.pod:53
24716 #, no-wrap
24717 msgid ""
24718 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24719 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24720 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24721 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24722 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24723 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
24724 "\n"
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../src/guestfs-actions.pod:60
24729 msgid ""
24730 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24731 "It works by connecting to libvirt, requesting the domain and domain XML from "
24732 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24733 "one."
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../src/guestfs-actions.pod:141
24738 msgid ""
24739 "The other optional parameters are passed directly through to "
24740 "C<guestfs_add_drive_opts>."
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797 ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099 ../src/guestfs-actions.pod:8112
24745 msgid "On error this function returns -1."
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../src/guestfs-actions.pod:146
24750 msgid "(Added in 1.7.4)"
24751 msgstr ""
24752
24753 #. type: =head2
24754 #: ../src/guestfs-actions.pod:148
24755 msgid "guestfs_add_domain_va"
24756 msgstr ""
24757
24758 #. type: verbatim
24759 #: ../src/guestfs-actions.pod:150
24760 #, no-wrap
24761 msgid ""
24762 " int\n"
24763 " guestfs_add_domain_va (guestfs_h *g,\n"
24764 "                        const char *dom,\n"
24765 "                        va_list args);\n"
24766 "\n"
24767 msgstr ""
24768
24769 #. type: textblock
24770 #: ../src/guestfs-actions.pod:155
24771 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24772 msgstr ""
24773
24774 #. type: textblock
24775 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255 ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403 ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567 ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
24776 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24777 msgstr ""
24778
24779 #. type: =head2
24780 #: ../src/guestfs-actions.pod:159
24781 msgid "guestfs_add_domain_argv"
24782 msgstr ""
24783
24784 #. type: verbatim
24785 #: ../src/guestfs-actions.pod:161
24786 #, no-wrap
24787 msgid ""
24788 " int\n"
24789 " guestfs_add_domain_argv (guestfs_h *g,\n"
24790 "                          const char *dom,\n"
24791 "                          const struct guestfs_add_domain_argv *optargs);\n"
24792 "\n"
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../src/guestfs-actions.pod:166
24797 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../src/guestfs-actions.pod:170
24802 msgid "guestfs_add_drive"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../src/guestfs-actions.pod:172
24807 #, no-wrap
24808 msgid ""
24809 " int\n"
24810 " guestfs_add_drive (guestfs_h *g,\n"
24811 "                    const char *filename);\n"
24812 "\n"
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../src/guestfs-actions.pod:176
24817 msgid ""
24818 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24819 "optional parameters, so the disk is added writable, with the format being "
24820 "detected automatically."
24821 msgstr ""
24822
24823 #. type: textblock
24824 #: ../src/guestfs-actions.pod:180
24825 msgid ""
24826 "Automatic detection of the format opens you up to a potential security hole "
24827 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24828 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24829 "you should think about replacing calls to this function with calls to "
24830 "C<guestfs_add_drive_opts>, and specifying the format."
24831 msgstr ""
24832
24833 #. type: =head2
24834 #: ../src/guestfs-actions.pod:191
24835 msgid "guestfs_add_drive_opts"
24836 msgstr ""
24837
24838 #. type: verbatim
24839 #: ../src/guestfs-actions.pod:193
24840 #, no-wrap
24841 msgid ""
24842 " int\n"
24843 " guestfs_add_drive_opts (guestfs_h *g,\n"
24844 "                         const char *filename,\n"
24845 "                         ...);\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: verbatim
24850 #: ../src/guestfs-actions.pod:203
24851 #, no-wrap
24852 msgid ""
24853 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24854 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24855 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24856 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24857 "\n"
24858 msgstr ""
24859
24860 #. type: textblock
24861 #: ../src/guestfs-actions.pod:233
24862 msgid ""
24863 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24864 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24865 "Possible formats include C<raw> and C<qcow2>."
24866 msgstr ""
24867
24868 #. type: textblock
24869 #: ../src/guestfs-actions.pod:244
24870 msgid ""
24871 "This rarely-used option lets you emulate the behaviour of the deprecated "
24872 "C<guestfs_add_drive_with_if> call (q.v.)"
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../src/guestfs-actions.pod:256
24877 msgid "(Added in 1.5.23)"
24878 msgstr ""
24879
24880 #. type: =head2
24881 #: ../src/guestfs-actions.pod:258
24882 msgid "guestfs_add_drive_opts_va"
24883 msgstr ""
24884
24885 #. type: verbatim
24886 #: ../src/guestfs-actions.pod:260
24887 #, no-wrap
24888 msgid ""
24889 " int\n"
24890 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24891 "                            const char *filename,\n"
24892 "                            va_list args);\n"
24893 "\n"
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../src/guestfs-actions.pod:265
24898 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../src/guestfs-actions.pod:269
24903 msgid "guestfs_add_drive_opts_argv"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../src/guestfs-actions.pod:271
24908 #, no-wrap
24909 msgid ""
24910 " int\n"
24911 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24912 "                              const char *filename,\n"
24913 "                              const struct guestfs_add_drive_opts_argv "
24914 "*optargs);\n"
24915 "\n"
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../src/guestfs-actions.pod:276
24920 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24921 msgstr ""
24922
24923 #. type: =head2
24924 #: ../src/guestfs-actions.pod:280
24925 msgid "guestfs_add_drive_ro"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../src/guestfs-actions.pod:282
24930 #, no-wrap
24931 msgid ""
24932 " int\n"
24933 " guestfs_add_drive_ro (guestfs_h *g,\n"
24934 "                       const char *filename);\n"
24935 "\n"
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../src/guestfs-actions.pod:286
24940 msgid ""
24941 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24942 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24943 "disk is added read-only, with the format being detected automatically."
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../src/guestfs-actions.pod:293
24948 msgid "(Added in 1.0.38)"
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../src/guestfs-actions.pod:295
24953 msgid "guestfs_add_drive_ro_with_if"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../src/guestfs-actions.pod:297
24958 #, no-wrap
24959 msgid ""
24960 " int\n"
24961 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24962 "                               const char *filename,\n"
24963 "                               const char *iface);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:309
24969 msgid ""
24970 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24971 "QEMU interface emulation to use at run time."
24972 msgstr ""
24973
24974 #. type: textblock
24975 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2881
24976 msgid "(Added in 1.0.84)"
24977 msgstr ""
24978
24979 #. type: =head2
24980 #: ../src/guestfs-actions.pod:316
24981 msgid "guestfs_add_drive_with_if"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../src/guestfs-actions.pod:318
24986 #, no-wrap
24987 msgid ""
24988 " int\n"
24989 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24990 "                            const char *filename,\n"
24991 "                            const char *iface);\n"
24992 "\n"
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../src/guestfs-actions.pod:330
24997 msgid ""
24998 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24999 "QEMU interface emulation to use at run time."
25000 msgstr ""
25001
25002 #. type: =head2
25003 #: ../src/guestfs-actions.pod:337
25004 msgid "guestfs_aug_clear"
25005 msgstr ""
25006
25007 #. type: verbatim
25008 #: ../src/guestfs-actions.pod:339
25009 #, no-wrap
25010 msgid ""
25011 " int\n"
25012 " guestfs_aug_clear (guestfs_h *g,\n"
25013 "                    const char *augpath);\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25019 msgid "(Added in 1.3.4)"
25020 msgstr ""
25021
25022 #. type: =head2
25023 #: ../src/guestfs-actions.pod:350
25024 msgid "guestfs_aug_close"
25025 msgstr ""
25026
25027 #. type: verbatim
25028 #: ../src/guestfs-actions.pod:352
25029 #, no-wrap
25030 msgid ""
25031 " int\n"
25032 " guestfs_aug_close (guestfs_h *g);\n"
25033 "\n"
25034 msgstr ""
25035
25036 #. type: textblock
25037 #: ../src/guestfs-actions.pod:355
25038 msgid ""
25039 "Close the current Augeas handle and free up any resources used by it.  After "
25040 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25041 "any other Augeas functions."
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387 ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419 ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502 ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575 ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607 ../src/guestfs-actions.pod:6311
25046 msgid "(Added in 0.7)"
25047 msgstr ""
25048
25049 #. type: =head2
25050 #: ../src/guestfs-actions.pod:364
25051 msgid "guestfs_aug_defnode"
25052 msgstr ""
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:366
25056 #, no-wrap
25057 msgid ""
25058 " struct guestfs_int_bool *\n"
25059 " guestfs_aug_defnode (guestfs_h *g,\n"
25060 "                      const char *name,\n"
25061 "                      const char *expr,\n"
25062 "                      const char *val);\n"
25063 "\n"
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:375
25068 msgid ""
25069 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25070 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25071 "containing that single node."
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../src/guestfs-actions.pod:383
25076 msgid ""
25077 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25078 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25079 msgstr ""
25080
25081 #. type: =head2
25082 #: ../src/guestfs-actions.pod:389
25083 msgid "guestfs_aug_defvar"
25084 msgstr ""
25085
25086 #. type: verbatim
25087 #: ../src/guestfs-actions.pod:391
25088 #, no-wrap
25089 msgid ""
25090 " int\n"
25091 " guestfs_aug_defvar (guestfs_h *g,\n"
25092 "                     const char *name,\n"
25093 "                     const char *expr);\n"
25094 "\n"
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:407
25099 msgid "guestfs_aug_get"
25100 msgstr ""
25101
25102 #. type: verbatim
25103 #: ../src/guestfs-actions.pod:409
25104 #, no-wrap
25105 msgid ""
25106 " char *\n"
25107 " guestfs_aug_get (guestfs_h *g,\n"
25108 "                  const char *augpath);\n"
25109 "\n"
25110 msgstr ""
25111
25112 #. type: textblock
25113 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980 ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683 ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834 ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871 ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25114 msgid ""
25115 "This function returns a string, or NULL on error.  I<The caller must free "
25116 "the returned string after use>."
25117 msgstr ""
25118
25119 #. type: =head2
25120 #: ../src/guestfs-actions.pod:421
25121 msgid "guestfs_aug_init"
25122 msgstr ""
25123
25124 #. type: verbatim
25125 #: ../src/guestfs-actions.pod:423
25126 #, no-wrap
25127 msgid ""
25128 " int\n"
25129 " guestfs_aug_init (guestfs_h *g,\n"
25130 "                   const char *root,\n"
25131 "                   int flags);\n"
25132 "\n"
25133 msgstr ""
25134
25135 #. type: textblock
25136 #: ../src/guestfs-actions.pod:432
25137 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../src/guestfs-actions.pod:457
25142 msgid ""
25143 "This option is only useful when debugging Augeas lenses.  Use of this option "
25144 "may require additional memory for the libguestfs appliance.  You may need to "
25145 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25146 "C<guestfs_set_memsize>."
25147 msgstr ""
25148
25149 #. type: textblock
25150 #: ../src/guestfs-actions.pod:472
25151 msgid "Do not load the tree in C<guestfs_aug_init>."
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../src/guestfs-actions.pod:476
25156 msgid "To close the handle, you can call C<guestfs_aug_close>."
25157 msgstr ""
25158
25159 #. type: =head2
25160 #: ../src/guestfs-actions.pod:484
25161 msgid "guestfs_aug_insert"
25162 msgstr ""
25163
25164 #. type: verbatim
25165 #: ../src/guestfs-actions.pod:486
25166 #, no-wrap
25167 msgid ""
25168 " int\n"
25169 " guestfs_aug_insert (guestfs_h *g,\n"
25170 "                     const char *augpath,\n"
25171 "                     const char *label,\n"
25172 "                     int before);\n"
25173 "\n"
25174 msgstr ""
25175
25176 #. type: =head2
25177 #: ../src/guestfs-actions.pod:504
25178 msgid "guestfs_aug_load"
25179 msgstr ""
25180
25181 #. type: verbatim
25182 #: ../src/guestfs-actions.pod:506
25183 #, no-wrap
25184 msgid ""
25185 " int\n"
25186 " guestfs_aug_load (guestfs_h *g);\n"
25187 "\n"
25188 msgstr ""
25189
25190 #. type: =head2
25191 #: ../src/guestfs-actions.pod:518
25192 msgid "guestfs_aug_ls"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../src/guestfs-actions.pod:520
25197 #, no-wrap
25198 msgid ""
25199 " char **\n"
25200 " guestfs_aug_ls (guestfs_h *g,\n"
25201 "                 const char *augpath);\n"
25202 "\n"
25203 msgstr ""
25204
25205 #. type: textblock
25206 #: ../src/guestfs-actions.pod:524
25207 msgid ""
25208 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25209 "sorting the resulting nodes into alphabetical order."
25210 msgstr ""
25211
25212 #. type: textblock
25213 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739 ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948 ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307 ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199 ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309 ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8393
25214 msgid ""
25215 "This function returns a NULL-terminated array of strings (like "
25216 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25217 "strings and the array after use>."
25218 msgstr ""
25219
25220 #. type: textblock
25221 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8187
25222 msgid "(Added in 0.8)"
25223 msgstr ""
25224
25225 #. type: =head2
25226 #: ../src/guestfs-actions.pod:533
25227 msgid "guestfs_aug_match"
25228 msgstr ""
25229
25230 #. type: verbatim
25231 #: ../src/guestfs-actions.pod:535
25232 #, no-wrap
25233 msgid ""
25234 " char **\n"
25235 " guestfs_aug_match (guestfs_h *g,\n"
25236 "                    const char *augpath);\n"
25237 "\n"
25238 msgstr ""
25239
25240 #. type: =head2
25241 #: ../src/guestfs-actions.pod:549
25242 msgid "guestfs_aug_mv"
25243 msgstr ""
25244
25245 #. type: verbatim
25246 #: ../src/guestfs-actions.pod:551
25247 #, no-wrap
25248 msgid ""
25249 " int\n"
25250 " guestfs_aug_mv (guestfs_h *g,\n"
25251 "                 const char *src,\n"
25252 "                 const char *dest);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:563
25258 msgid "guestfs_aug_rm"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:565
25263 #, no-wrap
25264 msgid ""
25265 " int\n"
25266 " guestfs_aug_rm (guestfs_h *g,\n"
25267 "                 const char *augpath);\n"
25268 "\n"
25269 msgstr ""
25270
25271 #. type: =head2
25272 #: ../src/guestfs-actions.pod:577
25273 msgid "guestfs_aug_save"
25274 msgstr ""
25275
25276 #. type: verbatim
25277 #: ../src/guestfs-actions.pod:579
25278 #, no-wrap
25279 msgid ""
25280 " int\n"
25281 " guestfs_aug_save (guestfs_h *g);\n"
25282 "\n"
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../src/guestfs-actions.pod:584
25287 msgid ""
25288 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25289 "are saved."
25290 msgstr ""
25291
25292 #. type: =head2
25293 #: ../src/guestfs-actions.pod:591
25294 msgid "guestfs_aug_set"
25295 msgstr ""
25296
25297 #. type: verbatim
25298 #: ../src/guestfs-actions.pod:593
25299 #, no-wrap
25300 msgid ""
25301 " int\n"
25302 " guestfs_aug_set (guestfs_h *g,\n"
25303 "                  const char *augpath,\n"
25304 "                  const char *val);\n"
25305 "\n"
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../src/guestfs-actions.pod:600
25310 msgid ""
25311 "In the Augeas API, it is possible to clear a node by setting the value to "
25312 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25313 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25314 msgstr ""
25315
25316 #. type: =head2
25317 #: ../src/guestfs-actions.pod:609
25318 msgid "guestfs_available"
25319 msgstr ""
25320
25321 #. type: verbatim
25322 #: ../src/guestfs-actions.pod:611
25323 #, no-wrap
25324 msgid ""
25325 " int\n"
25326 " guestfs_available (guestfs_h *g,\n"
25327 "                    char *const *groups);\n"
25328 "\n"
25329 msgstr ""
25330
25331 #. type: textblock
25332 #: ../src/guestfs-actions.pod:619
25333 msgid ""
25334 "The libguestfs groups, and the functions that those groups correspond to, "
25335 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25336 "runtime by calling C<guestfs_available_all_groups>."
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:643
25341 msgid "You must call C<guestfs_launch> before calling this function."
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:665
25346 msgid ""
25347 "This call was added in version C<1.0.80>.  In previous versions of "
25348 "libguestfs all you could do would be to speculatively execute a command to "
25349 "find out if the daemon implemented it.  See also C<guestfs_version>."
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25354 msgid "(Added in 1.0.80)"
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../src/guestfs-actions.pod:676
25359 msgid "guestfs_available_all_groups"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../src/guestfs-actions.pod:678
25364 #, no-wrap
25365 msgid ""
25366 " char **\n"
25367 " guestfs_available_all_groups (guestfs_h *g);\n"
25368 "\n"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:681
25373 msgid ""
25374 "This command returns a list of all optional groups that this daemon knows "
25375 "about.  Note this returns both supported and unsupported groups.  To find "
25376 "out which ones the daemon can actually support you have to call "
25377 "C<guestfs_available> on each member of the returned list."
25378 msgstr ""
25379
25380 #. type: textblock
25381 #: ../src/guestfs-actions.pod:687
25382 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25383 msgstr ""
25384
25385 #. type: textblock
25386 #: ../src/guestfs-actions.pod:693
25387 msgid "(Added in 1.3.15)"
25388 msgstr ""
25389
25390 #. type: =head2
25391 #: ../src/guestfs-actions.pod:695
25392 msgid "guestfs_base64_in"
25393 msgstr ""
25394
25395 #. type: verbatim
25396 #: ../src/guestfs-actions.pod:697
25397 #, no-wrap
25398 msgid ""
25399 " int\n"
25400 " guestfs_base64_in (guestfs_h *g,\n"
25401 "                    const char *base64file,\n"
25402 "                    const char *filename);\n"
25403 "\n"
25404 msgstr ""
25405
25406 #. type: textblock
25407 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
25408 msgid "(Added in 1.3.5)"
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../src/guestfs-actions.pod:709
25413 msgid "guestfs_base64_out"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../src/guestfs-actions.pod:711
25418 #, no-wrap
25419 msgid ""
25420 " int\n"
25421 " guestfs_base64_out (guestfs_h *g,\n"
25422 "                     const char *filename,\n"
25423 "                     const char *base64file);\n"
25424 "\n"
25425 msgstr ""
25426
25427 #. type: =head2
25428 #: ../src/guestfs-actions.pod:723
25429 msgid "guestfs_blockdev_flushbufs"
25430 msgstr ""
25431
25432 #. type: verbatim
25433 #: ../src/guestfs-actions.pod:725
25434 #, no-wrap
25435 msgid ""
25436 " int\n"
25437 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25438 "                             const char *device);\n"
25439 "\n"
25440 msgstr ""
25441
25442 #. type: textblock
25443 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
25444 msgid "(Added in 0.9.3)"
25445 msgstr ""
25446
25447 #. type: =head2
25448 #: ../src/guestfs-actions.pod:738
25449 msgid "guestfs_blockdev_getbsz"
25450 msgstr ""
25451
25452 #. type: verbatim
25453 #: ../src/guestfs-actions.pod:740
25454 #, no-wrap
25455 msgid ""
25456 " int\n"
25457 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25458 "                          const char *device);\n"
25459 "\n"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:755
25464 msgid "guestfs_blockdev_getro"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:757
25469 #, no-wrap
25470 msgid ""
25471 " int\n"
25472 " guestfs_blockdev_getro (guestfs_h *g,\n"
25473 "                         const char *device);\n"
25474 "\n"
25475 msgstr ""
25476
25477 #. type: textblock
25478 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478 ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:5784
25479 msgid "This function returns a C truth value on success or -1 on error."
25480 msgstr ""
25481
25482 #. type: =head2
25483 #: ../src/guestfs-actions.pod:770
25484 msgid "guestfs_blockdev_getsize64"
25485 msgstr ""
25486
25487 #. type: verbatim
25488 #: ../src/guestfs-actions.pod:772
25489 #, no-wrap
25490 msgid ""
25491 " int64_t\n"
25492 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25493 "                             const char *device);\n"
25494 "\n"
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../src/guestfs-actions.pod:778
25499 msgid "See also C<guestfs_blockdev_getsz>."
25500 msgstr ""
25501
25502 #. type: =head2
25503 #: ../src/guestfs-actions.pod:786
25504 msgid "guestfs_blockdev_getss"
25505 msgstr ""
25506
25507 #. type: verbatim
25508 #: ../src/guestfs-actions.pod:788
25509 #, no-wrap
25510 msgid ""
25511 " int\n"
25512 " guestfs_blockdev_getss (guestfs_h *g,\n"
25513 "                         const char *device);\n"
25514 "\n"
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../src/guestfs-actions.pod:795
25519 msgid ""
25520 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25521 "that)."
25522 msgstr ""
25523
25524 #. type: =head2
25525 #: ../src/guestfs-actions.pod:804
25526 msgid "guestfs_blockdev_getsz"
25527 msgstr ""
25528
25529 #. type: verbatim
25530 #: ../src/guestfs-actions.pod:806
25531 #, no-wrap
25532 msgid ""
25533 " int64_t\n"
25534 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25535 "                         const char *device);\n"
25536 "\n"
25537 msgstr ""
25538
25539 #. type: textblock
25540 #: ../src/guestfs-actions.pod:813
25541 msgid ""
25542 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25543 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25544 msgstr ""
25545
25546 #. type: =head2
25547 #: ../src/guestfs-actions.pod:823
25548 msgid "guestfs_blockdev_rereadpt"
25549 msgstr ""
25550
25551 #. type: verbatim
25552 #: ../src/guestfs-actions.pod:825
25553 #, no-wrap
25554 msgid ""
25555 " int\n"
25556 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25557 "                            const char *device);\n"
25558 "\n"
25559 msgstr ""
25560
25561 #. type: =head2
25562 #: ../src/guestfs-actions.pod:837
25563 msgid "guestfs_blockdev_setbsz"
25564 msgstr ""
25565
25566 #. type: verbatim
25567 #: ../src/guestfs-actions.pod:839
25568 #, no-wrap
25569 msgid ""
25570 " int\n"
25571 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25572 "                          const char *device,\n"
25573 "                          int blocksize);\n"
25574 "\n"
25575 msgstr ""
25576
25577 #. type: =head2
25578 #: ../src/guestfs-actions.pod:855
25579 msgid "guestfs_blockdev_setro"
25580 msgstr ""
25581
25582 #. type: verbatim
25583 #: ../src/guestfs-actions.pod:857
25584 #, no-wrap
25585 msgid ""
25586 " int\n"
25587 " guestfs_blockdev_setro (guestfs_h *g,\n"
25588 "                         const char *device);\n"
25589 "\n"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:869
25594 msgid "guestfs_blockdev_setrw"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:871
25599 #, no-wrap
25600 msgid ""
25601 " int\n"
25602 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25603 "                         const char *device);\n"
25604 "\n"
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../src/guestfs-actions.pod:883
25609 msgid "guestfs_btrfs_filesystem_resize"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:885
25614 #, no-wrap
25615 msgid ""
25616 " int\n"
25617 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25618 "                                  const char *mountpoint,\n"
25619 "                                  ...);\n"
25620 "\n"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../src/guestfs-actions.pod:895
25625 #, no-wrap
25626 msgid ""
25627 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25628 "\n"
25629 msgstr ""
25630
25631 #. type: textblock
25632 #: ../src/guestfs-actions.pod:918
25633 msgid "(Added in 1.11.17)"
25634 msgstr ""
25635
25636 #. type: =head2
25637 #: ../src/guestfs-actions.pod:920
25638 msgid "guestfs_btrfs_filesystem_resize_va"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../src/guestfs-actions.pod:922
25643 #, no-wrap
25644 msgid ""
25645 " int\n"
25646 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25647 "                                     const char *mountpoint,\n"
25648 "                                     va_list args);\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../src/guestfs-actions.pod:927
25654 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25655 msgstr ""
25656
25657 #. type: =head2
25658 #: ../src/guestfs-actions.pod:931
25659 msgid "guestfs_btrfs_filesystem_resize_argv"
25660 msgstr ""
25661
25662 #. type: verbatim
25663 #: ../src/guestfs-actions.pod:933
25664 #, no-wrap
25665 msgid ""
25666 " int\n"
25667 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25668 "                                       const char *mountpoint,\n"
25669 "                                       const struct "
25670 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../src/guestfs-actions.pod:938
25676 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25677 msgstr ""
25678
25679 #. type: =head2
25680 #: ../src/guestfs-actions.pod:942
25681 msgid "guestfs_case_sensitive_path"
25682 msgstr ""
25683
25684 #. type: verbatim
25685 #: ../src/guestfs-actions.pod:944
25686 #, no-wrap
25687 msgid ""
25688 " char *\n"
25689 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25690 "                              const char *path);\n"
25691 "\n"
25692 msgstr ""
25693
25694 #. type: textblock
25695 #: ../src/guestfs-actions.pod:970
25696 msgid ""
25697 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
25698 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25699 "how the directories were originally created under Windows)."
25700 msgstr ""
25701
25702 #. type: textblock
25703 #: ../src/guestfs-actions.pod:978
25704 msgid "See also C<guestfs_realpath>."
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
25709 msgid "(Added in 1.0.75)"
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../src/guestfs-actions.pod:985
25714 msgid "guestfs_cat"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../src/guestfs-actions.pod:987
25719 #, no-wrap
25720 msgid ""
25721 " char *\n"
25722 " guestfs_cat (guestfs_h *g,\n"
25723 "              const char *path);\n"
25724 "\n"
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:993
25729 msgid ""
25730 "Note that this function cannot correctly handle binary files (specifically, "
25731 "files containing C<\\0> character which is treated as end of string).  For "
25732 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25733 "functions which have a more complex interface."
25734 msgstr ""
25735
25736 #. type: textblock
25737 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185 ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8023
25738 msgid "(Added in 0.4)"
25739 msgstr ""
25740
25741 #. type: =head2
25742 #: ../src/guestfs-actions.pod:1006
25743 msgid "guestfs_checksum"
25744 msgstr ""
25745
25746 #. type: verbatim
25747 #: ../src/guestfs-actions.pod:1008
25748 #, no-wrap
25749 msgid ""
25750 " char *\n"
25751 " guestfs_checksum (guestfs_h *g,\n"
25752 "                   const char *csumtype,\n"
25753 "                   const char *path);\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:1054
25759 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25760 msgstr ""
25761
25762 #. type: textblock
25763 #: ../src/guestfs-actions.pod:1056
25764 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25765 msgstr ""
25766
25767 #. type: textblock
25768 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
25769 msgid "(Added in 1.0.2)"
25770 msgstr ""
25771
25772 #. type: =head2
25773 #: ../src/guestfs-actions.pod:1063
25774 msgid "guestfs_checksum_device"
25775 msgstr ""
25776
25777 #. type: verbatim
25778 #: ../src/guestfs-actions.pod:1065
25779 #, no-wrap
25780 msgid ""
25781 " char *\n"
25782 " guestfs_checksum_device (guestfs_h *g,\n"
25783 "                          const char *csumtype,\n"
25784 "                          const char *device);\n"
25785 "\n"
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../src/guestfs-actions.pod:1070
25790 msgid ""
25791 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25792 "device named C<device>.  For the types of checksums supported see the "
25793 "C<guestfs_checksum> command."
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:8035
25798 msgid "(Added in 1.3.2)"
25799 msgstr ""
25800
25801 #. type: =head2
25802 #: ../src/guestfs-actions.pod:1079
25803 msgid "guestfs_checksums_out"
25804 msgstr ""
25805
25806 #. type: verbatim
25807 #: ../src/guestfs-actions.pod:1081
25808 #, no-wrap
25809 msgid ""
25810 " int\n"
25811 " guestfs_checksums_out (guestfs_h *g,\n"
25812 "                        const char *csumtype,\n"
25813 "                        const char *directory,\n"
25814 "                        const char *sumsfile);\n"
25815 "\n"
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../src/guestfs-actions.pod:1101
25820 msgid "(Added in 1.3.7)"
25821 msgstr ""
25822
25823 #. type: =head2
25824 #: ../src/guestfs-actions.pod:1103
25825 msgid "guestfs_chmod"
25826 msgstr ""
25827
25828 #. type: verbatim
25829 #: ../src/guestfs-actions.pod:1105
25830 #, no-wrap
25831 msgid ""
25832 " int\n"
25833 " guestfs_chmod (guestfs_h *g,\n"
25834 "                int mode,\n"
25835 "                const char *path);\n"
25836 "\n"
25837 msgstr ""
25838
25839 #. type: =head2
25840 #: ../src/guestfs-actions.pod:1123
25841 msgid "guestfs_chown"
25842 msgstr ""
25843
25844 #. type: verbatim
25845 #: ../src/guestfs-actions.pod:1125
25846 #, no-wrap
25847 msgid ""
25848 " int\n"
25849 " guestfs_chown (guestfs_h *g,\n"
25850 "                int owner,\n"
25851 "                int group,\n"
25852 "                const char *path);\n"
25853 "\n"
25854 msgstr ""
25855
25856 #. type: =head2
25857 #: ../src/guestfs-actions.pod:1141
25858 msgid "guestfs_command"
25859 msgstr ""
25860
25861 #. type: verbatim
25862 #: ../src/guestfs-actions.pod:1143
25863 #, no-wrap
25864 msgid ""
25865 " char *\n"
25866 " guestfs_command (guestfs_h *g,\n"
25867 "                  char *const *arguments);\n"
25868 "\n"
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../src/guestfs-actions.pod:1152
25873 msgid ""
25874 "The single parameter is an argv-style list of arguments.  The first element "
25875 "is the name of the program to run.  Subsequent elements are parameters.  The "
25876 "list must be non-empty (ie. must contain a program name).  Note that the "
25877 "command runs directly, and is I<not> invoked via the shell (see "
25878 "C<guestfs_sh>)."
25879 msgstr ""
25880
25881 #. type: textblock
25882 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2027
25883 msgid "(Added in 0.9.1)"
25884 msgstr ""
25885
25886 #. type: =head2
25887 #: ../src/guestfs-actions.pod:1185
25888 msgid "guestfs_command_lines"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../src/guestfs-actions.pod:1187
25893 #, no-wrap
25894 msgid ""
25895 " char **\n"
25896 " guestfs_command_lines (guestfs_h *g,\n"
25897 "                        char *const *arguments);\n"
25898 "\n"
25899 msgstr ""
25900
25901 #. type: textblock
25902 #: ../src/guestfs-actions.pod:1191
25903 msgid ""
25904 "This is the same as C<guestfs_command>, but splits the result into a list of "
25905 "lines."
25906 msgstr ""
25907
25908 #. type: textblock
25909 #: ../src/guestfs-actions.pod:1194
25910 msgid "See also: C<guestfs_sh_lines>"
25911 msgstr ""
25912
25913 #. type: =head2
25914 #: ../src/guestfs-actions.pod:1205
25915 msgid "guestfs_compress_device_out"
25916 msgstr ""
25917
25918 #. type: verbatim
25919 #: ../src/guestfs-actions.pod:1207
25920 #, no-wrap
25921 msgid ""
25922 " int\n"
25923 " guestfs_compress_device_out (guestfs_h *g,\n"
25924 "                              const char *ctype,\n"
25925 "                              const char *device,\n"
25926 "                              const char *zdevice,\n"
25927 "                              ...);\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: verbatim
25932 #: ../src/guestfs-actions.pod:1219
25933 #, no-wrap
25934 msgid ""
25935 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25936 "\n"
25937 msgstr ""
25938
25939 #. type: textblock
25940 #: ../src/guestfs-actions.pod:1224
25941 msgid ""
25942 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25943 "C<guestfs_compress_out>."
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
25948 msgid "(Added in 1.13.15)"
25949 msgstr ""
25950
25951 #. type: =head2
25952 #: ../src/guestfs-actions.pod:1231
25953 msgid "guestfs_compress_device_out_va"
25954 msgstr ""
25955
25956 #. type: verbatim
25957 #: ../src/guestfs-actions.pod:1233
25958 #, no-wrap
25959 msgid ""
25960 " int\n"
25961 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25962 "                                 const char *ctype,\n"
25963 "                                 const char *device,\n"
25964 "                                 const char *zdevice,\n"
25965 "                                 va_list args);\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../src/guestfs-actions.pod:1240
25971 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25972 msgstr ""
25973
25974 #. type: =head2
25975 #: ../src/guestfs-actions.pod:1244
25976 msgid "guestfs_compress_device_out_argv"
25977 msgstr ""
25978
25979 #. type: verbatim
25980 #: ../src/guestfs-actions.pod:1246
25981 #, no-wrap
25982 msgid ""
25983 " int\n"
25984 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25985 "                                   const char *ctype,\n"
25986 "                                   const char *device,\n"
25987 "                                   const char *zdevice,\n"
25988 "                                   const struct "
25989 "guestfs_compress_device_out_argv *optargs);\n"
25990 "\n"
25991 msgstr ""
25992
25993 #. type: textblock
25994 #: ../src/guestfs-actions.pod:1253
25995 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25996 msgstr ""
25997
25998 #. type: =head2
25999 #: ../src/guestfs-actions.pod:1257
26000 msgid "guestfs_compress_out"
26001 msgstr ""
26002
26003 #. type: verbatim
26004 #: ../src/guestfs-actions.pod:1259
26005 #, no-wrap
26006 msgid ""
26007 " int\n"
26008 " guestfs_compress_out (guestfs_h *g,\n"
26009 "                       const char *ctype,\n"
26010 "                       const char *file,\n"
26011 "                       const char *zfile,\n"
26012 "                       ...);\n"
26013 "\n"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:1271
26018 #, no-wrap
26019 msgid ""
26020 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26021 "\n"
26022 msgstr ""
26023
26024 #. type: =head2
26025 #: ../src/guestfs-actions.pod:1290
26026 msgid "guestfs_compress_out_va"
26027 msgstr ""
26028
26029 #. type: verbatim
26030 #: ../src/guestfs-actions.pod:1292
26031 #, no-wrap
26032 msgid ""
26033 " int\n"
26034 " guestfs_compress_out_va (guestfs_h *g,\n"
26035 "                          const char *ctype,\n"
26036 "                          const char *file,\n"
26037 "                          const char *zfile,\n"
26038 "                          va_list args);\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../src/guestfs-actions.pod:1299
26044 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26045 msgstr ""
26046
26047 #. type: =head2
26048 #: ../src/guestfs-actions.pod:1303
26049 msgid "guestfs_compress_out_argv"
26050 msgstr ""
26051
26052 #. type: verbatim
26053 #: ../src/guestfs-actions.pod:1305
26054 #, no-wrap
26055 msgid ""
26056 " int\n"
26057 " guestfs_compress_out_argv (guestfs_h *g,\n"
26058 "                            const char *ctype,\n"
26059 "                            const char *file,\n"
26060 "                            const char *zfile,\n"
26061 "                            const struct guestfs_compress_out_argv "
26062 "*optargs);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:1312
26068 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26069 msgstr ""
26070
26071 #. type: =head2
26072 #: ../src/guestfs-actions.pod:1316
26073 msgid "guestfs_config"
26074 msgstr ""
26075
26076 #. type: verbatim
26077 #: ../src/guestfs-actions.pod:1318
26078 #, no-wrap
26079 msgid ""
26080 " int\n"
26081 " guestfs_config (guestfs_h *g,\n"
26082 "                 const char *qemuparam,\n"
26083 "                 const char *qemuvalue);\n"
26084 "\n"
26085 msgstr ""
26086
26087 #. type: =head2
26088 #: ../src/guestfs-actions.pod:1336
26089 msgid "guestfs_copy_device_to_device"
26090 msgstr ""
26091
26092 #. type: verbatim
26093 #: ../src/guestfs-actions.pod:1338
26094 #, no-wrap
26095 msgid ""
26096 " int\n"
26097 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26098 "                                const char *src,\n"
26099 "                                const char *dest,\n"
26100 "                                ...);\n"
26101 "\n"
26102 msgstr ""
26103
26104 #. type: verbatim
26105 #: ../src/guestfs-actions.pod:1349
26106 #, no-wrap
26107 msgid ""
26108 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26109 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26110 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:1353
26116 msgid ""
26117 "The four calls C<guestfs_copy_device_to_device>, "
26118 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26119 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26120 "destination (device|file)."
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707 ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248 ../src/guestfs-actions.pod:8271
26125 msgid ""
26126 "This long-running command can generate progress notification messages so "
26127 "that the caller can display a progress bar or indicator.  To receive these "
26128 "messages, the caller must register a progress event callback.  See "
26129 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26130 msgstr ""
26131
26132 #. type: textblock
26133 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543 ../src/guestfs-actions.pod:6042
26134 msgid "(Added in 1.13.25)"
26135 msgstr ""
26136
26137 #. type: =head2
26138 #: ../src/guestfs-actions.pod:1381
26139 msgid "guestfs_copy_device_to_device_va"
26140 msgstr ""
26141
26142 #. type: verbatim
26143 #: ../src/guestfs-actions.pod:1383
26144 #, no-wrap
26145 msgid ""
26146 " int\n"
26147 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26148 "                                   const char *src,\n"
26149 "                                   const char *dest,\n"
26150 "                                   va_list args);\n"
26151 "\n"
26152 msgstr ""
26153
26154 #. type: textblock
26155 #: ../src/guestfs-actions.pod:1389
26156 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26157 msgstr ""
26158
26159 #. type: =head2
26160 #: ../src/guestfs-actions.pod:1393
26161 msgid "guestfs_copy_device_to_device_argv"
26162 msgstr ""
26163
26164 #. type: verbatim
26165 #: ../src/guestfs-actions.pod:1395
26166 #, no-wrap
26167 msgid ""
26168 " int\n"
26169 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26170 "                                     const char *src,\n"
26171 "                                     const char *dest,\n"
26172 "                                     const struct "
26173 "guestfs_copy_device_to_device_argv *optargs);\n"
26174 "\n"
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:1401
26179 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:1405
26184 msgid "guestfs_copy_device_to_file"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:1407
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26193 "                              const char *src,\n"
26194 "                              const char *dest,\n"
26195 "                              ...);\n"
26196 "\n"
26197 msgstr ""
26198
26199 #. type: verbatim
26200 #: ../src/guestfs-actions.pod:1418
26201 #, no-wrap
26202 msgid ""
26203 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26204 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26205 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: textblock
26210 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475 ../src/guestfs-actions.pod:1528
26211 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26212 msgstr ""
26213
26214 #. type: =head2
26215 #: ../src/guestfs-actions.pod:1434
26216 msgid "guestfs_copy_device_to_file_va"
26217 msgstr ""
26218
26219 #. type: verbatim
26220 #: ../src/guestfs-actions.pod:1436
26221 #, no-wrap
26222 msgid ""
26223 " int\n"
26224 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26225 "                                 const char *src,\n"
26226 "                                 const char *dest,\n"
26227 "                                 va_list args);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: textblock
26232 #: ../src/guestfs-actions.pod:1442
26233 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:1446
26238 msgid "guestfs_copy_device_to_file_argv"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:1448
26243 #, no-wrap
26244 msgid ""
26245 " int\n"
26246 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26247 "                                   const char *src,\n"
26248 "                                   const char *dest,\n"
26249 "                                   const struct "
26250 "guestfs_copy_device_to_file_argv *optargs);\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: textblock
26255 #: ../src/guestfs-actions.pod:1454
26256 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26257 msgstr ""
26258
26259 #. type: =head2
26260 #: ../src/guestfs-actions.pod:1458
26261 msgid "guestfs_copy_file_to_device"
26262 msgstr ""
26263
26264 #. type: verbatim
26265 #: ../src/guestfs-actions.pod:1460
26266 #, no-wrap
26267 msgid ""
26268 " int\n"
26269 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26270 "                              const char *src,\n"
26271 "                              const char *dest,\n"
26272 "                              ...);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: verbatim
26277 #: ../src/guestfs-actions.pod:1471
26278 #, no-wrap
26279 msgid ""
26280 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26281 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26282 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: =head2
26287 #: ../src/guestfs-actions.pod:1487
26288 msgid "guestfs_copy_file_to_device_va"
26289 msgstr ""
26290
26291 #. type: verbatim
26292 #: ../src/guestfs-actions.pod:1489
26293 #, no-wrap
26294 msgid ""
26295 " int\n"
26296 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26297 "                                 const char *src,\n"
26298 "                                 const char *dest,\n"
26299 "                                 va_list args);\n"
26300 "\n"
26301 msgstr ""
26302
26303 #. type: textblock
26304 #: ../src/guestfs-actions.pod:1495
26305 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../src/guestfs-actions.pod:1499
26310 msgid "guestfs_copy_file_to_device_argv"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../src/guestfs-actions.pod:1501
26315 #, no-wrap
26316 msgid ""
26317 " int\n"
26318 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26319 "                                   const char *src,\n"
26320 "                                   const char *dest,\n"
26321 "                                   const struct "
26322 "guestfs_copy_file_to_device_argv *optargs);\n"
26323 "\n"
26324 msgstr ""
26325
26326 #. type: textblock
26327 #: ../src/guestfs-actions.pod:1507
26328 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26329 msgstr ""
26330
26331 #. type: =head2
26332 #: ../src/guestfs-actions.pod:1511
26333 msgid "guestfs_copy_file_to_file"
26334 msgstr ""
26335
26336 #. type: verbatim
26337 #: ../src/guestfs-actions.pod:1513
26338 #, no-wrap
26339 msgid ""
26340 " int\n"
26341 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26342 "                            const char *src,\n"
26343 "                            const char *dest,\n"
26344 "                            ...);\n"
26345 "\n"
26346 msgstr ""
26347
26348 #. type: verbatim
26349 #: ../src/guestfs-actions.pod:1524
26350 #, no-wrap
26351 msgid ""
26352 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26353 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26354 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26355 "\n"
26356 msgstr ""
26357
26358 #. type: textblock
26359 #: ../src/guestfs-actions.pod:1531
26360 msgid ""
26361 "This is B<not> the function you want for copying files.  This is for copying "
26362 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26363 "C<guestfs_mv> for general file copying and moving functions."
26364 msgstr ""
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:1545
26368 msgid "guestfs_copy_file_to_file_va"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:1547
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
26377 "                               const char *src,\n"
26378 "                               const char *dest,\n"
26379 "                               va_list args);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: textblock
26384 #: ../src/guestfs-actions.pod:1553
26385 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
26386 msgstr ""
26387
26388 #. type: =head2
26389 #: ../src/guestfs-actions.pod:1557
26390 msgid "guestfs_copy_file_to_file_argv"
26391 msgstr ""
26392
26393 #. type: verbatim
26394 #: ../src/guestfs-actions.pod:1559
26395 #, no-wrap
26396 msgid ""
26397 " int\n"
26398 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
26399 "                                 const char *src,\n"
26400 "                                 const char *dest,\n"
26401 "                                 const struct guestfs_copy_file_to_file_argv "
26402 "*optargs);\n"
26403 "\n"
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:1565
26408 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../src/guestfs-actions.pod:1569
26413 msgid "guestfs_copy_size"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../src/guestfs-actions.pod:1571
26418 #, no-wrap
26419 msgid ""
26420 " int\n"
26421 " guestfs_copy_size (guestfs_h *g,\n"
26422 "                    const char *src,\n"
26423 "                    const char *dest,\n"
26424 "                    int64_t size);\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
26430 msgid ""
26431 "I<This function is deprecated.> In new code, use the "
26432 "L</guestfs_copy_device_to_device> call instead."
26433 msgstr ""
26434
26435 #. type: textblock
26436 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
26437 msgid "(Added in 1.0.87)"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:1599
26442 msgid "guestfs_cp"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:1601
26447 #, no-wrap
26448 msgid ""
26449 " int\n"
26450 " guestfs_cp (guestfs_h *g,\n"
26451 "             const char *src,\n"
26452 "             const char *dest);\n"
26453 "\n"
26454 msgstr ""
26455
26456 #. type: textblock
26457 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:6056
26458 msgid "(Added in 1.0.18)"
26459 msgstr ""
26460
26461 #. type: =head2
26462 #: ../src/guestfs-actions.pod:1613
26463 msgid "guestfs_cp_a"
26464 msgstr ""
26465
26466 #. type: verbatim
26467 #: ../src/guestfs-actions.pod:1615
26468 #, no-wrap
26469 msgid ""
26470 " int\n"
26471 " guestfs_cp_a (guestfs_h *g,\n"
26472 "               const char *src,\n"
26473 "               const char *dest);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: =head2
26478 #: ../src/guestfs-actions.pod:1627
26479 msgid "guestfs_dd"
26480 msgstr ""
26481
26482 #. type: verbatim
26483 #: ../src/guestfs-actions.pod:1629
26484 #, no-wrap
26485 msgid ""
26486 " int\n"
26487 " guestfs_dd (guestfs_h *g,\n"
26488 "             const char *src,\n"
26489 "             const char *dest);\n"
26490 "\n"
26491 msgstr ""
26492
26493 #. type: textblock
26494 #: ../src/guestfs-actions.pod:1646
26495 msgid ""
26496 "If the destination is a device, it must be as large or larger than the "
26497 "source file or device, otherwise the copy will fail.  This command cannot do "
26498 "partial copies (see C<guestfs_copy_device_to_device>)."
26499 msgstr ""
26500
26501 #. type: =head2
26502 #: ../src/guestfs-actions.pod:1655
26503 msgid "guestfs_df"
26504 msgstr ""
26505
26506 #. type: verbatim
26507 #: ../src/guestfs-actions.pod:1657
26508 #, no-wrap
26509 msgid ""
26510 " char *\n"
26511 " guestfs_df (guestfs_h *g);\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: textblock
26516 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
26517 msgid ""
26518 "This command is mostly useful for interactive sessions.  It is I<not> "
26519 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26520 "from programs."
26521 msgstr ""
26522
26523 #. type: textblock
26524 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101 ../src/guestfs-actions.pod:8114
26525 msgid "(Added in 1.0.54)"
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:1671
26530 msgid "guestfs_df_h"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:1673
26535 #, no-wrap
26536 msgid ""
26537 " char *\n"
26538 " guestfs_df_h (guestfs_h *g);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:1688
26544 msgid "guestfs_dmesg"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:1690
26549 #, no-wrap
26550 msgid ""
26551 " char *\n"
26552 " guestfs_dmesg (guestfs_h *g);\n"
26553 "\n"
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:1697
26558 msgid ""
26559 "Another way to get the same information is to enable verbose messages with "
26560 "C<guestfs_set_verbose> or by setting the environment variable "
26561 "C<LIBGUESTFS_DEBUG=1> before running the program."
26562 msgstr ""
26563
26564 #. type: =head2
26565 #: ../src/guestfs-actions.pod:1707
26566 msgid "guestfs_download"
26567 msgstr ""
26568
26569 #. type: verbatim
26570 #: ../src/guestfs-actions.pod:1709
26571 #, no-wrap
26572 msgid ""
26573 " int\n"
26574 " guestfs_download (guestfs_h *g,\n"
26575 "                   const char *remotefilename,\n"
26576 "                   const char *filename);\n"
26577 "\n"
26578 msgstr ""
26579
26580 #. type: textblock
26581 #: ../src/guestfs-actions.pod:1719
26582 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:1730
26587 msgid "guestfs_download_offset"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:1732
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_download_offset (guestfs_h *g,\n"
26596 "                          const char *remotefilename,\n"
26597 "                          const char *filename,\n"
26598 "                          int64_t offset,\n"
26599 "                          int64_t size);\n"
26600 "\n"
26601 msgstr ""
26602
26603 #. type: textblock
26604 #: ../src/guestfs-actions.pod:1745
26605 msgid ""
26606 "Note that there is no limit on the amount of data that can be downloaded "
26607 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26608 "full amount unless an error occurs."
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:1750
26613 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
26618 msgid "(Added in 1.5.17)"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:1761
26623 msgid "guestfs_drop_caches"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:1763
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_drop_caches (guestfs_h *g,\n"
26632 "                      int whattodrop);\n"
26633 "\n"
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../src/guestfs-actions.pod:1781
26638 msgid "guestfs_du"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../src/guestfs-actions.pod:1783
26643 #, no-wrap
26644 msgid ""
26645 " int64_t\n"
26646 " guestfs_du (guestfs_h *g,\n"
26647 "             const char *path);\n"
26648 "\n"
26649 msgstr ""
26650
26651 #. type: =head2
26652 #: ../src/guestfs-actions.pod:1806
26653 msgid "guestfs_e2fsck_f"
26654 msgstr ""
26655
26656 #. type: verbatim
26657 #: ../src/guestfs-actions.pod:1808
26658 #, no-wrap
26659 msgid ""
26660 " int\n"
26661 " guestfs_e2fsck_f (guestfs_h *g,\n"
26662 "                   const char *device);\n"
26663 "\n"
26664 msgstr ""
26665
26666 #. type: textblock
26667 #: ../src/guestfs-actions.pod:1816
26668 msgid ""
26669 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26670 "Normally you should use C<guestfs_fsck>."
26671 msgstr ""
26672
26673 #. type: textblock
26674 #: ../src/guestfs-actions.pod:1821
26675 msgid "(Added in 1.0.29)"
26676 msgstr ""
26677
26678 #. type: =head2
26679 #: ../src/guestfs-actions.pod:1823
26680 msgid "guestfs_echo_daemon"
26681 msgstr ""
26682
26683 #. type: verbatim
26684 #: ../src/guestfs-actions.pod:1825
26685 #, no-wrap
26686 msgid ""
26687 " char *\n"
26688 " guestfs_echo_daemon (guestfs_h *g,\n"
26689 "                      char *const *words);\n"
26690 "\n"
26691 msgstr ""
26692
26693 #. type: textblock
26694 #: ../src/guestfs-actions.pod:1834
26695 msgid "See also C<guestfs_ping_daemon>."
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:6926
26700 msgid "(Added in 1.0.69)"
26701 msgstr ""
26702
26703 #. type: =head2
26704 #: ../src/guestfs-actions.pod:1841
26705 msgid "guestfs_egrep"
26706 msgstr ""
26707
26708 #. type: verbatim
26709 #: ../src/guestfs-actions.pod:1843
26710 #, no-wrap
26711 msgid ""
26712 " char **\n"
26713 " guestfs_egrep (guestfs_h *g,\n"
26714 "                const char *regex,\n"
26715 "                const char *path);\n"
26716 "\n"
26717 msgstr ""
26718
26719 #. type: textblock
26720 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877 ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924 ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386 ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225 ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335 ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
26721 msgid "(Added in 1.0.66)"
26722 msgstr ""
26723
26724 #. type: =head2
26725 #: ../src/guestfs-actions.pod:1860
26726 msgid "guestfs_egrepi"
26727 msgstr ""
26728
26729 #. type: verbatim
26730 #: ../src/guestfs-actions.pod:1862
26731 #, no-wrap
26732 msgid ""
26733 " char **\n"
26734 " guestfs_egrepi (guestfs_h *g,\n"
26735 "                 const char *regex,\n"
26736 "                 const char *path);\n"
26737 "\n"
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:1879
26742 msgid "guestfs_equal"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:1881
26747 #, no-wrap
26748 msgid ""
26749 " int\n"
26750 " guestfs_equal (guestfs_h *g,\n"
26751 "                const char *file1,\n"
26752 "                const char *file2);\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: =head2
26757 #: ../src/guestfs-actions.pod:1895
26758 msgid "guestfs_exists"
26759 msgstr ""
26760
26761 #. type: verbatim
26762 #: ../src/guestfs-actions.pod:1897
26763 #, no-wrap
26764 msgid ""
26765 " int\n"
26766 " guestfs_exists (guestfs_h *g,\n"
26767 "                 const char *path);\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:1904
26773 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:1910
26778 msgid "guestfs_fallocate"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:1912
26783 #, no-wrap
26784 msgid ""
26785 " int\n"
26786 " guestfs_fallocate (guestfs_h *g,\n"
26787 "                    const char *path,\n"
26788 "                    int len);\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: textblock
26793 #: ../src/guestfs-actions.pod:1917
26794 msgid ""
26795 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26796 "call instead."
26797 msgstr ""
26798
26799 #. type: =head2
26800 #: ../src/guestfs-actions.pod:1936
26801 msgid "guestfs_fallocate64"
26802 msgstr ""
26803
26804 #. type: verbatim
26805 #: ../src/guestfs-actions.pod:1938
26806 #, no-wrap
26807 msgid ""
26808 " int\n"
26809 " guestfs_fallocate64 (guestfs_h *g,\n"
26810 "                      const char *path,\n"
26811 "                      int64_t len);\n"
26812 "\n"
26813 msgstr ""
26814
26815 #. type: textblock
26816 #: ../src/guestfs-actions.pod:1947
26817 msgid ""
26818 "Note that this call allocates disk blocks for the file.  To create a sparse "
26819 "file use C<guestfs_truncate_size> instead."
26820 msgstr ""
26821
26822 #. type: textblock
26823 #: ../src/guestfs-actions.pod:1950
26824 msgid ""
26825 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26826 "oversight it only allowed 30 bit lengths to be specified, effectively "
26827 "limiting the maximum size of files created through that call to 1GB."
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../src/guestfs-actions.pod:1961
26832 msgid "(Added in 1.3.17)"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../src/guestfs-actions.pod:1963
26837 msgid "guestfs_fgrep"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../src/guestfs-actions.pod:1965
26842 #, no-wrap
26843 msgid ""
26844 " char **\n"
26845 " guestfs_fgrep (guestfs_h *g,\n"
26846 "                const char *pattern,\n"
26847 "                const char *path);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: =head2
26852 #: ../src/guestfs-actions.pod:1982
26853 msgid "guestfs_fgrepi"
26854 msgstr ""
26855
26856 #. type: verbatim
26857 #: ../src/guestfs-actions.pod:1984
26858 #, no-wrap
26859 msgid ""
26860 " char **\n"
26861 " guestfs_fgrepi (guestfs_h *g,\n"
26862 "                 const char *pattern,\n"
26863 "                 const char *path);\n"
26864 "\n"
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:2001
26869 msgid "guestfs_file"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:2003
26874 #, no-wrap
26875 msgid ""
26876 " char *\n"
26877 " guestfs_file (guestfs_h *g,\n"
26878 "               const char *path);\n"
26879 "\n"
26880 msgstr ""
26881
26882 #. type: textblock
26883 #: ../src/guestfs-actions.pod:2021
26884 msgid ""
26885 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26886 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26887 msgstr ""
26888
26889 #. type: =head2
26890 #: ../src/guestfs-actions.pod:2029
26891 msgid "guestfs_file_architecture"
26892 msgstr ""
26893
26894 #. type: verbatim
26895 #: ../src/guestfs-actions.pod:2031
26896 #, no-wrap
26897 msgid ""
26898 " char *\n"
26899 " guestfs_file_architecture (guestfs_h *g,\n"
26900 "                            const char *filename);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4008
26906 msgid "(Added in 1.5.3)"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:2141
26911 msgid "guestfs_filesize"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:2143
26916 #, no-wrap
26917 msgid ""
26918 " int64_t\n"
26919 " guestfs_filesize (guestfs_h *g,\n"
26920 "                   const char *file);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: textblock
26925 #: ../src/guestfs-actions.pod:2149
26926 msgid ""
26927 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26928 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26929 "devices, use C<guestfs_blockdev_getsize64>."
26930 msgstr ""
26931
26932 #. type: textblock
26933 #: ../src/guestfs-actions.pod:2155
26934 msgid "(Added in 1.0.82)"
26935 msgstr ""
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:2157
26939 msgid "guestfs_fill"
26940 msgstr ""
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:2159
26944 #, no-wrap
26945 msgid ""
26946 " int\n"
26947 " guestfs_fill (guestfs_h *g,\n"
26948 "               int c,\n"
26949 "               int len,\n"
26950 "               const char *path);\n"
26951 "\n"
26952 msgstr ""
26953
26954 #. type: textblock
26955 #: ../src/guestfs-actions.pod:2169
26956 msgid ""
26957 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26958 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26959 "bytes use C<guestfs_fill_pattern>."
26960 msgstr ""
26961
26962 #. type: textblock
26963 #: ../src/guestfs-actions.pod:2181
26964 msgid "(Added in 1.0.79)"
26965 msgstr ""
26966
26967 #. type: =head2
26968 #: ../src/guestfs-actions.pod:2183
26969 msgid "guestfs_fill_pattern"
26970 msgstr ""
26971
26972 #. type: verbatim
26973 #: ../src/guestfs-actions.pod:2185
26974 #, no-wrap
26975 msgid ""
26976 " int\n"
26977 " guestfs_fill_pattern (guestfs_h *g,\n"
26978 "                       const char *pattern,\n"
26979 "                       int len,\n"
26980 "                       const char *path);\n"
26981 "\n"
26982 msgstr ""
26983
26984 #. type: textblock
26985 #: ../src/guestfs-actions.pod:2191
26986 msgid ""
26987 "This function is like C<guestfs_fill> except that it creates a new file of "
26988 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26989 "pattern is truncated if necessary to ensure the length of the file is "
26990 "exactly C<len> bytes."
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:2203
26995 msgid "(Added in 1.3.12)"
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:2205
27000 msgid "guestfs_find"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:2207
27005 #, no-wrap
27006 msgid ""
27007 " char **\n"
27008 " guestfs_find (guestfs_h *g,\n"
27009 "               const char *directory);\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:2223
27015 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../src/guestfs-actions.pod:2236
27020 msgid "See also C<guestfs_find0>."
27021 msgstr ""
27022
27023 #. type: textblock
27024 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:6474
27025 msgid "(Added in 1.0.27)"
27026 msgstr ""
27027
27028 #. type: =head2
27029 #: ../src/guestfs-actions.pod:2247
27030 msgid "guestfs_find0"
27031 msgstr ""
27032
27033 #. type: verbatim
27034 #: ../src/guestfs-actions.pod:2249
27035 #, no-wrap
27036 msgid ""
27037 " int\n"
27038 " guestfs_find0 (guestfs_h *g,\n"
27039 "                const char *directory,\n"
27040 "                const char *files);\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: textblock
27045 #: ../src/guestfs-actions.pod:2258
27046 msgid ""
27047 "This command works the same way as C<guestfs_find> with the following "
27048 "exceptions:"
27049 msgstr ""
27050
27051 #. type: textblock
27052 #: ../src/guestfs-actions.pod:2285
27053 msgid "(Added in 1.0.74)"
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:2287
27058 msgid "guestfs_findfs_label"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:2289
27063 #, no-wrap
27064 msgid ""
27065 " char *\n"
27066 " guestfs_findfs_label (guestfs_h *g,\n"
27067 "                       const char *label);\n"
27068 "\n"
27069 msgstr ""
27070
27071 #. type: textblock
27072 #: ../src/guestfs-actions.pod:2297
27073 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27074 msgstr ""
27075
27076 #. type: =head2
27077 #: ../src/guestfs-actions.pod:2304
27078 msgid "guestfs_findfs_uuid"
27079 msgstr ""
27080
27081 #. type: verbatim
27082 #: ../src/guestfs-actions.pod:2306
27083 #, no-wrap
27084 msgid ""
27085 " char *\n"
27086 " guestfs_findfs_uuid (guestfs_h *g,\n"
27087 "                      const char *uuid);\n"
27088 "\n"
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../src/guestfs-actions.pod:2314
27093 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27094 msgstr ""
27095
27096 #. type: =head2
27097 #: ../src/guestfs-actions.pod:2321
27098 msgid "guestfs_fsck"
27099 msgstr ""
27100
27101 #. type: verbatim
27102 #: ../src/guestfs-actions.pod:2323
27103 #, no-wrap
27104 msgid ""
27105 " int\n"
27106 " guestfs_fsck (guestfs_h *g,\n"
27107 "               const char *fstype,\n"
27108 "               const char *device);\n"
27109 "\n"
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
27114 msgid "(Added in 1.0.16)"
27115 msgstr ""
27116
27117 #. type: =head2
27118 #: ../src/guestfs-actions.pod:2360
27119 msgid "guestfs_get_append"
27120 msgstr ""
27121
27122 #. type: verbatim
27123 #: ../src/guestfs-actions.pod:2362
27124 #, no-wrap
27125 msgid ""
27126 " const char *\n"
27127 " guestfs_get_append (guestfs_h *g);\n"
27128 "\n"
27129 msgstr ""
27130
27131 #. type: textblock
27132 #: ../src/guestfs-actions.pod:2370
27133 msgid ""
27134 "This function returns a string which may be NULL.  There is no way to return "
27135 "an error from this function.  The string is owned by the guest handle and "
27136 "must I<not> be freed."
27137 msgstr ""
27138
27139 #. type: textblock
27140 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080 ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
27141 msgid "(Added in 1.0.26)"
27142 msgstr ""
27143
27144 #. type: =head2
27145 #: ../src/guestfs-actions.pod:2376
27146 msgid "guestfs_get_attach_method"
27147 msgstr ""
27148
27149 #. type: verbatim
27150 #: ../src/guestfs-actions.pod:2378
27151 #, no-wrap
27152 msgid ""
27153 " char *\n"
27154 " guestfs_get_attach_method (guestfs_h *g);\n"
27155 "\n"
27156 msgstr ""
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:2381
27160 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27161 msgstr ""
27162
27163 #. type: textblock
27164 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
27165 msgid "(Added in 1.9.8)"
27166 msgstr ""
27167
27168 #. type: =head2
27169 #: ../src/guestfs-actions.pod:2388
27170 msgid "guestfs_get_autosync"
27171 msgstr ""
27172
27173 #. type: verbatim
27174 #: ../src/guestfs-actions.pod:2390
27175 #, no-wrap
27176 msgid ""
27177 " int\n"
27178 " guestfs_get_autosync (guestfs_h *g);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:2399
27184 msgid "guestfs_get_direct"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:2401
27189 #, no-wrap
27190 msgid ""
27191 " int\n"
27192 " guestfs_get_direct (guestfs_h *g);\n"
27193 "\n"
27194 msgstr ""
27195
27196 #. type: textblock
27197 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
27198 msgid "(Added in 1.0.72)"
27199 msgstr ""
27200
27201 #. type: =head2
27202 #: ../src/guestfs-actions.pod:2410
27203 msgid "guestfs_get_e2label"
27204 msgstr ""
27205
27206 #. type: verbatim
27207 #: ../src/guestfs-actions.pod:2412
27208 #, no-wrap
27209 msgid ""
27210 " char *\n"
27211 " guestfs_get_e2label (guestfs_h *g,\n"
27212 "                      const char *device);\n"
27213 "\n"
27214 msgstr ""
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:2416
27218 msgid ""
27219 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27220 "call instead."
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
27225 msgid "(Added in 1.0.15)"
27226 msgstr ""
27227
27228 #. type: =head2
27229 #: ../src/guestfs-actions.pod:2431
27230 msgid "guestfs_get_e2uuid"
27231 msgstr ""
27232
27233 #. type: verbatim
27234 #: ../src/guestfs-actions.pod:2433
27235 #, no-wrap
27236 msgid ""
27237 " char *\n"
27238 " guestfs_get_e2uuid (guestfs_h *g,\n"
27239 "                     const char *device);\n"
27240 "\n"
27241 msgstr ""
27242
27243 #. type: textblock
27244 #: ../src/guestfs-actions.pod:2437
27245 msgid ""
27246 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27247 "call instead."
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../src/guestfs-actions.pod:2452
27252 msgid "guestfs_get_memsize"
27253 msgstr ""
27254
27255 #. type: verbatim
27256 #: ../src/guestfs-actions.pod:2454
27257 #, no-wrap
27258 msgid ""
27259 " int\n"
27260 " guestfs_get_memsize (guestfs_h *g);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:2460
27266 msgid ""
27267 "If C<guestfs_set_memsize> was not called on this handle, and if "
27268 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27269 "value for memsize."
27270 msgstr ""
27271
27272 #. type: textblock
27273 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337 ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
27274 msgid "(Added in 1.0.55)"
27275 msgstr ""
27276
27277 #. type: =head2
27278 #: ../src/guestfs-actions.pod:2471
27279 msgid "guestfs_get_network"
27280 msgstr ""
27281
27282 #. type: verbatim
27283 #: ../src/guestfs-actions.pod:2473
27284 #, no-wrap
27285 msgid ""
27286 " int\n"
27287 " guestfs_get_network (guestfs_h *g);\n"
27288 "\n"
27289 msgstr ""
27290
27291 #. type: textblock
27292 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
27293 msgid "(Added in 1.5.4)"
27294 msgstr ""
27295
27296 #. type: =head2
27297 #: ../src/guestfs-actions.pod:2482
27298 msgid "guestfs_get_path"
27299 msgstr ""
27300
27301 #. type: verbatim
27302 #: ../src/guestfs-actions.pod:2484
27303 #, no-wrap
27304 msgid ""
27305 " const char *\n"
27306 " guestfs_get_path (guestfs_h *g);\n"
27307 "\n"
27308 msgstr ""
27309
27310 #. type: textblock
27311 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27312 msgid ""
27313 "This function returns a string, or NULL on error.  The string is owned by "
27314 "the guest handle and must I<not> be freed."
27315 msgstr ""
27316
27317 #. type: =head2
27318 #: ../src/guestfs-actions.pod:2497
27319 msgid "guestfs_get_pgroup"
27320 msgstr ""
27321
27322 #. type: verbatim
27323 #: ../src/guestfs-actions.pod:2499
27324 #, no-wrap
27325 msgid ""
27326 " int\n"
27327 " guestfs_get_pgroup (guestfs_h *g);\n"
27328 "\n"
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:8154
27333 msgid "(Added in 1.11.18)"
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../src/guestfs-actions.pod:2508
27338 msgid "guestfs_get_pid"
27339 msgstr ""
27340
27341 #. type: verbatim
27342 #: ../src/guestfs-actions.pod:2510
27343 #, no-wrap
27344 msgid ""
27345 " int\n"
27346 " guestfs_get_pid (guestfs_h *g);\n"
27347 "\n"
27348 msgstr ""
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:2520
27352 msgid "(Added in 1.0.56)"
27353 msgstr ""
27354
27355 #. type: =head2
27356 #: ../src/guestfs-actions.pod:2522
27357 msgid "guestfs_get_qemu"
27358 msgstr ""
27359
27360 #. type: verbatim
27361 #: ../src/guestfs-actions.pod:2524
27362 #, no-wrap
27363 msgid ""
27364 " const char *\n"
27365 " guestfs_get_qemu (guestfs_h *g);\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: textblock
27370 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
27371 msgid "(Added in 1.0.6)"
27372 msgstr ""
27373
27374 #. type: =head2
27375 #: ../src/guestfs-actions.pod:2537
27376 msgid "guestfs_get_recovery_proc"
27377 msgstr ""
27378
27379 #. type: verbatim
27380 #: ../src/guestfs-actions.pod:2539
27381 #, no-wrap
27382 msgid ""
27383 " int\n"
27384 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: textblock
27389 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855 ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585 ../src/guestfs-actions.pod:7777
27390 msgid "(Added in 1.0.77)"
27391 msgstr ""
27392
27393 #. type: =head2
27394 #: ../src/guestfs-actions.pod:2548
27395 msgid "guestfs_get_selinux"
27396 msgstr ""
27397
27398 #. type: verbatim
27399 #: ../src/guestfs-actions.pod:2550
27400 #, no-wrap
27401 msgid ""
27402 " int\n"
27403 " guestfs_get_selinux (guestfs_h *g);\n"
27404 "\n"
27405 msgstr ""
27406
27407 #. type: textblock
27408 #: ../src/guestfs-actions.pod:2553
27409 msgid ""
27410 "This returns the current setting of the selinux flag which is passed to the "
27411 "appliance at boot time.  See C<guestfs_set_selinux>."
27412 msgstr ""
27413
27414 #. type: textblock
27415 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
27416 msgid "(Added in 1.0.67)"
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:2563
27421 msgid "guestfs_get_smp"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:2565
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_get_smp (guestfs_h *g);\n"
27430 "\n"
27431 msgstr ""
27432
27433 #. type: =head2
27434 #: ../src/guestfs-actions.pod:2574
27435 msgid "guestfs_get_state"
27436 msgstr ""
27437
27438 #. type: verbatim
27439 #: ../src/guestfs-actions.pod:2576
27440 #, no-wrap
27441 msgid ""
27442 " int\n"
27443 " guestfs_get_state (guestfs_h *g);\n"
27444 "\n"
27445 msgstr ""
27446
27447 #. type: =head2
27448 #: ../src/guestfs-actions.pod:2588
27449 msgid "guestfs_get_trace"
27450 msgstr ""
27451
27452 #. type: verbatim
27453 #: ../src/guestfs-actions.pod:2590
27454 #, no-wrap
27455 msgid ""
27456 " int\n"
27457 " guestfs_get_trace (guestfs_h *g);\n"
27458 "\n"
27459 msgstr ""
27460
27461 #. type: =head2
27462 #: ../src/guestfs-actions.pod:2599
27463 msgid "guestfs_get_umask"
27464 msgstr ""
27465
27466 #. type: verbatim
27467 #: ../src/guestfs-actions.pod:2601
27468 #, no-wrap
27469 msgid ""
27470 " int\n"
27471 " guestfs_get_umask (guestfs_h *g);\n"
27472 "\n"
27473 msgstr ""
27474
27475 #. type: textblock
27476 #: ../src/guestfs-actions.pod:2604
27477 msgid ""
27478 "Return the current umask.  By default the umask is C<022> unless it has been "
27479 "set by calling C<guestfs_umask>."
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:2611
27484 msgid "guestfs_get_verbose"
27485 msgstr ""
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:2613
27489 #, no-wrap
27490 msgid ""
27491 " int\n"
27492 " guestfs_get_verbose (guestfs_h *g);\n"
27493 "\n"
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:2622
27498 msgid "guestfs_getcon"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:2624
27503 #, no-wrap
27504 msgid ""
27505 " char *\n"
27506 " guestfs_getcon (guestfs_h *g);\n"
27507 "\n"
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:2629
27512 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27513 msgstr ""
27514
27515 #. type: =head2
27516 #: ../src/guestfs-actions.pod:2637
27517 msgid "guestfs_getxattr"
27518 msgstr ""
27519
27520 #. type: verbatim
27521 #: ../src/guestfs-actions.pod:2639
27522 #, no-wrap
27523 msgid ""
27524 " char *\n"
27525 " guestfs_getxattr (guestfs_h *g,\n"
27526 "                   const char *path,\n"
27527 "                   const char *name,\n"
27528 "                   size_t *size_r);\n"
27529 "\n"
27530 msgstr ""
27531
27532 #. type: textblock
27533 #: ../src/guestfs-actions.pod:2645
27534 msgid ""
27535 "Get a single extended attribute from file C<path> named C<name>.  This call "
27536 "follows symlinks.  If you want to lookup an extended attribute for the "
27537 "symlink itself, use C<guestfs_lgetxattr>."
27538 msgstr ""
27539
27540 #. type: textblock
27541 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
27542 msgid ""
27543 "Normally it is better to get all extended attributes from a file in one go "
27544 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27545 "implementations are buggy and do not provide a way to list out attributes.  "
27546 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27547 "extended attributes you want in advance and call this function."
27548 msgstr ""
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:2659
27552 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27553 msgstr ""
27554
27555 #. type: textblock
27556 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6282
27557 msgid ""
27558 "This function returns a buffer, or NULL on error.  The size of the returned "
27559 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27560 "after use>."
27561 msgstr ""
27562
27563 #. type: textblock
27564 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
27565 msgid "(Added in 1.7.24)"
27566 msgstr ""
27567
27568 #. type: =head2
27569 #: ../src/guestfs-actions.pod:2667
27570 msgid "guestfs_getxattrs"
27571 msgstr ""
27572
27573 #. type: verbatim
27574 #: ../src/guestfs-actions.pod:2669
27575 #, no-wrap
27576 msgid ""
27577 " struct guestfs_xattr_list *\n"
27578 " guestfs_getxattrs (guestfs_h *g,\n"
27579 "                    const char *path);\n"
27580 "\n"
27581 msgstr ""
27582
27583 #. type: textblock
27584 #: ../src/guestfs-actions.pod:2679
27585 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27586 msgstr ""
27587
27588 #. type: textblock
27589 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4851
27590 msgid ""
27591 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27592 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27593 msgstr ""
27594
27595 #. type: textblock
27596 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:8362
27597 msgid "(Added in 1.0.59)"
27598 msgstr ""
27599
27600 #. type: =head2
27601 #: ../src/guestfs-actions.pod:2687
27602 msgid "guestfs_glob_expand"
27603 msgstr ""
27604
27605 #. type: verbatim
27606 #: ../src/guestfs-actions.pod:2689
27607 #, no-wrap
27608 msgid ""
27609 " char **\n"
27610 " guestfs_glob_expand (guestfs_h *g,\n"
27611 "                      const char *pattern);\n"
27612 "\n"
27613 msgstr ""
27614
27615 #. type: textblock
27616 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7180
27617 msgid "(Added in 1.0.50)"
27618 msgstr ""
27619
27620 #. type: =head2
27621 #: ../src/guestfs-actions.pod:2710
27622 msgid "guestfs_grep"
27623 msgstr ""
27624
27625 #. type: verbatim
27626 #: ../src/guestfs-actions.pod:2712
27627 #, no-wrap
27628 msgid ""
27629 " char **\n"
27630 " guestfs_grep (guestfs_h *g,\n"
27631 "               const char *regex,\n"
27632 "               const char *path);\n"
27633 "\n"
27634 msgstr ""
27635
27636 #. type: =head2
27637 #: ../src/guestfs-actions.pod:2729
27638 msgid "guestfs_grepi"
27639 msgstr ""
27640
27641 #. type: verbatim
27642 #: ../src/guestfs-actions.pod:2731
27643 #, no-wrap
27644 msgid ""
27645 " char **\n"
27646 " guestfs_grepi (guestfs_h *g,\n"
27647 "                const char *regex,\n"
27648 "                const char *path);\n"
27649 "\n"
27650 msgstr ""
27651
27652 #. type: =head2
27653 #: ../src/guestfs-actions.pod:2748
27654 msgid "guestfs_grub_install"
27655 msgstr ""
27656
27657 #. type: verbatim
27658 #: ../src/guestfs-actions.pod:2750
27659 #, no-wrap
27660 msgid ""
27661 " int\n"
27662 " guestfs_grub_install (guestfs_h *g,\n"
27663 "                       const char *root,\n"
27664 "                       const char *device);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:2793
27670 msgid "(Added in 1.0.17)"
27671 msgstr ""
27672
27673 #. type: =head2
27674 #: ../src/guestfs-actions.pod:2795
27675 msgid "guestfs_head"
27676 msgstr ""
27677
27678 #. type: verbatim
27679 #: ../src/guestfs-actions.pod:2797
27680 #, no-wrap
27681 msgid ""
27682 " char **\n"
27683 " guestfs_head (guestfs_h *g,\n"
27684 "               const char *path);\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: =head2
27689 #: ../src/guestfs-actions.pod:2813
27690 msgid "guestfs_head_n"
27691 msgstr ""
27692
27693 #. type: verbatim
27694 #: ../src/guestfs-actions.pod:2815
27695 #, no-wrap
27696 msgid ""
27697 " char **\n"
27698 " guestfs_head_n (guestfs_h *g,\n"
27699 "                 int nrlines,\n"
27700 "                 const char *path);\n"
27701 "\n"
27702 msgstr ""
27703
27704 #. type: =head2
27705 #: ../src/guestfs-actions.pod:2837
27706 msgid "guestfs_hexdump"
27707 msgstr ""
27708
27709 #. type: verbatim
27710 #: ../src/guestfs-actions.pod:2839
27711 #, no-wrap
27712 msgid ""
27713 " char *\n"
27714 " guestfs_hexdump (guestfs_h *g,\n"
27715 "                  const char *path);\n"
27716 "\n"
27717 msgstr ""
27718
27719 #. type: textblock
27720 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244 ../src/guestfs-actions.pod:7299
27721 msgid "(Added in 1.0.22)"
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:2854
27726 msgid "guestfs_initrd_cat"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:2856
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_initrd_cat (guestfs_h *g,\n"
27735 "                     const char *initrdpath,\n"
27736 "                     const char *filename,\n"
27737 "                     size_t *size_r);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:2872
27743 msgid "See also C<guestfs_initrd_list>."
27744 msgstr ""
27745
27746 #. type: =head2
27747 #: ../src/guestfs-actions.pod:2883
27748 msgid "guestfs_initrd_list"
27749 msgstr ""
27750
27751 #. type: verbatim
27752 #: ../src/guestfs-actions.pod:2885
27753 #, no-wrap
27754 msgid ""
27755 " char **\n"
27756 " guestfs_initrd_list (guestfs_h *g,\n"
27757 "                      const char *path);\n"
27758 "\n"
27759 msgstr ""
27760
27761 #. type: =head2
27762 #: ../src/guestfs-actions.pod:2905
27763 msgid "guestfs_inotify_add_watch"
27764 msgstr ""
27765
27766 #. type: verbatim
27767 #: ../src/guestfs-actions.pod:2907
27768 #, no-wrap
27769 msgid ""
27770 " int64_t\n"
27771 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27772 "                            const char *path,\n"
27773 "                            int mask);\n"
27774 "\n"
27775 msgstr ""
27776
27777 #. type: =head2
27778 #: ../src/guestfs-actions.pod:2926
27779 msgid "guestfs_inotify_close"
27780 msgstr ""
27781
27782 #. type: verbatim
27783 #: ../src/guestfs-actions.pod:2928
27784 #, no-wrap
27785 msgid ""
27786 " int\n"
27787 " guestfs_inotify_close (guestfs_h *g);\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: =head2
27792 #: ../src/guestfs-actions.pod:2939
27793 msgid "guestfs_inotify_files"
27794 msgstr ""
27795
27796 #. type: verbatim
27797 #: ../src/guestfs-actions.pod:2941
27798 #, no-wrap
27799 msgid ""
27800 " char **\n"
27801 " guestfs_inotify_files (guestfs_h *g);\n"
27802 "\n"
27803 msgstr ""
27804
27805 #. type: textblock
27806 #: ../src/guestfs-actions.pod:2944
27807 msgid ""
27808 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27809 "returns a list of pathnames of objects that were touched.  The returned "
27810 "pathnames are sorted and deduplicated."
27811 msgstr ""
27812
27813 #. type: =head2
27814 #: ../src/guestfs-actions.pod:2954
27815 msgid "guestfs_inotify_init"
27816 msgstr ""
27817
27818 #. type: verbatim
27819 #: ../src/guestfs-actions.pod:2956
27820 #, no-wrap
27821 msgid ""
27822 " int\n"
27823 " guestfs_inotify_init (guestfs_h *g,\n"
27824 "                       int maxevents);\n"
27825 "\n"
27826 msgstr ""
27827
27828 #. type: textblock
27829 #: ../src/guestfs-actions.pod:2964
27830 msgid ""
27831 "C<maxevents> is the maximum number of events which will be queued up between "
27832 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27833 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27834 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27835 "throws away events, but records the fact that it threw them away by setting "
27836 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27837 "C<guestfs_inotify_read>)."
27838 msgstr ""
27839
27840 #. type: textblock
27841 #: ../src/guestfs-actions.pod:2974
27842 msgid ""
27843 "Before any events are generated, you have to add some watches to the "
27844 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27845 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27846 msgstr ""
27847
27848 #. type: textblock
27849 #: ../src/guestfs-actions.pod:2980
27850 msgid ""
27851 "Queued up events should be read periodically by calling "
27852 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27853 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27854 "often enough then you risk the internal queue overflowing."
27855 msgstr ""
27856
27857 #. type: textblock
27858 #: ../src/guestfs-actions.pod:2987
27859 msgid ""
27860 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27861 "This also removes any watches automatically."
27862 msgstr ""
27863
27864 #. type: =head2
27865 #: ../src/guestfs-actions.pod:3000
27866 msgid "guestfs_inotify_read"
27867 msgstr ""
27868
27869 #. type: verbatim
27870 #: ../src/guestfs-actions.pod:3002
27871 #, no-wrap
27872 msgid ""
27873 " struct guestfs_inotify_event_list *\n"
27874 " guestfs_inotify_read (guestfs_h *g);\n"
27875 "\n"
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../src/guestfs-actions.pod:3016
27880 msgid ""
27881 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27882 "there was an error.  I<The caller must call "
27883 "C<guestfs_free_inotify_event_list> after use>."
27884 msgstr ""
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:3022
27888 msgid "guestfs_inotify_rm_watch"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:3024
27893 #, no-wrap
27894 msgid ""
27895 " int\n"
27896 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27897 "                           int wd);\n"
27898 "\n"
27899 msgstr ""
27900
27901 #. type: textblock
27902 #: ../src/guestfs-actions.pod:3028
27903 msgid ""
27904 "Remove a previously defined inotify watch.  See "
27905 "C<guestfs_inotify_add_watch>."
27906 msgstr ""
27907
27908 #. type: =head2
27909 #: ../src/guestfs-actions.pod:3035
27910 msgid "guestfs_inspect_get_arch"
27911 msgstr ""
27912
27913 #. type: verbatim
27914 #: ../src/guestfs-actions.pod:3037
27915 #, no-wrap
27916 msgid ""
27917 " char *\n"
27918 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27919 "                           const char *root);\n"
27920 "\n"
27921 msgstr ""
27922
27923 #. type: textblock
27924 #: ../src/guestfs-actions.pod:3041
27925 msgid ""
27926 "This returns the architecture of the inspected operating system.  The "
27927 "possible return values are listed under C<guestfs_file_architecture>."
27928 msgstr ""
27929
27930 #. type: =head2
27931 #: ../src/guestfs-actions.pod:3055
27932 msgid "guestfs_inspect_get_distro"
27933 msgstr ""
27934
27935 #. type: verbatim
27936 #: ../src/guestfs-actions.pod:3057
27937 #, no-wrap
27938 msgid ""
27939 " char *\n"
27940 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27941 "                             const char *root);\n"
27942 "\n"
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:3157
27947 msgid "guestfs_inspect_get_drive_mappings"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:3159
27952 #, no-wrap
27953 msgid ""
27954 " char **\n"
27955 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27956 "                                     const char *root);\n"
27957 "\n"
27958 msgstr ""
27959
27960 #. type: textblock
27961 #: ../src/guestfs-actions.pod:3188
27962 msgid ""
27963 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27964 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:7601
27969 msgid ""
27970 "This function returns a NULL-terminated array of strings, or NULL if there "
27971 "was an error.  The array of strings will always have length C<2n+1>, where "
27972 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27973 "caller must free the strings and the array after use>."
27974 msgstr ""
27975
27976 #. type: textblock
27977 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
27978 msgid "(Added in 1.9.17)"
27979 msgstr ""
27980
27981 #. type: =head2
27982 #: ../src/guestfs-actions.pod:3200
27983 msgid "guestfs_inspect_get_filesystems"
27984 msgstr ""
27985
27986 #. type: verbatim
27987 #: ../src/guestfs-actions.pod:3202
27988 #, no-wrap
27989 msgid ""
27990 " char **\n"
27991 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27992 "                                  const char *root);\n"
27993 "\n"
27994 msgstr ""
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:3214
27998 msgid ""
27999 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28000 "C<guestfs_inspect_get_mountpoints>."
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../src/guestfs-actions.pod:3223
28005 msgid "guestfs_inspect_get_format"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../src/guestfs-actions.pod:3225
28010 #, no-wrap
28011 msgid ""
28012 " char *\n"
28013 " guestfs_inspect_get_format (guestfs_h *g,\n"
28014 "                             const char *root);\n"
28015 "\n"
28016 msgstr ""
28017
28018 #. type: textblock
28019 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:6493
28020 msgid "(Added in 1.9.4)"
28021 msgstr ""
28022
28023 #. type: =head2
28024 #: ../src/guestfs-actions.pod:3261
28025 msgid "guestfs_inspect_get_hostname"
28026 msgstr ""
28027
28028 #. type: verbatim
28029 #: ../src/guestfs-actions.pod:3263
28030 #, no-wrap
28031 msgid ""
28032 " char *\n"
28033 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28034 "                               const char *root);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: textblock
28039 #: ../src/guestfs-actions.pod:3278
28040 msgid "(Added in 1.7.9)"
28041 msgstr ""
28042
28043 #. type: =head2
28044 #: ../src/guestfs-actions.pod:3280
28045 msgid "guestfs_inspect_get_icon"
28046 msgstr ""
28047
28048 #. type: verbatim
28049 #: ../src/guestfs-actions.pod:3282
28050 #, no-wrap
28051 msgid ""
28052 " char *\n"
28053 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28054 "                           const char *root,\n"
28055 "                           size_t *size_r,\n"
28056 "                           ...);\n"
28057 "\n"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:3293
28062 #, no-wrap
28063 msgid ""
28064 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28065 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190 ../src/guestfs-actions.pod:5425
28071 msgid "(Added in 1.11.12)"
28072 msgstr ""
28073
28074 #. type: =head2
28075 #: ../src/guestfs-actions.pod:3362
28076 msgid "guestfs_inspect_get_icon_va"
28077 msgstr ""
28078
28079 #. type: verbatim
28080 #: ../src/guestfs-actions.pod:3364
28081 #, no-wrap
28082 msgid ""
28083 " char *\n"
28084 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28085 "                              const char *root,\n"
28086 "                              size_t *size_r,\n"
28087 "                              va_list args);\n"
28088 "\n"
28089 msgstr ""
28090
28091 #. type: textblock
28092 #: ../src/guestfs-actions.pod:3370
28093 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:3374
28098 msgid "guestfs_inspect_get_icon_argv"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:3376
28103 #, no-wrap
28104 msgid ""
28105 " char *\n"
28106 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28107 "                                const char *root,\n"
28108 "                                size_t *size_r,\n"
28109 "                                const struct guestfs_inspect_get_icon_argv "
28110 "*optargs);\n"
28111 "\n"
28112 msgstr ""
28113
28114 #. type: textblock
28115 #: ../src/guestfs-actions.pod:3382
28116 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28117 msgstr ""
28118
28119 #. type: =head2
28120 #: ../src/guestfs-actions.pod:3386
28121 msgid "guestfs_inspect_get_major_version"
28122 msgstr ""
28123
28124 #. type: verbatim
28125 #: ../src/guestfs-actions.pod:3388
28126 #, no-wrap
28127 msgid ""
28128 " int\n"
28129 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28130 "                                    const char *root);\n"
28131 "\n"
28132 msgstr ""
28133
28134 #. type: =head2
28135 #: ../src/guestfs-actions.pod:3410
28136 msgid "guestfs_inspect_get_minor_version"
28137 msgstr ""
28138
28139 #. type: verbatim
28140 #: ../src/guestfs-actions.pod:3412
28141 #, no-wrap
28142 msgid ""
28143 " int\n"
28144 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28145 "                                    const char *root);\n"
28146 "\n"
28147 msgstr ""
28148
28149 #. type: textblock
28150 #: ../src/guestfs-actions.pod:3421
28151 msgid ""
28152 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28153 "C<guestfs_inspect_get_major_version>."
28154 msgstr ""
28155
28156 #. type: =head2
28157 #: ../src/guestfs-actions.pod:3428
28158 msgid "guestfs_inspect_get_mountpoints"
28159 msgstr ""
28160
28161 #. type: verbatim
28162 #: ../src/guestfs-actions.pod:3430
28163 #, no-wrap
28164 msgid ""
28165 " char **\n"
28166 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28167 "                                  const char *root);\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: textblock
28172 #: ../src/guestfs-actions.pod:3451
28173 msgid ""
28174 "For operating systems like Windows which still use drive letters, this call "
28175 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28176 "information about the mapping of drive letters to partitions, see "
28177 "C<guestfs_inspect_get_drive_mappings>."
28178 msgstr ""
28179
28180 #. type: textblock
28181 #: ../src/guestfs-actions.pod:3457
28182 msgid ""
28183 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28184 "C<guestfs_inspect_get_filesystems>."
28185 msgstr ""
28186
28187 #. type: =head2
28188 #: ../src/guestfs-actions.pod:3468
28189 msgid "guestfs_inspect_get_package_format"
28190 msgstr ""
28191
28192 #. type: verbatim
28193 #: ../src/guestfs-actions.pod:3470
28194 #, no-wrap
28195 msgid ""
28196 " char *\n"
28197 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28198 "                                     const char *root);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: textblock
28203 #: ../src/guestfs-actions.pod:3474
28204 msgid ""
28205 "This function and C<guestfs_inspect_get_package_management> return the "
28206 "package format and package management tool used by the inspected operating "
28207 "system.  For example for Fedora these functions would return C<rpm> (package "
28208 "format) and C<yum> (package management)."
28209 msgstr ""
28210
28211 #. type: textblock
28212 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28213 msgid "(Added in 1.7.5)"
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:3495
28218 msgid "guestfs_inspect_get_package_management"
28219 msgstr ""
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:3497
28223 #, no-wrap
28224 msgid ""
28225 " char *\n"
28226 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28227 "                                         const char *root);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:3501
28233 msgid ""
28234 "C<guestfs_inspect_get_package_format> and this function return the package "
28235 "format and package management tool used by the inspected operating system.  "
28236 "For example for Fedora these functions would return C<rpm> (package format) "
28237 "and C<yum> (package management)."
28238 msgstr ""
28239
28240 #. type: =head2
28241 #: ../src/guestfs-actions.pod:3523
28242 msgid "guestfs_inspect_get_product_name"
28243 msgstr ""
28244
28245 #. type: verbatim
28246 #: ../src/guestfs-actions.pod:3525
28247 #, no-wrap
28248 msgid ""
28249 " char *\n"
28250 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28251 "                                   const char *root);\n"
28252 "\n"
28253 msgstr ""
28254
28255 #. type: =head2
28256 #: ../src/guestfs-actions.pod:3544
28257 msgid "guestfs_inspect_get_product_variant"
28258 msgstr ""
28259
28260 #. type: verbatim
28261 #: ../src/guestfs-actions.pod:3546
28262 #, no-wrap
28263 msgid ""
28264 " char *\n"
28265 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28266 "                                      const char *root);\n"
28267 "\n"
28268 msgstr ""
28269
28270 #. type: textblock
28271 #: ../src/guestfs-actions.pod:3569
28272 msgid ""
28273 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28274 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28275 msgstr ""
28276
28277 #. type: textblock
28278 #: ../src/guestfs-actions.pod:3576
28279 msgid "(Added in 1.9.13)"
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:3578
28284 msgid "guestfs_inspect_get_roots"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:3580
28289 #, no-wrap
28290 msgid ""
28291 " char **\n"
28292 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28293 "\n"
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:3583
28298 msgid ""
28299 "This function is a convenient way to get the list of root devices, as "
28300 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28301 "the whole inspection process."
28302 msgstr ""
28303
28304 #. type: textblock
28305 #: ../src/guestfs-actions.pod:3587
28306 msgid ""
28307 "This returns an empty list if either no root devices were found or the "
28308 "caller has not called C<guestfs_inspect_os>."
28309 msgstr ""
28310
28311 #. type: textblock
28312 #: ../src/guestfs-actions.pod:3596
28313 msgid "(Added in 1.7.3)"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:3598
28318 msgid "guestfs_inspect_get_type"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:3600
28323 #, no-wrap
28324 msgid ""
28325 " char *\n"
28326 " guestfs_inspect_get_type (guestfs_h *g,\n"
28327 "                           const char *root);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: =head2
28332 #: ../src/guestfs-actions.pod:3641
28333 msgid "guestfs_inspect_get_windows_current_control_set"
28334 msgstr ""
28335
28336 #. type: verbatim
28337 #: ../src/guestfs-actions.pod:3643
28338 #, no-wrap
28339 msgid ""
28340 " char *\n"
28341 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28342 "                                                  const char *root);\n"
28343 "\n"
28344 msgstr ""
28345
28346 #. type: =head2
28347 #: ../src/guestfs-actions.pod:3661
28348 msgid "guestfs_inspect_get_windows_systemroot"
28349 msgstr ""
28350
28351 #. type: verbatim
28352 #: ../src/guestfs-actions.pod:3663
28353 #, no-wrap
28354 msgid ""
28355 " char *\n"
28356 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28357 "                                         const char *root);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:3679
28363 msgid "(Added in 1.5.25)"
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:3681
28368 msgid "guestfs_inspect_is_live"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:3683
28373 #, no-wrap
28374 msgid ""
28375 " int\n"
28376 " guestfs_inspect_is_live (guestfs_h *g,\n"
28377 "                          const char *root);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: textblock
28382 #: ../src/guestfs-actions.pod:3687
28383 msgid ""
28384 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28385 "disk), then this returns true if a live image was detected on the disk."
28386 msgstr ""
28387
28388 #. type: =head2
28389 #: ../src/guestfs-actions.pod:3697
28390 msgid "guestfs_inspect_is_multipart"
28391 msgstr ""
28392
28393 #. type: verbatim
28394 #: ../src/guestfs-actions.pod:3699
28395 #, no-wrap
28396 msgid ""
28397 " int\n"
28398 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28399 "                               const char *root);\n"
28400 "\n"
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:3703
28405 msgid ""
28406 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28407 "disk), then this returns true if the disk is part of a set."
28408 msgstr ""
28409
28410 #. type: =head2
28411 #: ../src/guestfs-actions.pod:3713
28412 msgid "guestfs_inspect_is_netinst"
28413 msgstr ""
28414
28415 #. type: verbatim
28416 #: ../src/guestfs-actions.pod:3715
28417 #, no-wrap
28418 msgid ""
28419 " int\n"
28420 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28421 "                             const char *root);\n"
28422 "\n"
28423 msgstr ""
28424
28425 #. type: textblock
28426 #: ../src/guestfs-actions.pod:3719
28427 msgid ""
28428 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28429 "disk), then this returns true if the disk is a network installer, ie. not a "
28430 "self-contained install CD but one which is likely to require network access "
28431 "to complete the install."
28432 msgstr ""
28433
28434 #. type: =head2
28435 #: ../src/guestfs-actions.pod:3731
28436 msgid "guestfs_inspect_list_applications"
28437 msgstr ""
28438
28439 #. type: verbatim
28440 #: ../src/guestfs-actions.pod:3733
28441 #, no-wrap
28442 msgid ""
28443 " struct guestfs_application_list *\n"
28444 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28445 "                                    const char *root);\n"
28446 "\n"
28447 msgstr ""
28448
28449 #. type: textblock
28450 #: ../src/guestfs-actions.pod:3739
28451 msgid ""
28452 "I<Note:> This call works differently from other parts of the inspection "
28453 "API.  You have to call C<guestfs_inspect_os>, then "
28454 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28455 "this.  Listing applications is a significantly more difficult operation "
28456 "which requires access to the full filesystem.  Also note that unlike the "
28457 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28458 "the libguestfs handle, this call actually reads parts of the mounted "
28459 "filesystems during the call."
28460 msgstr ""
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:3829
28464 msgid ""
28465 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28466 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28467 "after use>."
28468 msgstr ""
28469
28470 #. type: textblock
28471 #: ../src/guestfs-actions.pod:3833
28472 msgid "(Added in 1.7.8)"
28473 msgstr ""
28474
28475 #. type: =head2
28476 #: ../src/guestfs-actions.pod:3835
28477 msgid "guestfs_inspect_os"
28478 msgstr ""
28479
28480 #. type: verbatim
28481 #: ../src/guestfs-actions.pod:3837
28482 #, no-wrap
28483 msgid ""
28484 " char **\n"
28485 " guestfs_inspect_os (guestfs_h *g);\n"
28486 "\n"
28487 msgstr ""
28488
28489 #. type: textblock
28490 #: ../src/guestfs-actions.pod:3853
28491 msgid ""
28492 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28493 "functions in order to query further information about each operating system, "
28494 "such as the name and version."
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../src/guestfs-actions.pod:3858
28499 msgid ""
28500 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28501 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28502 "the contents.  This should be called with no disks currently mounted.  The "
28503 "function may also use Augeas, so any existing Augeas handle will be closed."
28504 msgstr ""
28505
28506 #. type: textblock
28507 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4283
28508 msgid "See also C<guestfs_list_filesystems>."
28509 msgstr ""
28510
28511 #. type: =head2
28512 #: ../src/guestfs-actions.pod:3878
28513 msgid "guestfs_is_blockdev"
28514 msgstr ""
28515
28516 #. type: verbatim
28517 #: ../src/guestfs-actions.pod:3880
28518 #, no-wrap
28519 msgid ""
28520 " int\n"
28521 " guestfs_is_blockdev (guestfs_h *g,\n"
28522 "                      const char *path);\n"
28523 "\n"
28524 msgstr ""
28525
28526 #. type: textblock
28527 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
28528 msgid "See also C<guestfs_stat>."
28529 msgstr ""
28530
28531 #. type: textblock
28532 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037 ../src/guestfs-actions.pod:4052
28533 msgid "(Added in 1.5.10)"
28534 msgstr ""
28535
28536 #. type: =head2
28537 #: ../src/guestfs-actions.pod:3893
28538 msgid "guestfs_is_busy"
28539 msgstr ""
28540
28541 #. type: verbatim
28542 #: ../src/guestfs-actions.pod:3895
28543 #, no-wrap
28544 msgid ""
28545 " int\n"
28546 " guestfs_is_busy (guestfs_h *g);\n"
28547 "\n"
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:3907
28552 msgid "guestfs_is_chardev"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:3909
28557 #, no-wrap
28558 msgid ""
28559 " int\n"
28560 " guestfs_is_chardev (guestfs_h *g,\n"
28561 "                     const char *path);\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: =head2
28566 #: ../src/guestfs-actions.pod:3922
28567 msgid "guestfs_is_config"
28568 msgstr ""
28569
28570 #. type: verbatim
28571 #: ../src/guestfs-actions.pod:3924
28572 #, no-wrap
28573 msgid ""
28574 " int\n"
28575 " guestfs_is_config (guestfs_h *g);\n"
28576 "\n"
28577 msgstr ""
28578
28579 #. type: =head2
28580 #: ../src/guestfs-actions.pod:3936
28581 msgid "guestfs_is_dir"
28582 msgstr ""
28583
28584 #. type: verbatim
28585 #: ../src/guestfs-actions.pod:3938
28586 #, no-wrap
28587 msgid ""
28588 " int\n"
28589 " guestfs_is_dir (guestfs_h *g,\n"
28590 "                 const char *path);\n"
28591 "\n"
28592 msgstr ""
28593
28594 #. type: =head2
28595 #: ../src/guestfs-actions.pod:3952
28596 msgid "guestfs_is_fifo"
28597 msgstr ""
28598
28599 #. type: verbatim
28600 #: ../src/guestfs-actions.pod:3954
28601 #, no-wrap
28602 msgid ""
28603 " int\n"
28604 " guestfs_is_fifo (guestfs_h *g,\n"
28605 "                  const char *path);\n"
28606 "\n"
28607 msgstr ""
28608
28609 #. type: =head2
28610 #: ../src/guestfs-actions.pod:3967
28611 msgid "guestfs_is_file"
28612 msgstr ""
28613
28614 #. type: verbatim
28615 #: ../src/guestfs-actions.pod:3969
28616 #, no-wrap
28617 msgid ""
28618 " int\n"
28619 " guestfs_is_file (guestfs_h *g,\n"
28620 "                  const char *path);\n"
28621 "\n"
28622 msgstr ""
28623
28624 #. type: =head2
28625 #: ../src/guestfs-actions.pod:3983
28626 msgid "guestfs_is_launching"
28627 msgstr ""
28628
28629 #. type: verbatim
28630 #: ../src/guestfs-actions.pod:3985
28631 #, no-wrap
28632 msgid ""
28633 " int\n"
28634 " guestfs_is_launching (guestfs_h *g);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: =head2
28639 #: ../src/guestfs-actions.pod:3997
28640 msgid "guestfs_is_lv"
28641 msgstr ""
28642
28643 #. type: verbatim
28644 #: ../src/guestfs-actions.pod:3999
28645 #, no-wrap
28646 msgid ""
28647 " int\n"
28648 " guestfs_is_lv (guestfs_h *g,\n"
28649 "                const char *device);\n"
28650 "\n"
28651 msgstr ""
28652
28653 #. type: =head2
28654 #: ../src/guestfs-actions.pod:4010
28655 msgid "guestfs_is_ready"
28656 msgstr ""
28657
28658 #. type: verbatim
28659 #: ../src/guestfs-actions.pod:4012
28660 #, no-wrap
28661 msgid ""
28662 " int\n"
28663 " guestfs_is_ready (guestfs_h *g);\n"
28664 "\n"
28665 msgstr ""
28666
28667 #. type: =head2
28668 #: ../src/guestfs-actions.pod:4024
28669 msgid "guestfs_is_socket"
28670 msgstr ""
28671
28672 #. type: verbatim
28673 #: ../src/guestfs-actions.pod:4026
28674 #, no-wrap
28675 msgid ""
28676 " int\n"
28677 " guestfs_is_socket (guestfs_h *g,\n"
28678 "                    const char *path);\n"
28679 "\n"
28680 msgstr ""
28681
28682 #. type: =head2
28683 #: ../src/guestfs-actions.pod:4039
28684 msgid "guestfs_is_symlink"
28685 msgstr ""
28686
28687 #. type: verbatim
28688 #: ../src/guestfs-actions.pod:4041
28689 #, no-wrap
28690 msgid ""
28691 " int\n"
28692 " guestfs_is_symlink (guestfs_h *g,\n"
28693 "                     const char *path);\n"
28694 "\n"
28695 msgstr ""
28696
28697 #. type: =head2
28698 #: ../src/guestfs-actions.pod:4054
28699 msgid "guestfs_is_zero"
28700 msgstr ""
28701
28702 #. type: verbatim
28703 #: ../src/guestfs-actions.pod:4056
28704 #, no-wrap
28705 msgid ""
28706 " int\n"
28707 " guestfs_is_zero (guestfs_h *g,\n"
28708 "                  const char *path);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
28714 msgid "(Added in 1.11.8)"
28715 msgstr ""
28716
28717 #. type: =head2
28718 #: ../src/guestfs-actions.pod:4067
28719 msgid "guestfs_is_zero_device"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../src/guestfs-actions.pod:4069
28724 #, no-wrap
28725 msgid ""
28726 " int\n"
28727 " guestfs_is_zero_device (guestfs_h *g,\n"
28728 "                         const char *device);\n"
28729 "\n"
28730 msgstr ""
28731
28732 #. type: =head2
28733 #: ../src/guestfs-actions.pod:4081
28734 msgid "guestfs_kill_subprocess"
28735 msgstr ""
28736
28737 #. type: verbatim
28738 #: ../src/guestfs-actions.pod:4083
28739 #, no-wrap
28740 msgid ""
28741 " int\n"
28742 " guestfs_kill_subprocess (guestfs_h *g);\n"
28743 "\n"
28744 msgstr ""
28745
28746 #. type: =head2
28747 #: ../src/guestfs-actions.pod:4092
28748 msgid "guestfs_launch"
28749 msgstr ""
28750
28751 #. type: verbatim
28752 #: ../src/guestfs-actions.pod:4094
28753 #, no-wrap
28754 msgid ""
28755 " int\n"
28756 " guestfs_launch (guestfs_h *g);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: =head2
28761 #: ../src/guestfs-actions.pod:4112
28762 msgid "guestfs_lchown"
28763 msgstr ""
28764
28765 #. type: verbatim
28766 #: ../src/guestfs-actions.pod:4114
28767 #, no-wrap
28768 msgid ""
28769 " int\n"
28770 " guestfs_lchown (guestfs_h *g,\n"
28771 "                 int owner,\n"
28772 "                 int group,\n"
28773 "                 const char *path);\n"
28774 "\n"
28775 msgstr ""
28776
28777 #. type: textblock
28778 #: ../src/guestfs-actions.pod:4120
28779 msgid ""
28780 "Change the file owner to C<owner> and group to C<group>.  This is like "
28781 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28782 "changed, not the target."
28783 msgstr ""
28784
28785 #. type: =head2
28786 #: ../src/guestfs-actions.pod:4132
28787 msgid "guestfs_lgetxattr"
28788 msgstr ""
28789
28790 #. type: verbatim
28791 #: ../src/guestfs-actions.pod:4134
28792 #, no-wrap
28793 msgid ""
28794 " char *\n"
28795 " guestfs_lgetxattr (guestfs_h *g,\n"
28796 "                    const char *path,\n"
28797 "                    const char *name,\n"
28798 "                    size_t *size_r);\n"
28799 "\n"
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:4154
28804 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28805 msgstr ""
28806
28807 #. type: =head2
28808 #: ../src/guestfs-actions.pod:4162
28809 msgid "guestfs_lgetxattrs"
28810 msgstr ""
28811
28812 #. type: verbatim
28813 #: ../src/guestfs-actions.pod:4164
28814 #, no-wrap
28815 msgid ""
28816 " struct guestfs_xattr_list *\n"
28817 " guestfs_lgetxattrs (guestfs_h *g,\n"
28818 "                     const char *path);\n"
28819 "\n"
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:4168
28824 msgid ""
28825 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28826 "then it returns the extended attributes of the link itself."
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:4178
28831 msgid "guestfs_list_9p"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:4180
28836 #, no-wrap
28837 msgid ""
28838 " char **\n"
28839 " guestfs_list_9p (guestfs_h *g);\n"
28840 "\n"
28841 msgstr ""
28842
28843 #. type: =head2
28844 #: ../src/guestfs-actions.pod:4192
28845 msgid "guestfs_list_devices"
28846 msgstr ""
28847
28848 #. type: verbatim
28849 #: ../src/guestfs-actions.pod:4194
28850 #, no-wrap
28851 msgid ""
28852 " char **\n"
28853 " guestfs_list_devices (guestfs_h *g);\n"
28854 "\n"
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:4209
28859 msgid "guestfs_list_dm_devices"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:4211
28864 #, no-wrap
28865 msgid ""
28866 " char **\n"
28867 " guestfs_list_dm_devices (guestfs_h *g);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: textblock
28872 #: ../src/guestfs-actions.pod:4216
28873 msgid ""
28874 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28875 "previous call to C<guestfs_luks_open>."
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../src/guestfs-actions.pod:4219
28880 msgid ""
28881 "Device mapper devices which correspond to logical volumes are I<not> "
28882 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28883 "volumes."
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
28888 msgid "(Added in 1.11.15)"
28889 msgstr ""
28890
28891 #. type: =head2
28892 #: ../src/guestfs-actions.pod:4229
28893 msgid "guestfs_list_filesystems"
28894 msgstr ""
28895
28896 #. type: verbatim
28897 #: ../src/guestfs-actions.pod:4231
28898 #, no-wrap
28899 msgid ""
28900 " char **\n"
28901 " guestfs_list_filesystems (guestfs_h *g);\n"
28902 "\n"
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:4251
28907 msgid ""
28908 "This command runs other libguestfs commands, which might include "
28909 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28910 "soon after launch and only when nothing is mounted."
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../src/guestfs-actions.pod:4255
28915 msgid ""
28916 "Not all of the filesystems returned will be mountable.  In particular, swap "
28917 "partitions are returned in the list.  Also this command does not check that "
28918 "each filesystem found is valid and mountable, and some filesystems might be "
28919 "mountable but require special options.  Filesystems may not all belong to a "
28920 "single logical operating system (use C<guestfs_inspect_os> to look for "
28921 "OSes)."
28922 msgstr ""
28923
28924 #. type: textblock
28925 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
28926 msgid "(Added in 1.5.15)"
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:4271
28931 msgid "guestfs_list_partitions"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:4273
28936 #, no-wrap
28937 msgid ""
28938 " char **\n"
28939 " guestfs_list_partitions (guestfs_h *g);\n"
28940 "\n"
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../src/guestfs-actions.pod:4280
28945 msgid ""
28946 "This does not return logical volumes.  For that you will need to call "
28947 "C<guestfs_lvs>."
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:4291
28952 msgid "guestfs_ll"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:4293
28957 #, no-wrap
28958 msgid ""
28959 " char *\n"
28960 " guestfs_ll (guestfs_h *g,\n"
28961 "             const char *directory);\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:4308
28967 msgid "guestfs_ln"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:4310
28972 #, no-wrap
28973 msgid ""
28974 " int\n"
28975 " guestfs_ln (guestfs_h *g,\n"
28976 "             const char *target,\n"
28977 "             const char *linkname);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: =head2
28982 #: ../src/guestfs-actions.pod:4321
28983 msgid "guestfs_ln_f"
28984 msgstr ""
28985
28986 #. type: verbatim
28987 #: ../src/guestfs-actions.pod:4323
28988 #, no-wrap
28989 msgid ""
28990 " int\n"
28991 " guestfs_ln_f (guestfs_h *g,\n"
28992 "               const char *target,\n"
28993 "               const char *linkname);\n"
28994 "\n"
28995 msgstr ""
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:4335
28999 msgid "guestfs_ln_s"
29000 msgstr ""
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:4337
29004 #, no-wrap
29005 msgid ""
29006 " int\n"
29007 " guestfs_ln_s (guestfs_h *g,\n"
29008 "               const char *target,\n"
29009 "               const char *linkname);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: =head2
29014 #: ../src/guestfs-actions.pod:4348
29015 msgid "guestfs_ln_sf"
29016 msgstr ""
29017
29018 #. type: verbatim
29019 #: ../src/guestfs-actions.pod:4350
29020 #, no-wrap
29021 msgid ""
29022 " int\n"
29023 " guestfs_ln_sf (guestfs_h *g,\n"
29024 "                const char *target,\n"
29025 "                const char *linkname);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: =head2
29030 #: ../src/guestfs-actions.pod:4362
29031 msgid "guestfs_lremovexattr"
29032 msgstr ""
29033
29034 #. type: verbatim
29035 #: ../src/guestfs-actions.pod:4364
29036 #, no-wrap
29037 msgid ""
29038 " int\n"
29039 " guestfs_lremovexattr (guestfs_h *g,\n"
29040 "                       const char *xattr,\n"
29041 "                       const char *path);\n"
29042 "\n"
29043 msgstr ""
29044
29045 #. type: textblock
29046 #: ../src/guestfs-actions.pod:4369
29047 msgid ""
29048 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29049 "link, then it removes an extended attribute of the link itself."
29050 msgstr ""
29051
29052 #. type: =head2
29053 #: ../src/guestfs-actions.pod:4377
29054 msgid "guestfs_ls"
29055 msgstr ""
29056
29057 #. type: verbatim
29058 #: ../src/guestfs-actions.pod:4379
29059 #, no-wrap
29060 msgid ""
29061 " char **\n"
29062 " guestfs_ls (guestfs_h *g,\n"
29063 "             const char *directory);\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: textblock
29068 #: ../src/guestfs-actions.pod:4387
29069 msgid ""
29070 "This command is mostly useful for interactive sessions.  Programs should "
29071 "probably use C<guestfs_readdir> instead."
29072 msgstr ""
29073
29074 #. type: =head2
29075 #: ../src/guestfs-actions.pod:4396
29076 msgid "guestfs_lsetxattr"
29077 msgstr ""
29078
29079 #. type: verbatim
29080 #: ../src/guestfs-actions.pod:4398
29081 #, no-wrap
29082 msgid ""
29083 " int\n"
29084 " guestfs_lsetxattr (guestfs_h *g,\n"
29085 "                    const char *xattr,\n"
29086 "                    const char *val,\n"
29087 "                    int vallen,\n"
29088 "                    const char *path);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:4405
29094 msgid ""
29095 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29096 "then it sets an extended attribute of the link itself."
29097 msgstr ""
29098
29099 #. type: =head2
29100 #: ../src/guestfs-actions.pod:4413
29101 msgid "guestfs_lstat"
29102 msgstr ""
29103
29104 #. type: verbatim
29105 #: ../src/guestfs-actions.pod:4415
29106 #, no-wrap
29107 msgid ""
29108 " struct guestfs_stat *\n"
29109 " guestfs_lstat (guestfs_h *g,\n"
29110 "                const char *path);\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: textblock
29115 #: ../src/guestfs-actions.pod:4421
29116 msgid ""
29117 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29118 "link, then the link is stat-ed, not the file it refers to."
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
29123 msgid ""
29124 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29125 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
29130 msgid "(Added in 0.9.2)"
29131 msgstr ""
29132
29133 #. type: =head2
29134 #: ../src/guestfs-actions.pod:4433
29135 msgid "guestfs_lstatlist"
29136 msgstr ""
29137
29138 #. type: verbatim
29139 #: ../src/guestfs-actions.pod:4435
29140 #, no-wrap
29141 msgid ""
29142 " struct guestfs_stat_list *\n"
29143 " guestfs_lstatlist (guestfs_h *g,\n"
29144 "                    const char *path,\n"
29145 "                    char *const *names);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:4440
29151 msgid ""
29152 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29153 "files, where all files are in the directory C<path>.  C<names> is the list "
29154 "of files from this directory."
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:4449
29159 msgid ""
29160 "This call is intended for programs that want to efficiently list a directory "
29161 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29162 "for a similarly efficient call for getting extended attributes.  Very long "
29163 "directory listings might cause the protocol message size to be exceeded, "
29164 "causing this call to fail.  The caller must split up such requests into "
29165 "smaller groups of names."
29166 msgstr ""
29167
29168 #. type: textblock
29169 #: ../src/guestfs-actions.pod:4457
29170 msgid ""
29171 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29172 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:4463
29177 msgid "guestfs_luks_add_key"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:4465
29182 #, no-wrap
29183 msgid ""
29184 " int\n"
29185 " guestfs_luks_add_key (guestfs_h *g,\n"
29186 "                       const char *device,\n"
29187 "                       const char *key,\n"
29188 "                       const char *newkey,\n"
29189 "                       int keyslot);\n"
29190 "\n"
29191 msgstr ""
29192
29193 #. type: textblock
29194 #: ../src/guestfs-actions.pod:4477
29195 msgid ""
29196 "Note that if C<keyslot> already contains a key, then this command will "
29197 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29198 msgstr ""
29199
29200 #. type: textblock
29201 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
29202 msgid ""
29203 "This function takes a key or passphrase parameter which could contain "
29204 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29205 "information."
29206 msgstr ""
29207
29208 #. type: textblock
29209 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
29210 msgid "(Added in 1.5.2)"
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:4489
29215 msgid "guestfs_luks_close"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:4491
29220 #, no-wrap
29221 msgid ""
29222 " int\n"
29223 " guestfs_luks_close (guestfs_h *g,\n"
29224 "                     const char *device);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:4495
29230 msgid ""
29231 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29232 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29233 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29234 "underlying block device."
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668 ../src/guestfs-actions.pod:4713
29239 msgid "(Added in 1.5.1)"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:4505
29244 msgid "guestfs_luks_format"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:4507
29249 #, no-wrap
29250 msgid ""
29251 " int\n"
29252 " guestfs_luks_format (guestfs_h *g,\n"
29253 "                      const char *device,\n"
29254 "                      const char *key,\n"
29255 "                      int keyslot);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:4526
29261 msgid "guestfs_luks_format_cipher"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:4528
29266 #, no-wrap
29267 msgid ""
29268 " int\n"
29269 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29270 "                             const char *device,\n"
29271 "                             const char *key,\n"
29272 "                             int keyslot,\n"
29273 "                             const char *cipher);\n"
29274 "\n"
29275 msgstr ""
29276
29277 #. type: textblock
29278 #: ../src/guestfs-actions.pod:4535
29279 msgid ""
29280 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29281 "set the C<cipher> used."
29282 msgstr ""
29283
29284 #. type: =head2
29285 #: ../src/guestfs-actions.pod:4546
29286 msgid "guestfs_luks_kill_slot"
29287 msgstr ""
29288
29289 #. type: verbatim
29290 #: ../src/guestfs-actions.pod:4548
29291 #, no-wrap
29292 msgid ""
29293 " int\n"
29294 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29295 "                         const char *device,\n"
29296 "                         const char *key,\n"
29297 "                         int keyslot);\n"
29298 "\n"
29299 msgstr ""
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:4566
29303 msgid "guestfs_luks_open"
29304 msgstr ""
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:4568
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_luks_open (guestfs_h *g,\n"
29312 "                    const char *device,\n"
29313 "                    const char *key,\n"
29314 "                    const char *mapname);\n"
29315 "\n"
29316 msgstr ""
29317
29318 #. type: textblock
29319 #: ../src/guestfs-actions.pod:4586
29320 msgid ""
29321 "If this block device contains LVM volume groups, then calling "
29322 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29323 "visible."
29324 msgstr ""
29325
29326 #. type: textblock
29327 #: ../src/guestfs-actions.pod:4590
29328 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29329 msgstr ""
29330
29331 #. type: =head2
29332 #: ../src/guestfs-actions.pod:4601
29333 msgid "guestfs_luks_open_ro"
29334 msgstr ""
29335
29336 #. type: verbatim
29337 #: ../src/guestfs-actions.pod:4603
29338 #, no-wrap
29339 msgid ""
29340 " int\n"
29341 " guestfs_luks_open_ro (guestfs_h *g,\n"
29342 "                       const char *device,\n"
29343 "                       const char *key,\n"
29344 "                       const char *mapname);\n"
29345 "\n"
29346 msgstr ""
29347
29348 #. type: textblock
29349 #: ../src/guestfs-actions.pod:4609
29350 msgid ""
29351 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29352 "created."
29353 msgstr ""
29354
29355 #. type: =head2
29356 #: ../src/guestfs-actions.pod:4620
29357 msgid "guestfs_lvcreate"
29358 msgstr ""
29359
29360 #. type: verbatim
29361 #: ../src/guestfs-actions.pod:4622
29362 #, no-wrap
29363 msgid ""
29364 " int\n"
29365 " guestfs_lvcreate (guestfs_h *g,\n"
29366 "                   const char *logvol,\n"
29367 "                   const char *volgroup,\n"
29368 "                   int mbytes);\n"
29369 "\n"
29370 msgstr ""
29371
29372 #. type: =head2
29373 #: ../src/guestfs-actions.pod:4635
29374 msgid "guestfs_lvm_canonical_lv_name"
29375 msgstr ""
29376
29377 #. type: verbatim
29378 #: ../src/guestfs-actions.pod:4637
29379 #, no-wrap
29380 msgid ""
29381 " char *\n"
29382 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29383 "                                const char *lvname);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:4648
29389 msgid "See also C<guestfs_is_lv>."
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../src/guestfs-actions.pod:4653
29394 msgid "(Added in 1.5.24)"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:4655
29399 msgid "guestfs_lvm_clear_filter"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:4657
29404 #, no-wrap
29405 msgid ""
29406 " int\n"
29407 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29408 "\n"
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-actions.pod:4660
29413 msgid ""
29414 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29415 "see every block device."
29416 msgstr ""
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:4670
29420 msgid "guestfs_lvm_remove_all"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:4672
29425 #, no-wrap
29426 msgid ""
29427 " int\n"
29428 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29429 "\n"
29430 msgstr ""
29431
29432 #. type: =head2
29433 #: ../src/guestfs-actions.pod:4682
29434 msgid "guestfs_lvm_set_filter"
29435 msgstr ""
29436
29437 #. type: verbatim
29438 #: ../src/guestfs-actions.pod:4684
29439 #, no-wrap
29440 msgid ""
29441 " int\n"
29442 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29443 "                         char *const *devices);\n"
29444 "\n"
29445 msgstr ""
29446
29447 #. type: =head2
29448 #: ../src/guestfs-actions.pod:4715
29449 msgid "guestfs_lvremove"
29450 msgstr ""
29451
29452 #. type: verbatim
29453 #: ../src/guestfs-actions.pod:4717
29454 #, no-wrap
29455 msgid ""
29456 " int\n"
29457 " guestfs_lvremove (guestfs_h *g,\n"
29458 "                   const char *device);\n"
29459 "\n"
29460 msgstr ""
29461
29462 #. type: textblock
29463 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:7977
29464 msgid "(Added in 1.0.13)"
29465 msgstr ""
29466
29467 #. type: =head2
29468 #: ../src/guestfs-actions.pod:4731
29469 msgid "guestfs_lvrename"
29470 msgstr ""
29471
29472 #. type: verbatim
29473 #: ../src/guestfs-actions.pod:4733
29474 #, no-wrap
29475 msgid ""
29476 " int\n"
29477 " guestfs_lvrename (guestfs_h *g,\n"
29478 "                   const char *logvol,\n"
29479 "                   const char *newlogvol);\n"
29480 "\n"
29481 msgstr ""
29482
29483 #. type: textblock
29484 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
29485 msgid "(Added in 1.0.83)"
29486 msgstr ""
29487
29488 #. type: =head2
29489 #: ../src/guestfs-actions.pod:4744
29490 msgid "guestfs_lvresize"
29491 msgstr ""
29492
29493 #. type: verbatim
29494 #: ../src/guestfs-actions.pod:4746
29495 #, no-wrap
29496 msgid ""
29497 " int\n"
29498 " guestfs_lvresize (guestfs_h *g,\n"
29499 "                   const char *device,\n"
29500 "                   int mbytes);\n"
29501 "\n"
29502 msgstr ""
29503
29504 #. type: =head2
29505 #: ../src/guestfs-actions.pod:4759
29506 msgid "guestfs_lvresize_free"
29507 msgstr ""
29508
29509 #. type: verbatim
29510 #: ../src/guestfs-actions.pod:4761
29511 #, no-wrap
29512 msgid ""
29513 " int\n"
29514 " guestfs_lvresize_free (guestfs_h *g,\n"
29515 "                        const char *lv,\n"
29516 "                        int percent);\n"
29517 "\n"
29518 msgstr ""
29519
29520 #. type: textblock
29521 #: ../src/guestfs-actions.pod:4774
29522 msgid "(Added in 1.3.3)"
29523 msgstr ""
29524
29525 #. type: =head2
29526 #: ../src/guestfs-actions.pod:4776
29527 msgid "guestfs_lvs"
29528 msgstr ""
29529
29530 #. type: verbatim
29531 #: ../src/guestfs-actions.pod:4778
29532 #, no-wrap
29533 msgid ""
29534 " char **\n"
29535 " guestfs_lvs (guestfs_h *g);\n"
29536 "\n"
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:4787
29541 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29542 msgstr ""
29543
29544 #. type: =head2
29545 #: ../src/guestfs-actions.pod:4795
29546 msgid "guestfs_lvs_full"
29547 msgstr ""
29548
29549 #. type: verbatim
29550 #: ../src/guestfs-actions.pod:4797
29551 #, no-wrap
29552 msgid ""
29553 " struct guestfs_lvm_lv_list *\n"
29554 " guestfs_lvs_full (guestfs_h *g);\n"
29555 "\n"
29556 msgstr ""
29557
29558 #. type: textblock
29559 #: ../src/guestfs-actions.pod:4803
29560 msgid ""
29561 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29562 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
29563 "use>."
29564 msgstr ""
29565
29566 #. type: =head2
29567 #: ../src/guestfs-actions.pod:4809
29568 msgid "guestfs_lvuuid"
29569 msgstr ""
29570
29571 #. type: verbatim
29572 #: ../src/guestfs-actions.pod:4811
29573 #, no-wrap
29574 msgid ""
29575 " char *\n"
29576 " guestfs_lvuuid (guestfs_h *g,\n"
29577 "                 const char *device);\n"
29578 "\n"
29579 msgstr ""
29580
29581 #. type: =head2
29582 #: ../src/guestfs-actions.pod:4822
29583 msgid "guestfs_lxattrlist"
29584 msgstr ""
29585
29586 #. type: verbatim
29587 #: ../src/guestfs-actions.pod:4824
29588 #, no-wrap
29589 msgid ""
29590 " struct guestfs_xattr_list *\n"
29591 " guestfs_lxattrlist (guestfs_h *g,\n"
29592 "                     const char *path,\n"
29593 "                     char *const *names);\n"
29594 "\n"
29595 msgstr ""
29596
29597 #. type: textblock
29598 #: ../src/guestfs-actions.pod:4843
29599 msgid ""
29600 "This call is intended for programs that want to efficiently list a directory "
29601 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29602 "a similarly efficient call for getting standard stats.  Very long directory "
29603 "listings might cause the protocol message size to be exceeded, causing this "
29604 "call to fail.  The caller must split up such requests into smaller groups of "
29605 "names."
29606 msgstr ""
29607
29608 #. type: =head2
29609 #: ../src/guestfs-actions.pod:4857
29610 msgid "guestfs_mkdir"
29611 msgstr ""
29612
29613 #. type: verbatim
29614 #: ../src/guestfs-actions.pod:4859
29615 #, no-wrap
29616 msgid ""
29617 " int\n"
29618 " guestfs_mkdir (guestfs_h *g,\n"
29619 "                const char *path);\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: =head2
29624 #: ../src/guestfs-actions.pod:4869
29625 msgid "guestfs_mkdir_mode"
29626 msgstr ""
29627
29628 #. type: verbatim
29629 #: ../src/guestfs-actions.pod:4871
29630 #, no-wrap
29631 msgid ""
29632 " int\n"
29633 " guestfs_mkdir_mode (guestfs_h *g,\n"
29634 "                     const char *path,\n"
29635 "                     int mode);\n"
29636 "\n"
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:4883
29641 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:4889
29646 msgid "guestfs_mkdir_p"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:4891
29651 #, no-wrap
29652 msgid ""
29653 " int\n"
29654 " guestfs_mkdir_p (guestfs_h *g,\n"
29655 "                  const char *path);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: =head2
29660 #: ../src/guestfs-actions.pod:4902
29661 msgid "guestfs_mkdtemp"
29662 msgstr ""
29663
29664 #. type: verbatim
29665 #: ../src/guestfs-actions.pod:4904
29666 #, no-wrap
29667 msgid ""
29668 " char *\n"
29669 " guestfs_mkdtemp (guestfs_h *g,\n"
29670 "                  const char *template);\n"
29671 "\n"
29672 msgstr ""
29673
29674 #. type: =head2
29675 #: ../src/guestfs-actions.pod:4932
29676 msgid "guestfs_mke2fs_J"
29677 msgstr ""
29678
29679 #. type: verbatim
29680 #: ../src/guestfs-actions.pod:4934
29681 #, no-wrap
29682 msgid ""
29683 " int\n"
29684 " guestfs_mke2fs_J (guestfs_h *g,\n"
29685 "                   const char *fstype,\n"
29686 "                   int blocksize,\n"
29687 "                   const char *device,\n"
29688 "                   const char *journal);\n"
29689 "\n"
29690 msgstr ""
29691
29692 #. type: textblock
29693 #: ../src/guestfs-actions.pod:4947
29694 msgid "See also C<guestfs_mke2journal>."
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
29699 msgid "(Added in 1.0.68)"
29700 msgstr ""
29701
29702 #. type: =head2
29703 #: ../src/guestfs-actions.pod:4953
29704 msgid "guestfs_mke2fs_JL"
29705 msgstr ""
29706
29707 #. type: verbatim
29708 #: ../src/guestfs-actions.pod:4955
29709 #, no-wrap
29710 msgid ""
29711 " int\n"
29712 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29713 "                    const char *fstype,\n"
29714 "                    int blocksize,\n"
29715 "                    const char *device,\n"
29716 "                    const char *label);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: textblock
29721 #: ../src/guestfs-actions.pod:4965
29722 msgid "See also C<guestfs_mke2journal_L>."
29723 msgstr ""
29724
29725 #. type: =head2
29726 #: ../src/guestfs-actions.pod:4971
29727 msgid "guestfs_mke2fs_JU"
29728 msgstr ""
29729
29730 #. type: verbatim
29731 #: ../src/guestfs-actions.pod:4973
29732 #, no-wrap
29733 msgid ""
29734 " int\n"
29735 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29736 "                    const char *fstype,\n"
29737 "                    int blocksize,\n"
29738 "                    const char *device,\n"
29739 "                    const char *uuid);\n"
29740 "\n"
29741 msgstr ""
29742
29743 #. type: textblock
29744 #: ../src/guestfs-actions.pod:4983
29745 msgid "See also C<guestfs_mke2journal_U>."
29746 msgstr ""
29747
29748 #. type: =head2
29749 #: ../src/guestfs-actions.pod:4989
29750 msgid "guestfs_mke2journal"
29751 msgstr ""
29752
29753 #. type: verbatim
29754 #: ../src/guestfs-actions.pod:4991
29755 #, no-wrap
29756 msgid ""
29757 " int\n"
29758 " guestfs_mke2journal (guestfs_h *g,\n"
29759 "                      int blocksize,\n"
29760 "                      const char *device);\n"
29761 "\n"
29762 msgstr ""
29763
29764 #. type: =head2
29765 #: ../src/guestfs-actions.pod:5005
29766 msgid "guestfs_mke2journal_L"
29767 msgstr ""
29768
29769 #. type: verbatim
29770 #: ../src/guestfs-actions.pod:5007
29771 #, no-wrap
29772 msgid ""
29773 " int\n"
29774 " guestfs_mke2journal_L (guestfs_h *g,\n"
29775 "                        int blocksize,\n"
29776 "                        const char *label,\n"
29777 "                        const char *device);\n"
29778 "\n"
29779 msgstr ""
29780
29781 #. type: =head2
29782 #: ../src/guestfs-actions.pod:5019
29783 msgid "guestfs_mke2journal_U"
29784 msgstr ""
29785
29786 #. type: verbatim
29787 #: ../src/guestfs-actions.pod:5021
29788 #, no-wrap
29789 msgid ""
29790 " int\n"
29791 " guestfs_mke2journal_U (guestfs_h *g,\n"
29792 "                        int blocksize,\n"
29793 "                        const char *uuid,\n"
29794 "                        const char *device);\n"
29795 "\n"
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:5033
29800 msgid "guestfs_mkfifo"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:5035
29805 #, no-wrap
29806 msgid ""
29807 " int\n"
29808 " guestfs_mkfifo (guestfs_h *g,\n"
29809 "                 int mode,\n"
29810 "                 const char *path);\n"
29811 "\n"
29812 msgstr ""
29813
29814 #. type: textblock
29815 #: ../src/guestfs-actions.pod:5040
29816 msgid ""
29817 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29818 "is just a convenient wrapper around C<guestfs_mknod>."
29819 msgstr ""
29820
29821 #. type: =head2
29822 #: ../src/guestfs-actions.pod:5050
29823 msgid "guestfs_mkfs"
29824 msgstr ""
29825
29826 #. type: verbatim
29827 #: ../src/guestfs-actions.pod:5052
29828 #, no-wrap
29829 msgid ""
29830 " int\n"
29831 " guestfs_mkfs (guestfs_h *g,\n"
29832 "               const char *fstype,\n"
29833 "               const char *device);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: =head2
29838 #: ../src/guestfs-actions.pod:5065
29839 msgid "guestfs_mkfs_b"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../src/guestfs-actions.pod:5067
29844 #, no-wrap
29845 msgid ""
29846 " int\n"
29847 " guestfs_mkfs_b (guestfs_h *g,\n"
29848 "                 const char *fstype,\n"
29849 "                 int blocksize,\n"
29850 "                 const char *device);\n"
29851 "\n"
29852 msgstr ""
29853
29854 #. type: textblock
29855 #: ../src/guestfs-actions.pod:5073
29856 msgid ""
29857 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29858 "call instead."
29859 msgstr ""
29860
29861 #. type: textblock
29862 #: ../src/guestfs-actions.pod:5080
29863 msgid ""
29864 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29865 "block size of the resulting filesystem.  Supported block sizes depend on the "
29866 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29867 msgstr ""
29868
29869 #. type: =head2
29870 #: ../src/guestfs-actions.pod:5092
29871 msgid "guestfs_mkfs_opts"
29872 msgstr ""
29873
29874 #. type: verbatim
29875 #: ../src/guestfs-actions.pod:5094
29876 #, no-wrap
29877 msgid ""
29878 " int\n"
29879 " guestfs_mkfs_opts (guestfs_h *g,\n"
29880 "                    const char *fstype,\n"
29881 "                    const char *device,\n"
29882 "                    ...);\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: verbatim
29887 #: ../src/guestfs-actions.pod:5105
29888 #, no-wrap
29889 msgid ""
29890 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29891 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29892 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29893 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: textblock
29898 #: ../src/guestfs-actions.pod:5153
29899 msgid "(Added in 1.7.19)"
29900 msgstr ""
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:5155
29904 msgid "guestfs_mkfs_opts_va"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:5157
29909 #, no-wrap
29910 msgid ""
29911 " int\n"
29912 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29913 "                       const char *fstype,\n"
29914 "                       const char *device,\n"
29915 "                       va_list args);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../src/guestfs-actions.pod:5163
29921 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29922 msgstr ""
29923
29924 #. type: =head2
29925 #: ../src/guestfs-actions.pod:5167
29926 msgid "guestfs_mkfs_opts_argv"
29927 msgstr ""
29928
29929 #. type: verbatim
29930 #: ../src/guestfs-actions.pod:5169
29931 #, no-wrap
29932 msgid ""
29933 " int\n"
29934 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29935 "                         const char *fstype,\n"
29936 "                         const char *device,\n"
29937 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:5175
29943 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29944 msgstr ""
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:5179
29948 msgid "guestfs_mkmountpoint"
29949 msgstr ""
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:5181
29953 #, no-wrap
29954 msgid ""
29955 " int\n"
29956 " guestfs_mkmountpoint (guestfs_h *g,\n"
29957 "                       const char *exemptpath);\n"
29958 "\n"
29959 msgstr ""
29960
29961 #. type: textblock
29962 #: ../src/guestfs-actions.pod:5185
29963 msgid ""
29964 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29965 "that can be used to create extra mountpoints before mounting the first "
29966 "filesystem."
29967 msgstr ""
29968
29969 #. type: textblock
29970 #: ../src/guestfs-actions.pod:5209
29971 msgid ""
29972 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29973 "may get unexpected errors if you try to mix these calls.  It is safest to "
29974 "manually unmount filesystems and remove mountpoints after use."
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs-actions.pod:5213
29979 msgid ""
29980 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29981 "first, so for this to work for manual mountpoints, you must ensure that the "
29982 "innermost mountpoints have the longest pathnames, as in the example code "
29983 "above."
29984 msgstr ""
29985
29986 #. type: textblock
29987 #: ../src/guestfs-actions.pod:5220
29988 msgid ""
29989 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29990 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29991 "can also trigger these issues."
29992 msgstr ""
29993
29994 #. type: textblock
29995 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532 ../src/guestfs-actions.pod:6559
29996 msgid "(Added in 1.0.62)"
29997 msgstr ""
29998
29999 #. type: =head2
30000 #: ../src/guestfs-actions.pod:5228
30001 msgid "guestfs_mknod"
30002 msgstr ""
30003
30004 #. type: verbatim
30005 #: ../src/guestfs-actions.pod:5230
30006 #, no-wrap
30007 msgid ""
30008 " int\n"
30009 " guestfs_mknod (guestfs_h *g,\n"
30010 "                int mode,\n"
30011 "                int devmajor,\n"
30012 "                int devminor,\n"
30013 "                const char *path);\n"
30014 "\n"
30015 msgstr ""
30016
30017 #. type: textblock
30018 #: ../src/guestfs-actions.pod:5245
30019 msgid ""
30020 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30021 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30022 "regular file).  These constants are available in the standard Linux header "
30023 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30024 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30025 "the appropriate constant for you."
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:5259
30030 msgid "guestfs_mknod_b"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:5261
30035 #, no-wrap
30036 msgid ""
30037 " int\n"
30038 " guestfs_mknod_b (guestfs_h *g,\n"
30039 "                  int mode,\n"
30040 "                  int devmajor,\n"
30041 "                  int devminor,\n"
30042 "                  const char *path);\n"
30043 "\n"
30044 msgstr ""
30045
30046 #. type: textblock
30047 #: ../src/guestfs-actions.pod:5268
30048 msgid ""
30049 "This call creates a block device node called C<path> with mode C<mode> and "
30050 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30051 "wrapper around C<guestfs_mknod>."
30052 msgstr ""
30053
30054 #. type: =head2
30055 #: ../src/guestfs-actions.pod:5278
30056 msgid "guestfs_mknod_c"
30057 msgstr ""
30058
30059 #. type: verbatim
30060 #: ../src/guestfs-actions.pod:5280
30061 #, no-wrap
30062 msgid ""
30063 " int\n"
30064 " guestfs_mknod_c (guestfs_h *g,\n"
30065 "                  int mode,\n"
30066 "                  int devmajor,\n"
30067 "                  int devminor,\n"
30068 "                  const char *path);\n"
30069 "\n"
30070 msgstr ""
30071
30072 #. type: textblock
30073 #: ../src/guestfs-actions.pod:5287
30074 msgid ""
30075 "This call creates a char device node called C<path> with mode C<mode> and "
30076 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30077 "wrapper around C<guestfs_mknod>."
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:5297
30082 msgid "guestfs_mkswap"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:5299
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_mkswap (guestfs_h *g,\n"
30091 "                 const char *device);\n"
30092 "\n"
30093 msgstr ""
30094
30095 #. type: =head2
30096 #: ../src/guestfs-actions.pod:5309
30097 msgid "guestfs_mkswap_L"
30098 msgstr ""
30099
30100 #. type: verbatim
30101 #: ../src/guestfs-actions.pod:5311
30102 #, no-wrap
30103 msgid ""
30104 " int\n"
30105 " guestfs_mkswap_L (guestfs_h *g,\n"
30106 "                   const char *label,\n"
30107 "                   const char *device);\n"
30108 "\n"
30109 msgstr ""
30110
30111 #. type: =head2
30112 #: ../src/guestfs-actions.pod:5326
30113 msgid "guestfs_mkswap_U"
30114 msgstr ""
30115
30116 #. type: verbatim
30117 #: ../src/guestfs-actions.pod:5328
30118 #, no-wrap
30119 msgid ""
30120 " int\n"
30121 " guestfs_mkswap_U (guestfs_h *g,\n"
30122 "                   const char *uuid,\n"
30123 "                   const char *device);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:5339
30129 msgid "guestfs_mkswap_file"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:5341
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_mkswap_file (guestfs_h *g,\n"
30138 "                      const char *path);\n"
30139 "\n"
30140 msgstr ""
30141
30142 #. type: textblock
30143 #: ../src/guestfs-actions.pod:5347
30144 msgid ""
30145 "This command just writes a swap file signature to an existing file.  To "
30146 "create the file itself, use something like C<guestfs_fallocate>."
30147 msgstr ""
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:5354
30151 msgid "guestfs_modprobe"
30152 msgstr ""
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:5356
30156 #, no-wrap
30157 msgid ""
30158 " int\n"
30159 " guestfs_modprobe (guestfs_h *g,\n"
30160 "                   const char *modulename);\n"
30161 "\n"
30162 msgstr ""
30163
30164 #. type: =head2
30165 #: ../src/guestfs-actions.pod:5369
30166 msgid "guestfs_mount"
30167 msgstr ""
30168
30169 #. type: verbatim
30170 #: ../src/guestfs-actions.pod:5371
30171 #, no-wrap
30172 msgid ""
30173 " int\n"
30174 " guestfs_mount (guestfs_h *g,\n"
30175 "                const char *device,\n"
30176 "                const char *mountpoint);\n"
30177 "\n"
30178 msgstr ""
30179
30180 #. type: textblock
30181 #: ../src/guestfs-actions.pod:5390
30182 msgid ""
30183 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30184 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30185 "problems for users.  If your program might need to work with older versions "
30186 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30187 "for the first parameter if you don't want any options)."
30188 msgstr ""
30189
30190 #. type: =head2
30191 #: ../src/guestfs-actions.pod:5401
30192 msgid "guestfs_mount_9p"
30193 msgstr ""
30194
30195 #. type: verbatim
30196 #: ../src/guestfs-actions.pod:5403
30197 #, no-wrap
30198 msgid ""
30199 " int\n"
30200 " guestfs_mount_9p (guestfs_h *g,\n"
30201 "                   const char *mounttag,\n"
30202 "                   const char *mountpoint,\n"
30203 "                   ...);\n"
30204 "\n"
30205 msgstr ""
30206
30207 #. type: verbatim
30208 #: ../src/guestfs-actions.pod:5414
30209 #, no-wrap
30210 msgid ""
30211 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30212 "\n"
30213 msgstr ""
30214
30215 #. type: =head2
30216 #: ../src/guestfs-actions.pod:5427
30217 msgid "guestfs_mount_9p_va"
30218 msgstr ""
30219
30220 #. type: verbatim
30221 #: ../src/guestfs-actions.pod:5429
30222 #, no-wrap
30223 msgid ""
30224 " int\n"
30225 " guestfs_mount_9p_va (guestfs_h *g,\n"
30226 "                      const char *mounttag,\n"
30227 "                      const char *mountpoint,\n"
30228 "                      va_list args);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs-actions.pod:5435
30234 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30235 msgstr ""
30236
30237 #. type: =head2
30238 #: ../src/guestfs-actions.pod:5439
30239 msgid "guestfs_mount_9p_argv"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../src/guestfs-actions.pod:5441
30244 #, no-wrap
30245 msgid ""
30246 " int\n"
30247 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30248 "                        const char *mounttag,\n"
30249 "                        const char *mountpoint,\n"
30250 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30251 "\n"
30252 msgstr ""
30253
30254 #. type: textblock
30255 #: ../src/guestfs-actions.pod:5447
30256 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs-actions.pod:5451
30261 msgid "guestfs_mount_loop"
30262 msgstr ""
30263
30264 #. type: verbatim
30265 #: ../src/guestfs-actions.pod:5453
30266 #, no-wrap
30267 msgid ""
30268 " int\n"
30269 " guestfs_mount_loop (guestfs_h *g,\n"
30270 "                     const char *file,\n"
30271 "                     const char *mountpoint);\n"
30272 "\n"
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs-actions.pod:5466
30277 msgid "guestfs_mount_options"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-actions.pod:5468
30282 #, no-wrap
30283 msgid ""
30284 " int\n"
30285 " guestfs_mount_options (guestfs_h *g,\n"
30286 "                        const char *options,\n"
30287 "                        const char *device,\n"
30288 "                        const char *mountpoint);\n"
30289 "\n"
30290 msgstr ""
30291
30292 #. type: textblock
30293 #: ../src/guestfs-actions.pod:5474
30294 msgid ""
30295 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30296 "the mount options as for the L<mount(8)> I<-o> flag."
30297 msgstr ""
30298
30299 #. type: textblock
30300 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5515
30301 msgid "(Added in 1.0.10)"
30302 msgstr ""
30303
30304 #. type: =head2
30305 #: ../src/guestfs-actions.pod:5486
30306 msgid "guestfs_mount_ro"
30307 msgstr ""
30308
30309 #. type: verbatim
30310 #: ../src/guestfs-actions.pod:5488
30311 #, no-wrap
30312 msgid ""
30313 " int\n"
30314 " guestfs_mount_ro (guestfs_h *g,\n"
30315 "                   const char *device,\n"
30316 "                   const char *mountpoint);\n"
30317 "\n"
30318 msgstr ""
30319
30320 #. type: textblock
30321 #: ../src/guestfs-actions.pod:5493
30322 msgid ""
30323 "This is the same as the C<guestfs_mount> command, but it mounts the "
30324 "filesystem with the read-only (I<-o ro>) flag."
30325 msgstr ""
30326
30327 #. type: =head2
30328 #: ../src/guestfs-actions.pod:5500
30329 msgid "guestfs_mount_vfs"
30330 msgstr ""
30331
30332 #. type: verbatim
30333 #: ../src/guestfs-actions.pod:5502
30334 #, no-wrap
30335 msgid ""
30336 " int\n"
30337 " guestfs_mount_vfs (guestfs_h *g,\n"
30338 "                    const char *options,\n"
30339 "                    const char *vfstype,\n"
30340 "                    const char *device,\n"
30341 "                    const char *mountpoint);\n"
30342 "\n"
30343 msgstr ""
30344
30345 #. type: textblock
30346 #: ../src/guestfs-actions.pod:5509
30347 msgid ""
30348 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30349 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
30350 "I<-t> flags."
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:5517
30355 msgid "guestfs_mountpoints"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:5519
30360 #, no-wrap
30361 msgid ""
30362 " char **\n"
30363 " guestfs_mountpoints (guestfs_h *g);\n"
30364 "\n"
30365 msgstr ""
30366
30367 #. type: textblock
30368 #: ../src/guestfs-actions.pod:5522
30369 msgid ""
30370 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30371 "devices.  This one returns a hash table (map) of device name to directory "
30372 "where the device is mounted."
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs-actions.pod:5534
30377 msgid "guestfs_mounts"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-actions.pod:5536
30382 #, no-wrap
30383 msgid ""
30384 " char **\n"
30385 " guestfs_mounts (guestfs_h *g);\n"
30386 "\n"
30387 msgstr ""
30388
30389 #. type: textblock
30390 #: ../src/guestfs-actions.pod:5544
30391 msgid "See also: C<guestfs_mountpoints>"
30392 msgstr ""
30393
30394 #. type: =head2
30395 #: ../src/guestfs-actions.pod:5552
30396 msgid "guestfs_mv"
30397 msgstr ""
30398
30399 #. type: verbatim
30400 #: ../src/guestfs-actions.pod:5554
30401 #, no-wrap
30402 msgid ""
30403 " int\n"
30404 " guestfs_mv (guestfs_h *g,\n"
30405 "             const char *src,\n"
30406 "             const char *dest);\n"
30407 "\n"
30408 msgstr ""
30409
30410 #. type: =head2
30411 #: ../src/guestfs-actions.pod:5566
30412 msgid "guestfs_ntfs_3g_probe"
30413 msgstr ""
30414
30415 #. type: verbatim
30416 #: ../src/guestfs-actions.pod:5568
30417 #, no-wrap
30418 msgid ""
30419 " int\n"
30420 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30421 "                        int rw,\n"
30422 "                        const char *device);\n"
30423 "\n"
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:5587
30428 msgid "(Added in 1.0.43)"
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:5589
30433 msgid "guestfs_ntfsresize"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:5591
30438 #, no-wrap
30439 msgid ""
30440 " int\n"
30441 " guestfs_ntfsresize (guestfs_h *g,\n"
30442 "                     const char *device);\n"
30443 "\n"
30444 msgstr ""
30445
30446 #. type: textblock
30447 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
30448 msgid ""
30449 "I<This function is deprecated.> In new code, use the "
30450 "L</guestfs_ntfsresize_opts> call instead."
30451 msgstr ""
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:5619
30455 msgid "guestfs_ntfsresize_opts"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:5621
30460 #, no-wrap
30461 msgid ""
30462 " int\n"
30463 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30464 "                          const char *device,\n"
30465 "                          ...);\n"
30466 "\n"
30467 msgstr ""
30468
30469 #. type: verbatim
30470 #: ../src/guestfs-actions.pod:5631
30471 #, no-wrap
30472 msgid ""
30473 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30474 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30475 "\n"
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../src/guestfs-actions.pod:5651
30480 msgid ""
30481 "After the resize operation, the filesystem is always marked as requiring a "
30482 "consistency check (for safety).  You have to boot into Windows to perform "
30483 "this check and clear this condition.  If you I<don't> set the C<force> "
30484 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30485 "times on a single filesystem without booting into Windows between each "
30486 "resize."
30487 msgstr ""
30488
30489 #. type: =head2
30490 #: ../src/guestfs-actions.pod:5666
30491 msgid "guestfs_ntfsresize_opts_va"
30492 msgstr ""
30493
30494 #. type: verbatim
30495 #: ../src/guestfs-actions.pod:5668
30496 #, no-wrap
30497 msgid ""
30498 " int\n"
30499 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30500 "                             const char *device,\n"
30501 "                             va_list args);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../src/guestfs-actions.pod:5673
30507 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30508 msgstr ""
30509
30510 #. type: =head2
30511 #: ../src/guestfs-actions.pod:5677
30512 msgid "guestfs_ntfsresize_opts_argv"
30513 msgstr ""
30514
30515 #. type: verbatim
30516 #: ../src/guestfs-actions.pod:5679
30517 #, no-wrap
30518 msgid ""
30519 " int\n"
30520 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30521 "                               const char *device,\n"
30522 "                               const struct guestfs_ntfsresize_opts_argv "
30523 "*optargs);\n"
30524 "\n"
30525 msgstr ""
30526
30527 #. type: textblock
30528 #: ../src/guestfs-actions.pod:5684
30529 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30530 msgstr ""
30531
30532 #. type: =head2
30533 #: ../src/guestfs-actions.pod:5688
30534 msgid "guestfs_ntfsresize_size"
30535 msgstr ""
30536
30537 #. type: verbatim
30538 #: ../src/guestfs-actions.pod:5690
30539 #, no-wrap
30540 msgid ""
30541 " int\n"
30542 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30543 "                          const char *device,\n"
30544 "                          int64_t size);\n"
30545 "\n"
30546 msgstr ""
30547
30548 #. type: textblock
30549 #: ../src/guestfs-actions.pod:5702
30550 msgid ""
30551 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30552 "to specify the new size (in bytes) explicitly."
30553 msgstr ""
30554
30555 #. type: textblock
30556 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166 ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:8134
30557 msgid "(Added in 1.3.14)"
30558 msgstr ""
30559
30560 #. type: =head2
30561 #: ../src/guestfs-actions.pod:5709
30562 msgid "guestfs_part_add"
30563 msgstr ""
30564
30565 #. type: verbatim
30566 #: ../src/guestfs-actions.pod:5711
30567 #, no-wrap
30568 msgid ""
30569 " int\n"
30570 " guestfs_part_add (guestfs_h *g,\n"
30571 "                   const char *device,\n"
30572 "                   const char *prlogex,\n"
30573 "                   int64_t startsect,\n"
30574 "                   int64_t endsect);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs-actions.pod:5718
30580 msgid ""
30581 "This command adds a partition to C<device>.  If there is no partition table "
30582 "on the device, call C<guestfs_part_init> first."
30583 msgstr ""
30584
30585 #. type: textblock
30586 #: ../src/guestfs-actions.pod:5730
30587 msgid ""
30588 "Creating a partition which covers the whole disk is not so easy.  Use "
30589 "C<guestfs_part_disk> to do that."
30590 msgstr ""
30591
30592 #. type: textblock
30593 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6004
30594 msgid "(Added in 1.0.78)"
30595 msgstr ""
30596
30597 #. type: =head2
30598 #: ../src/guestfs-actions.pod:5737
30599 msgid "guestfs_part_del"
30600 msgstr ""
30601
30602 #. type: verbatim
30603 #: ../src/guestfs-actions.pod:5739
30604 #, no-wrap
30605 msgid ""
30606 " int\n"
30607 " guestfs_part_del (guestfs_h *g,\n"
30608 "                   const char *device,\n"
30609 "                   int partnum);\n"
30610 "\n"
30611 msgstr ""
30612
30613 #. type: =head2
30614 #: ../src/guestfs-actions.pod:5754
30615 msgid "guestfs_part_disk"
30616 msgstr ""
30617
30618 #. type: verbatim
30619 #: ../src/guestfs-actions.pod:5756
30620 #, no-wrap
30621 msgid ""
30622 " int\n"
30623 " guestfs_part_disk (guestfs_h *g,\n"
30624 "                    const char *device,\n"
30625 "                    const char *parttype);\n"
30626 "\n"
30627 msgstr ""
30628
30629 #. type: textblock
30630 #: ../src/guestfs-actions.pod:5761
30631 msgid ""
30632 "This command is simply a combination of C<guestfs_part_init> followed by "
30633 "C<guestfs_part_add> to create a single primary partition covering the whole "
30634 "disk."
30635 msgstr ""
30636
30637 #. type: textblock
30638 #: ../src/guestfs-actions.pod:5765
30639 msgid ""
30640 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30641 "possible values are described in C<guestfs_part_init>."
30642 msgstr ""
30643
30644 #. type: =head2
30645 #: ../src/guestfs-actions.pod:5772
30646 msgid "guestfs_part_get_bootable"
30647 msgstr ""
30648
30649 #. type: verbatim
30650 #: ../src/guestfs-actions.pod:5774
30651 #, no-wrap
30652 msgid ""
30653 " int\n"
30654 " guestfs_part_get_bootable (guestfs_h *g,\n"
30655 "                            const char *device,\n"
30656 "                            int partnum);\n"
30657 "\n"
30658 msgstr ""
30659
30660 #. type: textblock
30661 #: ../src/guestfs-actions.pod:5782
30662 msgid "See also C<guestfs_part_set_bootable>."
30663 msgstr ""
30664
30665 #. type: =head2
30666 #: ../src/guestfs-actions.pod:5788
30667 msgid "guestfs_part_get_mbr_id"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../src/guestfs-actions.pod:5790
30672 #, no-wrap
30673 msgid ""
30674 " int\n"
30675 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30676 "                          const char *device,\n"
30677 "                          int partnum);\n"
30678 "\n"
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
30683 msgid ""
30684 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30685 "undefined results for other partition table types (see "
30686 "C<guestfs_part_get_parttype>)."
30687 msgstr ""
30688
30689 #. type: =head2
30690 #: ../src/guestfs-actions.pod:5806
30691 msgid "guestfs_part_get_parttype"
30692 msgstr ""
30693
30694 #. type: verbatim
30695 #: ../src/guestfs-actions.pod:5808
30696 #, no-wrap
30697 msgid ""
30698 " char *\n"
30699 " guestfs_part_get_parttype (guestfs_h *g,\n"
30700 "                            const char *device);\n"
30701 "\n"
30702 msgstr ""
30703
30704 #. type: textblock
30705 #: ../src/guestfs-actions.pod:5815
30706 msgid ""
30707 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30708 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30709 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30710 msgstr ""
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:5825
30714 msgid "guestfs_part_init"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:5827
30719 #, no-wrap
30720 msgid ""
30721 " int\n"
30722 " guestfs_part_init (guestfs_h *g,\n"
30723 "                    const char *device,\n"
30724 "                    const char *parttype);\n"
30725 "\n"
30726 msgstr ""
30727
30728 #. type: textblock
30729 #: ../src/guestfs-actions.pod:5836
30730 msgid ""
30731 "Initially there are no partitions.  Following this, you should call "
30732 "C<guestfs_part_add> for each partition required."
30733 msgstr ""
30734
30735 #. type: =head2
30736 #: ../src/guestfs-actions.pod:5909
30737 msgid "guestfs_part_list"
30738 msgstr ""
30739
30740 #. type: verbatim
30741 #: ../src/guestfs-actions.pod:5911
30742 #, no-wrap
30743 msgid ""
30744 " struct guestfs_partition_list *\n"
30745 " guestfs_part_list (guestfs_h *g,\n"
30746 "                    const char *device);\n"
30747 "\n"
30748 msgstr ""
30749
30750 #. type: textblock
30751 #: ../src/guestfs-actions.pod:5928
30752 msgid ""
30753 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30754 "the device's sector size, see C<guestfs_blockdev_getss>."
30755 msgstr ""
30756
30757 #. type: textblock
30758 #: ../src/guestfs-actions.pod:5941
30759 msgid ""
30760 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30761 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30762 "use>."
30763 msgstr ""
30764
30765 #. type: =head2
30766 #: ../src/guestfs-actions.pod:5947
30767 msgid "guestfs_part_set_bootable"
30768 msgstr ""
30769
30770 #. type: verbatim
30771 #: ../src/guestfs-actions.pod:5949
30772 #, no-wrap
30773 msgid ""
30774 " int\n"
30775 " guestfs_part_set_bootable (guestfs_h *g,\n"
30776 "                            const char *device,\n"
30777 "                            int partnum,\n"
30778 "                            int bootable);\n"
30779 "\n"
30780 msgstr ""
30781
30782 #. type: =head2
30783 #: ../src/guestfs-actions.pod:5966
30784 msgid "guestfs_part_set_mbr_id"
30785 msgstr ""
30786
30787 #. type: verbatim
30788 #: ../src/guestfs-actions.pod:5968
30789 #, no-wrap
30790 msgid ""
30791 " int\n"
30792 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30793 "                          const char *device,\n"
30794 "                          int partnum,\n"
30795 "                          int idbyte);\n"
30796 "\n"
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:5988
30801 msgid "guestfs_part_set_name"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:5990
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_part_set_name (guestfs_h *g,\n"
30810 "                        const char *device,\n"
30811 "                        int partnum,\n"
30812 "                        const char *name);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: =head2
30817 #: ../src/guestfs-actions.pod:6006
30818 msgid "guestfs_part_to_dev"
30819 msgstr ""
30820
30821 #. type: verbatim
30822 #: ../src/guestfs-actions.pod:6008
30823 #, no-wrap
30824 msgid ""
30825 " char *\n"
30826 " guestfs_part_to_dev (guestfs_h *g,\n"
30827 "                      const char *partition);\n"
30828 "\n"
30829 msgstr ""
30830
30831 #. type: textblock
30832 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
30833 msgid ""
30834 "The named partition must exist, for example as a string returned from "
30835 "C<guestfs_list_partitions>."
30836 msgstr ""
30837
30838 #. type: textblock
30839 #: ../src/guestfs-actions.pod:6019
30840 msgid "See also C<guestfs_part_to_partnum>."
30841 msgstr ""
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:6026
30845 msgid "guestfs_part_to_partnum"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:6028
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_part_to_partnum (guestfs_h *g,\n"
30854 "                          const char *partition);\n"
30855 "\n"
30856 msgstr ""
30857
30858 #. type: textblock
30859 #: ../src/guestfs-actions.pod:6038
30860 msgid "See also C<guestfs_part_to_dev>."
30861 msgstr ""
30862
30863 #. type: =head2
30864 #: ../src/guestfs-actions.pod:6044
30865 msgid "guestfs_ping_daemon"
30866 msgstr ""
30867
30868 #. type: verbatim
30869 #: ../src/guestfs-actions.pod:6046
30870 #, no-wrap
30871 msgid ""
30872 " int\n"
30873 " guestfs_ping_daemon (guestfs_h *g);\n"
30874 "\n"
30875 msgstr ""
30876
30877 #. type: =head2
30878 #: ../src/guestfs-actions.pod:6058
30879 msgid "guestfs_pread"
30880 msgstr ""
30881
30882 #. type: verbatim
30883 #: ../src/guestfs-actions.pod:6060
30884 #, no-wrap
30885 msgid ""
30886 " char *\n"
30887 " guestfs_pread (guestfs_h *g,\n"
30888 "                const char *path,\n"
30889 "                int count,\n"
30890 "                int64_t offset,\n"
30891 "                size_t *size_r);\n"
30892 "\n"
30893 msgstr ""
30894
30895 #. type: textblock
30896 #: ../src/guestfs-actions.pod:6073
30897 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30898 msgstr ""
30899
30900 #. type: =head2
30901 #: ../src/guestfs-actions.pod:6084
30902 msgid "guestfs_pread_device"
30903 msgstr ""
30904
30905 #. type: verbatim
30906 #: ../src/guestfs-actions.pod:6086
30907 #, no-wrap
30908 msgid ""
30909 " char *\n"
30910 " guestfs_pread_device (guestfs_h *g,\n"
30911 "                       const char *device,\n"
30912 "                       int count,\n"
30913 "                       int64_t offset,\n"
30914 "                       size_t *size_r);\n"
30915 "\n"
30916 msgstr ""
30917
30918 #. type: textblock
30919 #: ../src/guestfs-actions.pod:6099
30920 msgid "See also C<guestfs_pread>."
30921 msgstr ""
30922
30923 #. type: textblock
30924 #: ../src/guestfs-actions.pod:6108
30925 msgid "(Added in 1.5.21)"
30926 msgstr ""
30927
30928 #. type: =head2
30929 #: ../src/guestfs-actions.pod:6110
30930 msgid "guestfs_pvcreate"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-actions.pod:6112
30935 #, no-wrap
30936 msgid ""
30937 " int\n"
30938 " guestfs_pvcreate (guestfs_h *g,\n"
30939 "                   const char *device);\n"
30940 "\n"
30941 msgstr ""
30942
30943 #. type: =head2
30944 #: ../src/guestfs-actions.pod:6124
30945 msgid "guestfs_pvremove"
30946 msgstr ""
30947
30948 #. type: verbatim
30949 #: ../src/guestfs-actions.pod:6126
30950 #, no-wrap
30951 msgid ""
30952 " int\n"
30953 " guestfs_pvremove (guestfs_h *g,\n"
30954 "                   const char *device);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:6141
30960 msgid "guestfs_pvresize"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:6143
30965 #, no-wrap
30966 msgid ""
30967 " int\n"
30968 " guestfs_pvresize (guestfs_h *g,\n"
30969 "                   const char *device);\n"
30970 "\n"
30971 msgstr ""
30972
30973 #. type: =head2
30974 #: ../src/guestfs-actions.pod:6154
30975 msgid "guestfs_pvresize_size"
30976 msgstr ""
30977
30978 #. type: verbatim
30979 #: ../src/guestfs-actions.pod:6156
30980 #, no-wrap
30981 msgid ""
30982 " int\n"
30983 " guestfs_pvresize_size (guestfs_h *g,\n"
30984 "                        const char *device,\n"
30985 "                        int64_t size);\n"
30986 "\n"
30987 msgstr ""
30988
30989 #. type: textblock
30990 #: ../src/guestfs-actions.pod:6161
30991 msgid ""
30992 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30993 "specify the new size (in bytes) explicitly."
30994 msgstr ""
30995
30996 #. type: =head2
30997 #: ../src/guestfs-actions.pod:6168
30998 msgid "guestfs_pvs"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs-actions.pod:6170
31003 #, no-wrap
31004 msgid ""
31005 " char **\n"
31006 " guestfs_pvs (guestfs_h *g);\n"
31007 "\n"
31008 msgstr ""
31009
31010 #. type: textblock
31011 #: ../src/guestfs-actions.pod:6179
31012 msgid "See also C<guestfs_pvs_full>."
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:6187
31017 msgid "guestfs_pvs_full"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:6189
31022 #, no-wrap
31023 msgid ""
31024 " struct guestfs_lvm_pv_list *\n"
31025 " guestfs_pvs_full (guestfs_h *g);\n"
31026 "\n"
31027 msgstr ""
31028
31029 #. type: textblock
31030 #: ../src/guestfs-actions.pod:6195
31031 msgid ""
31032 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31033 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31034 "use>."
31035 msgstr ""
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:6201
31039 msgid "guestfs_pvuuid"
31040 msgstr ""
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:6203
31044 #, no-wrap
31045 msgid ""
31046 " char *\n"
31047 " guestfs_pvuuid (guestfs_h *g,\n"
31048 "                 const char *device);\n"
31049 "\n"
31050 msgstr ""
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:6214
31054 msgid "guestfs_pwrite"
31055 msgstr ""
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:6216
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_pwrite (guestfs_h *g,\n"
31063 "                 const char *path,\n"
31064 "                 const char *content,\n"
31065 "                 size_t content_size,\n"
31066 "                 int64_t offset);\n"
31067 "\n"
31068 msgstr ""
31069
31070 #. type: textblock
31071 #: ../src/guestfs-actions.pod:6232
31072 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31073 msgstr ""
31074
31075 #. type: =head2
31076 #: ../src/guestfs-actions.pod:6241
31077 msgid "guestfs_pwrite_device"
31078 msgstr ""
31079
31080 #. type: verbatim
31081 #: ../src/guestfs-actions.pod:6243
31082 #, no-wrap
31083 msgid ""
31084 " int\n"
31085 " guestfs_pwrite_device (guestfs_h *g,\n"
31086 "                        const char *device,\n"
31087 "                        const char *content,\n"
31088 "                        size_t content_size,\n"
31089 "                        int64_t offset);\n"
31090 "\n"
31091 msgstr ""
31092
31093 #. type: textblock
31094 #: ../src/guestfs-actions.pod:6258
31095 msgid "See also C<guestfs_pwrite>."
31096 msgstr ""
31097
31098 #. type: textblock
31099 #: ../src/guestfs-actions.pod:6265
31100 msgid "(Added in 1.5.20)"
31101 msgstr ""
31102
31103 #. type: =head2
31104 #: ../src/guestfs-actions.pod:6267
31105 msgid "guestfs_read_file"
31106 msgstr ""
31107
31108 #. type: verbatim
31109 #: ../src/guestfs-actions.pod:6269
31110 #, no-wrap
31111 msgid ""
31112 " char *\n"
31113 " guestfs_read_file (guestfs_h *g,\n"
31114 "                    const char *path,\n"
31115 "                    size_t *size_r);\n"
31116 "\n"
31117 msgstr ""
31118
31119 #. type: textblock
31120 #: ../src/guestfs-actions.pod:6277
31121 msgid ""
31122 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31123 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31124 "function is limited in the total size of file that can be handled."
31125 msgstr ""
31126
31127 #. type: textblock
31128 #: ../src/guestfs-actions.pod:6289
31129 msgid "(Added in 1.0.63)"
31130 msgstr ""
31131
31132 #. type: =head2
31133 #: ../src/guestfs-actions.pod:6291
31134 msgid "guestfs_read_lines"
31135 msgstr ""
31136
31137 #. type: verbatim
31138 #: ../src/guestfs-actions.pod:6293
31139 #, no-wrap
31140 msgid ""
31141 " char **\n"
31142 " guestfs_read_lines (guestfs_h *g,\n"
31143 "                     const char *path);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: textblock
31148 #: ../src/guestfs-actions.pod:6302
31149 msgid ""
31150 "Note that this function cannot correctly handle binary files (specifically, "
31151 "files containing C<\\0> character which is treated as end of line).  For "
31152 "those you need to use the C<guestfs_read_file> function which has a more "
31153 "complex interface."
31154 msgstr ""
31155
31156 #. type: =head2
31157 #: ../src/guestfs-actions.pod:6313
31158 msgid "guestfs_readdir"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs-actions.pod:6315
31163 #, no-wrap
31164 msgid ""
31165 " struct guestfs_dirent_list *\n"
31166 " guestfs_readdir (guestfs_h *g,\n"
31167 "                  const char *dir);\n"
31168 "\n"
31169 msgstr ""
31170
31171 #. type: textblock
31172 #: ../src/guestfs-actions.pod:6369
31173 msgid ""
31174 "This function is primarily intended for use by programs.  To get a simple "
31175 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31176 "consumption, use C<guestfs_ll>."
31177 msgstr ""
31178
31179 #. type: textblock
31180 #: ../src/guestfs-actions.pod:6373
31181 msgid ""
31182 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31183 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
31184 "use>."
31185 msgstr ""
31186
31187 #. type: =head2
31188 #: ../src/guestfs-actions.pod:6379
31189 msgid "guestfs_readlink"
31190 msgstr ""
31191
31192 #. type: verbatim
31193 #: ../src/guestfs-actions.pod:6381
31194 #, no-wrap
31195 msgid ""
31196 " char *\n"
31197 " guestfs_readlink (guestfs_h *g,\n"
31198 "                   const char *path);\n"
31199 "\n"
31200 msgstr ""
31201
31202 #. type: =head2
31203 #: ../src/guestfs-actions.pod:6392
31204 msgid "guestfs_readlinklist"
31205 msgstr ""
31206
31207 #. type: verbatim
31208 #: ../src/guestfs-actions.pod:6394
31209 #, no-wrap
31210 msgid ""
31211 " char **\n"
31212 " guestfs_readlinklist (guestfs_h *g,\n"
31213 "                       const char *path,\n"
31214 "                       char *const *names);\n"
31215 "\n"
31216 msgstr ""
31217
31218 #. type: =head2
31219 #: ../src/guestfs-actions.pod:6427
31220 msgid "guestfs_realpath"
31221 msgstr ""
31222
31223 #. type: verbatim
31224 #: ../src/guestfs-actions.pod:6429
31225 #, no-wrap
31226 msgid ""
31227 " char *\n"
31228 " guestfs_realpath (guestfs_h *g,\n"
31229 "                   const char *path);\n"
31230 "\n"
31231 msgstr ""
31232
31233 #. type: =head2
31234 #: ../src/guestfs-actions.pod:6441
31235 msgid "guestfs_removexattr"
31236 msgstr ""
31237
31238 #. type: verbatim
31239 #: ../src/guestfs-actions.pod:6443
31240 #, no-wrap
31241 msgid ""
31242 " int\n"
31243 " guestfs_removexattr (guestfs_h *g,\n"
31244 "                      const char *xattr,\n"
31245 "                      const char *path);\n"
31246 "\n"
31247 msgstr ""
31248
31249 #. type: textblock
31250 #: ../src/guestfs-actions.pod:6451
31251 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31252 msgstr ""
31253
31254 #. type: =head2
31255 #: ../src/guestfs-actions.pod:6457
31256 msgid "guestfs_resize2fs"
31257 msgstr ""
31258
31259 #. type: verbatim
31260 #: ../src/guestfs-actions.pod:6459
31261 #, no-wrap
31262 msgid ""
31263 " int\n"
31264 " guestfs_resize2fs (guestfs_h *g,\n"
31265 "                    const char *device);\n"
31266 "\n"
31267 msgstr ""
31268
31269 #. type: textblock
31270 #: ../src/guestfs-actions.pod:6466
31271 msgid ""
31272 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31273 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31274 "sometimes gives an error about this and sometimes not.  In any case, it is "
31275 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31276 msgstr ""
31277
31278 #. type: =head2
31279 #: ../src/guestfs-actions.pod:6476
31280 msgid "guestfs_resize2fs_M"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-actions.pod:6478
31285 #, no-wrap
31286 msgid ""
31287 " int\n"
31288 " guestfs_resize2fs_M (guestfs_h *g,\n"
31289 "                      const char *device);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:6482
31295 msgid ""
31296 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31297 "resized to its minimum size.  This works like the I<-M> option to the "
31298 "C<resize2fs> command."
31299 msgstr ""
31300
31301 #. type: textblock
31302 #: ../src/guestfs-actions.pod:6486
31303 msgid ""
31304 "To get the resulting size of the filesystem you should call "
31305 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31306 "These two numbers, multiplied together, give the resulting size of the "
31307 "minimal filesystem in bytes."
31308 msgstr ""
31309
31310 #. type: =head2
31311 #: ../src/guestfs-actions.pod:6495
31312 msgid "guestfs_resize2fs_size"
31313 msgstr ""
31314
31315 #. type: verbatim
31316 #: ../src/guestfs-actions.pod:6497
31317 #, no-wrap
31318 msgid ""
31319 " int\n"
31320 " guestfs_resize2fs_size (guestfs_h *g,\n"
31321 "                         const char *device,\n"
31322 "                         int64_t size);\n"
31323 "\n"
31324 msgstr ""
31325
31326 #. type: textblock
31327 #: ../src/guestfs-actions.pod:6502
31328 msgid ""
31329 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31330 "to specify the new size (in bytes) explicitly."
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:6509
31335 msgid "guestfs_rm"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:6511
31340 #, no-wrap
31341 msgid ""
31342 " int\n"
31343 " guestfs_rm (guestfs_h *g,\n"
31344 "             const char *path);\n"
31345 "\n"
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:6521
31350 msgid "guestfs_rm_rf"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:6523
31355 #, no-wrap
31356 msgid ""
31357 " int\n"
31358 " guestfs_rm_rf (guestfs_h *g,\n"
31359 "                const char *path);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:6535
31365 msgid "guestfs_rmdir"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:6537
31370 #, no-wrap
31371 msgid ""
31372 " int\n"
31373 " guestfs_rmdir (guestfs_h *g,\n"
31374 "                const char *path);\n"
31375 "\n"
31376 msgstr ""
31377
31378 #. type: =head2
31379 #: ../src/guestfs-actions.pod:6547
31380 msgid "guestfs_rmmountpoint"
31381 msgstr ""
31382
31383 #. type: verbatim
31384 #: ../src/guestfs-actions.pod:6549
31385 #, no-wrap
31386 msgid ""
31387 " int\n"
31388 " guestfs_rmmountpoint (guestfs_h *g,\n"
31389 "                       const char *exemptpath);\n"
31390 "\n"
31391 msgstr ""
31392
31393 #. type: textblock
31394 #: ../src/guestfs-actions.pod:6553
31395 msgid ""
31396 "This calls removes a mountpoint that was previously created with "
31397 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31398 msgstr ""
31399
31400 #. type: =head2
31401 #: ../src/guestfs-actions.pod:6561
31402 msgid "guestfs_scrub_device"
31403 msgstr ""
31404
31405 #. type: verbatim
31406 #: ../src/guestfs-actions.pod:6563
31407 #, no-wrap
31408 msgid ""
31409 " int\n"
31410 " guestfs_scrub_device (guestfs_h *g,\n"
31411 "                       const char *device);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
31417 msgid "(Added in 1.0.52)"
31418 msgstr ""
31419
31420 #. type: =head2
31421 #: ../src/guestfs-actions.pod:6577
31422 msgid "guestfs_scrub_file"
31423 msgstr ""
31424
31425 #. type: verbatim
31426 #: ../src/guestfs-actions.pod:6579
31427 #, no-wrap
31428 msgid ""
31429 " int\n"
31430 " guestfs_scrub_file (guestfs_h *g,\n"
31431 "                     const char *file);\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: =head2
31436 #: ../src/guestfs-actions.pod:6595
31437 msgid "guestfs_scrub_freespace"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs-actions.pod:6597
31442 #, no-wrap
31443 msgid ""
31444 " int\n"
31445 " guestfs_scrub_freespace (guestfs_h *g,\n"
31446 "                          const char *dir);\n"
31447 "\n"
31448 msgstr ""
31449
31450 #. type: textblock
31451 #: ../src/guestfs-actions.pod:6601
31452 msgid ""
31453 "This command creates the directory C<dir> and then fills it with files until "
31454 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31455 "and deletes them.  The intention is to scrub any free space on the partition "
31456 "containing C<dir>."
31457 msgstr ""
31458
31459 #. type: =head2
31460 #: ../src/guestfs-actions.pod:6614
31461 msgid "guestfs_set_append"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-actions.pod:6616
31466 #, no-wrap
31467 msgid ""
31468 " int\n"
31469 " guestfs_set_append (guestfs_h *g,\n"
31470 "                     const char *append);\n"
31471 "\n"
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs-actions.pod:6633
31476 msgid "guestfs_set_attach_method"
31477 msgstr ""
31478
31479 #. type: verbatim
31480 #: ../src/guestfs-actions.pod:6635
31481 #, no-wrap
31482 msgid ""
31483 " int\n"
31484 " guestfs_set_attach_method (guestfs_h *g,\n"
31485 "                            const char *attachmethod);\n"
31486 "\n"
31487 msgstr ""
31488
31489 #. type: =head2
31490 #: ../src/guestfs-actions.pod:6663
31491 msgid "guestfs_set_autosync"
31492 msgstr ""
31493
31494 #. type: verbatim
31495 #: ../src/guestfs-actions.pod:6665
31496 #, no-wrap
31497 msgid ""
31498 " int\n"
31499 " guestfs_set_autosync (guestfs_h *g,\n"
31500 "                       int autosync);\n"
31501 "\n"
31502 msgstr ""
31503
31504 #. type: =head2
31505 #: ../src/guestfs-actions.pod:6681
31506 msgid "guestfs_set_direct"
31507 msgstr ""
31508
31509 #. type: verbatim
31510 #: ../src/guestfs-actions.pod:6683
31511 #, no-wrap
31512 msgid ""
31513 " int\n"
31514 " guestfs_set_direct (guestfs_h *g,\n"
31515 "                     int direct);\n"
31516 "\n"
31517 msgstr ""
31518
31519 #. type: textblock
31520 #: ../src/guestfs-actions.pod:6691
31521 msgid ""
31522 "One consequence of this is that log messages aren't caught by the library "
31523 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31524 "stdout."
31525 msgstr ""
31526
31527 #. type: =head2
31528 #: ../src/guestfs-actions.pod:6704
31529 msgid "guestfs_set_e2label"
31530 msgstr ""
31531
31532 #. type: verbatim
31533 #: ../src/guestfs-actions.pod:6706
31534 #, no-wrap
31535 msgid ""
31536 " int\n"
31537 " guestfs_set_e2label (guestfs_h *g,\n"
31538 "                      const char *device,\n"
31539 "                      const char *label);\n"
31540 "\n"
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../src/guestfs-actions.pod:6715
31545 msgid ""
31546 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31547 "the existing label on a filesystem."
31548 msgstr ""
31549
31550 #. type: =head2
31551 #: ../src/guestfs-actions.pod:6722
31552 msgid "guestfs_set_e2uuid"
31553 msgstr ""
31554
31555 #. type: verbatim
31556 #: ../src/guestfs-actions.pod:6724
31557 #, no-wrap
31558 msgid ""
31559 " int\n"
31560 " guestfs_set_e2uuid (guestfs_h *g,\n"
31561 "                     const char *device,\n"
31562 "                     const char *uuid);\n"
31563 "\n"
31564 msgstr ""
31565
31566 #. type: textblock
31567 #: ../src/guestfs-actions.pod:6734
31568 msgid ""
31569 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31570 "the existing UUID of a filesystem."
31571 msgstr ""
31572
31573 #. type: =head2
31574 #: ../src/guestfs-actions.pod:6741
31575 msgid "guestfs_set_memsize"
31576 msgstr ""
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:6743
31580 #, no-wrap
31581 msgid ""
31582 " int\n"
31583 " guestfs_set_memsize (guestfs_h *g,\n"
31584 "                      int memsize);\n"
31585 "\n"
31586 msgstr ""
31587
31588 #. type: textblock
31589 #: ../src/guestfs-actions.pod:6747
31590 msgid ""
31591 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31592 "This only has any effect if called before C<guestfs_launch>."
31593 msgstr ""
31594
31595 #. type: =head2
31596 #: ../src/guestfs-actions.pod:6762
31597 msgid "guestfs_set_network"
31598 msgstr ""
31599
31600 #. type: verbatim
31601 #: ../src/guestfs-actions.pod:6764
31602 #, no-wrap
31603 msgid ""
31604 " int\n"
31605 " guestfs_set_network (guestfs_h *g,\n"
31606 "                      int network);\n"
31607 "\n"
31608 msgstr ""
31609
31610 #. type: textblock
31611 #: ../src/guestfs-actions.pod:6774
31612 msgid ""
31613 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31614 "effect."
31615 msgstr ""
31616
31617 #. type: =head2
31618 #: ../src/guestfs-actions.pod:6781
31619 msgid "guestfs_set_path"
31620 msgstr ""
31621
31622 #. type: verbatim
31623 #: ../src/guestfs-actions.pod:6783
31624 #, no-wrap
31625 msgid ""
31626 " int\n"
31627 " guestfs_set_path (guestfs_h *g,\n"
31628 "                   const char *searchpath);\n"
31629 "\n"
31630 msgstr ""
31631
31632 #. type: =head2
31633 #: ../src/guestfs-actions.pod:6798
31634 msgid "guestfs_set_pgroup"
31635 msgstr ""
31636
31637 #. type: verbatim
31638 #: ../src/guestfs-actions.pod:6800
31639 #, no-wrap
31640 msgid ""
31641 " int\n"
31642 " guestfs_set_pgroup (guestfs_h *g,\n"
31643 "                     int pgroup);\n"
31644 "\n"
31645 msgstr ""
31646
31647 #. type: =head2
31648 #: ../src/guestfs-actions.pod:6817
31649 msgid "guestfs_set_qemu"
31650 msgstr ""
31651
31652 #. type: verbatim
31653 #: ../src/guestfs-actions.pod:6819
31654 #, no-wrap
31655 msgid ""
31656 " int\n"
31657 " guestfs_set_qemu (guestfs_h *g,\n"
31658 "                   const char *qemu);\n"
31659 "\n"
31660 msgstr ""
31661
31662 #. type: =head2
31663 #: ../src/guestfs-actions.pod:6845
31664 msgid "guestfs_set_recovery_proc"
31665 msgstr ""
31666
31667 #. type: verbatim
31668 #: ../src/guestfs-actions.pod:6847
31669 #, no-wrap
31670 msgid ""
31671 " int\n"
31672 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31673 "                            int recoveryproc);\n"
31674 "\n"
31675 msgstr ""
31676
31677 #. type: textblock
31678 #: ../src/guestfs-actions.pod:6851
31679 msgid ""
31680 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31681 "not create a recovery process.  The purpose of the recovery process is to "
31682 "stop runaway qemu processes in the case where the main program aborts "
31683 "abruptly."
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs-actions.pod:6856
31688 msgid ""
31689 "This only has any effect if called before C<guestfs_launch>, and the default "
31690 "is true."
31691 msgstr ""
31692
31693 #. type: =head2
31694 #: ../src/guestfs-actions.pod:6869
31695 msgid "guestfs_set_selinux"
31696 msgstr ""
31697
31698 #. type: verbatim
31699 #: ../src/guestfs-actions.pod:6871
31700 #, no-wrap
31701 msgid ""
31702 " int\n"
31703 " guestfs_set_selinux (guestfs_h *g,\n"
31704 "                      int selinux);\n"
31705 "\n"
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:6888
31710 msgid "guestfs_set_smp"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:6890
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_set_smp (guestfs_h *g,\n"
31719 "                  int smp);\n"
31720 "\n"
31721 msgstr ""
31722
31723 #. type: textblock
31724 #: ../src/guestfs-actions.pod:6898
31725 msgid "This function must be called before C<guestfs_launch>."
31726 msgstr ""
31727
31728 #. type: =head2
31729 #: ../src/guestfs-actions.pod:6904
31730 msgid "guestfs_set_trace"
31731 msgstr ""
31732
31733 #. type: verbatim
31734 #: ../src/guestfs-actions.pod:6906
31735 #, no-wrap
31736 msgid ""
31737 " int\n"
31738 " guestfs_set_trace (guestfs_h *g,\n"
31739 "                    int trace);\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs-actions.pod:6920
31745 msgid ""
31746 "Trace messages are normally sent to C<stderr>, unless you register a "
31747 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:6928
31752 msgid "guestfs_set_verbose"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:6930
31757 #, no-wrap
31758 msgid ""
31759 " int\n"
31760 " guestfs_set_verbose (guestfs_h *g,\n"
31761 "                      int verbose);\n"
31762 "\n"
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs-actions.pod:6939
31767 msgid ""
31768 "Verbose messages are normally sent to C<stderr>, unless you register a "
31769 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31770 msgstr ""
31771
31772 #. type: =head2
31773 #: ../src/guestfs-actions.pod:6947
31774 msgid "guestfs_setcon"
31775 msgstr ""
31776
31777 #. type: verbatim
31778 #: ../src/guestfs-actions.pod:6949
31779 #, no-wrap
31780 msgid ""
31781 " int\n"
31782 " guestfs_setcon (guestfs_h *g,\n"
31783 "                 const char *context);\n"
31784 "\n"
31785 msgstr ""
31786
31787 #. type: =head2
31788 #: ../src/guestfs-actions.pod:6962
31789 msgid "guestfs_setxattr"
31790 msgstr ""
31791
31792 #. type: verbatim
31793 #: ../src/guestfs-actions.pod:6964
31794 #, no-wrap
31795 msgid ""
31796 " int\n"
31797 " guestfs_setxattr (guestfs_h *g,\n"
31798 "                   const char *xattr,\n"
31799 "                   const char *val,\n"
31800 "                   int vallen,\n"
31801 "                   const char *path);\n"
31802 "\n"
31803 msgstr ""
31804
31805 #. type: textblock
31806 #: ../src/guestfs-actions.pod:6975
31807 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31808 msgstr ""
31809
31810 #. type: =head2
31811 #: ../src/guestfs-actions.pod:6981
31812 msgid "guestfs_sfdisk"
31813 msgstr ""
31814
31815 #. type: verbatim
31816 #: ../src/guestfs-actions.pod:6983
31817 #, no-wrap
31818 msgid ""
31819 " int\n"
31820 " guestfs_sfdisk (guestfs_h *g,\n"
31821 "                 const char *device,\n"
31822 "                 int cyls,\n"
31823 "                 int heads,\n"
31824 "                 int sectors,\n"
31825 "                 char *const *lines);\n"
31826 "\n"
31827 msgstr ""
31828
31829 #. type: textblock
31830 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7063
31831 msgid ""
31832 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31833 "call instead."
31834 msgstr ""
31835
31836 #. type: textblock
31837 #: ../src/guestfs-actions.pod:7018
31838 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31839 msgstr ""
31840
31841 #. type: =head2
31842 #: ../src/guestfs-actions.pod:7025
31843 msgid "guestfs_sfdiskM"
31844 msgstr ""
31845
31846 #. type: verbatim
31847 #: ../src/guestfs-actions.pod:7027
31848 #, no-wrap
31849 msgid ""
31850 " int\n"
31851 " guestfs_sfdiskM (guestfs_h *g,\n"
31852 "                  const char *device,\n"
31853 "                  char *const *lines);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs-actions.pod:7039
31859 msgid ""
31860 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31861 "partition sizes are specified in megabytes only (rounded to the nearest "
31862 "cylinder) and you don't need to specify the cyls, heads and sectors "
31863 "parameters which were rarely if ever used anyway."
31864 msgstr ""
31865
31866 #. type: textblock
31867 #: ../src/guestfs-actions.pod:7045
31868 msgid ""
31869 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31870 "C<guestfs_part_disk>"
31871 msgstr ""
31872
31873 #. type: =head2
31874 #: ../src/guestfs-actions.pod:7052
31875 msgid "guestfs_sfdisk_N"
31876 msgstr ""
31877
31878 #. type: verbatim
31879 #: ../src/guestfs-actions.pod:7054
31880 #, no-wrap
31881 msgid ""
31882 " int\n"
31883 " guestfs_sfdisk_N (guestfs_h *g,\n"
31884 "                   const char *device,\n"
31885 "                   int partnum,\n"
31886 "                   int cyls,\n"
31887 "                   int heads,\n"
31888 "                   int sectors,\n"
31889 "                   const char *line);\n"
31890 "\n"
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs-actions.pod:7073
31895 msgid ""
31896 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31897 "for the cyls/heads/sectors parameters."
31898 msgstr ""
31899
31900 #. type: textblock
31901 #: ../src/guestfs-actions.pod:7076
31902 msgid "See also: C<guestfs_part_add>"
31903 msgstr ""
31904
31905 #. type: =head2
31906 #: ../src/guestfs-actions.pod:7082
31907 msgid "guestfs_sfdisk_disk_geometry"
31908 msgstr ""
31909
31910 #. type: verbatim
31911 #: ../src/guestfs-actions.pod:7084
31912 #, no-wrap
31913 msgid ""
31914 " char *\n"
31915 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31916 "                               const char *device);\n"
31917 "\n"
31918 msgstr ""
31919
31920 #. type: textblock
31921 #: ../src/guestfs-actions.pod:7088
31922 msgid ""
31923 "This displays the disk geometry of C<device> read from the partition table.  "
31924 "Especially in the case where the underlying block device has been resized, "
31925 "this can be different from the kernel's idea of the geometry (see "
31926 "C<guestfs_sfdisk_kernel_geometry>)."
31927 msgstr ""
31928
31929 #. type: =head2
31930 #: ../src/guestfs-actions.pod:7101
31931 msgid "guestfs_sfdisk_kernel_geometry"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs-actions.pod:7103
31936 #, no-wrap
31937 msgid ""
31938 " char *\n"
31939 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31940 "                                 const char *device);\n"
31941 "\n"
31942 msgstr ""
31943
31944 #. type: =head2
31945 #: ../src/guestfs-actions.pod:7117
31946 msgid "guestfs_sfdisk_l"
31947 msgstr ""
31948
31949 #. type: verbatim
31950 #: ../src/guestfs-actions.pod:7119
31951 #, no-wrap
31952 msgid ""
31953 " char *\n"
31954 " guestfs_sfdisk_l (guestfs_h *g,\n"
31955 "                   const char *device);\n"
31956 "\n"
31957 msgstr ""
31958
31959 #. type: textblock
31960 #: ../src/guestfs-actions.pod:7123
31961 msgid ""
31962 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31963 "call instead."
31964 msgstr ""
31965
31966 #. type: textblock
31967 #: ../src/guestfs-actions.pod:7134
31968 msgid "See also: C<guestfs_part_list>"
31969 msgstr ""
31970
31971 #. type: =head2
31972 #: ../src/guestfs-actions.pod:7141
31973 msgid "guestfs_sh"
31974 msgstr ""
31975
31976 #. type: verbatim
31977 #: ../src/guestfs-actions.pod:7143
31978 #, no-wrap
31979 msgid ""
31980 " char *\n"
31981 " guestfs_sh (guestfs_h *g,\n"
31982 "             const char *command);\n"
31983 "\n"
31984 msgstr ""
31985
31986 #. type: textblock
31987 #: ../src/guestfs-actions.pod:7150
31988 msgid "This is like C<guestfs_command>, but passes the command to:"
31989 msgstr ""
31990
31991 #. type: textblock
31992 #: ../src/guestfs-actions.pod:7158
31993 msgid "All the provisos about C<guestfs_command> apply to this call."
31994 msgstr ""
31995
31996 #. type: =head2
31997 #: ../src/guestfs-actions.pod:7165
31998 msgid "guestfs_sh_lines"
31999 msgstr ""
32000
32001 #. type: verbatim
32002 #: ../src/guestfs-actions.pod:7167
32003 #, no-wrap
32004 msgid ""
32005 " char **\n"
32006 " guestfs_sh_lines (guestfs_h *g,\n"
32007 "                   const char *command);\n"
32008 "\n"
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs-actions.pod:7171
32013 msgid ""
32014 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32015 "lines."
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs-actions.pod:7174
32020 msgid "See also: C<guestfs_command_lines>"
32021 msgstr ""
32022
32023 #. type: =head2
32024 #: ../src/guestfs-actions.pod:7182
32025 msgid "guestfs_sleep"
32026 msgstr ""
32027
32028 #. type: verbatim
32029 #: ../src/guestfs-actions.pod:7184
32030 #, no-wrap
32031 msgid ""
32032 " int\n"
32033 " guestfs_sleep (guestfs_h *g,\n"
32034 "                int secs);\n"
32035 "\n"
32036 msgstr ""
32037
32038 #. type: textblock
32039 #: ../src/guestfs-actions.pod:7192
32040 msgid "(Added in 1.0.41)"
32041 msgstr ""
32042
32043 #. type: =head2
32044 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
32045 msgid "guestfs_stat"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs-actions.pod:7196
32050 #, no-wrap
32051 msgid ""
32052 " struct guestfs_stat *\n"
32053 " guestfs_stat (guestfs_h *g,\n"
32054 "               const char *path);\n"
32055 "\n"
32056 msgstr ""
32057
32058 #. type: =head2
32059 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
32060 msgid "guestfs_statvfs"
32061 msgstr ""
32062
32063 #. type: verbatim
32064 #: ../src/guestfs-actions.pod:7212
32065 #, no-wrap
32066 msgid ""
32067 " struct guestfs_statvfs *\n"
32068 " guestfs_statvfs (guestfs_h *g,\n"
32069 "                  const char *path);\n"
32070 "\n"
32071 msgstr ""
32072
32073 #. type: textblock
32074 #: ../src/guestfs-actions.pod:7222
32075 msgid ""
32076 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32077 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32078 msgstr ""
32079
32080 #. type: =head2
32081 #: ../src/guestfs-actions.pod:7228
32082 msgid "guestfs_strings"
32083 msgstr ""
32084
32085 #. type: verbatim
32086 #: ../src/guestfs-actions.pod:7230
32087 #, no-wrap
32088 msgid ""
32089 " char **\n"
32090 " guestfs_strings (guestfs_h *g,\n"
32091 "                  const char *path);\n"
32092 "\n"
32093 msgstr ""
32094
32095 #. type: =head2
32096 #: ../src/guestfs-actions.pod:7246
32097 msgid "guestfs_strings_e"
32098 msgstr ""
32099
32100 #. type: verbatim
32101 #: ../src/guestfs-actions.pod:7248
32102 #, no-wrap
32103 msgid ""
32104 " char **\n"
32105 " guestfs_strings_e (guestfs_h *g,\n"
32106 "                    const char *encoding,\n"
32107 "                    const char *path);\n"
32108 "\n"
32109 msgstr ""
32110
32111 #. type: textblock
32112 #: ../src/guestfs-actions.pod:7253
32113 msgid ""
32114 "This is like the C<guestfs_strings> command, but allows you to specify the "
32115 "encoding of strings that are looked for in the source file C<path>."
32116 msgstr ""
32117
32118 #. type: textblock
32119 #: ../src/guestfs-actions.pod:7263
32120 msgid ""
32121 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32122 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32123 msgstr ""
32124
32125 #. type: =head2
32126 #: ../src/guestfs-actions.pod:7301
32127 msgid "guestfs_swapoff_device"
32128 msgstr ""
32129
32130 #. type: verbatim
32131 #: ../src/guestfs-actions.pod:7303
32132 #, no-wrap
32133 msgid ""
32134 " int\n"
32135 " guestfs_swapoff_device (guestfs_h *g,\n"
32136 "                         const char *device);\n"
32137 "\n"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs-actions.pod:7307
32142 msgid ""
32143 "This command disables the libguestfs appliance swap device or partition "
32144 "named C<device>.  See C<guestfs_swapon_device>."
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:7315
32149 msgid "guestfs_swapoff_file"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:7317
32154 #, no-wrap
32155 msgid ""
32156 " int\n"
32157 " guestfs_swapoff_file (guestfs_h *g,\n"
32158 "                       const char *file);\n"
32159 "\n"
32160 msgstr ""
32161
32162 #. type: =head2
32163 #: ../src/guestfs-actions.pod:7327
32164 msgid "guestfs_swapoff_label"
32165 msgstr ""
32166
32167 #. type: verbatim
32168 #: ../src/guestfs-actions.pod:7329
32169 #, no-wrap
32170 msgid ""
32171 " int\n"
32172 " guestfs_swapoff_label (guestfs_h *g,\n"
32173 "                        const char *label);\n"
32174 "\n"
32175 msgstr ""
32176
32177 #. type: =head2
32178 #: ../src/guestfs-actions.pod:7340
32179 msgid "guestfs_swapoff_uuid"
32180 msgstr ""
32181
32182 #. type: verbatim
32183 #: ../src/guestfs-actions.pod:7342
32184 #, no-wrap
32185 msgid ""
32186 " int\n"
32187 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32188 "                       const char *uuid);\n"
32189 "\n"
32190 msgstr ""
32191
32192 #. type: =head2
32193 #: ../src/guestfs-actions.pod:7353
32194 msgid "guestfs_swapon_device"
32195 msgstr ""
32196
32197 #. type: verbatim
32198 #: ../src/guestfs-actions.pod:7355
32199 #, no-wrap
32200 msgid ""
32201 " int\n"
32202 " guestfs_swapon_device (guestfs_h *g,\n"
32203 "                        const char *device);\n"
32204 "\n"
32205 msgstr ""
32206
32207 #. type: textblock
32208 #: ../src/guestfs-actions.pod:7359
32209 msgid ""
32210 "This command enables the libguestfs appliance to use the swap device or "
32211 "partition named C<device>.  The increased memory is made available for all "
32212 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32213 msgstr ""
32214
32215 #. type: =head2
32216 #: ../src/guestfs-actions.pod:7375
32217 msgid "guestfs_swapon_file"
32218 msgstr ""
32219
32220 #. type: verbatim
32221 #: ../src/guestfs-actions.pod:7377
32222 #, no-wrap
32223 msgid ""
32224 " int\n"
32225 " guestfs_swapon_file (guestfs_h *g,\n"
32226 "                      const char *file);\n"
32227 "\n"
32228 msgstr ""
32229
32230 #. type: textblock
32231 #: ../src/guestfs-actions.pod:7381
32232 msgid ""
32233 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32234 "notes."
32235 msgstr ""
32236
32237 #. type: =head2
32238 #: ../src/guestfs-actions.pod:7388
32239 msgid "guestfs_swapon_label"
32240 msgstr ""
32241
32242 #. type: verbatim
32243 #: ../src/guestfs-actions.pod:7390
32244 #, no-wrap
32245 msgid ""
32246 " int\n"
32247 " guestfs_swapon_label (guestfs_h *g,\n"
32248 "                       const char *label);\n"
32249 "\n"
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs-actions.pod:7394
32254 msgid ""
32255 "This command enables swap to a labeled swap partition.  See "
32256 "C<guestfs_swapon_device> for other notes."
32257 msgstr ""
32258
32259 #. type: =head2
32260 #: ../src/guestfs-actions.pod:7401
32261 msgid "guestfs_swapon_uuid"
32262 msgstr ""
32263
32264 #. type: verbatim
32265 #: ../src/guestfs-actions.pod:7403
32266 #, no-wrap
32267 msgid ""
32268 " int\n"
32269 " guestfs_swapon_uuid (guestfs_h *g,\n"
32270 "                      const char *uuid);\n"
32271 "\n"
32272 msgstr ""
32273
32274 #. type: textblock
32275 #: ../src/guestfs-actions.pod:7407
32276 msgid ""
32277 "This command enables swap to a swap partition with the given UUID.  See "
32278 "C<guestfs_swapon_device> for other notes."
32279 msgstr ""
32280
32281 #. type: =head2
32282 #: ../src/guestfs-actions.pod:7414
32283 msgid "guestfs_sync"
32284 msgstr ""
32285
32286 #. type: verbatim
32287 #: ../src/guestfs-actions.pod:7416
32288 #, no-wrap
32289 msgid ""
32290 " int\n"
32291 " guestfs_sync (guestfs_h *g);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:7429
32297 msgid "guestfs_tail"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:7431
32302 #, no-wrap
32303 msgid ""
32304 " char **\n"
32305 " guestfs_tail (guestfs_h *g,\n"
32306 "               const char *path);\n"
32307 "\n"
32308 msgstr ""
32309
32310 #. type: =head2
32311 #: ../src/guestfs-actions.pod:7447
32312 msgid "guestfs_tail_n"
32313 msgstr ""
32314
32315 #. type: verbatim
32316 #: ../src/guestfs-actions.pod:7449
32317 #, no-wrap
32318 msgid ""
32319 " char **\n"
32320 " guestfs_tail_n (guestfs_h *g,\n"
32321 "                 int nrlines,\n"
32322 "                 const char *path);\n"
32323 "\n"
32324 msgstr ""
32325
32326 #. type: =head2
32327 #: ../src/guestfs-actions.pod:7471
32328 msgid "guestfs_tar_in"
32329 msgstr ""
32330
32331 #. type: verbatim
32332 #: ../src/guestfs-actions.pod:7473
32333 #, no-wrap
32334 msgid ""
32335 " int\n"
32336 " guestfs_tar_in (guestfs_h *g,\n"
32337 "                 const char *tarfile,\n"
32338 "                 const char *directory);\n"
32339 "\n"
32340 msgstr ""
32341
32342 #. type: textblock
32343 #: ../src/guestfs-actions.pod:7481
32344 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32345 msgstr ""
32346
32347 #. type: textblock
32348 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503 ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
32349 msgid "(Added in 1.0.3)"
32350 msgstr ""
32351
32352 #. type: =head2
32353 #: ../src/guestfs-actions.pod:7488
32354 msgid "guestfs_tar_out"
32355 msgstr ""
32356
32357 #. type: verbatim
32358 #: ../src/guestfs-actions.pod:7490
32359 #, no-wrap
32360 msgid ""
32361 " int\n"
32362 " guestfs_tar_out (guestfs_h *g,\n"
32363 "                  const char *directory,\n"
32364 "                  const char *tarfile);\n"
32365 "\n"
32366 msgstr ""
32367
32368 #. type: textblock
32369 #: ../src/guestfs-actions.pod:7498
32370 msgid ""
32371 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32372 "C<guestfs_txz_out>."
32373 msgstr ""
32374
32375 #. type: =head2
32376 #: ../src/guestfs-actions.pod:7505
32377 msgid "guestfs_tgz_in"
32378 msgstr ""
32379
32380 #. type: verbatim
32381 #: ../src/guestfs-actions.pod:7507
32382 #, no-wrap
32383 msgid ""
32384 " int\n"
32385 " guestfs_tgz_in (guestfs_h *g,\n"
32386 "                 const char *tarball,\n"
32387 "                 const char *directory);\n"
32388 "\n"
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs-actions.pod:7515
32393 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-actions.pod:7521
32398 msgid "guestfs_tgz_out"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-actions.pod:7523
32403 #, no-wrap
32404 msgid ""
32405 " int\n"
32406 " guestfs_tgz_out (guestfs_h *g,\n"
32407 "                  const char *directory,\n"
32408 "                  const char *tarball);\n"
32409 "\n"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs-actions.pod:7531
32414 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32415 msgstr ""
32416
32417 #. type: =head2
32418 #: ../src/guestfs-actions.pod:7537
32419 msgid "guestfs_touch"
32420 msgstr ""
32421
32422 #. type: verbatim
32423 #: ../src/guestfs-actions.pod:7539
32424 #, no-wrap
32425 msgid ""
32426 " int\n"
32427 " guestfs_touch (guestfs_h *g,\n"
32428 "                const char *path);\n"
32429 "\n"
32430 msgstr ""
32431
32432 #. type: =head2
32433 #: ../src/guestfs-actions.pod:7554
32434 msgid "guestfs_truncate"
32435 msgstr ""
32436
32437 #. type: verbatim
32438 #: ../src/guestfs-actions.pod:7556
32439 #, no-wrap
32440 msgid ""
32441 " int\n"
32442 " guestfs_truncate (guestfs_h *g,\n"
32443 "                   const char *path);\n"
32444 "\n"
32445 msgstr ""
32446
32447 #. type: =head2
32448 #: ../src/guestfs-actions.pod:7567
32449 msgid "guestfs_truncate_size"
32450 msgstr ""
32451
32452 #. type: verbatim
32453 #: ../src/guestfs-actions.pod:7569
32454 #, no-wrap
32455 msgid ""
32456 " int\n"
32457 " guestfs_truncate_size (guestfs_h *g,\n"
32458 "                        const char *path,\n"
32459 "                        int64_t size);\n"
32460 "\n"
32461 msgstr ""
32462
32463 #. type: textblock
32464 #: ../src/guestfs-actions.pod:7577
32465 msgid ""
32466 "If the current file size is less than C<size> then the file is extended to "
32467 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32468 "blocks are not allocated for the file until you write to it).  To create a "
32469 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32470 msgstr ""
32471
32472 #. type: =head2
32473 #: ../src/guestfs-actions.pod:7587
32474 msgid "guestfs_tune2fs_l"
32475 msgstr ""
32476
32477 #. type: verbatim
32478 #: ../src/guestfs-actions.pod:7589
32479 #, no-wrap
32480 msgid ""
32481 " char **\n"
32482 " guestfs_tune2fs_l (guestfs_h *g,\n"
32483 "                    const char *device);\n"
32484 "\n"
32485 msgstr ""
32486
32487 #. type: =head2
32488 #: ../src/guestfs-actions.pod:7609
32489 msgid "guestfs_txz_in"
32490 msgstr ""
32491
32492 #. type: verbatim
32493 #: ../src/guestfs-actions.pod:7611
32494 #, no-wrap
32495 msgid ""
32496 " int\n"
32497 " guestfs_txz_in (guestfs_h *g,\n"
32498 "                 const char *tarball,\n"
32499 "                 const char *directory);\n"
32500 "\n"
32501 msgstr ""
32502
32503 #. type: =head2
32504 #: ../src/guestfs-actions.pod:7623
32505 msgid "guestfs_txz_out"
32506 msgstr ""
32507
32508 #. type: verbatim
32509 #: ../src/guestfs-actions.pod:7625
32510 #, no-wrap
32511 msgid ""
32512 " int\n"
32513 " guestfs_txz_out (guestfs_h *g,\n"
32514 "                  const char *directory,\n"
32515 "                  const char *tarball);\n"
32516 "\n"
32517 msgstr ""
32518
32519 #. type: =head2
32520 #: ../src/guestfs-actions.pod:7637
32521 msgid "guestfs_umask"
32522 msgstr ""
32523
32524 #. type: verbatim
32525 #: ../src/guestfs-actions.pod:7639
32526 #, no-wrap
32527 msgid ""
32528 " int\n"
32529 " guestfs_umask (guestfs_h *g,\n"
32530 "                int mask);\n"
32531 "\n"
32532 msgstr ""
32533
32534 #. type: textblock
32535 #: ../src/guestfs-actions.pod:7655
32536 msgid ""
32537 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32538 "C<guestfs_mkdir>."
32539 msgstr ""
32540
32541 #. type: =head2
32542 #: ../src/guestfs-actions.pod:7664
32543 msgid "guestfs_umount"
32544 msgstr ""
32545
32546 #. type: verbatim
32547 #: ../src/guestfs-actions.pod:7666
32548 #, no-wrap
32549 msgid ""
32550 " int\n"
32551 " guestfs_umount (guestfs_h *g,\n"
32552 "                 const char *pathordevice);\n"
32553 "\n"
32554 msgstr ""
32555
32556 #. type: =head2
32557 #: ../src/guestfs-actions.pod:7678
32558 msgid "guestfs_umount_all"
32559 msgstr ""
32560
32561 #. type: verbatim
32562 #: ../src/guestfs-actions.pod:7680
32563 #, no-wrap
32564 msgid ""
32565 " int\n"
32566 " guestfs_umount_all (guestfs_h *g);\n"
32567 "\n"
32568 msgstr ""
32569
32570 #. type: =head2
32571 #: ../src/guestfs-actions.pod:7691
32572 msgid "guestfs_upload"
32573 msgstr ""
32574
32575 #. type: verbatim
32576 #: ../src/guestfs-actions.pod:7693
32577 #, no-wrap
32578 msgid ""
32579 " int\n"
32580 " guestfs_upload (guestfs_h *g,\n"
32581 "                 const char *filename,\n"
32582 "                 const char *remotefilename);\n"
32583 "\n"
32584 msgstr ""
32585
32586 #. type: textblock
32587 #: ../src/guestfs-actions.pod:7703
32588 msgid "See also C<guestfs_download>."
32589 msgstr ""
32590
32591 #. type: =head2
32592 #: ../src/guestfs-actions.pod:7714
32593 msgid "guestfs_upload_offset"
32594 msgstr ""
32595
32596 #. type: verbatim
32597 #: ../src/guestfs-actions.pod:7716
32598 #, no-wrap
32599 msgid ""
32600 " int\n"
32601 " guestfs_upload_offset (guestfs_h *g,\n"
32602 "                        const char *filename,\n"
32603 "                        const char *remotefilename,\n"
32604 "                        int64_t offset);\n"
32605 "\n"
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs-actions.pod:7732
32610 msgid ""
32611 "Note that there is no limit on the amount of data that can be uploaded with "
32612 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32613 "full amount unless an error occurs."
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs-actions.pod:7737
32618 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32619 msgstr ""
32620
32621 #. type: =head2
32622 #: ../src/guestfs-actions.pod:7748
32623 msgid "guestfs_utimens"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs-actions.pod:7750
32628 #, no-wrap
32629 msgid ""
32630 " int\n"
32631 " guestfs_utimens (guestfs_h *g,\n"
32632 "                  const char *path,\n"
32633 "                  int64_t atsecs,\n"
32634 "                  int64_t atnsecs,\n"
32635 "                  int64_t mtsecs,\n"
32636 "                  int64_t mtnsecs);\n"
32637 "\n"
32638 msgstr ""
32639
32640 #. type: =head2
32641 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
32642 msgid "guestfs_version"
32643 msgstr ""
32644
32645 #. type: verbatim
32646 #: ../src/guestfs-actions.pod:7781
32647 #, no-wrap
32648 msgid ""
32649 " struct guestfs_version *\n"
32650 " guestfs_version (guestfs_h *g);\n"
32651 "\n"
32652 msgstr ""
32653
32654 #. type: textblock
32655 #: ../src/guestfs-actions.pod:7809
32656 msgid ""
32657 "I<Note:> Don't use this call to test for availability of features.  In "
32658 "enterprise distributions we backport features from later versions into "
32659 "earlier versions, making this an unreliable way to test for features.  Use "
32660 "C<guestfs_available> instead."
32661 msgstr ""
32662
32663 #. type: textblock
32664 #: ../src/guestfs-actions.pod:7815
32665 msgid ""
32666 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32667 "error.  I<The caller must call C<guestfs_free_version> after use>."
32668 msgstr ""
32669
32670 #. type: textblock
32671 #: ../src/guestfs-actions.pod:7819
32672 msgid "(Added in 1.0.58)"
32673 msgstr ""
32674
32675 #. type: =head2
32676 #: ../src/guestfs-actions.pod:7821
32677 msgid "guestfs_vfs_label"
32678 msgstr ""
32679
32680 #. type: verbatim
32681 #: ../src/guestfs-actions.pod:7823
32682 #, no-wrap
32683 msgid ""
32684 " char *\n"
32685 " guestfs_vfs_label (guestfs_h *g,\n"
32686 "                    const char *device);\n"
32687 "\n"
32688 msgstr ""
32689
32690 #. type: textblock
32691 #: ../src/guestfs-actions.pod:7832
32692 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32693 msgstr ""
32694
32695 #. type: textblock
32696 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
32697 msgid "(Added in 1.3.18)"
32698 msgstr ""
32699
32700 #. type: =head2
32701 #: ../src/guestfs-actions.pod:7839
32702 msgid "guestfs_vfs_type"
32703 msgstr ""
32704
32705 #. type: verbatim
32706 #: ../src/guestfs-actions.pod:7841
32707 #, no-wrap
32708 msgid ""
32709 " char *\n"
32710 " guestfs_vfs_type (guestfs_h *g,\n"
32711 "                   const char *device);\n"
32712 "\n"
32713 msgstr ""
32714
32715 #. type: =head2
32716 #: ../src/guestfs-actions.pod:7858
32717 msgid "guestfs_vfs_uuid"
32718 msgstr ""
32719
32720 #. type: verbatim
32721 #: ../src/guestfs-actions.pod:7860
32722 #, no-wrap
32723 msgid ""
32724 " char *\n"
32725 " guestfs_vfs_uuid (guestfs_h *g,\n"
32726 "                   const char *device);\n"
32727 "\n"
32728 msgstr ""
32729
32730 #. type: textblock
32731 #: ../src/guestfs-actions.pod:7869
32732 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32733 msgstr ""
32734
32735 #. type: =head2
32736 #: ../src/guestfs-actions.pod:7876
32737 msgid "guestfs_vg_activate"
32738 msgstr ""
32739
32740 #. type: verbatim
32741 #: ../src/guestfs-actions.pod:7878
32742 #, no-wrap
32743 msgid ""
32744 " int\n"
32745 " guestfs_vg_activate (guestfs_h *g,\n"
32746 "                      int activate,\n"
32747 "                      char *const *volgroups);\n"
32748 "\n"
32749 msgstr ""
32750
32751 #. type: =head2
32752 #: ../src/guestfs-actions.pod:7895
32753 msgid "guestfs_vg_activate_all"
32754 msgstr ""
32755
32756 #. type: verbatim
32757 #: ../src/guestfs-actions.pod:7897
32758 #, no-wrap
32759 msgid ""
32760 " int\n"
32761 " guestfs_vg_activate_all (guestfs_h *g,\n"
32762 "                          int activate);\n"
32763 "\n"
32764 msgstr ""
32765
32766 #. type: =head2
32767 #: ../src/guestfs-actions.pod:7910
32768 msgid "guestfs_vgcreate"
32769 msgstr ""
32770
32771 #. type: verbatim
32772 #: ../src/guestfs-actions.pod:7912
32773 #, no-wrap
32774 msgid ""
32775 " int\n"
32776 " guestfs_vgcreate (guestfs_h *g,\n"
32777 "                   const char *volgroup,\n"
32778 "                   char *const *physvols);\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: =head2
32783 #: ../src/guestfs-actions.pod:7924
32784 msgid "guestfs_vglvuuids"
32785 msgstr ""
32786
32787 #. type: verbatim
32788 #: ../src/guestfs-actions.pod:7926
32789 #, no-wrap
32790 msgid ""
32791 " char **\n"
32792 " guestfs_vglvuuids (guestfs_h *g,\n"
32793 "                    const char *vgname);\n"
32794 "\n"
32795 msgstr ""
32796
32797 #. type: textblock
32798 #: ../src/guestfs-actions.pod:7933
32799 msgid ""
32800 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32801 "associate logical volumes and volume groups."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs-actions.pod:7936
32806 msgid "See also C<guestfs_vgpvuuids>."
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs-actions.pod:7944
32811 msgid "guestfs_vgpvuuids"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs-actions.pod:7946
32816 #, no-wrap
32817 msgid ""
32818 " char **\n"
32819 " guestfs_vgpvuuids (guestfs_h *g,\n"
32820 "                    const char *vgname);\n"
32821 "\n"
32822 msgstr ""
32823
32824 #. type: textblock
32825 #: ../src/guestfs-actions.pod:7953
32826 msgid ""
32827 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32828 "associate physical volumes and volume groups."
32829 msgstr ""
32830
32831 #. type: textblock
32832 #: ../src/guestfs-actions.pod:7956
32833 msgid "See also C<guestfs_vglvuuids>."
32834 msgstr ""
32835
32836 #. type: =head2
32837 #: ../src/guestfs-actions.pod:7964
32838 msgid "guestfs_vgremove"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-actions.pod:7966
32843 #, no-wrap
32844 msgid ""
32845 " int\n"
32846 " guestfs_vgremove (guestfs_h *g,\n"
32847 "                   const char *vgname);\n"
32848 "\n"
32849 msgstr ""
32850
32851 #. type: =head2
32852 #: ../src/guestfs-actions.pod:7979
32853 msgid "guestfs_vgrename"
32854 msgstr ""
32855
32856 #. type: verbatim
32857 #: ../src/guestfs-actions.pod:7981
32858 #, no-wrap
32859 msgid ""
32860 " int\n"
32861 " guestfs_vgrename (guestfs_h *g,\n"
32862 "                   const char *volgroup,\n"
32863 "                   const char *newvolgroup);\n"
32864 "\n"
32865 msgstr ""
32866
32867 #. type: =head2
32868 #: ../src/guestfs-actions.pod:7992
32869 msgid "guestfs_vgs"
32870 msgstr ""
32871
32872 #. type: verbatim
32873 #: ../src/guestfs-actions.pod:7994
32874 #, no-wrap
32875 msgid ""
32876 " char **\n"
32877 " guestfs_vgs (guestfs_h *g);\n"
32878 "\n"
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs-actions.pod:8003
32883 msgid "See also C<guestfs_vgs_full>."
32884 msgstr ""
32885
32886 #. type: =head2
32887 #: ../src/guestfs-actions.pod:8011
32888 msgid "guestfs_vgs_full"
32889 msgstr ""
32890
32891 #. type: verbatim
32892 #: ../src/guestfs-actions.pod:8013
32893 #, no-wrap
32894 msgid ""
32895 " struct guestfs_lvm_vg_list *\n"
32896 " guestfs_vgs_full (guestfs_h *g);\n"
32897 "\n"
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs-actions.pod:8019
32902 msgid ""
32903 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32904 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
32905 "use>."
32906 msgstr ""
32907
32908 #. type: =head2
32909 #: ../src/guestfs-actions.pod:8025
32910 msgid "guestfs_vgscan"
32911 msgstr ""
32912
32913 #. type: verbatim
32914 #: ../src/guestfs-actions.pod:8027
32915 #, no-wrap
32916 msgid ""
32917 " int\n"
32918 " guestfs_vgscan (guestfs_h *g);\n"
32919 "\n"
32920 msgstr ""
32921
32922 #. type: =head2
32923 #: ../src/guestfs-actions.pod:8037
32924 msgid "guestfs_vguuid"
32925 msgstr ""
32926
32927 #. type: verbatim
32928 #: ../src/guestfs-actions.pod:8039
32929 #, no-wrap
32930 msgid ""
32931 " char *\n"
32932 " guestfs_vguuid (guestfs_h *g,\n"
32933 "                 const char *vgname);\n"
32934 "\n"
32935 msgstr ""
32936
32937 #. type: =head2
32938 #: ../src/guestfs-actions.pod:8050
32939 msgid "guestfs_wait_ready"
32940 msgstr ""
32941
32942 #. type: verbatim
32943 #: ../src/guestfs-actions.pod:8052
32944 #, no-wrap
32945 msgid ""
32946 " int\n"
32947 " guestfs_wait_ready (guestfs_h *g);\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs-actions.pod:8055
32953 msgid ""
32954 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32955 "instead."
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:8062
32960 msgid "This function is a no op."
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs-actions.pod:8064
32965 msgid ""
32966 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32967 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32968 "is no longer necessary because C<guestfs_launch> now does the waiting."
32969 msgstr ""
32970
32971 #. type: textblock
32972 #: ../src/guestfs-actions.pod:8069
32973 msgid ""
32974 "If you see any calls to this function in code then you can just remove them, "
32975 "unless you want to retain compatibility with older versions of the API."
32976 msgstr ""
32977
32978 #. type: =head2
32979 #: ../src/guestfs-actions.pod:8077
32980 msgid "guestfs_wc_c"
32981 msgstr ""
32982
32983 #. type: verbatim
32984 #: ../src/guestfs-actions.pod:8079
32985 #, no-wrap
32986 msgid ""
32987 " int\n"
32988 " guestfs_wc_c (guestfs_h *g,\n"
32989 "               const char *path);\n"
32990 "\n"
32991 msgstr ""
32992
32993 #. type: =head2
32994 #: ../src/guestfs-actions.pod:8090
32995 msgid "guestfs_wc_l"
32996 msgstr ""
32997
32998 #. type: verbatim
32999 #: ../src/guestfs-actions.pod:8092
33000 #, no-wrap
33001 msgid ""
33002 " int\n"
33003 " guestfs_wc_l (guestfs_h *g,\n"
33004 "               const char *path);\n"
33005 "\n"
33006 msgstr ""
33007
33008 #. type: =head2
33009 #: ../src/guestfs-actions.pod:8103
33010 msgid "guestfs_wc_w"
33011 msgstr ""
33012
33013 #. type: verbatim
33014 #: ../src/guestfs-actions.pod:8105
33015 #, no-wrap
33016 msgid ""
33017 " int\n"
33018 " guestfs_wc_w (guestfs_h *g,\n"
33019 "               const char *path);\n"
33020 "\n"
33021 msgstr ""
33022
33023 #. type: =head2
33024 #: ../src/guestfs-actions.pod:8116
33025 msgid "guestfs_write"
33026 msgstr ""
33027
33028 #. type: verbatim
33029 #: ../src/guestfs-actions.pod:8118
33030 #, no-wrap
33031 msgid ""
33032 " int\n"
33033 " guestfs_write (guestfs_h *g,\n"
33034 "                const char *path,\n"
33035 "                const char *content,\n"
33036 "                size_t content_size);\n"
33037 "\n"
33038 msgstr ""
33039
33040 #. type: textblock
33041 #: ../src/guestfs-actions.pod:8127
33042 msgid "See also C<guestfs_write_append>."
33043 msgstr ""
33044
33045 #. type: =head2
33046 #: ../src/guestfs-actions.pod:8136
33047 msgid "guestfs_write_append"
33048 msgstr ""
33049
33050 #. type: verbatim
33051 #: ../src/guestfs-actions.pod:8138
33052 #, no-wrap
33053 msgid ""
33054 " int\n"
33055 " guestfs_write_append (guestfs_h *g,\n"
33056 "                       const char *path,\n"
33057 "                       const char *content,\n"
33058 "                       size_t content_size);\n"
33059 "\n"
33060 msgstr ""
33061
33062 #. type: textblock
33063 #: ../src/guestfs-actions.pod:8147
33064 msgid "See also C<guestfs_write>."
33065 msgstr ""
33066
33067 #. type: =head2
33068 #: ../src/guestfs-actions.pod:8156
33069 msgid "guestfs_write_file"
33070 msgstr ""
33071
33072 #. type: verbatim
33073 #: ../src/guestfs-actions.pod:8158
33074 #, no-wrap
33075 msgid ""
33076 " int\n"
33077 " guestfs_write_file (guestfs_h *g,\n"
33078 "                     const char *path,\n"
33079 "                     const char *content,\n"
33080 "                     int size);\n"
33081 "\n"
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs-actions.pod:8164
33086 msgid ""
33087 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33088 "instead."
33089 msgstr ""
33090
33091 #. type: =head2
33092 #: ../src/guestfs-actions.pod:8189
33093 msgid "guestfs_zegrep"
33094 msgstr ""
33095
33096 #. type: verbatim
33097 #: ../src/guestfs-actions.pod:8191
33098 #, no-wrap
33099 msgid ""
33100 " char **\n"
33101 " guestfs_zegrep (guestfs_h *g,\n"
33102 "                 const char *regex,\n"
33103 "                 const char *path);\n"
33104 "\n"
33105 msgstr ""
33106
33107 #. type: =head2
33108 #: ../src/guestfs-actions.pod:8208
33109 msgid "guestfs_zegrepi"
33110 msgstr ""
33111
33112 #. type: verbatim
33113 #: ../src/guestfs-actions.pod:8210
33114 #, no-wrap
33115 msgid ""
33116 " char **\n"
33117 " guestfs_zegrepi (guestfs_h *g,\n"
33118 "                  const char *regex,\n"
33119 "                  const char *path);\n"
33120 "\n"
33121 msgstr ""
33122
33123 #. type: =head2
33124 #: ../src/guestfs-actions.pod:8227
33125 msgid "guestfs_zero"
33126 msgstr ""
33127
33128 #. type: verbatim
33129 #: ../src/guestfs-actions.pod:8229
33130 #, no-wrap
33131 msgid ""
33132 " int\n"
33133 " guestfs_zero (guestfs_h *g,\n"
33134 "               const char *device);\n"
33135 "\n"
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs-actions.pod:8243
33140 msgid ""
33141 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33142 "C<guestfs_is_zero_device>"
33143 msgstr ""
33144
33145 #. type: =head2
33146 #: ../src/guestfs-actions.pod:8255
33147 msgid "guestfs_zero_device"
33148 msgstr ""
33149
33150 #. type: verbatim
33151 #: ../src/guestfs-actions.pod:8257
33152 #, no-wrap
33153 msgid ""
33154 " int\n"
33155 " guestfs_zero_device (guestfs_h *g,\n"
33156 "                      const char *device);\n"
33157 "\n"
33158 msgstr ""
33159
33160 #. type: textblock
33161 #: ../src/guestfs-actions.pod:8261
33162 msgid ""
33163 "This command writes zeroes over the entire C<device>.  Compare with "
33164 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs-actions.pod:8276
33169 msgid "(Added in 1.3.1)"
33170 msgstr ""
33171
33172 #. type: =head2
33173 #: ../src/guestfs-actions.pod:8278
33174 msgid "guestfs_zerofree"
33175 msgstr ""
33176
33177 #. type: verbatim
33178 #: ../src/guestfs-actions.pod:8280
33179 #, no-wrap
33180 msgid ""
33181 " int\n"
33182 " guestfs_zerofree (guestfs_h *g,\n"
33183 "                   const char *device);\n"
33184 "\n"
33185 msgstr ""
33186
33187 #. type: =head2
33188 #: ../src/guestfs-actions.pod:8299
33189 msgid "guestfs_zfgrep"
33190 msgstr ""
33191
33192 #. type: verbatim
33193 #: ../src/guestfs-actions.pod:8301
33194 #, no-wrap
33195 msgid ""
33196 " char **\n"
33197 " guestfs_zfgrep (guestfs_h *g,\n"
33198 "                 const char *pattern,\n"
33199 "                 const char *path);\n"
33200 "\n"
33201 msgstr ""
33202
33203 #. type: =head2
33204 #: ../src/guestfs-actions.pod:8318
33205 msgid "guestfs_zfgrepi"
33206 msgstr ""
33207
33208 #. type: verbatim
33209 #: ../src/guestfs-actions.pod:8320
33210 #, no-wrap
33211 msgid ""
33212 " char **\n"
33213 " guestfs_zfgrepi (guestfs_h *g,\n"
33214 "                  const char *pattern,\n"
33215 "                  const char *path);\n"
33216 "\n"
33217 msgstr ""
33218
33219 #. type: =head2
33220 #: ../src/guestfs-actions.pod:8337
33221 msgid "guestfs_zfile"
33222 msgstr ""
33223
33224 #. type: verbatim
33225 #: ../src/guestfs-actions.pod:8339
33226 #, no-wrap
33227 msgid ""
33228 " char *\n"
33229 " guestfs_zfile (guestfs_h *g,\n"
33230 "                const char *meth,\n"
33231 "                const char *path);\n"
33232 "\n"
33233 msgstr ""
33234
33235 #. type: textblock
33236 #: ../src/guestfs-actions.pod:8344
33237 msgid ""
33238 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33239 "instead."
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs-actions.pod:8356
33244 msgid ""
33245 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33246 "files."
33247 msgstr ""
33248
33249 #. type: =head2
33250 #: ../src/guestfs-actions.pod:8364
33251 msgid "guestfs_zgrep"
33252 msgstr ""
33253
33254 #. type: verbatim
33255 #: ../src/guestfs-actions.pod:8366
33256 #, no-wrap
33257 msgid ""
33258 " char **\n"
33259 " guestfs_zgrep (guestfs_h *g,\n"
33260 "                const char *regex,\n"
33261 "                const char *path);\n"
33262 "\n"
33263 msgstr ""
33264
33265 #. type: =head2
33266 #: ../src/guestfs-actions.pod:8383
33267 msgid "guestfs_zgrepi"
33268 msgstr ""
33269
33270 #. type: verbatim
33271 #: ../src/guestfs-actions.pod:8385
33272 #, no-wrap
33273 msgid ""
33274 " char **\n"
33275 " guestfs_zgrepi (guestfs_h *g,\n"
33276 "                 const char *regex,\n"
33277 "                 const char *path);\n"
33278 "\n"
33279 msgstr ""
33280
33281 #. type: =item
33282 #: ../src/guestfs-availability.pod:3
33283 msgid "B<augeas>"
33284 msgstr ""
33285
33286 #. type: textblock
33287 #: ../src/guestfs-availability.pod:5
33288 msgid ""
33289 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
33290 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
33291 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
33292 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
33293 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
33294 msgstr ""
33295
33296 #. type: =item
33297 #: ../src/guestfs-availability.pod:21
33298 msgid "B<btrfs>"
33299 msgstr ""
33300
33301 #. type: textblock
33302 #: ../src/guestfs-availability.pod:23
33303 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33304 msgstr ""
33305
33306 #. type: =item
33307 #: ../src/guestfs-availability.pod:26
33308 msgid "B<grub>"
33309 msgstr ""
33310
33311 #. type: textblock
33312 #: ../src/guestfs-availability.pod:28
33313 msgid "The following functions: L</guestfs_grub_install>"
33314 msgstr ""
33315
33316 #. type: =item
33317 #: ../src/guestfs-availability.pod:31
33318 msgid "B<inotify>"
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs-availability.pod:33
33323 msgid ""
33324 "The following functions: L</guestfs_inotify_add_watch> "
33325 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
33326 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33327 msgstr ""
33328
33329 #. type: =item
33330 #: ../src/guestfs-availability.pod:41
33331 msgid "B<linuxfsuuid>"
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs-availability.pod:43
33336 msgid ""
33337 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
33338 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33339 msgstr ""
33340
33341 #. type: =item
33342 #: ../src/guestfs-availability.pod:50
33343 msgid "B<linuxmodules>"
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs-availability.pod:52
33348 msgid "The following functions: L</guestfs_modprobe>"
33349 msgstr ""
33350
33351 #. type: =item
33352 #: ../src/guestfs-availability.pod:55
33353 msgid "B<linuxxattrs>"
33354 msgstr ""
33355
33356 #. type: textblock
33357 #: ../src/guestfs-availability.pod:57
33358 msgid ""
33359 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
33360 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
33361 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
33362 "L</guestfs_setxattr>"
33363 msgstr ""
33364
33365 #. type: =item
33366 #: ../src/guestfs-availability.pod:68
33367 msgid "B<luks>"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs-availability.pod:70
33372 msgid ""
33373 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
33374 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
33375 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33376 msgstr ""
33377
33378 #. type: =item
33379 #: ../src/guestfs-availability.pod:79
33380 msgid "B<lvm2>"
33381 msgstr ""
33382
33383 #. type: textblock
33384 #: ../src/guestfs-availability.pod:81
33385 msgid ""
33386 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
33387 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
33388 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
33389 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
33390 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
33391 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
33392 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
33393 "L</guestfs_vgs_full>"
33394 msgstr ""
33395
33396 #. type: =item
33397 #: ../src/guestfs-availability.pod:104
33398 msgid "B<mknod>"
33399 msgstr ""
33400
33401 #. type: textblock
33402 #: ../src/guestfs-availability.pod:106
33403 msgid ""
33404 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
33405 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
33406 msgstr ""
33407
33408 #. type: =item
33409 #: ../src/guestfs-availability.pod:112
33410 msgid "B<ntfs3g>"
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs-availability.pod:114
33415 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33416 msgstr ""
33417
33418 #. type: =item
33419 #: ../src/guestfs-availability.pod:117
33420 msgid "B<ntfsprogs>"
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs-availability.pod:119
33425 msgid ""
33426 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33427 "L</guestfs_ntfsresize_size>"
33428 msgstr ""
33429
33430 #. type: =item
33431 #: ../src/guestfs-availability.pod:124
33432 msgid "B<realpath>"
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs-availability.pod:126
33437 msgid "The following functions: L</guestfs_realpath>"
33438 msgstr ""
33439
33440 #. type: =item
33441 #: ../src/guestfs-availability.pod:129
33442 msgid "B<scrub>"
33443 msgstr ""
33444
33445 #. type: textblock
33446 #: ../src/guestfs-availability.pod:131
33447 msgid ""
33448 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
33449 "L</guestfs_scrub_freespace>"
33450 msgstr ""
33451
33452 #. type: =item
33453 #: ../src/guestfs-availability.pod:136
33454 msgid "B<selinux>"
33455 msgstr ""
33456
33457 #. type: textblock
33458 #: ../src/guestfs-availability.pod:138
33459 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33460 msgstr ""
33461
33462 #. type: =item
33463 #: ../src/guestfs-availability.pod:142
33464 msgid "B<xz>"
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs-availability.pod:144
33469 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33470 msgstr ""
33471
33472 #. type: =item
33473 #: ../src/guestfs-availability.pod:148
33474 msgid "B<zerofree>"
33475 msgstr ""
33476
33477 #. type: textblock
33478 #: ../src/guestfs-availability.pod:150
33479 msgid "The following functions: L</guestfs_zerofree>"
33480 msgstr ""
33481
33482 #. type: =head2
33483 #: ../src/guestfs-structs.pod:1
33484 msgid "guestfs_int_bool"
33485 msgstr ""
33486
33487 #. type: verbatim
33488 #: ../src/guestfs-structs.pod:3
33489 #, no-wrap
33490 msgid ""
33491 " struct guestfs_int_bool {\n"
33492 "   int32_t i;\n"
33493 "   int32_t b;\n"
33494 " };\n"
33495 " \n"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs-structs.pod:8
33500 #, no-wrap
33501 msgid ""
33502 " struct guestfs_int_bool_list {\n"
33503 "   uint32_t len; /* Number of elements in list. */\n"
33504 "   struct guestfs_int_bool *val; /* Elements. */\n"
33505 " };\n"
33506 " \n"
33507 msgstr ""
33508
33509 #. type: verbatim
33510 #: ../src/guestfs-structs.pod:13
33511 #, no-wrap
33512 msgid ""
33513 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33514 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33515 "\n"
33516 msgstr ""
33517
33518 #. type: =head2
33519 #: ../src/guestfs-structs.pod:16
33520 msgid "guestfs_lvm_pv"
33521 msgstr ""
33522
33523 #. type: verbatim
33524 #: ../src/guestfs-structs.pod:18
33525 #, no-wrap
33526 msgid ""
33527 " struct guestfs_lvm_pv {\n"
33528 "   char *pv_name;\n"
33529 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33530 "*/\n"
33531 "   char pv_uuid[32];\n"
33532 "   char *pv_fmt;\n"
33533 "   uint64_t pv_size;\n"
33534 "   uint64_t dev_size;\n"
33535 "   uint64_t pv_free;\n"
33536 "   uint64_t pv_used;\n"
33537 "   char *pv_attr;\n"
33538 "   int64_t pv_pe_count;\n"
33539 "   int64_t pv_pe_alloc_count;\n"
33540 "   char *pv_tags;\n"
33541 "   uint64_t pe_start;\n"
33542 "   int64_t pv_mda_count;\n"
33543 "   uint64_t pv_mda_free;\n"
33544 " };\n"
33545 " \n"
33546 msgstr ""
33547
33548 #. type: verbatim
33549 #: ../src/guestfs-structs.pod:36
33550 #, no-wrap
33551 msgid ""
33552 " struct guestfs_lvm_pv_list {\n"
33553 "   uint32_t len; /* Number of elements in list. */\n"
33554 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33555 " };\n"
33556 " \n"
33557 msgstr ""
33558
33559 #. type: verbatim
33560 #: ../src/guestfs-structs.pod:41
33561 #, no-wrap
33562 msgid ""
33563 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33564 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33565 "\n"
33566 msgstr ""
33567
33568 #. type: =head2
33569 #: ../src/guestfs-structs.pod:44
33570 msgid "guestfs_lvm_vg"
33571 msgstr ""
33572
33573 #. type: verbatim
33574 #: ../src/guestfs-structs.pod:46
33575 #, no-wrap
33576 msgid ""
33577 " struct guestfs_lvm_vg {\n"
33578 "   char *vg_name;\n"
33579 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33580 "*/\n"
33581 "   char vg_uuid[32];\n"
33582 "   char *vg_fmt;\n"
33583 "   char *vg_attr;\n"
33584 "   uint64_t vg_size;\n"
33585 "   uint64_t vg_free;\n"
33586 "   char *vg_sysid;\n"
33587 "   uint64_t vg_extent_size;\n"
33588 "   int64_t vg_extent_count;\n"
33589 "   int64_t vg_free_count;\n"
33590 "   int64_t max_lv;\n"
33591 "   int64_t max_pv;\n"
33592 "   int64_t pv_count;\n"
33593 "   int64_t lv_count;\n"
33594 "   int64_t snap_count;\n"
33595 "   int64_t vg_seqno;\n"
33596 "   char *vg_tags;\n"
33597 "   int64_t vg_mda_count;\n"
33598 "   uint64_t vg_mda_free;\n"
33599 " };\n"
33600 " \n"
33601 msgstr ""
33602
33603 #. type: verbatim
33604 #: ../src/guestfs-structs.pod:69
33605 #, no-wrap
33606 msgid ""
33607 " struct guestfs_lvm_vg_list {\n"
33608 "   uint32_t len; /* Number of elements in list. */\n"
33609 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33610 " };\n"
33611 " \n"
33612 msgstr ""
33613
33614 #. type: verbatim
33615 #: ../src/guestfs-structs.pod:74
33616 #, no-wrap
33617 msgid ""
33618 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33619 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33620 "\n"
33621 msgstr ""
33622
33623 #. type: =head2
33624 #: ../src/guestfs-structs.pod:77
33625 msgid "guestfs_lvm_lv"
33626 msgstr ""
33627
33628 #. type: verbatim
33629 #: ../src/guestfs-structs.pod:79
33630 #, no-wrap
33631 msgid ""
33632 " struct guestfs_lvm_lv {\n"
33633 "   char *lv_name;\n"
33634 "   /* The next field is NOT nul-terminated, be careful when printing it: "
33635 "*/\n"
33636 "   char lv_uuid[32];\n"
33637 "   char *lv_attr;\n"
33638 "   int64_t lv_major;\n"
33639 "   int64_t lv_minor;\n"
33640 "   int64_t lv_kernel_major;\n"
33641 "   int64_t lv_kernel_minor;\n"
33642 "   uint64_t lv_size;\n"
33643 "   int64_t seg_count;\n"
33644 "   char *origin;\n"
33645 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33646 "   float snap_percent;\n"
33647 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33648 "   float copy_percent;\n"
33649 "   char *move_pv;\n"
33650 "   char *lv_tags;\n"
33651 "   char *mirror_log;\n"
33652 "   char *modules;\n"
33653 " };\n"
33654 " \n"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-structs.pod:101
33659 #, no-wrap
33660 msgid ""
33661 " struct guestfs_lvm_lv_list {\n"
33662 "   uint32_t len; /* Number of elements in list. */\n"
33663 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33664 " };\n"
33665 " \n"
33666 msgstr ""
33667
33668 #. type: verbatim
33669 #: ../src/guestfs-structs.pod:106
33670 #, no-wrap
33671 msgid ""
33672 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33673 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33674 "\n"
33675 msgstr ""
33676
33677 #. type: verbatim
33678 #: ../src/guestfs-structs.pod:111
33679 #, no-wrap
33680 msgid ""
33681 " struct guestfs_stat {\n"
33682 "   int64_t dev;\n"
33683 "   int64_t ino;\n"
33684 "   int64_t mode;\n"
33685 "   int64_t nlink;\n"
33686 "   int64_t uid;\n"
33687 "   int64_t gid;\n"
33688 "   int64_t rdev;\n"
33689 "   int64_t size;\n"
33690 "   int64_t blksize;\n"
33691 "   int64_t blocks;\n"
33692 "   int64_t atime;\n"
33693 "   int64_t mtime;\n"
33694 "   int64_t ctime;\n"
33695 " };\n"
33696 " \n"
33697 msgstr ""
33698
33699 #. type: verbatim
33700 #: ../src/guestfs-structs.pod:127
33701 #, no-wrap
33702 msgid ""
33703 " struct guestfs_stat_list {\n"
33704 "   uint32_t len; /* Number of elements in list. */\n"
33705 "   struct guestfs_stat *val; /* Elements. */\n"
33706 " };\n"
33707 " \n"
33708 msgstr ""
33709
33710 #. type: verbatim
33711 #: ../src/guestfs-structs.pod:132
33712 #, no-wrap
33713 msgid ""
33714 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33715 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33716 "\n"
33717 msgstr ""
33718
33719 #. type: verbatim
33720 #: ../src/guestfs-structs.pod:137
33721 #, no-wrap
33722 msgid ""
33723 " struct guestfs_statvfs {\n"
33724 "   int64_t bsize;\n"
33725 "   int64_t frsize;\n"
33726 "   int64_t blocks;\n"
33727 "   int64_t bfree;\n"
33728 "   int64_t bavail;\n"
33729 "   int64_t files;\n"
33730 "   int64_t ffree;\n"
33731 "   int64_t favail;\n"
33732 "   int64_t fsid;\n"
33733 "   int64_t flag;\n"
33734 "   int64_t namemax;\n"
33735 " };\n"
33736 " \n"
33737 msgstr ""
33738
33739 #. type: verbatim
33740 #: ../src/guestfs-structs.pod:151
33741 #, no-wrap
33742 msgid ""
33743 " struct guestfs_statvfs_list {\n"
33744 "   uint32_t len; /* Number of elements in list. */\n"
33745 "   struct guestfs_statvfs *val; /* Elements. */\n"
33746 " };\n"
33747 " \n"
33748 msgstr ""
33749
33750 #. type: verbatim
33751 #: ../src/guestfs-structs.pod:156
33752 #, no-wrap
33753 msgid ""
33754 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33755 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33756 "\n"
33757 msgstr ""
33758
33759 #. type: =head2
33760 #: ../src/guestfs-structs.pod:159
33761 msgid "guestfs_dirent"
33762 msgstr ""
33763
33764 #. type: verbatim
33765 #: ../src/guestfs-structs.pod:161
33766 #, no-wrap
33767 msgid ""
33768 " struct guestfs_dirent {\n"
33769 "   int64_t ino;\n"
33770 "   char ftyp;\n"
33771 "   char *name;\n"
33772 " };\n"
33773 " \n"
33774 msgstr ""
33775
33776 #. type: verbatim
33777 #: ../src/guestfs-structs.pod:167
33778 #, no-wrap
33779 msgid ""
33780 " struct guestfs_dirent_list {\n"
33781 "   uint32_t len; /* Number of elements in list. */\n"
33782 "   struct guestfs_dirent *val; /* Elements. */\n"
33783 " };\n"
33784 " \n"
33785 msgstr ""
33786
33787 #. type: verbatim
33788 #: ../src/guestfs-structs.pod:172
33789 #, no-wrap
33790 msgid ""
33791 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33792 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33793 "\n"
33794 msgstr ""
33795
33796 #. type: verbatim
33797 #: ../src/guestfs-structs.pod:177
33798 #, no-wrap
33799 msgid ""
33800 " struct guestfs_version {\n"
33801 "   int64_t major;\n"
33802 "   int64_t minor;\n"
33803 "   int64_t release;\n"
33804 "   char *extra;\n"
33805 " };\n"
33806 " \n"
33807 msgstr ""
33808
33809 #. type: verbatim
33810 #: ../src/guestfs-structs.pod:184
33811 #, no-wrap
33812 msgid ""
33813 " struct guestfs_version_list {\n"
33814 "   uint32_t len; /* Number of elements in list. */\n"
33815 "   struct guestfs_version *val; /* Elements. */\n"
33816 " };\n"
33817 " \n"
33818 msgstr ""
33819
33820 #. type: verbatim
33821 #: ../src/guestfs-structs.pod:189
33822 #, no-wrap
33823 msgid ""
33824 " void guestfs_free_version (struct guestfs_free_version *);\n"
33825 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33826 "\n"
33827 msgstr ""
33828
33829 #. type: =head2
33830 #: ../src/guestfs-structs.pod:192
33831 msgid "guestfs_xattr"
33832 msgstr ""
33833
33834 #. type: verbatim
33835 #: ../src/guestfs-structs.pod:194
33836 #, no-wrap
33837 msgid ""
33838 " struct guestfs_xattr {\n"
33839 "   char *attrname;\n"
33840 "   /* The next two fields describe a byte array. */\n"
33841 "   uint32_t attrval_len;\n"
33842 "   char *attrval;\n"
33843 " };\n"
33844 " \n"
33845 msgstr ""
33846
33847 #. type: verbatim
33848 #: ../src/guestfs-structs.pod:201
33849 #, no-wrap
33850 msgid ""
33851 " struct guestfs_xattr_list {\n"
33852 "   uint32_t len; /* Number of elements in list. */\n"
33853 "   struct guestfs_xattr *val; /* Elements. */\n"
33854 " };\n"
33855 " \n"
33856 msgstr ""
33857
33858 #. type: verbatim
33859 #: ../src/guestfs-structs.pod:206
33860 #, no-wrap
33861 msgid ""
33862 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33863 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: =head2
33868 #: ../src/guestfs-structs.pod:209
33869 msgid "guestfs_inotify_event"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs-structs.pod:211
33874 #, no-wrap
33875 msgid ""
33876 " struct guestfs_inotify_event {\n"
33877 "   int64_t in_wd;\n"
33878 "   uint32_t in_mask;\n"
33879 "   uint32_t in_cookie;\n"
33880 "   char *in_name;\n"
33881 " };\n"
33882 " \n"
33883 msgstr ""
33884
33885 #. type: verbatim
33886 #: ../src/guestfs-structs.pod:218
33887 #, no-wrap
33888 msgid ""
33889 " struct guestfs_inotify_event_list {\n"
33890 "   uint32_t len; /* Number of elements in list. */\n"
33891 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33892 " };\n"
33893 " \n"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs-structs.pod:223
33898 #, no-wrap
33899 msgid ""
33900 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33901 " void guestfs_free_inotify_event_list (struct "
33902 "guestfs_free_inotify_event_list *);\n"
33903 "\n"
33904 msgstr ""
33905
33906 #. type: =head2
33907 #: ../src/guestfs-structs.pod:226
33908 msgid "guestfs_partition"
33909 msgstr ""
33910
33911 #. type: verbatim
33912 #: ../src/guestfs-structs.pod:228
33913 #, no-wrap
33914 msgid ""
33915 " struct guestfs_partition {\n"
33916 "   int32_t part_num;\n"
33917 "   uint64_t part_start;\n"
33918 "   uint64_t part_end;\n"
33919 "   uint64_t part_size;\n"
33920 " };\n"
33921 " \n"
33922 msgstr ""
33923
33924 #. type: verbatim
33925 #: ../src/guestfs-structs.pod:235
33926 #, no-wrap
33927 msgid ""
33928 " struct guestfs_partition_list {\n"
33929 "   uint32_t len; /* Number of elements in list. */\n"
33930 "   struct guestfs_partition *val; /* Elements. */\n"
33931 " };\n"
33932 " \n"
33933 msgstr ""
33934
33935 #. type: verbatim
33936 #: ../src/guestfs-structs.pod:240
33937 #, no-wrap
33938 msgid ""
33939 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33940 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33941 "\n"
33942 msgstr ""
33943
33944 #. type: =head2
33945 #: ../src/guestfs-structs.pod:243
33946 msgid "guestfs_application"
33947 msgstr ""
33948
33949 #. type: verbatim
33950 #: ../src/guestfs-structs.pod:245
33951 #, no-wrap
33952 msgid ""
33953 " struct guestfs_application {\n"
33954 "   char *app_name;\n"
33955 "   char *app_display_name;\n"
33956 "   int32_t app_epoch;\n"
33957 "   char *app_version;\n"
33958 "   char *app_release;\n"
33959 "   char *app_install_path;\n"
33960 "   char *app_trans_path;\n"
33961 "   char *app_publisher;\n"
33962 "   char *app_url;\n"
33963 "   char *app_source_package;\n"
33964 "   char *app_summary;\n"
33965 "   char *app_description;\n"
33966 " };\n"
33967 " \n"
33968 msgstr ""
33969
33970 #. type: verbatim
33971 #: ../src/guestfs-structs.pod:260
33972 #, no-wrap
33973 msgid ""
33974 " struct guestfs_application_list {\n"
33975 "   uint32_t len; /* Number of elements in list. */\n"
33976 "   struct guestfs_application *val; /* Elements. */\n"
33977 " };\n"
33978 " \n"
33979 msgstr ""
33980
33981 #. type: verbatim
33982 #: ../src/guestfs-structs.pod:265
33983 #, no-wrap
33984 msgid ""
33985 " void guestfs_free_application (struct guestfs_free_application *);\n"
33986 " void guestfs_free_application_list (struct guestfs_free_application_list "
33987 "*);\n"
33988 "\n"
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:5
33993 msgid "guestfs - Library for accessing and modifying virtual machine images"
33994 msgstr ""
33995
33996 #. type: verbatim
33997 #: ../src/guestfs.pod:11
33998 #, no-wrap
33999 msgid ""
34000 " guestfs_h *g = guestfs_create ();\n"
34001 " guestfs_add_drive (g, \"guest.img\");\n"
34002 " guestfs_launch (g);\n"
34003 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34004 " guestfs_touch (g, \"/hello\");\n"
34005 " guestfs_umount (g, \"/\");\n"
34006 " guestfs_close (g);\n"
34007 "\n"
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:25
34012 msgid ""
34013 "Libguestfs is a library for accessing and modifying guest disk images.  "
34014 "Amongst the things this is good for: making batch configuration changes to "
34015 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34016 "between virtualization systems (see also: virt-p2v), performing partial "
34017 "backups, performing partial guest clones, cloning guests and changing "
34018 "registry/UUID/hostname info, and much else besides."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs.pod:33
34023 msgid ""
34024 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34025 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34026 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34027 "qcow2, vmdk."
34028 msgstr ""
34029
34030 #. type: textblock
34031 #: ../src/guestfs.pod:38
34032 msgid ""
34033 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34034 "what filesystem is in each LV, etc.).  It can also run commands in the "
34035 "context of the guest.  Also you can access filesystems over FUSE."
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs.pod:43
34040 msgid ""
34041 "Libguestfs is a library that can be linked with C and C++ management "
34042 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34043 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34044 "command line."
34045 msgstr ""
34046
34047 #. type: textblock
34048 #: ../src/guestfs.pod:48
34049 msgid ""
34050 "You don't need to be root to use libguestfs, although obviously you do need "
34051 "enough permissions to access the disk images."
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs.pod:51
34056 msgid ""
34057 "Libguestfs is a large API because it can do many things.  For a gentle "
34058 "introduction, please read the L</API OVERVIEW> section next."
34059 msgstr ""
34060
34061 #. type: textblock
34062 #: ../src/guestfs.pod:54
34063 msgid ""
34064 "There are also some example programs in the L<guestfs-examples(3)> manual "
34065 "page."
34066 msgstr ""
34067
34068 #. type: =head1
34069 #: ../src/guestfs.pod:57
34070 msgid "API OVERVIEW"
34071 msgstr ""
34072
34073 #. type: textblock
34074 #: ../src/guestfs.pod:59
34075 msgid ""
34076 "This section provides a gentler overview of the libguestfs API.  We also try "
34077 "to group API calls together, where that may not be obvious from reading "
34078 "about the individual calls in the main section of this manual."
34079 msgstr ""
34080
34081 #. type: =head2
34082 #: ../src/guestfs.pod:64
34083 msgid "HANDLES"
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs.pod:66
34088 msgid ""
34089 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34090 "must add at least one disk image to the handle, followed by launching the "
34091 "handle, then performing whatever operations you want, and finally closing "
34092 "the handle.  By convention we use the single letter C<g> for the name of the "
34093 "handle variable, although of course you can use any name you want."
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../src/guestfs.pod:73
34098 msgid "The general structure of all libguestfs-using programs looks like this:"
34099 msgstr ""
34100
34101 #. type: verbatim
34102 #: ../src/guestfs.pod:76
34103 #, no-wrap
34104 msgid ""
34105 " guestfs_h *g = guestfs_create ();\n"
34106 " \n"
34107 msgstr ""
34108
34109 #. type: verbatim
34110 #: ../src/guestfs.pod:78
34111 #, no-wrap
34112 msgid ""
34113 " /* Call guestfs_add_drive additional times if there are\n"
34114 "  * multiple disk images.\n"
34115 "  */\n"
34116 " guestfs_add_drive (g, \"guest.img\");\n"
34117 " \n"
34118 msgstr ""
34119
34120 #. type: verbatim
34121 #: ../src/guestfs.pod:83
34122 #, no-wrap
34123 msgid ""
34124 " /* Most manipulation calls won't work until you've launched\n"
34125 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34126 "  * and _before_ other commands.\n"
34127 "  */\n"
34128 " guestfs_launch (g);\n"
34129 " \n"
34130 msgstr ""
34131
34132 #. type: verbatim
34133 #: ../src/guestfs.pod:89
34134 #, no-wrap
34135 msgid ""
34136 " /* Now you can examine what partitions, LVs etc are available.\n"
34137 "  */\n"
34138 " char **partitions = guestfs_list_partitions (g);\n"
34139 " char **logvols = guestfs_lvs (g);\n"
34140 " \n"
34141 msgstr ""
34142
34143 #. type: verbatim
34144 #: ../src/guestfs.pod:94
34145 #, no-wrap
34146 msgid ""
34147 " /* To access a filesystem in the image, you must mount it.\n"
34148 "  */\n"
34149 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34150 " \n"
34151 msgstr ""
34152
34153 #. type: verbatim
34154 #: ../src/guestfs.pod:98
34155 #, no-wrap
34156 msgid ""
34157 " /* Now you can perform filesystem actions on the guest\n"
34158 "  * disk image.\n"
34159 "  */\n"
34160 " guestfs_touch (g, \"/hello\");\n"
34161 " \n"
34162 msgstr ""
34163
34164 #. type: verbatim
34165 #: ../src/guestfs.pod:103
34166 #, no-wrap
34167 msgid ""
34168 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34169 "  * it is done automatically when you close the handle.  See\n"
34170 "  * discussion of autosync in this page.\n"
34171 "  */\n"
34172 " guestfs_sync (g);\n"
34173 " \n"
34174 msgstr ""
34175
34176 #. type: verbatim
34177 #: ../src/guestfs.pod:109
34178 #, no-wrap
34179 msgid ""
34180 " /* Close the handle 'g'. */\n"
34181 " guestfs_close (g);\n"
34182 "\n"
34183 msgstr ""
34184
34185 #. type: textblock
34186 #: ../src/guestfs.pod:112
34187 msgid ""
34188 "The code above doesn't include any error checking.  In real code you should "
34189 "check return values carefully for errors.  In general all functions that "
34190 "return integers return C<-1> on error, and all functions that return "
34191 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34192 "how to handle errors, and consult the documentation for each function call "
34193 "below to see precisely how they return error indications.  See "
34194 "L<guestfs-examples(3)> for fully worked examples."
34195 msgstr ""
34196
34197 #. type: =head2
34198 #: ../src/guestfs.pod:121
34199 msgid "DISK IMAGES"
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:123
34204 msgid ""
34205 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34206 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34207 "actual block device, or simply an empty file of zeroes that you have created "
34208 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34209 "of these."
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:129
34214 msgid ""
34215 "The call you should use in modern code for adding drives is "
34216 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34217 "specifying that the format is raw, do:"
34218 msgstr ""
34219
34220 #. type: verbatim
34221 #: ../src/guestfs.pod:133
34222 #, no-wrap
34223 msgid ""
34224 " guestfs_add_drive_opts (g, filename,\n"
34225 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34226 "                         -1);\n"
34227 "\n"
34228 msgstr ""
34229
34230 #. type: textblock
34231 #: ../src/guestfs.pod:137
34232 msgid "You can add a disk read-only using:"
34233 msgstr ""
34234
34235 #. type: verbatim
34236 #: ../src/guestfs.pod:139
34237 #, no-wrap
34238 msgid ""
34239 " guestfs_add_drive_opts (g, filename,\n"
34240 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34241 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34242 "                         -1);\n"
34243 "\n"
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:144
34248 msgid ""
34249 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34250 "libguestfs won't modify the file."
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs.pod:147
34255 msgid ""
34256 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34257 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34258 "corruption, but adding it read-only is safe."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:151
34263 msgid ""
34264 "You must add at least one disk image, and you may add multiple disk images.  "
34265 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34266 "first one you added), C</dev/sdb> (for the second one you added), etc."
34267 msgstr ""
34268
34269 #. type: textblock
34270 #: ../src/guestfs.pod:156
34271 msgid ""
34272 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34273 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34274 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34275 msgstr ""
34276
34277 #. type: =head2
34278 #: ../src/guestfs.pod:161
34279 msgid "MOUNTING"
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs.pod:163
34284 msgid ""
34285 "Before you can read or write files, create directories and so on in a disk "
34286 "image that contains filesystems, you have to mount those filesystems using "
34287 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34288 "a disk image contains (for example) one partition with a filesystem on that "
34289 "partition, then you can mount it directly:"
34290 msgstr ""
34291
34292 #. type: verbatim
34293 #: ../src/guestfs.pod:170
34294 #, no-wrap
34295 msgid ""
34296 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34297 "\n"
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:172
34302 msgid ""
34303 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34304 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34305 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34306 "that these are libguestfs virtual devices, and are nothing to do with host "
34307 "devices."
34308 msgstr ""
34309
34310 #. type: textblock
34311 #: ../src/guestfs.pod:178
34312 msgid ""
34313 "If you are given a disk image and you don't know what it contains then you "
34314 "have to find out.  Libguestfs can do that too: use "
34315 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
34316 "and LVs, and either try mounting each to see what is mountable, or else "
34317 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34318 "filesystems, use L</guestfs_list_filesystems>."
34319 msgstr ""
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:186
34323 msgid ""
34324 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34325 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34326 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34327 msgstr ""
34328
34329 #. type: textblock
34330 #: ../src/guestfs.pod:191
34331 msgid ""
34332 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34333 "several other variations of the C<guestfs_mount_*> call."
34334 msgstr ""
34335
34336 #. type: =head2
34337 #: ../src/guestfs.pod:194
34338 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34339 msgstr ""
34340
34341 #. type: textblock
34342 #: ../src/guestfs.pod:196
34343 msgid ""
34344 "The majority of the libguestfs API consists of fairly low-level calls for "
34345 "accessing and modifying the files, directories, symlinks etc on mounted "
34346 "filesystems.  There are over a hundred such calls which you can find listed "
34347 "in detail below in this man page, and we don't even pretend to cover them "
34348 "all in this overview."
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:202
34353 msgid ""
34354 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34355 "mount point."
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs.pod:205
34360 msgid ""
34361 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34362 "the file called C<\"etc/passwd\"> then you could do:"
34363 msgstr ""
34364
34365 #. type: verbatim
34366 #: ../src/guestfs.pod:208
34367 #, no-wrap
34368 msgid ""
34369 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34370 "\n"
34371 msgstr ""
34372
34373 #. type: textblock
34374 #: ../src/guestfs.pod:210
34375 msgid ""
34376 "This would return C<data> as a newly allocated buffer containing the full "
34377 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34378 "or C<NULL> if there was an error."
34379 msgstr ""
34380
34381 #. type: textblock
34382 #: ../src/guestfs.pod:214
34383 msgid ""
34384 "As another example, to create a top-level directory on that filesystem "
34385 "called C<\"var\"> you would do:"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs.pod:217
34390 #, no-wrap
34391 msgid ""
34392 " guestfs_mkdir (g, \"/var\");\n"
34393 "\n"
34394 msgstr ""
34395
34396 #. type: textblock
34397 #: ../src/guestfs.pod:219
34398 msgid "To create a symlink you could do:"
34399 msgstr ""
34400
34401 #. type: verbatim
34402 #: ../src/guestfs.pod:221
34403 #, no-wrap
34404 msgid ""
34405 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34406 "               \"/etc/rc3.d/S30portmap\");\n"
34407 "\n"
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:224
34412 msgid ""
34413 "Libguestfs will reject attempts to use relative paths and there is no "
34414 "concept of a current working directory."
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:227
34419 msgid ""
34420 "Libguestfs can return errors in many situations: for example if the "
34421 "filesystem isn't writable, or if a file or directory that you requested "
34422 "doesn't exist.  If you are using the C API (documented here)  you have to "
34423 "check for those error conditions after each call.  (Other language bindings "
34424 "turn these errors into exceptions)."
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:233
34429 msgid ""
34430 "File writes are affected by the per-handle umask, set by calling "
34431 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
34432 msgstr ""
34433
34434 #. type: =head2
34435 #: ../src/guestfs.pod:236
34436 msgid "PARTITIONING"
34437 msgstr ""
34438
34439 #. type: textblock
34440 #: ../src/guestfs.pod:238
34441 msgid ""
34442 "Libguestfs contains API calls to read, create and modify partition tables on "
34443 "disk images."
34444 msgstr ""
34445
34446 #. type: textblock
34447 #: ../src/guestfs.pod:241
34448 msgid ""
34449 "In the common case where you want to create a single partition covering the "
34450 "whole disk, you should use the L</guestfs_part_disk> call:"
34451 msgstr ""
34452
34453 #. type: verbatim
34454 #: ../src/guestfs.pod:245
34455 #, no-wrap
34456 msgid ""
34457 " const char *parttype = \"mbr\";\n"
34458 " if (disk_is_larger_than_2TB)\n"
34459 "   parttype = \"gpt\";\n"
34460 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34461 "\n"
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:250
34466 msgid ""
34467 "Obviously this effectively wipes anything that was on that disk image "
34468 "before."
34469 msgstr ""
34470
34471 #. type: =head2
34472 #: ../src/guestfs.pod:253
34473 msgid "LVM2"
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:255
34478 msgid ""
34479 "Libguestfs provides access to a large part of the LVM2 API, such as "
34480 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
34481 "unless you familiarize yourself with the concepts of physical volumes, "
34482 "volume groups and logical volumes."
34483 msgstr ""
34484
34485 #. type: textblock
34486 #: ../src/guestfs.pod:260
34487 msgid ""
34488 "This author strongly recommends reading the LVM HOWTO, online at "
34489 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
34490 msgstr ""
34491
34492 #. type: =head2
34493 #: ../src/guestfs.pod:263
34494 msgid "DOWNLOADING"
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:265
34499 msgid ""
34500 "Use L</guestfs_cat> to download small, text only files.  This call is "
34501 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34502 "NUL (C<\\0>) characters.  However the API is very simple to use."
34503 msgstr ""
34504
34505 #. type: textblock
34506 #: ../src/guestfs.pod:269
34507 msgid ""
34508 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34509 "bit data, since it returns a (pointer, size) pair.  However it is still "
34510 "limited to \"small\" files, less than 2 MB."
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs.pod:273
34515 msgid ""
34516 "L</guestfs_download> can be used to download any file, with no limits on "
34517 "content or size (even files larger than 4 GB)."
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:276
34522 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34523 msgstr ""
34524
34525 #. type: =head2
34526 #: ../src/guestfs.pod:279
34527 msgid "UPLOADING"
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:281
34532 msgid ""
34533 "It's often the case that you want to write a file or files to the disk "
34534 "image."
34535 msgstr ""
34536
34537 #. type: textblock
34538 #: ../src/guestfs.pod:284
34539 msgid ""
34540 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34541 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
34542 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
34543 "variety of other functions for creating test files, for example "
34544 "L</guestfs_fill> and L</guestfs_fill_pattern>."
34545 msgstr ""
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:290
34549 msgid ""
34550 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34551 "file content or size (even files larger than 4 GB)."
34552 msgstr ""
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:293
34556 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:295
34561 msgid ""
34562 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34563 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
34564 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
34565 "the drive in a predictable way (eg. adding it last after all other drives) "
34566 "then you can get the device name from L</guestfs_list_devices> and mount it "
34567 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
34568 "sometimes non-portable between kernel versions, and they don't support "
34569 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
34570 "using a label or UUID, use an ISO image instead."
34571 msgstr ""
34572
34573 #. type: =head2
34574 #: ../src/guestfs.pod:306
34575 msgid "COPYING"
34576 msgstr ""
34577
34578 #. type: textblock
34579 #: ../src/guestfs.pod:308
34580 msgid ""
34581 "There are various different commands for copying between files and devices "
34582 "and in and out of the guest filesystem.  These are summarised in the table "
34583 "below."
34584 msgstr ""
34585
34586 #. type: =item
34587 #: ../src/guestfs.pod:314
34588 msgid "B<file> to B<file>"
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:316
34593 msgid ""
34594 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34595 "directories recursively."
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs.pod:319
34600 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
34601 msgstr ""
34602
34603 #. type: =item
34604 #: ../src/guestfs.pod:322
34605 msgid "B<file> to B<device>"
34606 msgstr ""
34607
34608 #. type: =item
34609 #: ../src/guestfs.pod:324
34610 msgid "B<device> to B<file>"
34611 msgstr ""
34612
34613 #. type: =item
34614 #: ../src/guestfs.pod:326
34615 msgid "B<device> to B<device>"
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:328
34620 msgid ""
34621 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
34622 "L</guestfs_copy_device_to_device>."
34623 msgstr ""
34624
34625 #. type: textblock
34626 #: ../src/guestfs.pod:331
34627 msgid "Example: duplicate the contents of an LV:"
34628 msgstr ""
34629
34630 #. type: verbatim
34631 #: ../src/guestfs.pod:333
34632 #, no-wrap
34633 msgid ""
34634 " guestfs_copy_device_to_device (g,\n"
34635 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34636 "         /* -1 marks the end of the list of optional parameters */\n"
34637 "         -1);\n"
34638 "\n"
34639 msgstr ""
34640
34641 #. type: textblock
34642 #: ../src/guestfs.pod:338
34643 msgid ""
34644 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34645 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
34646 "optional C<size> parameter:"
34647 msgstr ""
34648
34649 #. type: verbatim
34650 #: ../src/guestfs.pod:342
34651 #, no-wrap
34652 msgid ""
34653 " guestfs_copy_device_to_device (g,\n"
34654 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
34655 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
34656 "         -1);\n"
34657 "\n"
34658 msgstr ""
34659
34660 #. type: =item
34661 #: ../src/guestfs.pod:347
34662 msgid "B<file on the host> to B<file or device>"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:349
34667 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34668 msgstr ""
34669
34670 #. type: =item
34671 #: ../src/guestfs.pod:351
34672 msgid "B<file or device> to B<file on the host>"
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:353
34677 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34678 msgstr ""
34679
34680 #. type: =head2
34681 #: ../src/guestfs.pod:357
34682 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34683 msgstr ""
34684
34685 #. type: textblock
34686 #: ../src/guestfs.pod:359
34687 msgid ""
34688 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
34689 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34690 "appears you can only upload and download to files.  However many Un*x-like "
34691 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
34692 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
34693 "stderr, and arbitrary file descriptor N."
34694 msgstr ""
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:367
34698 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34699 msgstr ""
34700
34701 #. type: verbatim
34702 #: ../src/guestfs.pod:370
34703 #, no-wrap
34704 msgid ""
34705 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34706 "\n"
34707 msgstr ""
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:372
34711 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34712 msgstr ""
34713
34714 #. type: verbatim
34715 #: ../src/guestfs.pod:374
34716 #, no-wrap
34717 msgid ""
34718 " char devfd[64];\n"
34719 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34720 " guestfs_tar_out (g, \"/\", devfd);\n"
34721 "\n"
34722 msgstr ""
34723
34724 #. type: =head2
34725 #: ../src/guestfs.pod:378
34726 msgid "LISTING FILES"
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:380
34731 msgid ""
34732 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34733 "L<guestfish(1)>-equivalent command C<ll>)."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:383
34738 msgid ""
34739 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34740 "programs, as a flat list of strings."
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:386
34745 msgid ""
34746 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34747 "directory, plus additional information about each one.  It is more "
34748 "equivalent to using the L<readdir(3)> call on a local filesystem."
34749 msgstr ""
34750
34751 #. type: textblock
34752 #: ../src/guestfs.pod:390
34753 msgid ""
34754 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
34755 "files."
34756 msgstr ""
34757
34758 #. type: =head2
34759 #: ../src/guestfs.pod:393
34760 msgid "RUNNING COMMANDS"
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:395
34765 msgid ""
34766 "Although libguestfs is primarily an API for manipulating files inside guest "
34767 "images, we also provide some limited facilities for running commands inside "
34768 "guests."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:399
34773 msgid "There are many limitations to this:"
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs.pod:405
34778 msgid ""
34779 "The kernel version that the command runs under will be different from what "
34780 "it expects."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:410
34785 msgid ""
34786 "If the command needs to communicate with daemons, then most likely they "
34787 "won't be running."
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs.pod:415
34792 msgid "The command will be running in limited memory."
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:419
34797 msgid ""
34798 "The network may not be available unless you enable it (see "
34799 "L</guestfs_set_network>)."
34800 msgstr ""
34801
34802 #. type: textblock
34803 #: ../src/guestfs.pod:424
34804 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34805 msgstr ""
34806
34807 #. type: textblock
34808 #: ../src/guestfs.pod:428
34809 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:433
34814 msgid ""
34815 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34816 "See L</SELINUX> in this manpage."
34817 msgstr ""
34818
34819 #. type: textblock
34820 #: ../src/guestfs.pod:438
34821 msgid ""
34822 "I<Security:> It is not safe to run commands from untrusted, possibly "
34823 "malicious guests.  These commands may attempt to exploit your program by "
34824 "sending unexpected output.  They could also try to exploit the Linux kernel "
34825 "or qemu provided by the libguestfs appliance.  They could use the network "
34826 "provided by the libguestfs appliance to bypass ordinary network partitions "
34827 "and firewalls.  They could use the elevated privileges or different SELinux "
34828 "context of your program to their advantage."
34829 msgstr ""
34830
34831 #. type: textblock
34832 #: ../src/guestfs.pod:447
34833 msgid ""
34834 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34835 "(a script which runs when the guest next boots normally), and to have this "
34836 "script run the commands you want in the normal context of the running guest, "
34837 "network security and so on.  For information about other security issues, "
34838 "see L</SECURITY>."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:455
34843 msgid ""
34844 "The two main API calls to run commands are L</guestfs_command> and "
34845 "L</guestfs_sh> (there are also variations)."
34846 msgstr ""
34847
34848 #. type: textblock
34849 #: ../src/guestfs.pod:458
34850 msgid ""
34851 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34852 "shell globs, redirections, etc will work."
34853 msgstr ""
34854
34855 #. type: =head2
34856 #: ../src/guestfs.pod:461
34857 msgid "CONFIGURATION FILES"
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:463
34862 msgid ""
34863 "To read and write configuration files in Linux guest filesystems, we "
34864 "strongly recommend using Augeas.  For example, Augeas understands how to "
34865 "read and write, say, a Linux shadow password file or X.org configuration "
34866 "file, and so avoids you having to write that code."
34867 msgstr ""
34868
34869 #. type: textblock
34870 #: ../src/guestfs.pod:468
34871 msgid ""
34872 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34873 "document Augeas itself here because there is excellent documentation on the "
34874 "L<http://augeas.net/> website."
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../src/guestfs.pod:472
34879 msgid ""
34880 "If you don't want to use Augeas (you fool!) then try calling "
34881 "L</guestfs_read_lines> to get the file as a list of lines which you can "
34882 "iterate over."
34883 msgstr ""
34884
34885 #. type: =head2
34886 #: ../src/guestfs.pod:476
34887 msgid "SELINUX"
34888 msgstr ""
34889
34890 #. type: textblock
34891 #: ../src/guestfs.pod:478
34892 msgid ""
34893 "We support SELinux guests.  To ensure that labeling happens correctly in "
34894 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:486
34899 msgid "Before launching, do:"
34900 msgstr ""
34901
34902 #. type: verbatim
34903 #: ../src/guestfs.pod:488
34904 #, no-wrap
34905 msgid ""
34906 " guestfs_set_selinux (g, 1);\n"
34907 "\n"
34908 msgstr ""
34909
34910 #. type: textblock
34911 #: ../src/guestfs.pod:492
34912 msgid ""
34913 "After mounting the guest's filesystem(s), load the policy.  This is best "
34914 "done by running the L<load_policy(8)> command in the guest itself:"
34915 msgstr ""
34916
34917 #. type: verbatim
34918 #: ../src/guestfs.pod:496
34919 #, no-wrap
34920 msgid ""
34921 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34922 "\n"
34923 msgstr ""
34924
34925 #. type: textblock
34926 #: ../src/guestfs.pod:498
34927 msgid ""
34928 "(Older versions of C<load_policy> require you to specify the name of the "
34929 "policy file)."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:503
34934 msgid ""
34935 "Optionally, set the security context for the API.  The correct security "
34936 "context to use can only be known by inspecting the guest.  As an example:"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs.pod:507
34941 #, no-wrap
34942 msgid ""
34943 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34944 "\n"
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:511
34949 msgid "This will work for running commands and editing existing files."
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:513
34954 msgid ""
34955 "When new files are created, you may need to label them explicitly, for "
34956 "example by running the external command C<restorecon pathname>."
34957 msgstr ""
34958
34959 #. type: =head2
34960 #: ../src/guestfs.pod:517
34961 msgid "UMASK"
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:519
34966 msgid ""
34967 "Certain calls are affected by the current file mode creation mask (the "
34968 "\"umask\").  In particular ones which create files or directories, such as "
34969 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34970 "either the default mode that the file is created with or modifies the mode "
34971 "that you supply."
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:525
34976 msgid ""
34977 "The default umask is C<022>, so files are created with modes such as C<0644> "
34978 "and directories with C<0755>."
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:528
34983 msgid ""
34984 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34985 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
34986 "L</guestfs_chmod> after creating each file or directory."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:532
34991 msgid "For more information about umask, see L<umask(2)>."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:536
34996 msgid ""
34997 "Libguestfs allows you to access Linux guests which have been encrypted using "
34998 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34999 "standard.  This includes nearly all whole disk encryption systems used by "
35000 "modern Linux guests."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:542
35005 msgid ""
35006 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35007 "returns the string C<crypto_LUKS>)."
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:545
35012 msgid ""
35013 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35014 "will require the passphrase!"
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:548
35019 msgid ""
35020 "Opening a LUKS device creates a new device mapper device called "
35021 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35022 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35023 "decrypted from and encrypted to the underlying block device respectively."
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:554
35028 msgid ""
35029 "LVM volume groups on the device can be made visible by calling "
35030 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35031 "volume(s) can now be mounted in the usual way."
35032 msgstr ""
35033
35034 #. type: textblock
35035 #: ../src/guestfs.pod:558
35036 msgid ""
35037 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35038 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35039 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35040 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35041 "underlying encrypted block device)."
35042 msgstr ""
35043
35044 #. type: =head2
35045 #: ../src/guestfs.pod:565
35046 msgid "INSPECTION"
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:567
35051 msgid ""
35052 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35053 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35054 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35055 "version 1.5.3 the most frequently used part of this library has been "
35056 "rewritten in C and moved into the core code)."
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:574
35061 msgid ""
35062 "Add all disks belonging to the unknown virtual machine and call "
35063 "L</guestfs_launch> in the usual way."
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:577
35068 msgid ""
35069 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35070 "and certain heuristics, and returns a list of operating systems that were "
35071 "found.  An empty list means none were found.  A single element is the root "
35072 "filesystem of the operating system.  For dual- or multi-boot guests, "
35073 "multiple roots can be returned, each one corresponding to a separate "
35074 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35075 "world of virtualization, but since this scenario can happen, we have built "
35076 "libguestfs to deal with it.)"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:586
35081 msgid ""
35082 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35083 "to get additional details about that operating system.  For example, call "
35084 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35085 "Windows and Linux-based operating systems respectively."
35086 msgstr ""
35087
35088 #. type: textblock
35089 #: ../src/guestfs.pod:592
35090 msgid ""
35091 "Un*x-like and Linux-based operating systems usually consist of several "
35092 "filesystems which are mounted at boot time (for example, a separate boot "
35093 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35094 "filesystems correspond to mount points.  Call "
35095 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35096 "hash table like this example:"
35097 msgstr ""
35098
35099 #. type: verbatim
35100 #: ../src/guestfs.pod:599
35101 #, no-wrap
35102 msgid ""
35103 " /boot => /dev/sda1\n"
35104 " /     => /dev/vg_guest/lv_root\n"
35105 " /usr  => /dev/vg_guest/lv_usr\n"
35106 "\n"
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:603
35111 msgid ""
35112 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35113 "filesystems as suggested."
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:606
35118 msgid ""
35119 "Be careful to mount filesystems in the right order (eg. C</> before "
35120 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
35121 "work."
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:610
35126 msgid ""
35127 "Inspection currently only works for some common operating systems.  "
35128 "Contributors are welcome to send patches for other operating systems that we "
35129 "currently cannot detect."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:614
35134 msgid ""
35135 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35136 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35137 "encrypted devices."
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:618
35142 msgid ""
35143 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35144 "inspection and caches the results in the guest handle.  Subsequent calls to "
35145 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
35146 "re-read the disks.  If you change the content of the guest disks, you can "
35147 "redo inspection by calling L</guestfs_inspect_os> again.  "
35148 "(L</guestfs_inspect_list_applications> works a little differently from the "
35149 "other calls and does read the disks.  See documentation for that function "
35150 "for details)."
35151 msgstr ""
35152
35153 #. type: =head3
35154 #: ../src/guestfs.pod:627
35155 msgid "INSPECTING INSTALL DISKS"
35156 msgstr ""
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:629
35160 msgid ""
35161 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35162 "CDs and more."
35163 msgstr ""
35164
35165 #. type: textblock
35166 #: ../src/guestfs.pod:632
35167 msgid ""
35168 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35169 "system, which currently can be C<installed> (a regular operating system) or "
35170 "C<installer> (some sort of install disk)."
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:636
35175 msgid ""
35176 "Further information is available about the operating system that can be "
35177 "installed using the regular inspection APIs like "
35178 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
35179 "etc."
35180 msgstr ""
35181
35182 #. type: textblock
35183 #: ../src/guestfs.pod:641
35184 msgid ""
35185 "Some additional information specific to installer disks is also available "
35186 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
35187 "L</guestfs_inspect_is_multipart> calls."
35188 msgstr ""
35189
35190 #. type: =head2
35191 #: ../src/guestfs.pod:646
35192 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:648
35197 msgid ""
35198 "Libguestfs can mount NTFS partitions.  It does this using the "
35199 "L<http://www.ntfs-3g.org/> driver."
35200 msgstr ""
35201
35202 #. type: =head3
35203 #: ../src/guestfs.pod:651
35204 msgid "DRIVE LETTERS AND PATHS"
35205 msgstr ""
35206
35207 #. type: textblock
35208 #: ../src/guestfs.pod:653
35209 msgid ""
35210 "DOS and Windows still use drive letters, and the filesystems are always "
35211 "treated as case insensitive by Windows itself, and therefore you might find "
35212 "a Windows configuration file referring to a path like "
35213 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
35214 "that directory might be referred to as C</WINDOWS/System32>."
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:659
35219 msgid ""
35220 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35221 "L</guestfs_inspect_get_drive_mappings>)"
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:662
35226 msgid ""
35227 "Dealing with separator characters (backslash vs forward slash) is outside "
35228 "the scope of libguestfs, but usually a simple character replacement will "
35229 "work."
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../src/guestfs.pod:666
35234 msgid ""
35235 "To resolve the case insensitivity of paths, call "
35236 "L</guestfs_case_sensitive_path>."
35237 msgstr ""
35238
35239 #. type: =head3
35240 #: ../src/guestfs.pod:669
35241 msgid "ACCESSING THE WINDOWS REGISTRY"
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:671
35246 msgid ""
35247 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35248 "files, through the library C<hivex> which is part of the libguestfs project "
35249 "although ships as a separate tarball.  You have to locate and download the "
35250 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35251 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
35252 "L<virt-win-reg(1)> for more help on this issue."
35253 msgstr ""
35254
35255 #. type: =head3
35256 #: ../src/guestfs.pod:679
35257 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35258 msgstr ""
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:681
35262 msgid ""
35263 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35264 "provide something which looks like a Linux symlink.  The way it tries to do "
35265 "the rewriting is described here:"
35266 msgstr ""
35267
35268 #. type: textblock
35269 #: ../src/guestfs.pod:685
35270 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:687
35275 msgid ""
35276 "The essential problem is that ntfs-3g simply does not have enough "
35277 "information to do a correct job.  NTFS links can contain drive letters and "
35278 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35279 "It is almost certainly the case that libguestfs callers should ignore what "
35280 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:694
35285 msgid ""
35286 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
35287 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35288 "attribute, and read the raw reparse data from that (you can find the format "
35289 "documented in various places around the web)."
35290 msgstr ""
35291
35292 #. type: =head3
35293 #: ../src/guestfs.pod:699
35294 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35295 msgstr ""
35296
35297 #. type: textblock
35298 #: ../src/guestfs.pod:701
35299 msgid ""
35300 "There are other useful extended attributes that can be read from ntfs-3g "
35301 "filesystems (using L</guestfs_getxattr>).  See:"
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:704
35306 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35307 msgstr ""
35308
35309 #. type: =head2
35310 #: ../src/guestfs.pod:706
35311 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35312 msgstr ""
35313
35314 #. type: textblock
35315 #: ../src/guestfs.pod:708
35316 msgid ""
35317 "Although we don't want to discourage you from using the C API, we will "
35318 "mention here that the same API is also available in other languages."
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:711
35323 msgid ""
35324 "The API is broadly identical in all supported languages.  This means that "
35325 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35326 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35327 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35328 "each language."
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:717
35333 msgid ""
35334 "Error messages are automatically transformed into exceptions if the language "
35335 "supports it."
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:720
35340 msgid ""
35341 "We don't try to \"object orientify\" parts of the API in OO languages, "
35342 "although contributors are welcome to write higher level APIs above what we "
35343 "provide in their favourite languages if they wish."
35344 msgstr ""
35345
35346 #. type: =item
35347 #: ../src/guestfs.pod:726
35348 msgid "B<C++>"
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:728
35353 msgid ""
35354 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35355 "identical to the C API.  C++ classes and exceptions are not used."
35356 msgstr ""
35357
35358 #. type: =item
35359 #: ../src/guestfs.pod:732
35360 msgid "B<C#>"
35361 msgstr ""
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:734
35365 msgid ""
35366 "The C# bindings are highly experimental.  Please read the warnings at the "
35367 "top of C<csharp/Libguestfs.cs>."
35368 msgstr ""
35369
35370 #. type: =item
35371 #: ../src/guestfs.pod:737
35372 msgid "B<Erlang>"
35373 msgstr ""
35374
35375 #. type: textblock
35376 #: ../src/guestfs.pod:739
35377 msgid "See L<guestfs-erlang(3)>."
35378 msgstr ""
35379
35380 #. type: =item
35381 #: ../src/guestfs.pod:741
35382 msgid "B<Haskell>"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:743
35387 msgid ""
35388 "This is the only language binding that is working but incomplete.  Only "
35389 "calls which return simple integers have been bound in Haskell, and we are "
35390 "looking for help to complete this binding."
35391 msgstr ""
35392
35393 #. type: =item
35394 #: ../src/guestfs.pod:747
35395 msgid "B<Java>"
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:749
35400 msgid ""
35401 "Full documentation is contained in the Javadoc which is distributed with "
35402 "libguestfs.  For examples, see L<guestfs-java(3)>."
35403 msgstr ""
35404
35405 #. type: =item
35406 #: ../src/guestfs.pod:752
35407 msgid "B<OCaml>"
35408 msgstr ""
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:754
35412 msgid "See L<guestfs-ocaml(3)>."
35413 msgstr ""
35414
35415 #. type: =item
35416 #: ../src/guestfs.pod:756
35417 msgid "B<Perl>"
35418 msgstr ""
35419
35420 #. type: textblock
35421 #: ../src/guestfs.pod:758
35422 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35423 msgstr ""
35424
35425 #. type: =item
35426 #: ../src/guestfs.pod:760
35427 msgid "B<PHP>"
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:762
35432 msgid ""
35433 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35434 "the php-libguestfs package for your distribution."
35435 msgstr ""
35436
35437 #. type: textblock
35438 #: ../src/guestfs.pod:765
35439 msgid "The PHP binding only works correctly on 64 bit machines."
35440 msgstr ""
35441
35442 #. type: =item
35443 #: ../src/guestfs.pod:767
35444 msgid "B<Python>"
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:769
35449 msgid "See L<guestfs-python(3)>."
35450 msgstr ""
35451
35452 #. type: =item
35453 #: ../src/guestfs.pod:771
35454 msgid "B<Ruby>"
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:773
35459 msgid "See L<guestfs-ruby(3)>."
35460 msgstr ""
35461
35462 #. type: =item
35463 #: ../src/guestfs.pod:775
35464 msgid "B<shell scripts>"
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:777
35469 msgid "See L<guestfish(1)>."
35470 msgstr ""
35471
35472 #. type: =head2
35473 #: ../src/guestfs.pod:781
35474 msgid "LIBGUESTFS GOTCHAS"
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:783
35479 msgid ""
35480 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35481 "system [...] that works in the way it is documented but is counterintuitive "
35482 "and almost invites mistakes.\""
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:787
35487 msgid ""
35488 "Since we developed libguestfs and the associated tools, there are several "
35489 "things we would have designed differently, but are now stuck with for "
35490 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35491 "release, you can expect these to change.  Beware of them."
35492 msgstr ""
35493
35494 #. type: =item
35495 #: ../src/guestfs.pod:795
35496 msgid "Autosync / forgetting to sync."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:797
35501 msgid ""
35502 "I<Update:> Autosync is enabled by default for all API users starting from "
35503 "libguestfs 1.5.24.  This section only applies to older versions."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:800
35508 msgid ""
35509 "When modifying a filesystem from C or another language, you B<must> unmount "
35510 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35511 "libguestfs handle.  You can also call:"
35512 msgstr ""
35513
35514 #. type: verbatim
35515 #: ../src/guestfs.pod:804
35516 #, no-wrap
35517 msgid ""
35518 " guestfs_set_autosync (g, 1);\n"
35519 "\n"
35520 msgstr ""
35521
35522 #. type: textblock
35523 #: ../src/guestfs.pod:806
35524 msgid ""
35525 "to have the unmount/sync done automatically for you when the handle 'g' is "
35526 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
35527 "q.v.)"
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:810
35532 msgid ""
35533 "If you forget to do this, then it is entirely possible that your changes "
35534 "won't be written out, or will be partially written, or (very rarely) that "
35535 "you'll get disk corruption."
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:814
35540 msgid ""
35541 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35542 "guestfish scripts that forget to sync will work just fine, which can make "
35543 "this very puzzling if you are trying to debug a problem."
35544 msgstr ""
35545
35546 #. type: =item
35547 #: ../src/guestfs.pod:818
35548 msgid "Mount option C<-o sync> should not be the default."
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:820
35553 msgid ""
35554 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35555 "libguestfs 1.13.16.  This section only applies to older versions."
35556 msgstr ""
35557
35558 #. type: textblock
35559 #: ../src/guestfs.pod:823
35560 msgid ""
35561 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35562 "However C<-o sync> does not add any reliability benefit, but does have a "
35563 "very large performance impact."
35564 msgstr ""
35565
35566 #. type: textblock
35567 #: ../src/guestfs.pod:827
35568 msgid ""
35569 "The work around is to use L</guestfs_mount_options> and set the mount "
35570 "options that you actually want to use."
35571 msgstr ""
35572
35573 #. type: =item
35574 #: ../src/guestfs.pod:830
35575 msgid "Read-only should be the default."
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:832
35580 msgid ""
35581 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35582 "specify I<--rw> if you want to make changes to the image."
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:835
35587 msgid "This would reduce the potential to corrupt live VM images."
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:837
35592 msgid ""
35593 "Note that many filesystems change the disk when you just mount and unmount, "
35594 "even if you didn't perform any writes.  You need to use "
35595 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
35596 msgstr ""
35597
35598 #. type: =item
35599 #: ../src/guestfs.pod:841
35600 msgid "guestfish command line is hard to use."
35601 msgstr ""
35602
35603 #. type: textblock
35604 #: ../src/guestfs.pod:843
35605 msgid ""
35606 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35607 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35608 "exist, so it fails.  In earlier versions of guestfish the error message was "
35609 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35610 "we should have used C<guestfish -c command> to run commands."
35611 msgstr ""
35612
35613 #. type: =item
35614 #: ../src/guestfs.pod:850
35615 msgid "guestfish megabyte modifiers don't work right on all commands"
35616 msgstr ""
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:852
35620 msgid ""
35621 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35622 "other modifiers).  What guestfish actually does is to multiply the number "
35623 "part by the modifier part and pass the result to the C API.  However this "
35624 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35625 "expecting some other unit (eg. megabytes)."
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:859
35630 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35631 msgstr ""
35632
35633 #. type: verbatim
35634 #: ../src/guestfs.pod:861
35635 #, no-wrap
35636 msgid ""
35637 " lvcreate LV VG 100M\n"
35638 "\n"
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:863
35643 msgid ""
35644 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35645 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35646 "megabytes * megabytes) logical volume.  The error message you get from this "
35647 "is also a little obscure."
35648 msgstr ""
35649
35650 #. type: textblock
35651 #: ../src/guestfs.pod:868
35652 msgid ""
35653 "This could be fixed in the generator by specially marking parameters and "
35654 "return values which take bytes or other units."
35655 msgstr ""
35656
35657 #. type: =item
35658 #: ../src/guestfs.pod:871
35659 msgid "Ambiguity between devices and paths"
35660 msgstr ""
35661
35662 #. type: textblock
35663 #: ../src/guestfs.pod:873
35664 msgid ""
35665 "There is a subtle ambiguity in the API between a device name "
35666 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
35667 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:878
35672 msgid ""
35673 "In the current API we usually resolve this ambiguity by having two separate "
35674 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35675 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35676 "detecting if the path supplied begins with C</dev/>."
35677 msgstr ""
35678
35679 #. type: textblock
35680 #: ../src/guestfs.pod:884
35681 msgid ""
35682 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35683 "make paths/devices into structured names.  One way to do this would be to "
35684 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35685 "aspect of grub.  Another way would be to use a structured type, equivalent "
35686 "to this OCaml type:"
35687 msgstr ""
35688
35689 #. type: verbatim
35690 #: ../src/guestfs.pod:890
35691 #, no-wrap
35692 msgid ""
35693 " type path = Path of string | Device of int | Partition of int * int\n"
35694 "\n"
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:892
35699 msgid "which would allow you to pass arguments like:"
35700 msgstr ""
35701
35702 #. type: verbatim
35703 #: ../src/guestfs.pod:894
35704 #, no-wrap
35705 msgid ""
35706 " Path \"/foo/bar\"\n"
35707 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35708 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35709 " Path \"/dev/sdb2\"    (* not a device *)\n"
35710 "\n"
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:899
35715 msgid ""
35716 "As you can see there are still problems to resolve even with this "
35717 "representation.  Also consider how it might work in guestfish."
35718 msgstr ""
35719
35720 #. type: =head2
35721 #: ../src/guestfs.pod:904
35722 msgid "KEYS AND PASSPHRASES"
35723 msgstr ""
35724
35725 #. type: textblock
35726 #: ../src/guestfs.pod:906
35727 msgid ""
35728 "Certain libguestfs calls take a parameter that contains sensitive key "
35729 "material, passed in as a C string."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:909
35734 msgid ""
35735 "In the future we would hope to change the libguestfs implementation so that "
35736 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35737 "swap.  However this is I<not> done at the moment, because of the complexity "
35738 "of such an implementation."
35739 msgstr ""
35740
35741 #. type: textblock
35742 #: ../src/guestfs.pod:914
35743 msgid ""
35744 "Therefore you should be aware that any key parameter you pass to libguestfs "
35745 "might end up being written out to the swap partition.  If this is a concern, "
35746 "scrub the swap partition or don't use libguestfs on encrypted devices."
35747 msgstr ""
35748
35749 #. type: =head2
35750 #: ../src/guestfs.pod:919
35751 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:921
35756 msgid ""
35757 "All high-level libguestfs actions are synchronous.  If you want to use "
35758 "libguestfs asynchronously then you must create a thread."
35759 msgstr ""
35760
35761 #. type: textblock
35762 #: ../src/guestfs.pod:924
35763 msgid ""
35764 "Only use the handle from a single thread.  Either use the handle exclusively "
35765 "from one thread, or provide your own mutex so that two threads cannot issue "
35766 "calls on the same handle at the same time."
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:928
35771 msgid ""
35772 "See the graphical program guestfs-browser for one possible architecture for "
35773 "multithreaded programs using libvirt and libguestfs."
35774 msgstr ""
35775
35776 #. type: =head2
35777 #: ../src/guestfs.pod:931
35778 msgid "PATH"
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:933
35783 msgid ""
35784 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35785 "internal path."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:936
35790 msgid ""
35791 "By default it looks for these in the directory C<$libdir/guestfs> "
35792 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35793 msgstr ""
35794
35795 #. type: textblock
35796 #: ../src/guestfs.pod:939
35797 msgid ""
35798 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35799 "to change the directories that libguestfs will search in.  The value is a "
35800 "colon-separated list of paths.  The current directory is I<not> searched "
35801 "unless the path contains an empty element or C<.>.  For example "
35802 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35803 "then C</usr/lib/guestfs>."
35804 msgstr ""
35805
35806 #. type: =head2
35807 #: ../src/guestfs.pod:946
35808 msgid "QEMU WRAPPERS"
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:948
35813 msgid ""
35814 "If you want to compile your own qemu, run qemu from a non-standard location, "
35815 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35816 "around qemu."
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../src/guestfs.pod:952
35821 msgid ""
35822 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35823 "last command in the shell script (so that qemu replaces the shell and "
35824 "becomes the direct child of the libguestfs-using program).  If you don't do "
35825 "this, then the qemu process won't be cleaned up correctly."
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:957
35830 msgid ""
35831 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35832 "source:"
35833 msgstr ""
35834
35835 #. type: verbatim
35836 #: ../src/guestfs.pod:960
35837 #, no-wrap
35838 msgid ""
35839 " #!/bin/sh -\n"
35840 " qemudir=/home/rjones/d/qemu\n"
35841 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
35842 "\"$@\"\n"
35843 "\n"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs.pod:964
35848 msgid ""
35849 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35850 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35851 "example:"
35852 msgstr ""
35853
35854 #. type: verbatim
35855 #: ../src/guestfs.pod:968
35856 #, no-wrap
35857 msgid ""
35858 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35859 "\n"
35860 msgstr ""
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:970
35864 msgid ""
35865 "Note that libguestfs also calls qemu with the -help and -version options in "
35866 "order to determine features."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:973
35871 msgid ""
35872 "Wrappers can also be used to edit the options passed to qemu.  In the "
35873 "following example, the C<-machine ...> option (C<-machine> and the following "
35874 "argument) are removed from the command line and replaced with C<-machine "
35875 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
35876 "right one to remove, putting the remaining options into the C<args> array."
35877 msgstr ""
35878
35879 #. type: verbatim
35880 #: ../src/guestfs.pod:982
35881 #, no-wrap
35882 msgid ""
35883 " i=0\n"
35884 " while [ $# -gt 0 ]; do\n"
35885 "     case \"$1\" in\n"
35886 "     -machine)\n"
35887 "         shift 2;;\n"
35888 "     *)\n"
35889 "         args[i]=\"$1\"\n"
35890 "         (( i++ ))\n"
35891 "         shift ;;\n"
35892 "     esac\n"
35893 " done\n"
35894 " \n"
35895 msgstr ""
35896
35897 #. type: verbatim
35898 #: ../src/guestfs.pod:994
35899 #, no-wrap
35900 msgid ""
35901 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35902 "\n"
35903 msgstr ""
35904
35905 #. type: =head2
35906 #: ../src/guestfs.pod:996
35907 msgid "ATTACHING TO RUNNING DAEMONS"
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:998
35912 msgid ""
35913 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35914 "babies.  Use with caution."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:1001
35919 msgid ""
35920 "I<Note (2):> This section explains how to attach to a running daemon from a "
35921 "low level perspective.  For most users, simply using virt tools such as "
35922 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35923 msgstr ""
35924
35925 #. type: =head3
35926 #: ../src/guestfs.pod:1005
35927 msgid "Using guestfs_set_attach_method"
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:1007
35932 msgid ""
35933 "By calling L</guestfs_set_attach_method> you can change how the library "
35934 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
35935 "L</ARCHITECTURE> for some background)."
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:1011
35940 msgid ""
35941 "The normal attach method is C<appliance>, where a small appliance is created "
35942 "containing the daemon, and then the library connects to this."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:1014
35947 msgid ""
35948 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35949 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35950 "daemon over the Unix domain socket."
35951 msgstr ""
35952
35953 #. type: textblock
35954 #: ../src/guestfs.pod:1018
35955 msgid ""
35956 "The normal use for this is to connect to a running virtual machine that "
35957 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35958 "files inside the live virtual machine."
35959 msgstr ""
35960
35961 #. type: =head3
35962 #: ../src/guestfs.pod:1022
35963 msgid "Using guestfs_add_domain with live flag"
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:1024
35968 msgid ""
35969 "L</guestfs_add_domain> provides some help for getting the correct attach "
35970 "method.  If you pass the C<live> option to this function, then (if the "
35971 "virtual machine is running) it will examine the libvirt XML looking for a "
35972 "virtio-serial channel to connect to:"
35973 msgstr ""
35974
35975 #. type: verbatim
35976 #: ../src/guestfs.pod:1030
35977 #, no-wrap
35978 msgid ""
35979 " <domain>\n"
35980 "   ...\n"
35981 "   <devices>\n"
35982 "     ...\n"
35983 "     <channel type='unix'>\n"
35984 "       <source mode='bind' path='/path/to/socket'/>\n"
35985 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35986 "     </channel>\n"
35987 "     ...\n"
35988 "   </devices>\n"
35989 " </domain>\n"
35990 "\n"
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs.pod:1042
35995 msgid ""
35996 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35997 "method to C<unix:/path/to/socket>."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:1045
36002 msgid ""
36003 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36004 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36005 "to attach to and modify live virtual machines."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:1049
36010 msgid ""
36011 "The virtual machine needs to have been set up beforehand so that it has the "
36012 "virtio-serial channel and so that guestfsd is running inside it."
36013 msgstr ""
36014
36015 #. type: =head2
36016 #: ../src/guestfs.pod:1053
36017 msgid "ABI GUARANTEE"
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:1055
36022 msgid ""
36023 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36024 "actions as outlined in this section.  Although we will deprecate some "
36025 "actions, for example if they get replaced by newer calls, we will keep the "
36026 "old actions forever.  This allows you the developer to program in confidence "
36027 "against the libguestfs API."
36028 msgstr ""
36029
36030 #. type: =head2
36031 #: ../src/guestfs.pod:1061
36032 msgid "BLOCK DEVICE NAMING"
36033 msgstr ""
36034
36035 #. type: textblock
36036 #: ../src/guestfs.pod:1063
36037 msgid ""
36038 "In the kernel there is now quite a profusion of schemata for naming block "
36039 "devices (in this context, by I<block device> I mean a physical or virtual "
36040 "hard drive).  The original Linux IDE driver used names starting with "
36041 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36042 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36043 "replacement for the old IDE driver (particularly for SATA devices) those "
36044 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36045 "machines with paravirtualized drivers.  This has created several different "
36046 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36047 "Xen PV disks."
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:1075
36052 msgid ""
36053 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36054 "Linux kernel to access block devices.  We can run a variety of appliances "
36055 "based on a variety of Linux kernels."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:1079
36060 msgid ""
36061 "This causes a problem for libguestfs because many API calls use device or "
36062 "partition names.  Working scripts and the recipe (example) scripts that we "
36063 "make available over the internet could fail if the naming scheme changes."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:1084
36068 msgid ""
36069 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36070 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36071 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36072 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:1090
36077 msgid ""
36078 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36079 "L</guestfs_list_partitions> and similar calls return the true names of the "
36080 "devices and partitions as known to the appliance."
36081 msgstr ""
36082
36083 #. type: =head3
36084 #: ../src/guestfs.pod:1095
36085 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:1097
36090 msgid ""
36091 "Usually this translation is transparent.  However in some (very rare)  cases "
36092 "you may need to know the exact algorithm.  Such cases include where you use "
36093 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
36094 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
36095 "devices."
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:1103
36100 msgid ""
36101 "The algorithm is applied only to I<parameters> which are known to be either "
36102 "device or partition names.  Return values from functions such as "
36103 "L</guestfs_list_devices> are never changed."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1111
36108 msgid "Is the string a parameter which is a device or partition name?"
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:1115
36113 msgid "Does the string begin with C</dev/sd>?"
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:1119
36118 msgid ""
36119 "Does the named device exist? If so, we use that device.  However if I<not> "
36120 "then we continue with this algorithm."
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../src/guestfs.pod:1124
36125 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:1126
36130 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:1128
36135 msgid "If that named device exists, use it.  If not, continue."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:1132
36140 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:1134
36145 msgid "If that named device exists, use it.  If not, return an error."
36146 msgstr ""
36147
36148 #. type: =head3
36149 #: ../src/guestfs.pod:1138
36150 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:1140
36155 msgid ""
36156 "Although the standard naming scheme and automatic translation is useful for "
36157 "simple programs and guestfish scripts, for larger programs it is best not to "
36158 "rely on this mechanism."
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:1144
36163 msgid ""
36164 "Where possible for maximum future portability programs using libguestfs "
36165 "should use these future-proof techniques:"
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:1151
36170 msgid ""
36171 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36172 "device names, and then use those names directly."
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:1154
36177 msgid "Since those device names exist by definition, they will never be translated."
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:1159
36182 msgid ""
36183 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36184 "filesystem labels."
36185 msgstr ""
36186
36187 #. type: textblock
36188 #: ../src/guestfs.pod:1166
36189 msgid ""
36190 "This section discusses security implications of using libguestfs, "
36191 "particularly with untrusted or malicious guests or disk images."
36192 msgstr ""
36193
36194 #. type: =head2
36195 #: ../src/guestfs.pod:1169
36196 msgid "GENERAL SECURITY CONSIDERATIONS"
36197 msgstr ""
36198
36199 #. type: textblock
36200 #: ../src/guestfs.pod:1171
36201 msgid ""
36202 "Be careful with any files or data that you download from a guest (by "
36203 "\"download\" we mean not just the L</guestfs_download> command but any "
36204 "command that reads files, filenames, directories or anything else from a "
36205 "disk image).  An attacker could manipulate the data to fool your program "
36206 "into doing the wrong thing.  Consider cases such as:"
36207 msgstr ""
36208
36209 #. type: textblock
36210 #: ../src/guestfs.pod:1181
36211 msgid "the data (file etc) not being present"
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:1185
36216 msgid "being present but empty"
36217 msgstr ""
36218
36219 #. type: textblock
36220 #: ../src/guestfs.pod:1189
36221 msgid "being much larger than normal"
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:1193
36226 msgid "containing arbitrary 8 bit data"
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:1197
36231 msgid "being in an unexpected character encoding"
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:1201
36236 msgid "containing homoglyphs."
36237 msgstr ""
36238
36239 #. type: =head2
36240 #: ../src/guestfs.pod:1205
36241 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../src/guestfs.pod:1207
36246 msgid ""
36247 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36248 "(VFS) module can sometimes be escalated into exploits by deliberately "
36249 "creating a malicious, malformed filesystem.  These exploits are very severe "
36250 "for two reasons.  Firstly there are very many filesystem drivers in the "
36251 "kernel, and many of them are infrequently used and not much developer "
36252 "attention has been paid to the code.  Linux userspace helps potential "
36253 "crackers by detecting the filesystem type and automatically choosing the "
36254 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36255 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36256 "exploit (worse in some ways), giving immediate and total access to the "
36257 "system right down to the hardware level."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:1220
36262 msgid ""
36263 "That explains why you should never mount a filesystem from an untrusted "
36264 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36265 "inside a qemu virtual machine, usually running as a non-root user.  The "
36266 "attacker would need to write a filesystem which first exploited the kernel, "
36267 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36268 "the libguestfs protocol, and finally to be as serious as the host kernel "
36269 "exploit it would need to escalate its privileges to root.  This multi-step "
36270 "escalation, performed by a static piece of data, is thought to be extremely "
36271 "hard to do, although we never say 'never' about security issues."
36272 msgstr ""
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:1231
36276 msgid ""
36277 "In any case callers can reduce the attack surface by forcing the filesystem "
36278 "type when mounting (use L</guestfs_mount_vfs>)."
36279 msgstr ""
36280
36281 #. type: =head2
36282 #: ../src/guestfs.pod:1234
36283 msgid "PROTOCOL SECURITY"
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:1236
36288 msgid ""
36289 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36290 "defined upper message size.  However a program that uses libguestfs must "
36291 "also take care - for example you can write a program that downloads a binary "
36292 "from a disk image and executes it locally, and no amount of protocol "
36293 "security will save you from the consequences."
36294 msgstr ""
36295
36296 #. type: =head2
36297 #: ../src/guestfs.pod:1242
36298 msgid "INSPECTION SECURITY"
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../src/guestfs.pod:1244
36303 msgid ""
36304 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36305 "directly from the guest, and these could contain any 8 bit data.  Callers "
36306 "should be careful to escape these before printing them to a structured file "
36307 "(for example, use HTML escaping if creating a web page)."
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../src/guestfs.pod:1250
36312 msgid ""
36313 "Guest configuration may be altered in unusual ways by the administrator of "
36314 "the virtual machine, and may not reflect reality (particularly for untrusted "
36315 "or actively malicious guests).  For example we parse the hostname from "
36316 "configuration files like C</etc/sysconfig/network> that we find in the "
36317 "guest, but the guest administrator can easily manipulate these files to "
36318 "provide the wrong hostname."
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:1258
36323 msgid ""
36324 "The inspection API parses guest configuration using two external libraries: "
36325 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36326 "designed to be robust in the face of malicious data, although denial of "
36327 "service attacks are still possible, for example with oversized configuration "
36328 "files."
36329 msgstr ""
36330
36331 #. type: =head2
36332 #: ../src/guestfs.pod:1264
36333 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:1266
36338 msgid ""
36339 "Be very cautious about running commands from the guest.  By running a "
36340 "command in the guest, you are giving CPU time to a binary that you do not "
36341 "control, under the same user account as the library, albeit wrapped in qemu "
36342 "virtualization.  More information and alternatives can be found in the "
36343 "section L</RUNNING COMMANDS>."
36344 msgstr ""
36345
36346 #. type: =head2
36347 #: ../src/guestfs.pod:1272
36348 msgid "CVE-2010-3851"
36349 msgstr ""
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:1274
36353 msgid "https://bugzilla.redhat.com/642934"
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../src/guestfs.pod:1276
36358 msgid ""
36359 "This security bug concerns the automatic disk format detection that qemu "
36360 "does on disk images."
36361 msgstr ""
36362
36363 #. type: textblock
36364 #: ../src/guestfs.pod:1279
36365 msgid ""
36366 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36367 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36368 "for one of the known headers, and if none is found then assuming the disk "
36369 "image must be raw."
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:1284
36374 msgid ""
36375 "This allows a guest which has been given a raw disk image to write some "
36376 "other header.  At next boot (or when the disk image is accessed by "
36377 "libguestfs) qemu would do autodetection and think the disk image format was, "
36378 "say, qcow2 based on the header written by the guest."
36379 msgstr ""
36380
36381 #. type: textblock
36382 #: ../src/guestfs.pod:1289
36383 msgid ""
36384 "This in itself would not be a problem, but qcow2 offers many features, one "
36385 "of which is to allow a disk image to refer to another image (called the "
36386 "\"backing disk\").  It does this by placing the path to the backing disk "
36387 "into the qcow2 header.  This path is not validated and could point to any "
36388 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36389 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36390 "control of the attacker."
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:1297
36395 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:1304
36400 msgid "You have enabled the network or have opened the disk in write mode."
36401 msgstr ""
36402
36403 #. type: textblock
36404 #: ../src/guestfs.pod:1308
36405 msgid ""
36406 "You are also running untrusted code from the guest (see L</RUNNING "
36407 "COMMANDS>)."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:1313
36412 msgid ""
36413 "The way to avoid this is to specify the expected disk format when adding "
36414 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36415 "should always do this if the disk is raw format, and it's a good idea for "
36416 "other cases too."
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:1318
36421 msgid ""
36422 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36423 "format is fetched from libvirt and passed through."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:1321
36428 msgid ""
36429 "For libguestfs tools, use the I<--format> command line parameter as "
36430 "appropriate."
36431 msgstr ""
36432
36433 #. type: =head1
36434 #: ../src/guestfs.pod:1324
36435 msgid "CONNECTION MANAGEMENT"
36436 msgstr ""
36437
36438 #. type: =head2
36439 #: ../src/guestfs.pod:1326
36440 msgid "guestfs_h *"
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:1328
36445 msgid ""
36446 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36447 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36448 "handle and release all resources used."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:1332
36453 msgid ""
36454 "For information on using multiple handles and threads, see the section "
36455 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36456 msgstr ""
36457
36458 #. type: =head2
36459 #: ../src/guestfs.pod:1335
36460 msgid "guestfs_create"
36461 msgstr ""
36462
36463 #. type: verbatim
36464 #: ../src/guestfs.pod:1337
36465 #, no-wrap
36466 msgid ""
36467 " guestfs_h *guestfs_create (void);\n"
36468 "\n"
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:1339
36473 msgid "Create a connection handle."
36474 msgstr ""
36475
36476 #. type: textblock
36477 #: ../src/guestfs.pod:1341
36478 msgid ""
36479 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36480 "NULL."
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:1344
36485 msgid ""
36486 "You have to \"configure\" the handle after creating it.  This includes "
36487 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36488 "handle at least once."
36489 msgstr ""
36490
36491 #. type: textblock
36492 #: ../src/guestfs.pod:1348
36493 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36494 msgstr ""
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:1350
36498 msgid ""
36499 "You may also want to configure error handling for the handle.  See the "
36500 "L</ERROR HANDLING> section below."
36501 msgstr ""
36502
36503 #. type: =head2
36504 #: ../src/guestfs.pod:1353
36505 msgid "guestfs_close"
36506 msgstr ""
36507
36508 #. type: verbatim
36509 #: ../src/guestfs.pod:1355
36510 #, no-wrap
36511 msgid ""
36512 " void guestfs_close (guestfs_h *g);\n"
36513 "\n"
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:1357
36518 msgid "This closes the connection handle and frees up all resources used."
36519 msgstr ""
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:1359
36523 msgid ""
36524 "If autosync was set on the handle and the handle was launched, then this "
36525 "implicitly calls various functions to unmount filesystems and sync the "
36526 "disk.  See L</guestfs_set_autosync> for more details."
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:1363
36531 msgid "If a close callback was set on the handle, then it is called."
36532 msgstr ""
36533
36534 #. type: =head1
36535 #: ../src/guestfs.pod:1365
36536 msgid "ERROR HANDLING"
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:1367
36541 msgid ""
36542 "API functions can return errors.  For example, almost all functions that "
36543 "return C<int> will return C<-1> to indicate an error."
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:1370
36548 msgid ""
36549 "Additional information is available for errors: an error message string and "
36550 "optionally an error number (errno) if the thing that failed was a system "
36551 "call."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:1374
36556 msgid ""
36557 "You can get at the additional information about the last error on the handle "
36558 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36559 "up an error handler with L</guestfs_set_error_handler>."
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../src/guestfs.pod:1379
36564 msgid ""
36565 "When the handle is created, a default error handler is installed which "
36566 "prints the error message string to C<stderr>.  For small short-running "
36567 "command line programs it is sufficient to do:"
36568 msgstr ""
36569
36570 #. type: verbatim
36571 #: ../src/guestfs.pod:1383
36572 #, no-wrap
36573 msgid ""
36574 " if (guestfs_launch (g) == -1)\n"
36575 "   exit (EXIT_FAILURE);\n"
36576 "\n"
36577 msgstr ""
36578
36579 #. type: textblock
36580 #: ../src/guestfs.pod:1386
36581 msgid ""
36582 "since the default error handler will ensure that an error message has been "
36583 "printed to C<stderr> before the program exits."
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:1389
36588 msgid ""
36589 "For other programs the caller will almost certainly want to install an "
36590 "alternate error handler or do error handling in-line like this:"
36591 msgstr ""
36592
36593 #. type: verbatim
36594 #: ../src/guestfs.pod:1392
36595 #, no-wrap
36596 msgid ""
36597 " /* This disables the default behaviour of printing errors\n"
36598 "    on stderr. */\n"
36599 " guestfs_set_error_handler (g, NULL, NULL);\n"
36600 " \n"
36601 msgstr ""
36602
36603 #. type: verbatim
36604 #: ../src/guestfs.pod:1396
36605 #, no-wrap
36606 msgid ""
36607 " if (guestfs_launch (g) == -1) {\n"
36608 "   /* Examine the error message and print it etc. */\n"
36609 "   char *msg = guestfs_last_error (g);\n"
36610 "   int errnum = guestfs_last_errno (g);\n"
36611 "   fprintf (stderr, \"%s\", msg);\n"
36612 "   if (errnum != 0)\n"
36613 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36614 "   fprintf (stderr, \"\\n\");\n"
36615 "   /* ... */\n"
36616 " }\n"
36617 "\n"
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:1407
36622 msgid ""
36623 "Out of memory errors are handled differently.  The default action is to call "
36624 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
36625 "L</guestfs_set_out_of_memory_handler>."
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:1411
36630 msgid ""
36631 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36632 "because there is no handle if this happens there is no way to get additional "
36633 "error information.  However L</guestfs_create> is supposed to be a "
36634 "lightweight operation which can only fail because of insufficient memory (it "
36635 "returns NULL in this case)."
36636 msgstr ""
36637
36638 #. type: =head2
36639 #: ../src/guestfs.pod:1417
36640 msgid "guestfs_last_error"
36641 msgstr ""
36642
36643 #. type: verbatim
36644 #: ../src/guestfs.pod:1419
36645 #, no-wrap
36646 msgid ""
36647 " const char *guestfs_last_error (guestfs_h *g);\n"
36648 "\n"
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:1421
36653 msgid ""
36654 "This returns the last error message that happened on C<g>.  If there has not "
36655 "been an error since the handle was created, then this returns C<NULL>."
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:1425
36660 msgid ""
36661 "The lifetime of the returned string is until the next error occurs, or "
36662 "L</guestfs_close> is called."
36663 msgstr ""
36664
36665 #. type: =head2
36666 #: ../src/guestfs.pod:1428
36667 msgid "guestfs_last_errno"
36668 msgstr ""
36669
36670 #. type: verbatim
36671 #: ../src/guestfs.pod:1430
36672 #, no-wrap
36673 msgid ""
36674 " int guestfs_last_errno (guestfs_h *g);\n"
36675 "\n"
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:1432
36680 msgid "This returns the last error number (errno) that happened on C<g>."
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:1434
36685 msgid "If successful, an errno integer not equal to zero is returned."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1436
36690 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:1443
36695 msgid "There has not been any error on the handle."
36696 msgstr ""
36697
36698 #. type: textblock
36699 #: ../src/guestfs.pod:1447
36700 msgid ""
36701 "There has been an error but the errno was meaningless.  This corresponds to "
36702 "the case where the error did not come from a failed system call, but for "
36703 "some other reason."
36704 msgstr ""
36705
36706 #. type: textblock
36707 #: ../src/guestfs.pod:1453
36708 msgid ""
36709 "There was an error from a failed system call, but for some reason the errno "
36710 "was not captured and returned.  This usually indicates a bug in libguestfs."
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:1459
36715 msgid ""
36716 "Libguestfs tries to convert the errno from inside the applicance into a "
36717 "corresponding errno for the caller (not entirely trivial: the appliance "
36718 "might be running a completely different operating system from the library "
36719 "and error numbers are not standardized across Un*xen).  If this could not be "
36720 "done, then the error is translated to C<EINVAL>.  In practice this should "
36721 "only happen in very rare circumstances."
36722 msgstr ""
36723
36724 #. type: =head2
36725 #: ../src/guestfs.pod:1467
36726 msgid "guestfs_set_error_handler"
36727 msgstr ""
36728
36729 #. type: verbatim
36730 #: ../src/guestfs.pod:1469
36731 #, no-wrap
36732 msgid ""
36733 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36734 "                                           void *opaque,\n"
36735 "                                           const char *msg);\n"
36736 " void guestfs_set_error_handler (guestfs_h *g,\n"
36737 "                                 guestfs_error_handler_cb cb,\n"
36738 "                                 void *opaque);\n"
36739 "\n"
36740 msgstr ""
36741
36742 #. type: textblock
36743 #: ../src/guestfs.pod:1476
36744 msgid ""
36745 "The callback C<cb> will be called if there is an error.  The parameters "
36746 "passed to the callback are an opaque data pointer and the error message "
36747 "string."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:1480
36752 msgid ""
36753 "C<errno> is not passed to the callback.  To get that the callback must call "
36754 "L</guestfs_last_errno>."
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:1483
36759 msgid ""
36760 "Note that the message string C<msg> is freed as soon as the callback "
36761 "function returns, so if you want to stash it somewhere you must make your "
36762 "own copy."
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:1487
36767 msgid "The default handler prints messages on C<stderr>."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:1489
36772 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36773 msgstr ""
36774
36775 #. type: =head2
36776 #: ../src/guestfs.pod:1491
36777 msgid "guestfs_get_error_handler"
36778 msgstr ""
36779
36780 #. type: verbatim
36781 #: ../src/guestfs.pod:1493
36782 #, no-wrap
36783 msgid ""
36784 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36785 "                                                     void **opaque_rtn);\n"
36786 "\n"
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:1496
36791 msgid "Returns the current error handler callback."
36792 msgstr ""
36793
36794 #. type: =head2
36795 #: ../src/guestfs.pod:1498
36796 msgid "guestfs_set_out_of_memory_handler"
36797 msgstr ""
36798
36799 #. type: verbatim
36800 #: ../src/guestfs.pod:1500
36801 #, no-wrap
36802 msgid ""
36803 " typedef void (*guestfs_abort_cb) (void);\n"
36804 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36805 "                                         guestfs_abort_cb);\n"
36806 "\n"
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:1504
36811 msgid ""
36812 "The callback C<cb> will be called if there is an out of memory situation.  "
36813 "I<Note this callback must not return>."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1507
36818 msgid "The default is to call L<abort(3)>."
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../src/guestfs.pod:1509
36823 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36824 msgstr ""
36825
36826 #. type: =head2
36827 #: ../src/guestfs.pod:1512
36828 msgid "guestfs_get_out_of_memory_handler"
36829 msgstr ""
36830
36831 #. type: verbatim
36832 #: ../src/guestfs.pod:1514
36833 #, no-wrap
36834 msgid ""
36835 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36836 "\n"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:1516
36841 msgid "This returns the current out of memory handler."
36842 msgstr ""
36843
36844 #. type: =head1
36845 #: ../src/guestfs.pod:1518
36846 msgid "API CALLS"
36847 msgstr ""
36848
36849 #. type: =head1
36850 #: ../src/guestfs.pod:1522
36851 msgid "STRUCTURES"
36852 msgstr ""
36853
36854 #. type: textblock
36855 #: ../src/guestfs.pod:1524
36856 msgid "@STRUCTS@"
36857 msgstr ""
36858
36859 #. type: =head1
36860 #: ../src/guestfs.pod:1526
36861 msgid "AVAILABILITY"
36862 msgstr ""
36863
36864 #. type: =head2
36865 #: ../src/guestfs.pod:1528
36866 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:1530
36871 msgid ""
36872 "Using L</guestfs_available> you can test availability of the following "
36873 "groups of functions.  This test queries the appliance to see if the "
36874 "appliance you are currently using supports the functionality."
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:1535
36879 msgid "@AVAILABILITY@"
36880 msgstr ""
36881
36882 #. type: =head2
36883 #: ../src/guestfs.pod:1537
36884 msgid "GUESTFISH supported COMMAND"
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:1539
36889 msgid ""
36890 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36891 "prints out the available groups and whether they are supported by this build "
36892 "of libguestfs.  Note however that you have to do C<run> first."
36893 msgstr ""
36894
36895 #. type: =head2
36896 #: ../src/guestfs.pod:1544
36897 msgid "SINGLE CALLS AT COMPILE TIME"
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:1546
36902 msgid ""
36903 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36904 "function, such as:"
36905 msgstr ""
36906
36907 #. type: verbatim
36908 #: ../src/guestfs.pod:1549
36909 #, no-wrap
36910 msgid ""
36911 " #define LIBGUESTFS_HAVE_DD 1\n"
36912 "\n"
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:1551
36917 msgid "if L</guestfs_dd> is available."
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:1553
36922 msgid ""
36923 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36924 "function is available at compile time, we recommended using build tools such "
36925 "as autoconf or cmake.  For example in autotools you could use:"
36926 msgstr ""
36927
36928 #. type: verbatim
36929 #: ../src/guestfs.pod:1558
36930 #, no-wrap
36931 msgid ""
36932 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36933 " AC_CHECK_FUNCS([guestfs_dd])\n"
36934 "\n"
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../src/guestfs.pod:1561
36939 msgid ""
36940 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36941 "in your program."
36942 msgstr ""
36943
36944 #. type: =head2
36945 #: ../src/guestfs.pod:1564
36946 msgid "SINGLE CALLS AT RUN TIME"
36947 msgstr ""
36948
36949 #. type: textblock
36950 #: ../src/guestfs.pod:1566
36951 msgid ""
36952 "Testing at compile time doesn't guarantee that a function really exists in "
36953 "the library.  The reason is that you might be dynamically linked against a "
36954 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36955 "This situation unfortunately results in a segmentation fault, which is a "
36956 "shortcoming of the C dynamic linking system itself."
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:1573
36961 msgid ""
36962 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36963 "in this example program (note that you still need the compile time check as "
36964 "well):"
36965 msgstr ""
36966
36967 #. type: verbatim
36968 #: ../src/guestfs.pod:1577
36969 #, no-wrap
36970 msgid ""
36971 " #include <stdio.h>\n"
36972 " #include <stdlib.h>\n"
36973 " #include <unistd.h>\n"
36974 " #include <dlfcn.h>\n"
36975 " #include <guestfs.h>\n"
36976 " \n"
36977 msgstr ""
36978
36979 #. type: verbatim
36980 #: ../src/guestfs.pod:1583
36981 #, no-wrap
36982 msgid ""
36983 " main ()\n"
36984 " {\n"
36985 " #ifdef LIBGUESTFS_HAVE_DD\n"
36986 "   void *dl;\n"
36987 "   int has_function;\n"
36988 " \n"
36989 msgstr ""
36990
36991 #. type: verbatim
36992 #: ../src/guestfs.pod:1589
36993 #, no-wrap
36994 msgid ""
36995 "   /* Test if the function guestfs_dd is really available. */\n"
36996 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36997 "   if (!dl) {\n"
36998 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36999 "     exit (EXIT_FAILURE);\n"
37000 "   }\n"
37001 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37002 "   dlclose (dl);\n"
37003 " \n"
37004 msgstr ""
37005
37006 #. type: verbatim
37007 #: ../src/guestfs.pod:1598
37008 #, no-wrap
37009 msgid ""
37010 "   if (!has_function)\n"
37011 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37012 "   else {\n"
37013 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37014 "     /* Now it's safe to call\n"
37015 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37016 "     */\n"
37017 "   }\n"
37018 " #else\n"
37019 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37020 " #endif\n"
37021 "  }\n"
37022 "\n"
37023 msgstr ""
37024
37025 #. type: textblock
37026 #: ../src/guestfs.pod:1611
37027 msgid ""
37028 "You may think the above is an awful lot of hassle, and it is.  There are "
37029 "other ways outside of the C linking system to ensure that this kind of "
37030 "incompatibility never arises, such as using package versioning:"
37031 msgstr ""
37032
37033 #. type: verbatim
37034 #: ../src/guestfs.pod:1616
37035 #, no-wrap
37036 msgid ""
37037 " Requires: libguestfs >= 1.0.80\n"
37038 "\n"
37039 msgstr ""
37040
37041 #. type: =head1
37042 #: ../src/guestfs.pod:1618
37043 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:1620
37048 msgid ""
37049 "A recent feature of the API is the introduction of calls which take optional "
37050 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37051 "takes variable arguments (ie. C<...>), as in this example:"
37052 msgstr ""
37053
37054 #. type: verbatim
37055 #: ../src/guestfs.pod:1625
37056 #, no-wrap
37057 msgid ""
37058 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37059 "\n"
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:1627
37064 msgid ""
37065 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37066 "call with no optional arguments specified:"
37067 msgstr ""
37068
37069 #. type: verbatim
37070 #: ../src/guestfs.pod:1630
37071 #, no-wrap
37072 msgid ""
37073 " guestfs_add_drive_opts (g, filename, -1);\n"
37074 "\n"
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../src/guestfs.pod:1632
37079 msgid "With a single optional argument:"
37080 msgstr ""
37081
37082 #. type: verbatim
37083 #: ../src/guestfs.pod:1634
37084 #, no-wrap
37085 msgid ""
37086 " guestfs_add_drive_opts (g, filename,\n"
37087 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37088 "                         -1);\n"
37089 "\n"
37090 msgstr ""
37091
37092 #. type: textblock
37093 #: ../src/guestfs.pod:1638
37094 msgid "With two:"
37095 msgstr ""
37096
37097 #. type: verbatim
37098 #: ../src/guestfs.pod:1640
37099 #, no-wrap
37100 msgid ""
37101 " guestfs_add_drive_opts (g, filename,\n"
37102 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37103 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37104 "                         -1);\n"
37105 "\n"
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:1645
37110 msgid ""
37111 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37112 "happen!"
37113 msgstr ""
37114
37115 #. type: =head2
37116 #: ../src/guestfs.pod:1648
37117 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../src/guestfs.pod:1650
37122 msgid ""
37123 "The second variant has the same name with the suffix C<_va>, which works the "
37124 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37125 "example function, this is declared:"
37126 msgstr ""
37127
37128 #. type: verbatim
37129 #: ../src/guestfs.pod:1654
37130 #, no-wrap
37131 msgid ""
37132 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37133 "                                va_list args);\n"
37134 "\n"
37135 msgstr ""
37136
37137 #. type: =head2
37138 #: ../src/guestfs.pod:1657
37139 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:1659
37144 msgid ""
37145 "The third variant is useful where you need to construct these calls.  You "
37146 "pass in a structure where you fill in the optional fields.  The structure "
37147 "has a bitmask as the first element which you must set to indicate which "
37148 "fields you have filled in.  For our example function the structure and call "
37149 "are declared:"
37150 msgstr ""
37151
37152 #. type: verbatim
37153 #: ../src/guestfs.pod:1665
37154 #, no-wrap
37155 msgid ""
37156 " struct guestfs_add_drive_opts_argv {\n"
37157 "   uint64_t bitmask;\n"
37158 "   int readonly;\n"
37159 "   const char *format;\n"
37160 "   /* ... */\n"
37161 " };\n"
37162 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37163 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37164 "\n"
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1674
37169 msgid "You could call it like this:"
37170 msgstr ""
37171
37172 #. type: verbatim
37173 #: ../src/guestfs.pod:1676
37174 #, no-wrap
37175 msgid ""
37176 " struct guestfs_add_drive_opts_argv optargs = {\n"
37177 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37178 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37179 "   .readonly = 1,\n"
37180 "   .format = \"qcow2\"\n"
37181 " };\n"
37182 " \n"
37183 msgstr ""
37184
37185 #. type: verbatim
37186 #: ../src/guestfs.pod:1683
37187 #, no-wrap
37188 msgid ""
37189 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37190 "\n"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:1691
37195 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37196 msgstr ""
37197
37198 #. type: textblock
37199 #: ../src/guestfs.pod:1696
37200 msgid "You do not need to fill in all fields of the structure."
37201 msgstr ""
37202
37203 #. type: textblock
37204 #: ../src/guestfs.pod:1700
37205 msgid ""
37206 "There must be a one-to-one correspondence between fields of the structure "
37207 "that are filled in, and bits set in the bitmask."
37208 msgstr ""
37209
37210 #. type: =head2
37211 #: ../src/guestfs.pod:1705
37212 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:1707
37217 msgid ""
37218 "In other languages, optional arguments are expressed in the way that is "
37219 "natural for that language.  We refer you to the language-specific "
37220 "documentation for more details on that."
37221 msgstr ""
37222
37223 #. type: textblock
37224 #: ../src/guestfs.pod:1711
37225 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37226 msgstr ""
37227
37228 #. type: =head2
37229 #: ../src/guestfs.pod:1713
37230 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:1715
37235 msgid ""
37236 "B<Note:> This section documents the generic event mechanism introduced in "
37237 "libguestfs 1.10, which you should use in new code if possible.  The old "
37238 "functions C<guestfs_set_log_message_callback>, "
37239 "C<guestfs_set_subprocess_quit_callback>, "
37240 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37241 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37242 "page.  Because of the ABI guarantee, the old functions continue to work."
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:1724
37247 msgid ""
37248 "Handles generate events when certain things happen, such as log messages "
37249 "being generated, progress messages during long-running operations, or the "
37250 "handle being closed.  The API calls described below let you register a "
37251 "callback to be called when events happen.  You can register multiple "
37252 "callbacks (for the same, different or overlapping sets of events), and "
37253 "individually remove callbacks.  If callbacks are not removed, then they "
37254 "remain in force until the handle is closed."
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:1732
37259 msgid ""
37260 "In the current implementation, events are only generated synchronously: that "
37261 "means that events (and hence callbacks) can only happen while you are in the "
37262 "middle of making another libguestfs call.  The callback is called in the "
37263 "same thread."
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:1737
37268 msgid ""
37269 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37270 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37271 msgstr ""
37272
37273 #. type: =head3
37274 #: ../src/guestfs.pod:1741
37275 msgid "CLASSES OF EVENTS"
37276 msgstr ""
37277
37278 #. type: =item
37279 #: ../src/guestfs.pod:1745
37280 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:1748
37285 msgid ""
37286 "The callback function will be called while the handle is being closed "
37287 "(synchronously from L</guestfs_close>)."
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:1751
37292 msgid ""
37293 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37294 "handles that are open when the program exits.  This means that this callback "
37295 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37296 "problems in higher-level languages (eg. if your HLL interpreter has already "
37297 "been cleaned up by the time this is called, and if your callback then jumps "
37298 "into some HLL function)."
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:1758
37303 msgid ""
37304 "If no callback is registered: the handle is closed without any callback "
37305 "being invoked."
37306 msgstr ""
37307
37308 #. type: =item
37309 #: ../src/guestfs.pod:1761
37310 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37311 msgstr ""
37312
37313 #. type: textblock
37314 #: ../src/guestfs.pod:1764
37315 msgid ""
37316 "The callback function will be called when the child process quits, either "
37317 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37318 "corresponds to a transition from any state to the CONFIG state)."
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
37323 msgid "If no callback is registered: the event is ignored."
37324 msgstr ""
37325
37326 #. type: =item
37327 #: ../src/guestfs.pod:1770
37328 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:1773
37333 msgid ""
37334 "The callback function will be called when the child process becomes ready "
37335 "first time after it has been launched.  (This corresponds to a transition "
37336 "from LAUNCHING to the READY state)."
37337 msgstr ""
37338
37339 #. type: =item
37340 #: ../src/guestfs.pod:1779
37341 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37342 msgstr ""
37343
37344 #. type: textblock
37345 #: ../src/guestfs.pod:1782
37346 msgid ""
37347 "Some long-running operations can generate progress messages.  If this "
37348 "callback is registered, then it will be called each time a progress message "
37349 "is generated (usually two seconds after the operation started, and three "
37350 "times per second thereafter until it completes, although the frequency may "
37351 "change in future versions)."
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:1788
37356 msgid ""
37357 "The callback receives in the payload four unsigned 64 bit numbers which are "
37358 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37359 msgstr ""
37360
37361 #. type: textblock
37362 #: ../src/guestfs.pod:1791
37363 msgid ""
37364 "The units of C<total> are not defined, although for some operations C<total> "
37365 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37366 "or megabytes), and C<position> may be the portion which has been "
37367 "transferred."
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../src/guestfs.pod:1796
37372 msgid "The only defined and stable parts of the API are:"
37373 msgstr ""
37374
37375 #. type: textblock
37376 #: ../src/guestfs.pod:1802
37377 msgid ""
37378 "The callback can display to the user some type of progress bar or indicator "
37379 "which shows the ratio of C<position>:C<total>."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:1807
37384 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:1811
37389 msgid ""
37390 "If any progress notification is sent during a call, then a final progress "
37391 "notification is always sent when C<position> = C<total> (I<unless> the call "
37392 "fails with an error)."
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:1815
37397 msgid ""
37398 "This is to simplify caller code, so callers can easily set the progress "
37399 "indicator to \"100%\" at the end of the operation, without requiring special "
37400 "code to detect this case."
37401 msgstr ""
37402
37403 #. type: textblock
37404 #: ../src/guestfs.pod:1821
37405 msgid ""
37406 "For some calls we are unable to estimate the progress of the call, but we "
37407 "can still generate progress messages to indicate activity.  This is known as "
37408 "\"pulse mode\", and is directly supported by certain progress bar "
37409 "implementations (eg. GtkProgressBar)."
37410 msgstr ""
37411
37412 #. type: textblock
37413 #: ../src/guestfs.pod:1826
37414 msgid ""
37415 "For these calls, zero or more progress messages are generated with "
37416 "C<position = 0> and C<total = 1>, followed by a final message with "
37417 "C<position = total = 1>."
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:1830
37422 msgid ""
37423 "As noted above, if the call fails with an error then the final message may "
37424 "not be generated."
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:1835
37429 msgid ""
37430 "The callback also receives the procedure number (C<proc_nr>) and serial "
37431 "number (C<serial>) of the call.  These are only useful for debugging "
37432 "protocol issues, and the callback can normally ignore them.  The callback "
37433 "may want to print these numbers in error messages or debugging messages."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1841
37438 msgid "If no callback is registered: progress messages are discarded."
37439 msgstr ""
37440
37441 #. type: =item
37442 #: ../src/guestfs.pod:1843
37443 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37444 msgstr ""
37445
37446 #. type: textblock
37447 #: ../src/guestfs.pod:1846
37448 msgid ""
37449 "The callback function is called whenever a log message is generated by qemu, "
37450 "the appliance kernel, guestfsd (daemon), or utility programs."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:1849
37455 msgid ""
37456 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
37457 "(L</guestfs_launch>) then additional debug messages are generated."
37458 msgstr ""
37459
37460 #. type: textblock
37461 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
37462 msgid ""
37463 "If no callback is registered: the messages are discarded unless the verbose "
37464 "flag is set in which case they are sent to stderr.  You can override the "
37465 "printing of verbose messages to stderr by setting up a callback."
37466 msgstr ""
37467
37468 #. type: =item
37469 #: ../src/guestfs.pod:1857
37470 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37471 msgstr ""
37472
37473 #. type: textblock
37474 #: ../src/guestfs.pod:1860
37475 msgid ""
37476 "The callback function is called whenever a log message is generated by the "
37477 "library part of libguestfs."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:1863
37482 msgid ""
37483 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37484 "messages are generated."
37485 msgstr ""
37486
37487 #. type: =item
37488 #: ../src/guestfs.pod:1871
37489 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37490 msgstr ""
37491
37492 #. type: textblock
37493 #: ../src/guestfs.pod:1874
37494 msgid ""
37495 "The callback function is called whenever a trace message is generated.  This "
37496 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:1877
37501 msgid ""
37502 "If no callback is registered: the messages are sent to stderr.  You can "
37503 "override the printing of trace messages to stderr by setting up a callback."
37504 msgstr ""
37505
37506 #. type: =item
37507 #: ../src/guestfs.pod:1881
37508 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:1884
37513 msgid "The callback function is called whenever a libguestfs function is entered."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:1887
37518 msgid ""
37519 "The payload is a string which contains the name of the function that we are "
37520 "entering (not including C<guestfs_> prefix)."
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:1890
37525 msgid ""
37526 "Note that libguestfs functions can call themselves, so you may see many "
37527 "events from a single call.  A few libguestfs functions do not generate this "
37528 "event."
37529 msgstr ""
37530
37531 #. type: =head3
37532 #: ../src/guestfs.pod:1898
37533 msgid "guestfs_set_event_callback"
37534 msgstr ""
37535
37536 #. type: verbatim
37537 #: ../src/guestfs.pod:1900
37538 #, no-wrap
37539 msgid ""
37540 " int guestfs_set_event_callback (guestfs_h *g,\n"
37541 "                                 guestfs_event_callback cb,\n"
37542 "                                 uint64_t event_bitmask,\n"
37543 "                                 int flags,\n"
37544 "                                 void *opaque);\n"
37545 "\n"
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:1906
37550 msgid ""
37551 "This function registers a callback (C<cb>) for all event classes in the "
37552 "C<event_bitmask>."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:1909
37557 msgid ""
37558 "For example, to register for all log message events, you could call this "
37559 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37560 "To register a single callback for all possible classes of events, use "
37561 "C<GUESTFS_EVENT_ALL>."
37562 msgstr ""
37563
37564 #. type: textblock
37565 #: ../src/guestfs.pod:1915
37566 msgid "C<flags> should always be passed as 0."
37567 msgstr ""
37568
37569 #. type: textblock
37570 #: ../src/guestfs.pod:1917
37571 msgid ""
37572 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37573 "it for any purpose."
37574 msgstr ""
37575
37576 #. type: textblock
37577 #: ../src/guestfs.pod:1920
37578 msgid ""
37579 "The return value is the event handle (an integer) which you can use to "
37580 "delete the callback (see below)."
37581 msgstr ""
37582
37583 #. type: textblock
37584 #: ../src/guestfs.pod:1923
37585 msgid ""
37586 "If there is an error, this function returns C<-1>, and sets the error in the "
37587 "handle in the usual way (see L</guestfs_last_error> etc.)"
37588 msgstr ""
37589
37590 #. type: textblock
37591 #: ../src/guestfs.pod:1926
37592 msgid ""
37593 "Callbacks remain in effect until they are deleted, or until the handle is "
37594 "closed."
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:1929
37599 msgid ""
37600 "In the case where multiple callbacks are registered for a particular event "
37601 "class, all of the callbacks are called.  The order in which multiple "
37602 "callbacks are called is not defined."
37603 msgstr ""
37604
37605 #. type: =head3
37606 #: ../src/guestfs.pod:1933
37607 msgid "guestfs_delete_event_callback"
37608 msgstr ""
37609
37610 #. type: verbatim
37611 #: ../src/guestfs.pod:1935
37612 #, no-wrap
37613 msgid ""
37614 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37615 "\n"
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../src/guestfs.pod:1937
37620 msgid ""
37621 "Delete a callback that was previously registered.  C<event_handle> should be "
37622 "the integer that was returned by a previous call to "
37623 "C<guestfs_set_event_callback> on the same handle."
37624 msgstr ""
37625
37626 #. type: =head3
37627 #: ../src/guestfs.pod:1941
37628 msgid "guestfs_event_callback"
37629 msgstr ""
37630
37631 #. type: verbatim
37632 #: ../src/guestfs.pod:1943
37633 #, no-wrap
37634 msgid ""
37635 " typedef void (*guestfs_event_callback) (\n"
37636 "                  guestfs_h *g,\n"
37637 "                  void *opaque,\n"
37638 "                  uint64_t event,\n"
37639 "                  int event_handle,\n"
37640 "                  int flags,\n"
37641 "                  const char *buf, size_t buf_len,\n"
37642 "                  const uint64_t *array, size_t array_len);\n"
37643 "\n"
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:1952
37648 msgid "This is the type of the event callback function that you have to provide."
37649 msgstr ""
37650
37651 #. type: textblock
37652 #: ../src/guestfs.pod:1955
37653 msgid ""
37654 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37655 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37656 "handle, and C<flags> which in the current API you should ignore."
37657 msgstr ""
37658
37659 #. type: textblock
37660 #: ../src/guestfs.pod:1959
37661 msgid ""
37662 "The remaining parameters contain the event payload (if any).  Each event may "
37663 "contain a payload, which usually relates to the event class, but for future "
37664 "proofing your code should be written to handle any payload for any event "
37665 "class."
37666 msgstr ""
37667
37668 #. type: textblock
37669 #: ../src/guestfs.pod:1964
37670 msgid ""
37671 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37672 "there is no message buffer).  Note that this message buffer can contain "
37673 "arbitrary 8 bit data, including NUL bytes."
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:1968
37678 msgid ""
37679 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37680 "moment this is only used for progress messages."
37681 msgstr ""
37682
37683 #. type: =head3
37684 #: ../src/guestfs.pod:1971
37685 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:1973
37690 msgid ""
37691 "One motivation for the generic event API was to allow GUI programs to "
37692 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37693 "unconditionally to C<stderr>."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:1977
37698 msgid ""
37699 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37700 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37701 "messages are not events; you must capture error messages separately)."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:1982
37706 msgid ""
37707 "Programs have to set up a callback to capture the classes of events of "
37708 "interest:"
37709 msgstr ""
37710
37711 #. type: verbatim
37712 #: ../src/guestfs.pod:1985
37713 #, no-wrap
37714 msgid ""
37715 " int eh =\n"
37716 "   guestfs_set_event_callback\n"
37717 "     (g, message_callback,\n"
37718 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37719 "      GUESTFS_EVENT_TRACE,\n"
37720 "      0, NULL) == -1)\n"
37721 " if (eh == -1) {\n"
37722 "   // handle error in the usual way\n"
37723 " }\n"
37724 "\n"
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:1995
37729 msgid ""
37730 "The callback can then direct messages to the appropriate place.  In this "
37731 "example, messages are directed to syslog:"
37732 msgstr ""
37733
37734 #. type: verbatim
37735 #: ../src/guestfs.pod:1998
37736 #, no-wrap
37737 msgid ""
37738 " static void\n"
37739 " message_callback (\n"
37740 "         guestfs_h *g,\n"
37741 "         void *opaque,\n"
37742 "         uint64_t event,\n"
37743 "         int event_handle,\n"
37744 "         int flags,\n"
37745 "         const char *buf, size_t buf_len,\n"
37746 "         const uint64_t *array, size_t array_len)\n"
37747 " {\n"
37748 "   const int priority = LOG_USER|LOG_INFO;\n"
37749 "   if (buf_len > 0)\n"
37750 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37751 " }\n"
37752 "\n"
37753 msgstr ""
37754
37755 #. type: =head1
37756 #: ../src/guestfs.pod:2013
37757 msgid "CANCELLING LONG TRANSFERS"
37758 msgstr ""
37759
37760 #. type: textblock
37761 #: ../src/guestfs.pod:2015
37762 msgid ""
37763 "Some operations can be cancelled by the caller while they are in progress.  "
37764 "Currently only operations that involve uploading or downloading data can be "
37765 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37766 "parameters in the generator)."
37767 msgstr ""
37768
37769 #. type: =head2
37770 #: ../src/guestfs.pod:2020
37771 msgid "guestfs_user_cancel"
37772 msgstr ""
37773
37774 #. type: verbatim
37775 #: ../src/guestfs.pod:2022
37776 #, no-wrap
37777 msgid ""
37778 " void guestfs_user_cancel (guestfs_h *g);\n"
37779 "\n"
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:2024
37784 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../src/guestfs.pod:2027
37789 msgid ""
37790 "Unlike most other libguestfs calls, this function is signal safe and thread "
37791 "safe.  You can call it from a signal handler or from another thread, without "
37792 "needing to do any locking."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:2031
37797 msgid ""
37798 "The transfer that was in progress (if there is one) will stop shortly "
37799 "afterwards, and will return an error.  The errno (see "
37800 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37801 "out if the operation was cancelled or failed because of another error."
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:2037
37806 msgid ""
37807 "No cleanup is performed: for example, if a file was being uploaded then "
37808 "after cancellation there may be a partially uploaded file.  It is the "
37809 "caller's responsibility to clean up if necessary."
37810 msgstr ""
37811
37812 #. type: textblock
37813 #: ../src/guestfs.pod:2041
37814 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:2043
37819 msgid ""
37820 "In an interactive text-based program, you might call it from a C<SIGINT> "
37821 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37822 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37823 "receive the C<^C> signal)."
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:2048
37828 msgid ""
37829 "In a graphical program, when the main thread is displaying a progress bar "
37830 "with a cancel button, wire up the cancel button to call this function."
37831 msgstr ""
37832
37833 #. type: =head1
37834 #: ../src/guestfs.pod:2052
37835 msgid "PRIVATE DATA AREA"
37836 msgstr ""
37837
37838 #. type: textblock
37839 #: ../src/guestfs.pod:2054
37840 msgid ""
37841 "You can attach named pieces of private data to the libguestfs handle, fetch "
37842 "them by name, and walk over them, for the lifetime of the handle.  This is "
37843 "called the private data area and is only available from the C API."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:2059
37848 msgid "To attach a named piece of data, use the following call:"
37849 msgstr ""
37850
37851 #. type: verbatim
37852 #: ../src/guestfs.pod:2061
37853 #, no-wrap
37854 msgid ""
37855 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37856 "\n"
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../src/guestfs.pod:2063
37861 msgid ""
37862 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37863 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37864 "overwritten."
37865 msgstr ""
37866
37867 #. type: textblock
37868 #: ../src/guestfs.pod:2067
37869 msgid ""
37870 "You can use any C<key> you want, but your key should I<not> start with an "
37871 "underscore character.  Keys beginning with an underscore character are "
37872 "reserved for internal libguestfs purposes (eg. for implementing language "
37873 "bindings).  It is recommended that you prefix the key with some unique "
37874 "string to avoid collisions with other users."
37875 msgstr ""
37876
37877 #. type: textblock
37878 #: ../src/guestfs.pod:2073
37879 msgid "To retrieve the pointer, use:"
37880 msgstr ""
37881
37882 #. type: verbatim
37883 #: ../src/guestfs.pod:2075
37884 #, no-wrap
37885 msgid ""
37886 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37887 "\n"
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:2077
37892 msgid ""
37893 "This function returns C<NULL> if either no data is found associated with "
37894 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37895 "C<NULL>."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:2081
37900 msgid ""
37901 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37902 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37903 "all.  In particular, libguestfs does I<not> try to free the data when the "
37904 "handle is closed.  If the data must be freed, then the caller must either "
37905 "free it before calling L</guestfs_close> or must set up a close callback to "
37906 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:2088
37911 msgid "To walk over all entries, use these two functions:"
37912 msgstr ""
37913
37914 #. type: verbatim
37915 #: ../src/guestfs.pod:2090
37916 #, no-wrap
37917 msgid ""
37918 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37919 "\n"
37920 msgstr ""
37921
37922 #. type: verbatim
37923 #: ../src/guestfs.pod:2092
37924 #, no-wrap
37925 msgid ""
37926 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37927 "\n"
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../src/guestfs.pod:2094
37932 msgid ""
37933 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37934 "not have any particular meaning -- keys are not returned in any defined "
37935 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37936 "corresponding data pointer is returned from the function.  C<NULL> is "
37937 "returned if there are no keys stored in the handle."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:2100
37942 msgid ""
37943 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37944 "value of this function is also C<NULL> is there are no further entries to "
37945 "return."
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:2104
37950 msgid "Notes about walking over entries:"
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:2110
37955 msgid "You must not call C<guestfs_set_private> while walking over the entries."
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:2115
37960 msgid ""
37961 "The handle maintains an internal iterator which is reset when you call "
37962 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37963 "call C<guestfs_set_private>."
37964 msgstr ""
37965
37966 #. type: textblock
37967 #: ../src/guestfs.pod:2121
37968 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37969 msgstr ""
37970
37971 #. type: verbatim
37972 #: ../src/guestfs.pod:2123
37973 #, no-wrap
37974 msgid ""
37975 " guestfs_set_private (g, key, NULL);\n"
37976 "\n"
37977 msgstr ""
37978
37979 #. type: textblock
37980 #: ../src/guestfs.pod:2125
37981 msgid "then that C<key> is not returned when walking."
37982 msgstr ""
37983
37984 #. type: textblock
37985 #: ../src/guestfs.pod:2129
37986 msgid ""
37987 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37988 "C<guestfs_next_private> or C<guestfs_set_private>."
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../src/guestfs.pod:2135
37993 msgid ""
37994 "The following example code shows how to print all keys and data pointers "
37995 "that are associated with the handle C<g>:"
37996 msgstr ""
37997
37998 #. type: verbatim
37999 #: ../src/guestfs.pod:2138
38000 #, no-wrap
38001 msgid ""
38002 " const char *key;\n"
38003 " void *data = guestfs_first_private (g, &key);\n"
38004 " while (data != NULL)\n"
38005 "   {\n"
38006 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38007 "     data = guestfs_next_private (g, &key);\n"
38008 "   }\n"
38009 "\n"
38010 msgstr ""
38011
38012 #. type: textblock
38013 #: ../src/guestfs.pod:2146
38014 msgid ""
38015 "More commonly you are only interested in keys that begin with an "
38016 "application-specific prefix C<foo_>.  Modify the loop like so:"
38017 msgstr ""
38018
38019 #. type: verbatim
38020 #: ../src/guestfs.pod:2149
38021 #, no-wrap
38022 msgid ""
38023 " const char *key;\n"
38024 " void *data = guestfs_first_private (g, &key);\n"
38025 " while (data != NULL)\n"
38026 "   {\n"
38027 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38028 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38029 "     data = guestfs_next_private (g, &key);\n"
38030 "   }\n"
38031 "\n"
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:2158
38036 msgid ""
38037 "If you need to modify keys while walking, then you have to jump back to the "
38038 "beginning of the loop.  For example, to delete all keys prefixed with "
38039 "C<foo_>:"
38040 msgstr ""
38041
38042 #. type: verbatim
38043 #: ../src/guestfs.pod:2162
38044 #, no-wrap
38045 msgid ""
38046 "  const char *key;\n"
38047 "  void *data;\n"
38048 " again:\n"
38049 "  data = guestfs_first_private (g, &key);\n"
38050 "  while (data != NULL)\n"
38051 "    {\n"
38052 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38053 "        {\n"
38054 "          guestfs_set_private (g, key, NULL);\n"
38055 "          /* note that 'key' pointer is now invalid, and so is\n"
38056 "             the internal iterator */\n"
38057 "          goto again;\n"
38058 "        }\n"
38059 "      data = guestfs_next_private (g, &key);\n"
38060 "    }\n"
38061 "\n"
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:2178
38066 msgid ""
38067 "Note that the above loop is guaranteed to terminate because the keys are "
38068 "being deleted, but other manipulations of keys within the loop might not "
38069 "terminate unless you also maintain an indication of which keys have been "
38070 "visited."
38071 msgstr ""
38072
38073 #. type: =head1
38074 #: ../src/guestfs.pod:2183
38075 msgid "SYSTEMTAP"
38076 msgstr ""
38077
38078 #. type: textblock
38079 #: ../src/guestfs.pod:2185
38080 msgid ""
38081 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38082 "true of any library, not just libguestfs.  However libguestfs also contains "
38083 "static markers to help in probing internal operations."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:2189
38088 msgid "You can list all the static markers by doing:"
38089 msgstr ""
38090
38091 #. type: verbatim
38092 #: ../src/guestfs.pod:2191
38093 #, no-wrap
38094 msgid ""
38095 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38096 "              .provider(\"guestfs\").mark(\"*\")'\n"
38097 "\n"
38098 msgstr ""
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:2194
38102 msgid ""
38103 "B<Note:> These static markers are I<not> part of the stable API and may "
38104 "change in future versions."
38105 msgstr ""
38106
38107 #. type: =head2
38108 #: ../src/guestfs.pod:2197
38109 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:2199
38114 msgid ""
38115 "This script contains examples of displaying both the static markers and some "
38116 "ordinary C entry points:"
38117 msgstr ""
38118
38119 #. type: verbatim
38120 #: ../src/guestfs.pod:2202
38121 #, no-wrap
38122 msgid ""
38123 " global last;\n"
38124 " \n"
38125 msgstr ""
38126
38127 #. type: verbatim
38128 #: ../src/guestfs.pod:2204
38129 #, no-wrap
38130 msgid ""
38131 " function display_time () {\n"
38132 "       now = gettimeofday_us ();\n"
38133 "       delta = 0;\n"
38134 "       if (last > 0)\n"
38135 "             delta = now - last;\n"
38136 "       last = now;\n"
38137 " \n"
38138 msgstr ""
38139
38140 #. type: verbatim
38141 #: ../src/guestfs.pod:2211
38142 #, no-wrap
38143 msgid ""
38144 "       printf (\"%d (+%d):\", now, delta);\n"
38145 " }\n"
38146 " \n"
38147 msgstr ""
38148
38149 #. type: verbatim
38150 #: ../src/guestfs.pod:2214
38151 #, no-wrap
38152 msgid ""
38153 " probe begin {\n"
38154 "       last = 0;\n"
38155 "       printf (\"ready\\n\");\n"
38156 " }\n"
38157 " \n"
38158 msgstr ""
38159
38160 #. type: verbatim
38161 #: ../src/guestfs.pod:2219
38162 #, no-wrap
38163 msgid ""
38164 " /* Display all calls to static markers. */\n"
38165 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38166 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38167 "       display_time();\n"
38168 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38169 " }\n"
38170 " \n"
38171 msgstr ""
38172
38173 #. type: verbatim
38174 #: ../src/guestfs.pod:2226
38175 #, no-wrap
38176 msgid ""
38177 " /* Display all calls to guestfs_mkfs* functions. */\n"
38178 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38179 "           .function(\"guestfs_mkfs*\") ? {\n"
38180 "       display_time();\n"
38181 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38182 " }\n"
38183 "\n"
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:2233
38188 msgid ""
38189 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38190 "program.  Note that you either have to be root, or you have to add yourself "
38191 "to several special stap groups.  Consult the systemtap documentation for "
38192 "more information."
38193 msgstr ""
38194
38195 #. type: verbatim
38196 #: ../src/guestfs.pod:2238
38197 #, no-wrap
38198 msgid ""
38199 " # stap /tmp/test.stap\n"
38200 " ready\n"
38201 "\n"
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:2241
38206 msgid "In another terminal, run a guestfish command such as this:"
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../src/guestfs.pod:2245
38211 msgid "In the first terminal, stap trace output similar to this is shown:"
38212 msgstr ""
38213
38214 #. type: verbatim
38215 #: ../src/guestfs.pod:2247
38216 #, no-wrap
38217 msgid ""
38218 " 1318248056692655 (+0):\tlaunch_start\n"
38219 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38220 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38221 " 1318248056838059 (+19774):     launch_run_qemu\n"
38222 " 1318248061071167 (+4233108):   launch_end\n"
38223 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
38224 "device=0x1024e60\n"
38225 "\n"
38226 msgstr ""
38227
38228 #. type: =end
38229 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
38230 msgid "html"
38231 msgstr ""
38232
38233 #. type: textblock
38234 #: ../src/guestfs.pod:2256
38235 msgid ""
38236 "<!-- old anchor for the next section --> <a "
38237 "name=\"state_machine_and_low_level_event_api\"/>"
38238 msgstr ""
38239
38240 #. type: =head1
38241 #: ../src/guestfs.pod:2261
38242 msgid "ARCHITECTURE"
38243 msgstr ""
38244
38245 #. type: textblock
38246 #: ../src/guestfs.pod:2263
38247 msgid ""
38248 "Internally, libguestfs is implemented by running an appliance (a special "
38249 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38250 "process of the main program."
38251 msgstr ""
38252
38253 #. type: verbatim
38254 #: ../src/guestfs.pod:2267
38255 #, no-wrap
38256 msgid ""
38257 "  ___________________\n"
38258 " /                   \\\n"
38259 " | main program      |\n"
38260 " |                   |\n"
38261 " |                   |           child process / appliance\n"
38262 " |                   |           __________________________\n"
38263 " |                   |          / qemu                     \\\n"
38264 " +-------------------+   RPC    |      +-----------------+ |\n"
38265 " | libguestfs     <--------------------> guestfsd        | |\n"
38266 " |                   |          |      +-----------------+ |\n"
38267 " \\___________________/          |      | Linux kernel    | |\n"
38268 "                                |      +--^--------------+ |\n"
38269 "                                \\_________|________________/\n"
38270 "                                          |\n"
38271 "                                   _______v______\n"
38272 "                                  /              \\\n"
38273 "                                  | Device or    |\n"
38274 "                                  | disk image   |\n"
38275 "                                  \\______________/\n"
38276 "\n"
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:2287
38281 msgid ""
38282 "The library, linked to the main program, creates the child process and hence "
38283 "the appliance in the L</guestfs_launch> function."
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:2290
38288 msgid ""
38289 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38290 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38291 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38292 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38293 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38294 "attached to the qemu process which translates device access by the "
38295 "appliance's Linux kernel into accesses to the image."
38296 msgstr ""
38297
38298 #. type: textblock
38299 #: ../src/guestfs.pod:2299
38300 msgid ""
38301 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38302 "Although the disk image you are attached to might also be used by some "
38303 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38304 "care if both libguestfs's qemu process and your virtual machine are trying "
38305 "to update the disk image at the same time, since these usually results in "
38306 "massive disk corruption)."
38307 msgstr ""
38308
38309 #. type: =head1
38310 #: ../src/guestfs.pod:2306
38311 msgid "STATE MACHINE"
38312 msgstr ""
38313
38314 #. type: textblock
38315 #: ../src/guestfs.pod:2308
38316 msgid "libguestfs uses a state machine to model the child process:"
38317 msgstr ""
38318
38319 #. type: verbatim
38320 #: ../src/guestfs.pod:2310
38321 #, no-wrap
38322 msgid ""
38323 "                         |\n"
38324 "                    guestfs_create\n"
38325 "                         |\n"
38326 "                         |\n"
38327 "                     ____V_____\n"
38328 "                    /          \\\n"
38329 "                    |  CONFIG  |\n"
38330 "                    \\__________/\n"
38331 "                     ^ ^   ^  \\\n"
38332 "                    /  |    \\  \\ guestfs_launch\n"
38333 "                   /   |    _\\__V______\n"
38334 "                  /    |   /           \\\n"
38335 "                 /     |   | LAUNCHING |\n"
38336 "                /      |   \\___________/\n"
38337 "               /       |       /\n"
38338 "              /        |  guestfs_launch\n"
38339 "             /         |     /\n"
38340 "    ______  /        __|____V\n"
38341 "   /      \\ ------> /        \\\n"
38342 "   | BUSY |         | READY  |\n"
38343 "   \\______/ <------ \\________/\n"
38344 "\n"
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../src/guestfs.pod:2332
38349 msgid ""
38350 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38351 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38352 "(3) alternating between READY and BUSY as commands are issued to, and "
38353 "carried out by, the child process."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:2337
38358 msgid ""
38359 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38360 "asynchronously at any time (eg. due to some internal error), and that causes "
38361 "the state to transition back to CONFIG."
38362 msgstr ""
38363
38364 #. type: textblock
38365 #: ../src/guestfs.pod:2341
38366 msgid ""
38367 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38368 "issued when in the CONFIG state."
38369 msgstr ""
38370
38371 #. type: textblock
38372 #: ../src/guestfs.pod:2344
38373 msgid ""
38374 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38375 "L</guestfs_launch> blocks until the child process is READY to accept "
38376 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38377 "moves the state from CONFIG to LAUNCHING while it is running."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:2350
38382 msgid ""
38383 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38384 "state.  These API calls block waiting for the command to be carried out "
38385 "(ie. the state to transition to BUSY and then back to READY).  There are no "
38386 "non-blocking versions, and no way to issue more than one command per handle "
38387 "at the same time."
38388 msgstr ""
38389
38390 #. type: textblock
38391 #: ../src/guestfs.pod:2356
38392 msgid ""
38393 "Finally, the child process sends asynchronous messages back to the main "
38394 "program, such as kernel log messages.  You can register a callback to "
38395 "receive these messages."
38396 msgstr ""
38397
38398 #. type: =head1
38399 #: ../src/guestfs.pod:2360
38400 msgid "INTERNALS"
38401 msgstr ""
38402
38403 #. type: =head2
38404 #: ../src/guestfs.pod:2362
38405 msgid "APPLIANCE BOOT PROCESS"
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:2364
38410 msgid ""
38411 "This process has evolved and continues to evolve.  The description here "
38412 "corresponds only to the current version of libguestfs and is provided for "
38413 "information only."
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:2368
38418 msgid ""
38419 "In order to follow the stages involved below, enable libguestfs debugging "
38420 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38421 msgstr ""
38422
38423 #. type: =item
38424 #: ../src/guestfs.pod:2373
38425 msgid "Create the appliance"
38426 msgstr ""
38427
38428 #. type: textblock
38429 #: ../src/guestfs.pod:2375
38430 msgid ""
38431 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38432 "initrd and the appliance."
38433 msgstr ""
38434
38435 #. type: textblock
38436 #: ../src/guestfs.pod:2378
38437 msgid ""
38438 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38439 "directory if C<TMPDIR> is set)."
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:2381
38444 msgid ""
38445 "For a complete description of how the appliance is created and cached, read "
38446 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38447 msgstr ""
38448
38449 #. type: =item
38450 #: ../src/guestfs.pod:2385
38451 msgid "Start qemu and boot the kernel"
38452 msgstr ""
38453
38454 #. type: textblock
38455 #: ../src/guestfs.pod:2387
38456 msgid "qemu is invoked to boot the kernel."
38457 msgstr ""
38458
38459 #. type: =item
38460 #: ../src/guestfs.pod:2389
38461 msgid "Run the initrd"
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../src/guestfs.pod:2391
38466 msgid ""
38467 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38468 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38469 "order that the appliance itself can be mounted and started."
38470 msgstr ""
38471
38472 #. type: textblock
38473 #: ../src/guestfs.pod:2395
38474 msgid ""
38475 "The initrd is a cpio archive called "
38476 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../src/guestfs.pod:2398
38481 msgid ""
38482 "When the initrd has started you will see messages showing that kernel "
38483 "modules are being loaded, similar to this:"
38484 msgstr ""
38485
38486 #. type: verbatim
38487 #: ../src/guestfs.pod:2401
38488 #, no-wrap
38489 msgid ""
38490 " febootstrap: ext2 mini initrd starting up\n"
38491 " febootstrap: mounting /sys\n"
38492 " febootstrap: internal insmod libcrc32c.ko\n"
38493 " febootstrap: internal insmod crc32c-intel.ko\n"
38494 "\n"
38495 msgstr ""
38496
38497 #. type: =item
38498 #: ../src/guestfs.pod:2406
38499 msgid "Find and mount the appliance device"
38500 msgstr ""
38501
38502 #. type: textblock
38503 #: ../src/guestfs.pod:2408
38504 msgid ""
38505 "The appliance is a sparse file containing an ext2 filesystem which contains "
38506 "a familiar (although reduced in size) Linux operating system.  It would "
38507 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2412
38512 msgid ""
38513 "The regular disks being inspected by libguestfs are the first devices "
38514 "exposed by qemu (eg. as C</dev/vda>)."
38515 msgstr ""
38516
38517 #. type: textblock
38518 #: ../src/guestfs.pod:2415
38519 msgid ""
38520 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38521 "there was only one regular disk)."
38522 msgstr ""
38523
38524 #. type: textblock
38525 #: ../src/guestfs.pod:2418
38526 msgid ""
38527 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38528 "and switch root into the appliance, and run C</init> from the appliance."
38529 msgstr ""
38530
38531 #. type: textblock
38532 #: ../src/guestfs.pod:2422
38533 msgid "If this works successfully you will see messages such as:"
38534 msgstr ""
38535
38536 #. type: verbatim
38537 #: ../src/guestfs.pod:2424
38538 #, no-wrap
38539 msgid ""
38540 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38541 " febootstrap: creating /dev/root as block special 252:16\n"
38542 " febootstrap: mounting new root on /root\n"
38543 " febootstrap: chroot\n"
38544 " Starting /init script ...\n"
38545 "\n"
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:2430
38550 msgid ""
38551 "Note that C<Starting /init script ...> indicates that the appliance's init "
38552 "script is now running."
38553 msgstr ""
38554
38555 #. type: =item
38556 #: ../src/guestfs.pod:2433
38557 msgid "Initialize the appliance"
38558 msgstr ""
38559
38560 #. type: textblock
38561 #: ../src/guestfs.pod:2435
38562 msgid ""
38563 "The appliance itself now initializes itself.  This involves starting certain "
38564 "processes like C<udev>, possibly printing some debug information, and "
38565 "finally running the daemon (C<guestfsd>)."
38566 msgstr ""
38567
38568 #. type: =item
38569 #: ../src/guestfs.pod:2439
38570 msgid "The daemon"
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2441
38575 msgid ""
38576 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38577 "should see:"
38578 msgstr ""
38579
38580 #. type: verbatim
38581 #: ../src/guestfs.pod:2444
38582 #, no-wrap
38583 msgid ""
38584 " verbose daemon enabled\n"
38585 "\n"
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:2446
38590 msgid ""
38591 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38592 "connected on the other end to the library."
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../src/guestfs.pod:2449
38597 msgid ""
38598 "The daemon connects to this port (and hence to the library) and sends a four "
38599 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38600 "protocol (see below)."
38601 msgstr ""
38602
38603 #. type: =head2
38604 #: ../src/guestfs.pod:2455
38605 msgid "COMMUNICATION PROTOCOL"
38606 msgstr ""
38607
38608 #. type: textblock
38609 #: ../src/guestfs.pod:2457
38610 msgid ""
38611 "Don't rely on using this protocol directly.  This section documents how it "
38612 "currently works, but it may change at any time."
38613 msgstr ""
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:2460
38617 msgid ""
38618 "The protocol used to talk between the library and the daemon running inside "
38619 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38620 "1014, RFC 1832, RFC 4506)."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2464
38625 msgid ""
38626 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38627 "this file is automatically generated)."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:2467
38632 msgid ""
38633 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38634 "and C<FileOut> parameters, which are handled with very simple request/reply "
38635 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38636 "parameters, which use the same request and reply messages, but they may also "
38637 "be followed by files sent using a chunked encoding."
38638 msgstr ""
38639
38640 #. type: =head3
38641 #: ../src/guestfs.pod:2474
38642 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38643 msgstr ""
38644
38645 #. type: textblock
38646 #: ../src/guestfs.pod:2476
38647 msgid "For ordinary functions, the request message is:"
38648 msgstr ""
38649
38650 #. type: verbatim
38651 #: ../src/guestfs.pod:2478
38652 #, no-wrap
38653 msgid ""
38654 " total length (header + arguments,\n"
38655 "      but not including the length word itself)\n"
38656 " struct guestfs_message_header (encoded as XDR)\n"
38657 " struct guestfs_<foo>_args (encoded as XDR)\n"
38658 "\n"
38659 msgstr ""
38660
38661 #. type: textblock
38662 #: ../src/guestfs.pod:2483
38663 msgid ""
38664 "The total length field allows the daemon to allocate a fixed size buffer "
38665 "into which it slurps the rest of the message.  As a result, the total length "
38666 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38667 "effective size of any request is limited to somewhere under this size."
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:2489
38672 msgid ""
38673 "Note also that many functions don't take any arguments, in which case the "
38674 "C<guestfs_I<foo>_args> is completely omitted."
38675 msgstr ""
38676
38677 #. type: textblock
38678 #: ../src/guestfs.pod:2492
38679 msgid ""
38680 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38681 "receiver knows what type of args structure to expect, or none at all."
38682 msgstr ""
38683
38684 #. type: textblock
38685 #: ../src/guestfs.pod:2496
38686 msgid ""
38687 "For functions that take optional arguments, the optional arguments are "
38688 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38689 "arguments.  A bitmask in the header indicates which optional arguments are "
38690 "meaningful.  The bitmask is also checked to see if it contains bits set "
38691 "which the daemon does not know about (eg. if more optional arguments were "
38692 "added in a later version of the library), and this causes the call to be "
38693 "rejected."
38694 msgstr ""
38695
38696 #. type: textblock
38697 #: ../src/guestfs.pod:2504
38698 msgid "The reply message for ordinary functions is:"
38699 msgstr ""
38700
38701 #. type: verbatim
38702 #: ../src/guestfs.pod:2506
38703 #, no-wrap
38704 msgid ""
38705 " total length (header + ret,\n"
38706 "      but not including the length word itself)\n"
38707 " struct guestfs_message_header (encoded as XDR)\n"
38708 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38709 "\n"
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2511
38714 msgid ""
38715 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38716 "functions that return no formal return values."
38717 msgstr ""
38718
38719 #. type: textblock
38720 #: ../src/guestfs.pod:2514
38721 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2517
38726 msgid ""
38727 "In the case of an error, a flag is set in the header, and the reply message "
38728 "is slightly changed:"
38729 msgstr ""
38730
38731 #. type: verbatim
38732 #: ../src/guestfs.pod:2520
38733 #, no-wrap
38734 msgid ""
38735 " total length (header + error,\n"
38736 "      but not including the length word itself)\n"
38737 " struct guestfs_message_header (encoded as XDR)\n"
38738 " struct guestfs_message_error (encoded as XDR)\n"
38739 "\n"
38740 msgstr ""
38741
38742 #. type: textblock
38743 #: ../src/guestfs.pod:2525
38744 msgid ""
38745 "The C<guestfs_message_error> structure contains the error message as a "
38746 "string."
38747 msgstr ""
38748
38749 #. type: =head3
38750 #: ../src/guestfs.pod:2528
38751 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../src/guestfs.pod:2530
38756 msgid ""
38757 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38758 "The normal request message is sent (see above).  However this is followed by "
38759 "a sequence of file chunks."
38760 msgstr ""
38761
38762 #. type: verbatim
38763 #: ../src/guestfs.pod:2534
38764 #, no-wrap
38765 msgid ""
38766 " total length (header + arguments,\n"
38767 "      but not including the length word itself,\n"
38768 "      and not including the chunks)\n"
38769 " struct guestfs_message_header (encoded as XDR)\n"
38770 " struct guestfs_<foo>_args (encoded as XDR)\n"
38771 " sequence of chunks for FileIn param #0\n"
38772 " sequence of chunks for FileIn param #1 etc.\n"
38773 "\n"
38774 msgstr ""
38775
38776 #. type: textblock
38777 #: ../src/guestfs.pod:2542
38778 msgid "The \"sequence of chunks\" is:"
38779 msgstr ""
38780
38781 #. type: verbatim
38782 #: ../src/guestfs.pod:2544
38783 #, no-wrap
38784 msgid ""
38785 " length of chunk (not including length word itself)\n"
38786 " struct guestfs_chunk (encoded as XDR)\n"
38787 " length of chunk\n"
38788 " struct guestfs_chunk (encoded as XDR)\n"
38789 "   ...\n"
38790 " length of chunk\n"
38791 " struct guestfs_chunk (with data.data_len == 0)\n"
38792 "\n"
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:2552
38797 msgid ""
38798 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38799 "is set in the final chunk to indicate either successful completion or early "
38800 "cancellation."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:2556
38805 msgid ""
38806 "At time of writing there are no functions that have more than one FileIn "
38807 "parameter.  However this is (theoretically) supported, by sending the "
38808 "sequence of chunks for each FileIn parameter one after another (from left to "
38809 "right)."
38810 msgstr ""
38811
38812 #. type: textblock
38813 #: ../src/guestfs.pod:2561
38814 msgid ""
38815 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38816 "transfer.  The library does this by sending a chunk with a special flag set "
38817 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38818 "RPC, does I<not> send any reply, and goes back to reading the next request."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../src/guestfs.pod:2567
38823 msgid ""
38824 "The daemon may also cancel.  It does this by writing a special word "
38825 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38826 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38827 "cancel chunk).  The special word is chosen so that even if cancellation "
38828 "happens right at the end of the transfer (after the library has finished "
38829 "writing and has started listening for the reply), the \"spurious\" cancel "
38830 "flag will not be confused with the reply message."
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../src/guestfs.pod:2576
38835 msgid ""
38836 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38837 "limit), and also files where the size is not known in advance (eg. from "
38838 "pipes or sockets).  However the chunks are rather small "
38839 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38840 "to keep much in memory."
38841 msgstr ""
38842
38843 #. type: =head3
38844 #: ../src/guestfs.pod:2582
38845 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../src/guestfs.pod:2584
38850 msgid ""
38851 "The protocol for FileOut parameters is exactly the same as for FileIn "
38852 "parameters, but with the roles of daemon and library reversed."
38853 msgstr ""
38854
38855 #. type: verbatim
38856 #: ../src/guestfs.pod:2587
38857 #, no-wrap
38858 msgid ""
38859 " total length (header + ret,\n"
38860 "      but not including the length word itself,\n"
38861 "      and not including the chunks)\n"
38862 " struct guestfs_message_header (encoded as XDR)\n"
38863 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38864 " sequence of chunks for FileOut param #0\n"
38865 " sequence of chunks for FileOut param #1 etc.\n"
38866 "\n"
38867 msgstr ""
38868
38869 #. type: =head3
38870 #: ../src/guestfs.pod:2595
38871 msgid "INITIAL MESSAGE"
38872 msgstr ""
38873
38874 #. type: textblock
38875 #: ../src/guestfs.pod:2597
38876 msgid ""
38877 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38878 "which indicates that the guest and daemon is alive.  This is what "
38879 "L</guestfs_launch> waits for."
38880 msgstr ""
38881
38882 #. type: =head3
38883 #: ../src/guestfs.pod:2601
38884 msgid "PROGRESS NOTIFICATION MESSAGES"
38885 msgstr ""
38886
38887 #. type: textblock
38888 #: ../src/guestfs.pod:2603
38889 msgid ""
38890 "The daemon may send progress notification messages at any time.  These are "
38891 "distinguished by the normal length word being replaced by "
38892 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:2607
38897 msgid ""
38898 "The library turns them into progress callbacks (see "
38899 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
38900 "them if not."
38901 msgstr ""
38902
38903 #. type: textblock
38904 #: ../src/guestfs.pod:2611
38905 msgid ""
38906 "The daemon self-limits the frequency of progress messages it sends (see "
38907 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38908 "messages."
38909 msgstr ""
38910
38911 #. type: =head1
38912 #: ../src/guestfs.pod:2615
38913 msgid "LIBGUESTFS VERSION NUMBERS"
38914 msgstr ""
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:2617
38918 msgid ""
38919 "Since April 2010, libguestfs has started to make separate development and "
38920 "stable releases, along with corresponding branches in our git repository.  "
38921 "These separate releases can be identified by version number:"
38922 msgstr ""
38923
38924 #. type: verbatim
38925 #: ../src/guestfs.pod:2622
38926 #, no-wrap
38927 msgid ""
38928 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38929 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38930 "       |\n"
38931 "       v\n"
38932 " 1  .  3  .  5\n"
38933 " ^           ^\n"
38934 " |           |\n"
38935 " |           `-------- sub-version\n"
38936 " |\n"
38937 " `------ always '1' because we don't change the ABI\n"
38938 "\n"
38939 msgstr ""
38940
38941 #. type: textblock
38942 #: ../src/guestfs.pod:2633
38943 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38944 msgstr ""
38945
38946 #. type: textblock
38947 #: ../src/guestfs.pod:2635
38948 msgid ""
38949 "As time passes we cherry pick fixes from the development branch and backport "
38950 "those into the stable branch, the effect being that the stable branch should "
38951 "get more stable and less buggy over time.  So the stable releases are ideal "
38952 "for people who don't need new features but would just like the software to "
38953 "work."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:2641
38958 msgid "Our criteria for backporting changes are:"
38959 msgstr ""
38960
38961 #. type: textblock
38962 #: ../src/guestfs.pod:2647
38963 msgid ""
38964 "Documentation changes which don't affect any code are backported unless the "
38965 "documentation refers to a future feature which is not in stable."
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:2653
38970 msgid ""
38971 "Bug fixes which are not controversial, fix obvious problems, and have been "
38972 "well tested are backported."
38973 msgstr ""
38974
38975 #. type: textblock
38976 #: ../src/guestfs.pod:2658
38977 msgid ""
38978 "Simple rearrangements of code which shouldn't affect how it works get "
38979 "backported.  This is so that the code in the two branches doesn't get too "
38980 "far out of step, allowing us to backport future fixes more easily."
38981 msgstr ""
38982
38983 #. type: textblock
38984 #: ../src/guestfs.pod:2664
38985 msgid ""
38986 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38987 "exceptional case: the new feature is required in order to implement an "
38988 "important bug fix."
38989 msgstr ""
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:2670
38993 msgid ""
38994 "A new stable branch starts when we think the new features in development are "
38995 "substantial and compelling enough over the current stable branch to warrant "
38996 "it.  When that happens we create new stable and development versions 1.N.0 "
38997 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38998 "stable at this point, but by backporting fixes from development, that branch "
38999 "will stabilize over time."
39000 msgstr ""
39001
39002 #. type: =head1
39003 #: ../src/guestfs.pod:2678
39004 msgid "EXTENDING LIBGUESTFS"
39005 msgstr ""
39006
39007 #. type: =head2
39008 #: ../src/guestfs.pod:2680
39009 msgid "ADDING A NEW API ACTION"
39010 msgstr ""
39011
39012 #. type: textblock
39013 #: ../src/guestfs.pod:2682
39014 msgid ""
39015 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39016 "documentation) are generated, and this makes it easy to extend the "
39017 "libguestfs API."
39018 msgstr ""
39019
39020 #. type: textblock
39021 #: ../src/guestfs.pod:2686
39022 msgid "To add a new API action there are two changes:"
39023 msgstr ""
39024
39025 #. type: textblock
39026 #: ../src/guestfs.pod:2692
39027 msgid ""
39028 "You need to add a description of the call (name, parameters, return type, "
39029 "tests, documentation) to C<generator/generator_actions.ml>."
39030 msgstr ""
39031
39032 #. type: textblock
39033 #: ../src/guestfs.pod:2695
39034 msgid ""
39035 "There are two sorts of API action, depending on whether the call goes "
39036 "through to the daemon in the appliance, or is serviced entirely by the "
39037 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39038 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39039 "an example of the latter, since a trace flag is maintained in the handle and "
39040 "all tracing is done on the library side."
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../src/guestfs.pod:2703
39045 msgid ""
39046 "Most new actions are of the first type, and get added to the "
39047 "C<daemon_functions> list.  Each function has a unique procedure number used "
39048 "in the RPC protocol which is assigned to that action when we publish "
39049 "libguestfs and cannot be reused.  Take the latest procedure number and "
39050 "increment it."
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:2709
39055 msgid ""
39056 "For library-only actions of the second type, add to the "
39057 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39058 "library and do not travel over the RPC mechanism to the daemon, these "
39059 "functions do not need a procedure number, and so the procedure number is set "
39060 "to C<-1>."
39061 msgstr ""
39062
39063 #. type: textblock
39064 #: ../src/guestfs.pod:2717
39065 msgid "Implement the action (in C):"
39066 msgstr ""
39067
39068 #. type: textblock
39069 #: ../src/guestfs.pod:2719
39070 msgid ""
39071 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39072 "C<daemon/> directory."
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../src/guestfs.pod:2722
39077 msgid ""
39078 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39079 "(note: double underscore) in the C<src/> directory."
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:2725
39084 msgid "In either case, use another function as an example of what to do."
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../src/guestfs.pod:2729
39089 msgid "After making these changes, use C<make> to compile."
39090 msgstr ""
39091
39092 #. type: textblock
39093 #: ../src/guestfs.pod:2731
39094 msgid ""
39095 "Note that you don't need to implement the RPC, language bindings, manual "
39096 "pages or anything else.  It's all automatically generated from the OCaml "
39097 "description."
39098 msgstr ""
39099
39100 #. type: =head2
39101 #: ../src/guestfs.pod:2735
39102 msgid "ADDING TESTS FOR AN API ACTION"
39103 msgstr ""
39104
39105 #. type: textblock
39106 #: ../src/guestfs.pod:2737
39107 msgid ""
39108 "You can supply zero or as many tests as you want per API call.  The tests "
39109 "can either be added as part of the API description "
39110 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
39111 "drop a script into C<regressions/>.  Note that adding a script to "
39112 "C<regressions/> is slower, so if possible use the first method."
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../src/guestfs.pod:2743
39117 msgid ""
39118 "The following describes the test environment used when you add an API test "
39119 "in C<generator_actions.ml>."
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:2746
39124 msgid "The test environment has 4 block devices:"
39125 msgstr ""
39126
39127 #. type: =item
39128 #: ../src/guestfs.pod:2750
39129 msgid "C</dev/sda> 500MB"
39130 msgstr ""
39131
39132 #. type: textblock
39133 #: ../src/guestfs.pod:2752
39134 msgid "General block device for testing."
39135 msgstr ""
39136
39137 #. type: =item
39138 #: ../src/guestfs.pod:2754
39139 msgid "C</dev/sdb> 50MB"
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:2756
39144 msgid ""
39145 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39146 "operations."
39147 msgstr ""
39148
39149 #. type: =item
39150 #: ../src/guestfs.pod:2759
39151 msgid "C</dev/sdc> 10MB"
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../src/guestfs.pod:2761
39156 msgid "Used in a few tests where two block devices are needed."
39157 msgstr ""
39158
39159 #. type: =item
39160 #: ../src/guestfs.pod:2763
39161 msgid "C</dev/sdd>"
39162 msgstr ""
39163
39164 #. type: textblock
39165 #: ../src/guestfs.pod:2765
39166 msgid "ISO with fixed content (see C<images/test.iso>)."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:2769
39171 msgid ""
39172 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39173 "appliance and block devices are reused between tests.  So don't try testing "
39174 "L</guestfs_kill_subprocess> :-x"
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:2773
39179 msgid ""
39180 "Each test starts with an initial scenario, selected using one of the "
39181 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39182 "initialize the disks mentioned above in a particular way as documented in "
39183 "C<generator_types.ml>.  You should not assume anything about the previous "
39184 "contents of other disks that are not initialized."
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:2779
39189 msgid ""
39190 "You can add a prerequisite clause to any individual test.  This is a "
39191 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
39192 "if testing a command which might not work on all variations of libguestfs "
39193 "builds.  A test that has prerequisite of C<Always> means to run "
39194 "unconditionally."
39195 msgstr ""
39196
39197 #. type: textblock
39198 #: ../src/guestfs.pod:2785
39199 msgid ""
39200 "In addition, packagers can skip individual tests by setting environment "
39201 "variables before running C<make check>."
39202 msgstr ""
39203
39204 #. type: verbatim
39205 #: ../src/guestfs.pod:2788
39206 #, no-wrap
39207 msgid ""
39208 " SKIP_TEST_<CMD>_<NUM>=1\n"
39209 "\n"
39210 msgstr ""
39211
39212 #. type: textblock
39213 #: ../src/guestfs.pod:2790
39214 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39215 msgstr ""
39216
39217 #. type: verbatim
39218 #: ../src/guestfs.pod:2794
39219 #, no-wrap
39220 msgid ""
39221 " SKIP_TEST_<CMD>=1\n"
39222 "\n"
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:2796
39227 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:2798
39232 msgid "Packagers can run only certain tests by setting for example:"
39233 msgstr ""
39234
39235 #. type: verbatim
39236 #: ../src/guestfs.pod:2800
39237 #, no-wrap
39238 msgid ""
39239 " TEST_ONLY=\"vfs_type zerofree\"\n"
39240 "\n"
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:2802
39245 msgid ""
39246 "See C<capitests/tests.c> for more details of how these environment variables "
39247 "work."
39248 msgstr ""
39249
39250 #. type: =head2
39251 #: ../src/guestfs.pod:2805
39252 msgid "DEBUGGING NEW API ACTIONS"
39253 msgstr ""
39254
39255 #. type: textblock
39256 #: ../src/guestfs.pod:2807
39257 msgid "Test new actions work before submitting them."
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../src/guestfs.pod:2809
39262 msgid "You can use guestfish to try out new commands."
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../src/guestfs.pod:2811
39267 msgid ""
39268 "Debugging the daemon is a problem because it runs inside a minimal "
39269 "environment.  However you can fprintf messages in the daemon to stderr, and "
39270 "they will show up if you use C<guestfish -v>."
39271 msgstr ""
39272
39273 #. type: =head2
39274 #: ../src/guestfs.pod:2815
39275 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:2817
39280 msgid ""
39281 "Our C source code generally adheres to some basic code-formatting "
39282 "conventions.  The existing code base is not totally consistent on this "
39283 "front, but we do prefer that contributed code be formatted similarly.  In "
39284 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39285 "indentation level, and other than that, follow the K&R style."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:2823
39290 msgid ""
39291 "If you use Emacs, add the following to one of one of your start-up files "
39292 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
39293 msgstr ""
39294
39295 #. type: verbatim
39296 #: ../src/guestfs.pod:2826
39297 #, no-wrap
39298 msgid ""
39299 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39300 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39301 " (add-hook 'find-file-hook\n"
39302 "     '(lambda () (if (and buffer-file-name\n"
39303 "                          (string-match \"/libguestfs\\\\>\"\n"
39304 "                              (buffer-file-name))\n"
39305 "                          (not (string-equal mode-name \"Change Log\"))\n"
39306 "                          (not (string-equal mode-name \"Makefile\")))\n"
39307 "                     (setq indent-tabs-mode nil))))\n"
39308 " \n"
39309 msgstr ""
39310
39311 #. type: verbatim
39312 #: ../src/guestfs.pod:2836
39313 #, no-wrap
39314 msgid ""
39315 " ;;; When editing C sources in libguestfs, use this style.\n"
39316 " (defun libguestfs-c-mode ()\n"
39317 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39318 "   (interactive)\n"
39319 "   (c-set-style \"K&R\")\n"
39320 "   (setq c-indent-level 2)\n"
39321 "   (setq c-basic-offset 2))\n"
39322 " (add-hook 'c-mode-hook\n"
39323 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39324 "                               (buffer-file-name))\n"
39325 "                           (libguestfs-c-mode))))\n"
39326 "\n"
39327 msgstr ""
39328
39329 #. type: textblock
39330 #: ../src/guestfs.pod:2848
39331 msgid "Enable warnings when compiling (and fix any problems this finds):"
39332 msgstr ""
39333
39334 #. type: verbatim
39335 #: ../src/guestfs.pod:2851
39336 #, no-wrap
39337 msgid ""
39338 " ./configure --enable-gcc-warnings\n"
39339 "\n"
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2853
39344 msgid "Useful targets are:"
39345 msgstr ""
39346
39347 #. type: verbatim
39348 #: ../src/guestfs.pod:2855
39349 #, no-wrap
39350 msgid ""
39351 " make syntax-check  # checks the syntax of the C code\n"
39352 " make check         # runs the test suite\n"
39353 "\n"
39354 msgstr ""
39355
39356 #. type: =head2
39357 #: ../src/guestfs.pod:2858
39358 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../src/guestfs.pod:2860
39363 msgid ""
39364 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39365 "which are used to do shell quoting."
39366 msgstr ""
39367
39368 #. type: =item
39369 #: ../src/guestfs.pod:2865
39370 msgid "%Q"
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:2867
39375 msgid ""
39376 "Simple shell quoted string.  Any spaces or other shell characters are "
39377 "escaped for you."
39378 msgstr ""
39379
39380 #. type: =item
39381 #: ../src/guestfs.pod:2870
39382 msgid "%R"
39383 msgstr ""
39384
39385 #. type: textblock
39386 #: ../src/guestfs.pod:2872
39387 msgid ""
39388 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39389 "the sysroot."
39390 msgstr ""
39391
39392 #. type: verbatim
39393 #: ../src/guestfs.pod:2879
39394 #, no-wrap
39395 msgid ""
39396 " asprintf (&cmd, \"cat %R\", path);\n"
39397 "\n"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:2881
39402 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39403 msgstr ""
39404
39405 #. type: textblock
39406 #: ../src/guestfs.pod:2883
39407 msgid ""
39408 "I<Note:> Do I<not> use these when you are passing parameters to the "
39409 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
39410 "because they are not passed via the shell (instead, straight to exec).  You "
39411 "probably want to use the C<sysroot_path()> function however."
39412 msgstr ""
39413
39414 #. type: =head2
39415 #: ../src/guestfs.pod:2889
39416 msgid "SUBMITTING YOUR NEW API ACTIONS"
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2891
39421 msgid ""
39422 "Submit patches to the mailing list: "
39423 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
39424 "L<rjones@redhat.com>."
39425 msgstr ""
39426
39427 #. type: =head2
39428 #: ../src/guestfs.pod:2895
39429 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../src/guestfs.pod:2897
39434 msgid "We support i18n (gettext anyhow) in the library."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2899
39439 msgid ""
39440 "However many messages come from the daemon, and we don't translate those at "
39441 "the moment.  One reason is that the appliance generally has all locale files "
39442 "removed from it, because they take up a lot of space.  So we'd have to readd "
39443 "some of those, as well as copying our PO files into the appliance."
39444 msgstr ""
39445
39446 #. type: textblock
39447 #: ../src/guestfs.pod:2905
39448 msgid ""
39449 "Debugging messages are never translated, since they are intended for the "
39450 "programmers."
39451 msgstr ""
39452
39453 #. type: =head2
39454 #: ../src/guestfs.pod:2908
39455 msgid "SOURCE CODE SUBDIRECTORIES"
39456 msgstr ""
39457
39458 #. type: =item
39459 #: ../src/guestfs.pod:2912
39460 msgid "C<align>"
39461 msgstr ""
39462
39463 #. type: textblock
39464 #: ../src/guestfs.pod:2914
39465 msgid "L<virt-alignment-scan(1)> command and documentation."
39466 msgstr ""
39467
39468 #. type: textblock
39469 #: ../src/guestfs.pod:2918
39470 msgid "The libguestfs appliance, build scripts and so on."
39471 msgstr ""
39472
39473 #. type: =item
39474 #: ../src/guestfs.pod:2920
39475 msgid "C<capitests>"
39476 msgstr ""
39477
39478 #. type: textblock
39479 #: ../src/guestfs.pod:2922
39480 msgid "Automated tests of the C API."
39481 msgstr ""
39482
39483 #. type: =item
39484 #: ../src/guestfs.pod:2924
39485 msgid "C<cat>"
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../src/guestfs.pod:2926
39490 msgid ""
39491 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39492 "documentation."
39493 msgstr ""
39494
39495 #. type: =item
39496 #: ../src/guestfs.pod:2929
39497 msgid "C<caution>"
39498 msgstr ""
39499
39500 #. type: textblock
39501 #: ../src/guestfs.pod:2931
39502 msgid ""
39503 "Safety and liveness tests of components that libguestfs depends upon (not of "
39504 "libguestfs itself).  Mainly this is for qemu and the kernel."
39505 msgstr ""
39506
39507 #. type: =item
39508 #: ../src/guestfs.pod:2934
39509 msgid "C<clone>"
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../src/guestfs.pod:2936
39514 msgid ""
39515 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39516 "command and documentation."
39517 msgstr ""
39518
39519 #. type: =item
39520 #: ../src/guestfs.pod:2939
39521 msgid "C<contrib>"
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../src/guestfs.pod:2941
39526 msgid "Outside contributions, experimental parts."
39527 msgstr ""
39528
39529 #. type: =item
39530 #: ../src/guestfs.pod:2943
39531 msgid "C<daemon>"
39532 msgstr ""
39533
39534 #. type: textblock
39535 #: ../src/guestfs.pod:2945
39536 msgid ""
39537 "The daemon that runs inside the libguestfs appliance and carries out "
39538 "actions."
39539 msgstr ""
39540
39541 #. type: =item
39542 #: ../src/guestfs.pod:2948
39543 msgid "C<df>"
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:2950
39548 msgid "L<virt-df(1)> command and documentation."
39549 msgstr ""
39550
39551 #. type: =item
39552 #: ../src/guestfs.pod:2952
39553 msgid "C<edit>"
39554 msgstr ""
39555
39556 #. type: textblock
39557 #: ../src/guestfs.pod:2954
39558 msgid "L<virt-edit(1)> command and documentation."
39559 msgstr ""
39560
39561 #. type: =item
39562 #: ../src/guestfs.pod:2956
39563 msgid "C<examples>"
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../src/guestfs.pod:2958
39568 msgid "C API example code."
39569 msgstr ""
39570
39571 #. type: =item
39572 #: ../src/guestfs.pod:2960
39573 msgid "C<extratests>"
39574 msgstr ""
39575
39576 #. type: textblock
39577 #: ../src/guestfs.pod:2962
39578 msgid ""
39579 "Extra tests.  These are not run by default because they require special "
39580 "tools or configuration."
39581 msgstr ""
39582
39583 #. type: =item
39584 #: ../src/guestfs.pod:2965
39585 msgid "C<fish>"
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../src/guestfs.pod:2967
39590 msgid ""
39591 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39592 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39593 "L<virt-tar-out(1)>."
39594 msgstr ""
39595
39596 #. type: =item
39597 #: ../src/guestfs.pod:2971
39598 msgid "C<fuse>"
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2973
39603 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39604 msgstr ""
39605
39606 #. type: =item
39607 #: ../src/guestfs.pod:2975
39608 msgid "C<generator>"
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../src/guestfs.pod:2977
39613 msgid ""
39614 "The crucially important generator, used to automatically generate large "
39615 "amounts of boilerplate C code for things like RPC and bindings."
39616 msgstr ""
39617
39618 #. type: =item
39619 #: ../src/guestfs.pod:2980
39620 msgid "C<images>"
39621 msgstr ""
39622
39623 #. type: textblock
39624 #: ../src/guestfs.pod:2982
39625 msgid "Files used by the test suite."
39626 msgstr ""
39627
39628 #. type: textblock
39629 #: ../src/guestfs.pod:2984
39630 msgid "Some \"phony\" guest images which we test against."
39631 msgstr ""
39632
39633 #. type: =item
39634 #: ../src/guestfs.pod:2986
39635 msgid "C<inspector>"
39636 msgstr ""
39637
39638 #. type: textblock
39639 #: ../src/guestfs.pod:2988
39640 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39641 msgstr ""
39642
39643 #. type: =item
39644 #: ../src/guestfs.pod:2990
39645 msgid "C<logo>"
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../src/guestfs.pod:2992
39650 msgid "Logo used on the website.  The fish is called Arthur by the way."
39651 msgstr ""
39652
39653 #. type: =item
39654 #: ../src/guestfs.pod:2994
39655 msgid "C<m4>"
39656 msgstr ""
39657
39658 #. type: textblock
39659 #: ../src/guestfs.pod:2996
39660 msgid "M4 macros used by autoconf."
39661 msgstr ""
39662
39663 #. type: =item
39664 #: ../src/guestfs.pod:2998
39665 msgid "C<po>"
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../src/guestfs.pod:3000
39670 msgid "Translations of simple gettext strings."
39671 msgstr ""
39672
39673 #. type: =item
39674 #: ../src/guestfs.pod:3002
39675 msgid "C<po-docs>"
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../src/guestfs.pod:3004
39680 msgid ""
39681 "The build infrastructure and PO files for translations of manpages and POD "
39682 "files.  Eventually this will be combined with the C<po> directory, but that "
39683 "is rather complicated."
39684 msgstr ""
39685
39686 #. type: =item
39687 #: ../src/guestfs.pod:3008
39688 msgid "C<regressions>"
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:3010
39693 msgid "Regression tests."
39694 msgstr ""
39695
39696 #. type: =item
39697 #: ../src/guestfs.pod:3012
39698 msgid "C<rescue>"
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:3014
39703 msgid "L<virt-rescue(1)> command and documentation."
39704 msgstr ""
39705
39706 #. type: =item
39707 #: ../src/guestfs.pod:3016
39708 msgid "C<resize>"
39709 msgstr ""
39710
39711 #. type: textblock
39712 #: ../src/guestfs.pod:3018
39713 msgid "L<virt-resize(1)> command and documentation."
39714 msgstr ""
39715
39716 #. type: =item
39717 #: ../src/guestfs.pod:3020
39718 msgid "C<sparsify>"
39719 msgstr ""
39720
39721 #. type: textblock
39722 #: ../src/guestfs.pod:3022
39723 msgid "L<virt-sparsify(1)> command and documentation."
39724 msgstr ""
39725
39726 #. type: =item
39727 #: ../src/guestfs.pod:3024
39728 msgid "C<src>"
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../src/guestfs.pod:3026
39733 msgid "Source code to the C library."
39734 msgstr ""
39735
39736 #. type: =item
39737 #: ../src/guestfs.pod:3028
39738 msgid "C<tools>"
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:3030
39743 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39744 msgstr ""
39745
39746 #. type: =item
39747 #: ../src/guestfs.pod:3032
39748 msgid "C<test-tool>"
39749 msgstr ""
39750
39751 #. type: textblock
39752 #: ../src/guestfs.pod:3034
39753 msgid ""
39754 "Test tool for end users to test if their qemu/kernel combination will work "
39755 "with libguestfs."
39756 msgstr ""
39757
39758 #. type: =item
39759 #: ../src/guestfs.pod:3037
39760 msgid "C<csharp>"
39761 msgstr ""
39762
39763 #. type: =item
39764 #: ../src/guestfs.pod:3039
39765 msgid "C<erlang>"
39766 msgstr ""
39767
39768 #. type: =item
39769 #: ../src/guestfs.pod:3041
39770 msgid "C<haskell>"
39771 msgstr ""
39772
39773 #. type: =item
39774 #: ../src/guestfs.pod:3043
39775 msgid "C<java>"
39776 msgstr ""
39777
39778 #. type: =item
39779 #: ../src/guestfs.pod:3045
39780 msgid "C<ocaml>"
39781 msgstr ""
39782
39783 #. type: =item
39784 #: ../src/guestfs.pod:3047
39785 msgid "C<php>"
39786 msgstr ""
39787
39788 #. type: =item
39789 #: ../src/guestfs.pod:3049
39790 msgid "C<perl>"
39791 msgstr ""
39792
39793 #. type: =item
39794 #: ../src/guestfs.pod:3051
39795 msgid "C<python>"
39796 msgstr ""
39797
39798 #. type: =item
39799 #: ../src/guestfs.pod:3053
39800 msgid "C<ruby>"
39801 msgstr ""
39802
39803 #. type: textblock
39804 #: ../src/guestfs.pod:3055
39805 msgid "Language bindings."
39806 msgstr ""
39807
39808 #. type: =head2
39809 #: ../src/guestfs.pod:3059
39810 msgid "MAKING A STABLE RELEASE"
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:3061
39815 msgid ""
39816 "When we make a stable release, there are several steps documented here.  See "
39817 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39818 "branch policy."
39819 msgstr ""
39820
39821 #. type: textblock
39822 #: ../src/guestfs.pod:3069
39823 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../src/guestfs.pod:3074
39828 msgid "Finalize RELEASE-NOTES."
39829 msgstr ""
39830
39831 #. type: textblock
39832 #: ../src/guestfs.pod:3078
39833 msgid "Update ROADMAP."
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:3082
39838 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:3086
39843 msgid "Push and pull from Transifex."
39844 msgstr ""
39845
39846 #. type: verbatim
39847 #: ../src/guestfs.pod:3090
39848 #, no-wrap
39849 msgid ""
39850 " tx push -s\n"
39851 "\n"
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:3092
39856 msgid "to push the latest POT files to Transifex.  Then run:"
39857 msgstr ""
39858
39859 #. type: verbatim
39860 #: ../src/guestfs.pod:3094
39861 #, no-wrap
39862 msgid ""
39863 " ./tx-pull.sh\n"
39864 "\n"
39865 msgstr ""
39866
39867 #. type: textblock
39868 #: ../src/guestfs.pod:3096
39869 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../src/guestfs.pod:3100
39874 msgid ""
39875 "Create new stable and development directories under "
39876 "L<http://libguestfs.org/download>."
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../src/guestfs.pod:3105
39881 msgid "Create the branch in git:"
39882 msgstr ""
39883
39884 #. type: verbatim
39885 #: ../src/guestfs.pod:3107
39886 #, no-wrap
39887 msgid ""
39888 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39889 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39890 " git branch stable-1.XX\n"
39891 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39892 "\n"
39893 msgstr ""
39894
39895 #. type: =head1
39896 #: ../src/guestfs.pod:3114
39897 msgid "LIMITS"
39898 msgstr ""
39899
39900 #. type: =head2
39901 #: ../src/guestfs.pod:3116
39902 msgid "PROTOCOL LIMITS"
39903 msgstr ""
39904
39905 #. type: textblock
39906 #: ../src/guestfs.pod:3118
39907 msgid ""
39908 "Internally libguestfs uses a message-based protocol to pass API calls and "
39909 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39910 "plenty more detail about this).  The maximum message size used by the "
39911 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39912 "aware of this limit.  The API calls which may be affected are individually "
39913 "documented, with a link back to this section of the documentation."
39914 msgstr ""
39915
39916 #. type: textblock
39917 #: ../src/guestfs.pod:3126
39918 msgid ""
39919 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39920 "a simple string.  Because this string is at some point internally encoded as "
39921 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39922 "the requested file is larger than this then you will get an error."
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:3132
39927 msgid ""
39928 "In order to transfer large files into and out of the guest filesystem, you "
39929 "need to use particular calls that support this.  The sections L</UPLOADING> "
39930 "and L</DOWNLOADING> document how to do this."
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:3136
39935 msgid ""
39936 "You might also consider mounting the disk image using our FUSE filesystem "
39937 "support (L<guestmount(1)>)."
39938 msgstr ""
39939
39940 #. type: =head2
39941 #: ../src/guestfs.pod:3139
39942 msgid "MAXIMUM NUMBER OF DISKS"
39943 msgstr ""
39944
39945 #. type: textblock
39946 #: ../src/guestfs.pod:3141
39947 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:3144
39952 msgid ""
39953 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39954 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39955 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39956 "purposes."
39957 msgstr ""
39958
39959 #. type: textblock
39960 #: ../src/guestfs.pod:3149
39961 msgid ""
39962 "We are working to substantially raise this limit in future versions but it "
39963 "requires complex changes to qemu."
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../src/guestfs.pod:3152
39968 msgid ""
39969 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39970 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39971 "requires changes to qemu."
39972 msgstr ""
39973
39974 #. type: =head2
39975 #: ../src/guestfs.pod:3156
39976 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39977 msgstr ""
39978
39979 #. type: textblock
39980 #: ../src/guestfs.pod:3158
39981 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39982 msgstr ""
39983
39984 #. type: textblock
39985 #: ../src/guestfs.pod:3160
39986 msgid ""
39987 "This is because it reserves 4 bits for the minor device number (thus "
39988 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
39989 msgstr ""
39990
39991 #. type: textblock
39992 #: ../src/guestfs.pod:3163
39993 msgid ""
39994 "If you attach a disk with more than 15 partitions, the extra partitions are "
39995 "ignored by libguestfs."
39996 msgstr ""
39997
39998 #. type: =head2
39999 #: ../src/guestfs.pod:3166
40000 msgid "MAXIMUM SIZE OF A DISK"
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../src/guestfs.pod:3168
40005 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40006 msgstr ""
40007
40008 #. type: textblock
40009 #: ../src/guestfs.pod:3170
40010 msgid ""
40011 "We have tested block devices up to 1 exabyte (2**60 or "
40012 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40013 "filesystem."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:3174
40018 msgid ""
40019 "Although libguestfs probably does not impose any limit, the underlying host "
40020 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40021 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40022 "TB).  If you store disk images as host logical volumes then you are limited "
40023 "by the maximum size of an LV."
40024 msgstr ""
40025
40026 #. type: textblock
40027 #: ../src/guestfs.pod:3180
40028 msgid ""
40029 "For the hugest disk image files, we recommend using XFS on the host for "
40030 "storage."
40031 msgstr ""
40032
40033 #. type: =head2
40034 #: ../src/guestfs.pod:3183
40035 msgid "MAXIMUM SIZE OF A PARTITION"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../src/guestfs.pod:3185
40040 msgid ""
40041 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40042 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40043 "address a partition located beyond 2 TB on the disk."
40044 msgstr ""
40045
40046 #. type: textblock
40047 #: ../src/guestfs.pod:3189
40048 msgid ""
40049 "It is recommended that you use GPT partitions on disks which are larger than "
40050 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40051 "which are theoretically larger than the largest disk we could support."
40052 msgstr ""
40053
40054 #. type: =head2
40055 #: ../src/guestfs.pod:3194
40056 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../src/guestfs.pod:3196
40061 msgid ""
40062 "This depends on the filesystem type.  libguestfs itself does not impose any "
40063 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40064 "what these limits are."
40065 msgstr ""
40066
40067 #. type: =head2
40068 #: ../src/guestfs.pod:3200
40069 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40070 msgstr ""
40071
40072 #. type: textblock
40073 #: ../src/guestfs.pod:3202
40074 msgid ""
40075 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40076 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40077 "uploads and downloads."
40078 msgstr ""
40079
40080 #. type: =head2
40081 #: ../src/guestfs.pod:3206
40082 msgid "INSPECTION LIMITS"
40083 msgstr ""
40084
40085 #. type: textblock
40086 #: ../src/guestfs.pod:3208
40087 msgid ""
40088 "The inspection code has several arbitrary limits on things like the size of "
40089 "Windows Registry hive it will read, and the length of product name.  These "
40090 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40091 "memory and disk space on the host, and should not be reached in practice.  "
40092 "See the source code for more information."
40093 msgstr ""
40094
40095 #. type: textblock
40096 #: ../src/guestfs.pod:3234
40097 msgid ""
40098 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40099 "effect as calling C<guestfs_set_verbose (g, 1)>."
40100 msgstr ""
40101
40102 #. type: textblock
40103 #: ../src/guestfs.pod:3246
40104 msgid ""
40105 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40106 "the discussion of paths in section L</PATH> above."
40107 msgstr ""
40108
40109 #. type: textblock
40110 #: ../src/guestfs.pod:3255
40111 msgid "See also L</QEMU WRAPPERS> above."
40112 msgstr ""
40113
40114 #. type: textblock
40115 #: ../src/guestfs.pod:3259
40116 msgid ""
40117 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40118 "effect as calling C<guestfs_set_trace (g, 1)>."
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../src/guestfs.pod:3277
40123 msgid ""
40124 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
40125 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
40126 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
40127 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
40128 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
40129 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40130 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
40131 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
40132 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
40133 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40134 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
40135 "L<http://libguestfs.org/>."
40136 msgstr ""
40137
40138 #. type: textblock
40139 #: ../src/guestfs.pod:3314
40140 msgid ""
40141 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
40142 "L<lvm(8)>, L<disktype(1)>."
40143 msgstr ""
40144
40145 #. type: =head1
40146 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
40147 msgid "BUGS"
40148 msgstr ""
40149
40150 #. type: textblock
40151 #: ../src/guestfs.pod:3323
40152 msgid "To get a list of bugs against libguestfs use this link:"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:3325
40157 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../src/guestfs.pod:3327
40162 msgid "To report a new bug against libguestfs use this link:"
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:3329
40167 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
40168 msgstr ""
40169
40170 #. type: textblock
40171 #: ../src/guestfs.pod:3331
40172 msgid "When reporting a bug, please check:"
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../src/guestfs.pod:3337
40177 msgid "That the bug hasn't been reported already."
40178 msgstr ""
40179
40180 #. type: textblock
40181 #: ../src/guestfs.pod:3341
40182 msgid "That you are testing a recent version."
40183 msgstr ""
40184
40185 #. type: textblock
40186 #: ../src/guestfs.pod:3345
40187 msgid "Describe the bug accurately, and give a way to reproduce it."
40188 msgstr ""
40189
40190 #. type: textblock
40191 #: ../src/guestfs.pod:3349
40192 msgid ""
40193 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40194 "bug report."
40195 msgstr ""
40196
40197 #. type: textblock
40198 #: ../test-tool/libguestfs-test-tool.pod:5
40199 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40200 msgstr ""
40201
40202 #. type: verbatim
40203 #: ../test-tool/libguestfs-test-tool.pod:9
40204 #, no-wrap
40205 msgid ""
40206 " libguestfs-test-tool [--options]\n"
40207 "\n"
40208 msgstr ""
40209
40210 #. type: textblock
40211 #: ../test-tool/libguestfs-test-tool.pod:13
40212 msgid ""
40213 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40214 "to check basic libguestfs functionality is working.  This is needed because "
40215 "libguestfs occasionally breaks for reasons beyond our control: usually "
40216 "because of changes in the underlying qemu or kernel packages, or the host "
40217 "environment."
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../test-tool/libguestfs-test-tool.pod:19
40222 msgid "If you suspect a problem in libguestfs, then just run:"
40223 msgstr ""
40224
40225 #. type: verbatim
40226 #: ../test-tool/libguestfs-test-tool.pod:21
40227 #, no-wrap
40228 msgid ""
40229 " libguestfs-test-tool\n"
40230 "\n"
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../test-tool/libguestfs-test-tool.pod:23
40235 msgid "It will print lots of diagnostic messages."
40236 msgstr ""
40237
40238 #. type: textblock
40239 #: ../test-tool/libguestfs-test-tool.pod:25
40240 msgid "If it runs to completion successfully, you will see this near the end:"
40241 msgstr ""
40242
40243 #. type: verbatim
40244 #: ../test-tool/libguestfs-test-tool.pod:27
40245 #, no-wrap
40246 msgid ""
40247 " ===== TEST FINISHED OK =====\n"
40248 "\n"
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../test-tool/libguestfs-test-tool.pod:29
40253 msgid "and the test tool will exit with code 0."
40254 msgstr ""
40255
40256 #. type: textblock
40257 #: ../test-tool/libguestfs-test-tool.pod:31
40258 msgid ""
40259 "If it fails (and/or exits with non-zero error code), please paste the "
40260 "I<complete, unedited> output of the test tool into a bug report.  More "
40261 "information about reporting bugs can be found on the "
40262 "L<http://libguestfs.org/> website."
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../test-tool/libguestfs-test-tool.pod:42
40267 msgid "Display short usage information and exit."
40268 msgstr ""
40269
40270 #. type: =item
40271 #: ../test-tool/libguestfs-test-tool.pod:44
40272 msgid "B<--qemu qemu_binary>"
40273 msgstr ""
40274
40275 #. type: textblock
40276 #: ../test-tool/libguestfs-test-tool.pod:46
40277 msgid ""
40278 "If you have downloaded another qemu binary, point this option at the full "
40279 "path of the binary to try it."
40280 msgstr ""
40281
40282 #. type: =item
40283 #: ../test-tool/libguestfs-test-tool.pod:49
40284 msgid "B<--qemudir qemu_source_dir>"
40285 msgstr ""
40286
40287 #. type: textblock
40288 #: ../test-tool/libguestfs-test-tool.pod:51
40289 msgid ""
40290 "If you have compiled qemu from source, point this option at the source "
40291 "directory to try it."
40292 msgstr ""
40293
40294 #. type: =item
40295 #: ../test-tool/libguestfs-test-tool.pod:54
40296 msgid "B<-t N>"
40297 msgstr ""
40298
40299 #. type: =item
40300 #: ../test-tool/libguestfs-test-tool.pod:56
40301 msgid "B<--timeout N>"
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../test-tool/libguestfs-test-tool.pod:58
40306 msgid ""
40307 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40308 "minutes) which does not usually need to be adjusted."
40309 msgstr ""
40310
40311 #. type: =head1
40312 #: ../test-tool/libguestfs-test-tool.pod:63
40313 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40314 msgstr ""
40315
40316 #. type: textblock
40317 #: ../test-tool/libguestfs-test-tool.pod:65
40318 msgid ""
40319 "If you have compiled another version of qemu from source and would like to "
40320 "try that, then you can use the I<--qemudir> option to point to the qemu "
40321 "source directory."
40322 msgstr ""
40323
40324 #. type: textblock
40325 #: ../test-tool/libguestfs-test-tool.pod:69
40326 msgid ""
40327 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40328 "option to point to the binary."
40329 msgstr ""
40330
40331 #. type: textblock
40332 #: ../test-tool/libguestfs-test-tool.pod:72
40333 msgid ""
40334 "Note when using these options, you can ignore the business of qemu wrapper "
40335 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40336 "wrapper script for you if one is needed."
40337 msgstr ""
40338
40339 #. type: =head1
40340 #: ../test-tool/libguestfs-test-tool.pod:76
40341 msgid "TRYING OUT A DIFFERENT KERNEL"
40342 msgstr ""
40343
40344 #. type: textblock
40345 #: ../test-tool/libguestfs-test-tool.pod:78
40346 msgid ""
40347 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40348 "libguestfs tries.  You do this by setting the environment variables "
40349 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40350 msgstr ""
40351
40352 #. type: textblock
40353 #: ../test-tool/libguestfs-test-tool.pod:82
40354 msgid ""
40355 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40356 "information."
40357 msgstr ""
40358
40359 #. type: =head1
40360 #: ../test-tool/libguestfs-test-tool.pod:85
40361 msgid "SELF-DIAGNOSIS"
40362 msgstr ""
40363
40364 #. type: textblock
40365 #: ../test-tool/libguestfs-test-tool.pod:87
40366 msgid ""
40367 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40368 "produced by libguestfs-test-tool and/or possible errors."
40369 msgstr ""
40370
40371 #. type: textblock
40372 #: ../test-tool/libguestfs-test-tool.pod:92
40373 msgid ""
40374 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40375 "I<1> if there was an error."
40376 msgstr ""
40377
40378 #. type: textblock
40379 #: ../test-tool/libguestfs-test-tool.pod:97
40380 msgid ""
40381 "For the full list of environment variables which may affect libguestfs, "
40382 "please see the L<guestfs(3)> manual page."
40383 msgstr ""
40384
40385 #. type: textblock
40386 #: ../test-tool/libguestfs-test-tool.pod:102
40387 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../tools/virt-list-filesystems.pl:32
40392 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40393 msgstr ""
40394
40395 #. type: verbatim
40396 #: ../tools/virt-list-filesystems.pl:36
40397 #, no-wrap
40398 msgid ""
40399 " virt-list-filesystems [--options] domname\n"
40400 "\n"
40401 msgstr ""
40402
40403 #. type: verbatim
40404 #: ../tools/virt-list-filesystems.pl:38
40405 #, no-wrap
40406 msgid ""
40407 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40408 "\n"
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40413 msgid ""
40414 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40415 "replacement."
40416 msgstr ""
40417
40418 #. type: textblock
40419 #: ../tools/virt-list-filesystems.pl:45
40420 msgid ""
40421 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40422 "are contained in a virtual machine or disk image."
40423 msgstr ""
40424
40425 #. type: textblock
40426 #: ../tools/virt-list-filesystems.pl:49
40427 msgid ""
40428 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40429 "functionality.  For more complex cases you should look at the "
40430 "L<guestfish(1)> tool."
40431 msgstr ""
40432
40433 #. type: textblock
40434 #: ../tools/virt-list-filesystems.pl:112
40435 msgid ""
40436 "With this option, C<virt-list-filesystems> displays the type of each "
40437 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40438 msgstr ""
40439
40440 #. type: =item
40441 #: ../tools/virt-list-filesystems.pl:119
40442 msgid "B<-a>"
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../tools/virt-list-filesystems.pl:123
40447 msgid ""
40448 "Normally we only show mountable filesystems.  If this option is given then "
40449 "swap devices are shown too."
40450 msgstr ""
40451
40452 #. type: textblock
40453 #: ../tools/virt-list-filesystems.pl:197
40454 msgid ""
40455 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
40456 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
40457 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40458 msgstr ""
40459
40460 #. type: textblock
40461 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40462 msgid "Copyright (C) 2009 Red Hat Inc."
40463 msgstr ""
40464
40465 #. type: textblock
40466 #: ../tools/virt-list-partitions.pl:32
40467 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
40468 msgstr ""
40469
40470 #. type: verbatim
40471 #: ../tools/virt-list-partitions.pl:36
40472 #, no-wrap
40473 msgid ""
40474 " virt-list-partitions [--options] domname\n"
40475 "\n"
40476 msgstr ""
40477
40478 #. type: verbatim
40479 #: ../tools/virt-list-partitions.pl:38
40480 #, no-wrap
40481 msgid ""
40482 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40483 "\n"
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../tools/virt-list-partitions.pl:45
40488 msgid ""
40489 "C<virt-list-partitions> is a command line tool to list the partitions that "
40490 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40491 "first step to using L<virt-resize(1)>."
40492 msgstr ""
40493
40494 #. type: textblock
40495 #: ../tools/virt-list-partitions.pl:50
40496 msgid ""
40497 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40498 "functionality.  For more complex cases you should look at the "
40499 "L<guestfish(1)> tool."
40500 msgstr ""
40501
40502 #. type: textblock
40503 #: ../tools/virt-list-partitions.pl:113
40504 msgid "Show sizes in human-readable form (eg. \"1G\")."
40505 msgstr ""
40506
40507 #. type: textblock
40508 #: ../tools/virt-list-partitions.pl:123
40509 msgid ""
40510 "With this option, C<virt-list-partitions> displays the type and size of each "
40511 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40512 msgstr ""
40513
40514 #. type: =item
40515 #: ../tools/virt-list-partitions.pl:130
40516 msgid "B<-t>"
40517 msgstr ""
40518
40519 #. type: =item
40520 #: ../tools/virt-list-partitions.pl:132
40521 msgid "B<--total>"
40522 msgstr ""
40523
40524 #. type: textblock
40525 #: ../tools/virt-list-partitions.pl:134
40526 msgid "Display the total size of each block device (as a separate row or rows)."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../tools/virt-list-partitions.pl:267
40531 msgid ""
40532 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
40533 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
40534 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../tools/virt-list-partitions.pl:283
40539 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40540 msgstr ""
40541
40542 #. type: textblock
40543 #: ../tools/virt-make-fs.pl:37
40544 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40545 msgstr ""
40546
40547 #. type: verbatim
40548 #: ../tools/virt-make-fs.pl:41
40549 #, no-wrap
40550 msgid ""
40551 " virt-make-fs [--options] input.tar output.img\n"
40552 "\n"
40553 msgstr ""
40554
40555 #. type: verbatim
40556 #: ../tools/virt-make-fs.pl:43
40557 #, no-wrap
40558 msgid ""
40559 " virt-make-fs [--options] input.tar.gz output.img\n"
40560 "\n"
40561 msgstr ""
40562
40563 #. type: verbatim
40564 #: ../tools/virt-make-fs.pl:45
40565 #, no-wrap
40566 msgid ""
40567 " virt-make-fs [--options] directory output.img\n"
40568 "\n"
40569 msgstr ""
40570
40571 #. type: textblock
40572 #: ../tools/virt-make-fs.pl:49
40573 msgid ""
40574 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40575 "archive or some files in a directory.  It is similar to tools like "
40576 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
40577 "it can create common filesystem types like ext2/3 or NTFS, which can be "
40578 "useful if you want to attach these filesystems to existing virtual machines "
40579 "(eg. to import large amounts of read-only data to a VM)."
40580 msgstr ""
40581
40582 #. type: textblock
40583 #: ../tools/virt-make-fs.pl:57
40584 msgid "Basic usage is:"
40585 msgstr ""
40586
40587 #. type: verbatim
40588 #: ../tools/virt-make-fs.pl:59
40589 #, no-wrap
40590 msgid ""
40591 " virt-make-fs input output.img\n"
40592 "\n"
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../tools/virt-make-fs.pl:61
40597 msgid ""
40598 "where C<input> is either a directory containing files that you want to add, "
40599 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40600 "C<output.img> is a disk image.  The input type is detected automatically.  "
40601 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40602 "extra flags (see L</OPTIONS> below)."
40603 msgstr ""
40604
40605 #. type: =head2
40606 #: ../tools/virt-make-fs.pl:67
40607 msgid "FILESYSTEM TYPE"
40608 msgstr ""
40609
40610 #. type: textblock
40611 #: ../tools/virt-make-fs.pl:69
40612 msgid ""
40613 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40614 "libguestfs supports can be used (but I<not> read-only formats like "
40615 "ISO9660).  Here are some of the more common choices:"
40616 msgstr ""
40617
40618 #. type: =item
40619 #: ../tools/virt-make-fs.pl:75
40620 msgid "I<ext3>"
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../tools/virt-make-fs.pl:77
40625 msgid ""
40626 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40627 "you are not going to use the filesystem in a way that requires the journal, "
40628 "then this is just wasted overhead."
40629 msgstr ""
40630
40631 #. type: =item
40632 #: ../tools/virt-make-fs.pl:81
40633 msgid "I<ntfs> or I<vfat>"
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../tools/virt-make-fs.pl:83
40638 msgid "Useful if exporting data to a Windows guest."
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../tools/virt-make-fs.pl:85
40643 msgid ""
40644 "I<Note for vfat>: The tar archive or local directory must only contain files "
40645 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40646 "program running within libguestfs is unable to change the ownership of "
40647 "non-root files, since vfat itself does not support this."
40648 msgstr ""
40649
40650 #. type: =item
40651 #: ../tools/virt-make-fs.pl:90
40652 msgid "I<minix>"
40653 msgstr ""
40654
40655 #. type: textblock
40656 #: ../tools/virt-make-fs.pl:92
40657 msgid ""
40658 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40659 "total filesystem size."
40660 msgstr ""
40661
40662 #. type: =head3
40663 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
40664 msgid "EXAMPLE"
40665 msgstr ""
40666
40667 #. type: verbatim
40668 #: ../tools/virt-make-fs.pl:99
40669 #, no-wrap
40670 msgid ""
40671 " virt-make-fs --type=minix input minixfs.img\n"
40672 "\n"
40673 msgstr ""
40674
40675 #. type: =head2
40676 #: ../tools/virt-make-fs.pl:101
40677 msgid "TO PARTITION OR NOT TO PARTITION"
40678 msgstr ""
40679
40680 #. type: textblock
40681 #: ../tools/virt-make-fs.pl:103
40682 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40683 msgstr ""
40684
40685 #. type: textblock
40686 #: ../tools/virt-make-fs.pl:105
40687 msgid ""
40688 "Adding a partition can make the disk image more compatible with certain "
40689 "virtualized operating systems which don't expect to see a filesystem "
40690 "directly located on a block device (Linux doesn't care and will happily "
40691 "handle both types)."
40692 msgstr ""
40693
40694 #. type: textblock
40695 #: ../tools/virt-make-fs.pl:110
40696 msgid ""
40697 "On the other hand, if you have a partition table then the output image is no "
40698 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40699 "directly on a partitioned disk image.  (However libguestfs tools such as "
40700 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../tools/virt-make-fs.pl:118
40705 msgid "Add an MBR partition:"
40706 msgstr ""
40707
40708 #. type: verbatim
40709 #: ../tools/virt-make-fs.pl:120
40710 #, no-wrap
40711 msgid ""
40712 " virt-make-fs --partition -- input disk.img\n"
40713 "\n"
40714 msgstr ""
40715
40716 #. type: textblock
40717 #: ../tools/virt-make-fs.pl:122
40718 msgid ""
40719 "If the output disk image could be terabyte-sized or larger, it's better to "
40720 "use an EFI/GPT-compatible partition table:"
40721 msgstr ""
40722
40723 #. type: verbatim
40724 #: ../tools/virt-make-fs.pl:125
40725 #, no-wrap
40726 msgid ""
40727 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40728 "\n"
40729 msgstr ""
40730
40731 #. type: =head2
40732 #: ../tools/virt-make-fs.pl:127
40733 msgid "EXTRA SPACE"
40734 msgstr ""
40735
40736 #. type: textblock
40737 #: ../tools/virt-make-fs.pl:129
40738 msgid ""
40739 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40740 "the files that it contains, but might have extra space.  Depending on how "
40741 "you are going to use the output, you might think this extra space is wasted "
40742 "and want to minimize it, or you might want to leave space so that more files "
40743 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40744 "but you can use the I<--size> flag to leave space in the filesystem if you "
40745 "want it."
40746 msgstr ""
40747
40748 #. type: textblock
40749 #: ../tools/virt-make-fs.pl:137
40750 msgid ""
40751 "An alternative way to leave extra space but not make the output image any "
40752 "bigger is to use an alternative disk image format (instead of the default "
40753 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40754 "image format (check your hypervisor supports this before using it).  This "
40755 "allows you to choose a large I<--size> but the extra space won't actually be "
40756 "allocated in the image until you try to store something in it."
40757 msgstr ""
40758
40759 #. type: textblock
40760 #: ../tools/virt-make-fs.pl:145
40761 msgid ""
40762 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40763 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40764 "to build another image from scratch."
40765 msgstr ""
40766
40767 #. type: verbatim
40768 #: ../tools/virt-make-fs.pl:151
40769 #, no-wrap
40770 msgid ""
40771 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40772 "\n"
40773 msgstr ""
40774
40775 #. type: textblock
40776 #: ../tools/virt-make-fs.pl:179
40777 msgid "Enable debugging information."
40778 msgstr ""
40779
40780 #. type: =item
40781 #: ../tools/virt-make-fs.pl:185
40782 msgid "B<--size=E<lt>NE<gt>>"
40783 msgstr ""
40784
40785 #. type: =item
40786 #: ../tools/virt-make-fs.pl:187
40787 msgid "B<--size=+E<lt>NE<gt>>"
40788 msgstr ""
40789
40790 #. type: =item
40791 #: ../tools/virt-make-fs.pl:189
40792 msgid "B<-s E<lt>NE<gt>>"
40793 msgstr ""
40794
40795 #. type: =item
40796 #: ../tools/virt-make-fs.pl:191
40797 msgid "B<-s +E<lt>NE<gt>>"
40798 msgstr ""
40799
40800 #. type: textblock
40801 #: ../tools/virt-make-fs.pl:193
40802 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../tools/virt-make-fs.pl:196
40807 msgid ""
40808 "If this option is I<not> given, then the output image will be just large "
40809 "enough to contain all the files, with not much wasted space."
40810 msgstr ""
40811
40812 #. type: textblock
40813 #: ../tools/virt-make-fs.pl:199
40814 msgid ""
40815 "To choose a fixed size output disk, specify an absolute number followed by "
40816 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40817 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40818 "files, else you will get an error."
40819 msgstr ""
40820
40821 #. type: textblock
40822 #: ../tools/virt-make-fs.pl:204
40823 msgid ""
40824 "To leave extra space, specify C<+> (plus sign) and a number followed by "
40825 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40826 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40827 "the input files, and (approximately) an extra 200 MB free space."
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../tools/virt-make-fs.pl:210
40832 msgid ""
40833 "Note that virt-make-fs estimates free space, and therefore will not produce "
40834 "filesystems containing precisely the free space requested.  (It is much more "
40835 "expensive and time-consuming to produce a filesystem which has precisely the "
40836 "desired free space)."
40837 msgstr ""
40838
40839 #. type: =item
40840 #: ../tools/virt-make-fs.pl:219
40841 msgid "B<--format=E<lt>fmtE<gt>>"
40842 msgstr ""
40843
40844 #. type: =item
40845 #: ../tools/virt-make-fs.pl:221
40846 msgid "B<-F E<lt>fmtE<gt>>"
40847 msgstr ""
40848
40849 #. type: textblock
40850 #: ../tools/virt-make-fs.pl:223
40851 msgid "Choose the output disk image format."
40852 msgstr ""
40853
40854 #. type: textblock
40855 #: ../tools/virt-make-fs.pl:225
40856 msgid "The default is C<raw> (raw sparse disk image)."
40857 msgstr ""
40858
40859 #. type: textblock
40860 #: ../tools/virt-make-fs.pl:227
40861 msgid ""
40862 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40863 "that would really make sense here is C<qcow2>."
40864 msgstr ""
40865
40866 #. type: =item
40867 #: ../tools/virt-make-fs.pl:234
40868 msgid "B<--type=E<lt>fsE<gt>>"
40869 msgstr ""
40870
40871 #. type: =item
40872 #: ../tools/virt-make-fs.pl:236
40873 msgid "B<-t E<lt>fsE<gt>>"
40874 msgstr ""
40875
40876 #. type: textblock
40877 #: ../tools/virt-make-fs.pl:238
40878 msgid "Choose the output filesystem type."
40879 msgstr ""
40880
40881 #. type: textblock
40882 #: ../tools/virt-make-fs.pl:240
40883 msgid "The default is C<ext2>."
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../tools/virt-make-fs.pl:242
40888 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
40889 msgstr ""
40890
40891 #. type: =item
40892 #: ../tools/virt-make-fs.pl:249
40893 msgid "B<--partition>"
40894 msgstr ""
40895
40896 #. type: =item
40897 #: ../tools/virt-make-fs.pl:251
40898 msgid "B<--partition=E<lt>parttypeE<gt>>"
40899 msgstr ""
40900
40901 #. type: textblock
40902 #: ../tools/virt-make-fs.pl:253
40903 msgid ""
40904 "If specified, this flag adds an MBR partition table to the output disk "
40905 "image."
40906 msgstr ""
40907
40908 #. type: textblock
40909 #: ../tools/virt-make-fs.pl:256
40910 msgid ""
40911 "You can change the partition table type, eg. I<--partition=gpt> for large "
40912 "disks."
40913 msgstr ""
40914
40915 #. type: textblock
40916 #: ../tools/virt-make-fs.pl:259
40917 msgid ""
40918 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40919 "might consider the next parameter to be the partition type.  For example:"
40920 msgstr ""
40921
40922 #. type: verbatim
40923 #: ../tools/virt-make-fs.pl:263
40924 #, no-wrap
40925 msgid ""
40926 " virt-make-fs --partition input.tar output.img\n"
40927 "\n"
40928 msgstr ""
40929
40930 #. type: textblock
40931 #: ../tools/virt-make-fs.pl:265
40932 msgid ""
40933 "would cause virt-make-fs to think you wanted to use a partition type of "
40934 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40935 "dash) between options and the input and output arguments:"
40936 msgstr ""
40937
40938 #. type: verbatim
40939 #: ../tools/virt-make-fs.pl:269
40940 #, no-wrap
40941 msgid ""
40942 " virt-make-fs --partition -- input.tar output.img\n"
40943 "\n"
40944 msgstr ""
40945
40946 #. type: textblock
40947 #: ../tools/virt-make-fs.pl:271
40948 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
40949 msgstr ""
40950
40951 #. type: textblock
40952 #: ../tools/virt-make-fs.pl:559
40953 msgid ""
40954 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40955 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
40956 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
40961 msgid ""
40962 "When reporting bugs, please enable debugging and capture the I<complete> "
40963 "output:"
40964 msgstr ""
40965
40966 #. type: verbatim
40967 #: ../tools/virt-make-fs.pl:576
40968 #, no-wrap
40969 msgid ""
40970 " export LIBGUESTFS_DEBUG=1\n"
40971 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40972 "\n"
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../tools/virt-make-fs.pl:579
40977 msgid ""
40978 "Attach /tmp/virt-make-fs.log to a new bug report at "
40979 "L<https://bugzilla.redhat.com/>"
40980 msgstr ""
40981
40982 #. type: textblock
40983 #: ../tools/virt-tar.pl:33
40984 msgid "virt-tar - Extract or upload files to a virtual machine"
40985 msgstr ""
40986
40987 #. type: verbatim
40988 #: ../tools/virt-tar.pl:37
40989 #, no-wrap
40990 msgid ""
40991 " virt-tar [--options] -x domname directory tarball\n"
40992 "\n"
40993 msgstr ""
40994
40995 #. type: verbatim
40996 #: ../tools/virt-tar.pl:39
40997 #, no-wrap
40998 msgid ""
40999 " virt-tar [--options] -u domname tarball directory\n"
41000 "\n"
41001 msgstr ""
41002
41003 #. type: verbatim
41004 #: ../tools/virt-tar.pl:41
41005 #, no-wrap
41006 msgid ""
41007 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41008 "\n"
41009 msgstr ""
41010
41011 #. type: verbatim
41012 #: ../tools/virt-tar.pl:43
41013 #, no-wrap
41014 msgid ""
41015 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41016 "\n"
41017 msgstr ""
41018
41019 #. type: =head2
41020 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41021 msgid "NOTE"
41022 msgstr ""
41023
41024 #. type: textblock
41025 #: ../tools/virt-tar.pl:47
41026 msgid ""
41027 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41028 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../tools/virt-tar.pl:52
41033 msgid "Download C</home> from the VM into a local tarball:"
41034 msgstr ""
41035
41036 #. type: verbatim
41037 #: ../tools/virt-tar.pl:54
41038 #, no-wrap
41039 msgid ""
41040 " virt-tar -x domname /home home.tar\n"
41041 "\n"
41042 msgstr ""
41043
41044 #. type: verbatim
41045 #: ../tools/virt-tar.pl:56
41046 #, no-wrap
41047 msgid ""
41048 " virt-tar -zx domname /home home.tar.gz\n"
41049 "\n"
41050 msgstr ""
41051
41052 #. type: textblock
41053 #: ../tools/virt-tar.pl:58
41054 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41055 msgstr ""
41056
41057 #. type: verbatim
41058 #: ../tools/virt-tar.pl:60
41059 #, no-wrap
41060 msgid ""
41061 " virt-tar -u domname uploadstuff.tar /tmp\n"
41062 "\n"
41063 msgstr ""
41064
41065 #. type: verbatim
41066 #: ../tools/virt-tar.pl:62
41067 #, no-wrap
41068 msgid ""
41069 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41070 "\n"
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../tools/virt-tar.pl:66
41075 msgid ""
41076 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41077 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41078 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41079 msgstr ""
41080
41081 #. type: textblock
41082 #: ../tools/virt-tar.pl:71
41083 msgid ""
41084 "You can use I<-x> (extract) on live virtual machines, but you might get "
41085 "inconsistent results or errors if there is filesystem activity inside the "
41086 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41087 "work, but the only way to guarantee consistent results is if the virtual "
41088 "machine is shut down."
41089 msgstr ""
41090
41091 #. type: textblock
41092 #: ../tools/virt-tar.pl:79
41093 msgid ""
41094 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41095 "parts of a guest filesystem.  There are many possibilities: making backups, "
41096 "uploading data files, snooping on guest activity, fixing or customizing "
41097 "guests, etc."
41098 msgstr ""
41099
41100 #. type: textblock
41101 #: ../tools/virt-tar.pl:84
41102 msgid ""
41103 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41104 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41105 "should look at the L<guestfish(1)> tool."
41106 msgstr ""
41107
41108 #. type: textblock
41109 #: ../tools/virt-tar.pl:88
41110 msgid ""
41111 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41112 "its contents (recursively) from the virtual machine into a local tarball.  "
41113 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41114 "virtual machine.  You cannot use these two options together."
41115 msgstr ""
41116
41117 #. type: textblock
41118 #: ../tools/virt-tar.pl:94
41119 msgid ""
41120 "In addition, you may need to use the I<-z> (gZip) option to enable "
41121 "compression.  When uploading, you have to specify I<-z> if the upload file "
41122 "is compressed because virt-tar won't detect this on its own."
41123 msgstr ""
41124
41125 #. type: textblock
41126 #: ../tools/virt-tar.pl:98
41127 msgid ""
41128 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41129 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41130 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41131 "the L<libguestfs(3)> API)."
41132 msgstr ""
41133
41134 #. type: =item
41135 #: ../tools/virt-tar.pl:160
41136 msgid "B<--extract>"
41137 msgstr ""
41138
41139 #. type: =item
41140 #: ../tools/virt-tar.pl:162
41141 msgid "B<--download>"
41142 msgstr ""
41143
41144 #. type: =item
41145 #: ../tools/virt-tar.pl:164
41146 msgid "B<-u>"
41147 msgstr ""
41148
41149 #. type: =item
41150 #: ../tools/virt-tar.pl:166
41151 msgid "B<--upload>"
41152 msgstr ""
41153
41154 #. type: textblock
41155 #: ../tools/virt-tar.pl:168
41156 msgid ""
41157 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41158 "local tarball."
41159 msgstr ""
41160
41161 #. type: textblock
41162 #: ../tools/virt-tar.pl:171
41163 msgid ""
41164 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41165 "Please read the L</WARNING> section above before using this option."
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../tools/virt-tar.pl:175
41170 msgid "You must specify exactly one of these options."
41171 msgstr ""
41172
41173 #. type: =item
41174 #: ../tools/virt-tar.pl:181
41175 msgid "B<-z>"
41176 msgstr ""
41177
41178 #. type: =item
41179 #: ../tools/virt-tar.pl:183
41180 msgid "B<--gzip>"
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../tools/virt-tar.pl:185
41185 msgid "Specify that the input or output tarball is gzip-compressed."
41186 msgstr ""
41187
41188 #. type: textblock
41189 #: ../tools/virt-tar.pl:298
41190 msgid ""
41191 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
41192 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41193 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
41194 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41195 msgstr ""
41196
41197 #. type: textblock
41198 #: ../tools/virt-win-reg.pl:37
41199 msgid ""
41200 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
41201 "guest"
41202 msgstr ""
41203
41204 #. type: verbatim
41205 #: ../tools/virt-win-reg.pl:41
41206 #, no-wrap
41207 msgid ""
41208 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41209 "\n"
41210 msgstr ""
41211
41212 #. type: verbatim
41213 #: ../tools/virt-win-reg.pl:43
41214 #, no-wrap
41215 msgid ""
41216 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41217 "\n"
41218 msgstr ""
41219
41220 #. type: verbatim
41221 #: ../tools/virt-win-reg.pl:45
41222 #, no-wrap
41223 msgid ""
41224 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41225 "\n"
41226 msgstr ""
41227
41228 #. type: verbatim
41229 #: ../tools/virt-win-reg.pl:47
41230 #, no-wrap
41231 msgid ""
41232 " virt-win-reg --merge domname [input.reg ...]\n"
41233 "\n"
41234 msgstr ""
41235
41236 #. type: verbatim
41237 #: ../tools/virt-win-reg.pl:49
41238 #, no-wrap
41239 msgid ""
41240 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41241 "\n"
41242 msgstr ""
41243
41244 #. type: textblock
41245 #: ../tools/virt-win-reg.pl:53
41246 msgid ""
41247 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41248 "virtual machines.  If you do this, you I<will> get irreversible disk "
41249 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41250 "but doesn't catch all cases."
41251 msgstr ""
41252
41253 #. type: textblock
41254 #: ../tools/virt-win-reg.pl:58
41255 msgid ""
41256 "Modifying the Windows Registry is an inherently risky operation.  The format "
41257 "is deliberately obscure and undocumented, and Registry changes can leave the "
41258 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41259 "you have a reliable backup first."
41260 msgstr ""
41261
41262 #. type: textblock
41263 #: ../tools/virt-win-reg.pl:65
41264 msgid ""
41265 "This program can export and merge Windows Registry entries from a Windows "
41266 "guest."
41267 msgstr ""
41268
41269 #. type: textblock
41270 #: ../tools/virt-win-reg.pl:68
41271 msgid ""
41272 "The first parameter is the libvirt guest name or the raw disk image of a "
41273 "Windows guest."
41274 msgstr ""
41275
41276 #. type: textblock
41277 #: ../tools/virt-win-reg.pl:71
41278 msgid ""
41279 "If I<--merge> is I<not> specified, then the chosen registry key is "
41280 "displayed/exported (recursively).  For example:"
41281 msgstr ""
41282
41283 #. type: verbatim
41284 #: ../tools/virt-win-reg.pl:74
41285 #, no-wrap
41286 msgid ""
41287 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41288 "\n"
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../tools/virt-win-reg.pl:76
41293 msgid "You can also display single values from within registry keys, for example:"
41294 msgstr ""
41295
41296 #. type: verbatim
41297 #: ../tools/virt-win-reg.pl:79
41298 #, no-wrap
41299 msgid ""
41300 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41301 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41302 " Windows 7 Enterprise\n"
41303 "\n"
41304 msgstr ""
41305
41306 #. type: textblock
41307 #: ../tools/virt-win-reg.pl:83
41308 msgid ""
41309 "With I<--merge>, you can merge a textual regedit file into the Windows "
41310 "Registry:"
41311 msgstr ""
41312
41313 #. type: verbatim
41314 #: ../tools/virt-win-reg.pl:86
41315 #, no-wrap
41316 msgid ""
41317 " $ virt-win-reg --merge Windows7 changes.reg\n"
41318 "\n"
41319 msgstr ""
41320
41321 #. type: textblock
41322 #: ../tools/virt-win-reg.pl:90
41323 msgid ""
41324 "This program is only meant for simple access to the registry.  If you want "
41325 "to do complicated things with the registry, we suggest you download the "
41326 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41327 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41328 "L<hivexregedit(1)>."
41329 msgstr ""
41330
41331 #. type: =item
41332 #: ../tools/virt-win-reg.pl:159
41333 msgid "B<--merge>"
41334 msgstr ""
41335
41336 #. type: textblock
41337 #: ../tools/virt-win-reg.pl:161
41338 msgid ""
41339 "In merge mode, this merges a textual regedit file into the Windows Registry "
41340 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41341 "displays or exports Registry entries instead."
41342 msgstr ""
41343
41344 #. type: textblock
41345 #: ../tools/virt-win-reg.pl:165
41346 msgid ""
41347 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41348 "result in disk corruption.  However exporting (without this flag)  is always "
41349 "safe."
41350 msgstr ""
41351
41352 #. type: =item
41353 #: ../tools/virt-win-reg.pl:173
41354 msgid "B<--encoding> UTF-16LE|ASCII"
41355 msgstr ""
41356
41357 #. type: textblock
41358 #: ../tools/virt-win-reg.pl:175
41359 msgid ""
41360 "When merging (only), you may need to specify the encoding for strings to be "
41361 "used in the hive file.  This is explained in detail in "
41362 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
41363 msgstr ""
41364
41365 #. type: textblock
41366 #: ../tools/virt-win-reg.pl:179
41367 msgid ""
41368 "The default is to use UTF-16LE, which should work with recent versions of "
41369 "Windows."
41370 msgstr ""
41371
41372 #. type: =item
41373 #: ../tools/virt-win-reg.pl:186
41374 msgid "B<--unsafe-printable-strings>"
41375 msgstr ""
41376
41377 #. type: textblock
41378 #: ../tools/virt-win-reg.pl:188
41379 msgid ""
41380 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41381 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41382 "present."
41383 msgstr ""
41384
41385 #. type: textblock
41386 #: ../tools/virt-win-reg.pl:192
41387 msgid ""
41388 "This is unsafe and does not preserve the fidelity of strings in the original "
41389 "Registry for various reasons:"
41390 msgstr ""
41391
41392 #. type: textblock
41393 #: ../tools/virt-win-reg.pl:199
41394 msgid ""
41395 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41396 "other encodings will be corrupted by this transformation."
41397 msgstr ""
41398
41399 #. type: textblock
41400 #: ../tools/virt-win-reg.pl:204
41401 msgid ""
41402 "Assumes that everything which has type 1 or 2 is really a string and that "
41403 "everything else is not a string, but the type field in real Registries is "
41404 "not reliable."
41405 msgstr ""
41406
41407 #. type: textblock
41408 #: ../tools/virt-win-reg.pl:210
41409 msgid ""
41410 "Loses information about whether a zero codepoint followed the string in the "
41411 "Registry or not."
41412 msgstr ""
41413
41414 #. type: textblock
41415 #: ../tools/virt-win-reg.pl:215
41416 msgid ""
41417 "This all happens because the Registry itself contains no information about "
41418 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41419 msgstr ""
41420
41421 #. type: textblock
41422 #: ../tools/virt-win-reg.pl:219
41423 msgid ""
41424 "You should only use this option for quick hacking and debugging of the "
41425 "Registry contents, and I<never> use it if the output is going to be passed "
41426 "into another program or stored in another Registry."
41427 msgstr ""
41428
41429 #. type: =head1
41430 #: ../tools/virt-win-reg.pl:556
41431 msgid "SUPPORTED SYSTEMS"
41432 msgstr ""
41433
41434 #. type: textblock
41435 #: ../tools/virt-win-reg.pl:558
41436 msgid ""
41437 "The program currently supports Windows NT-derived guests starting with "
41438 "Windows XP through to at least Windows 7."
41439 msgstr ""
41440
41441 #. type: textblock
41442 #: ../tools/virt-win-reg.pl:561
41443 msgid "The following Registry keys are supported:"
41444 msgstr ""
41445
41446 #. type: =item
41447 #: ../tools/virt-win-reg.pl:565
41448 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41449 msgstr ""
41450
41451 #. type: =item
41452 #: ../tools/virt-win-reg.pl:567
41453 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41454 msgstr ""
41455
41456 #. type: =item
41457 #: ../tools/virt-win-reg.pl:569
41458 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41459 msgstr ""
41460
41461 #. type: =item
41462 #: ../tools/virt-win-reg.pl:571
41463 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41464 msgstr ""
41465
41466 #. type: =item
41467 #: ../tools/virt-win-reg.pl:573
41468 msgid "C<HKEY_USERS\\.DEFAULT>"
41469 msgstr ""
41470
41471 #. type: =item
41472 #: ../tools/virt-win-reg.pl:575
41473 msgid "C<HKEY_USERS\\I<SID>>"
41474 msgstr ""
41475
41476 #. type: textblock
41477 #: ../tools/virt-win-reg.pl:577
41478 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41479 msgstr ""
41480
41481 #. type: =item
41482 #: ../tools/virt-win-reg.pl:579
41483 msgid "C<HKEY_USERS\\I<username>>"
41484 msgstr ""
41485
41486 #. type: textblock
41487 #: ../tools/virt-win-reg.pl:581
41488 msgid "where I<username> is a local user name (this is a libguestfs extension)."
41489 msgstr ""
41490
41491 #. type: textblock
41492 #: ../tools/virt-win-reg.pl:585
41493 msgid ""
41494 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41495 "C<HKEY_USERS>."
41496 msgstr ""
41497
41498 #. type: textblock
41499 #: ../tools/virt-win-reg.pl:588
41500 msgid ""
41501 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41502 "supported (there is no \"current user\")."
41503 msgstr ""
41504
41505 #. type: =head1
41506 #: ../tools/virt-win-reg.pl:591
41507 msgid "ENCODING"
41508 msgstr ""
41509
41510 #. type: textblock
41511 #: ../tools/virt-win-reg.pl:593
41512 msgid ""
41513 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41514 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
41515 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
41516 "with Windows-style line endings, you may need to reencode the whole file "
41517 "before or after processing."
41518 msgstr ""
41519
41520 #. type: textblock
41521 #: ../tools/virt-win-reg.pl:599
41522 msgid ""
41523 "To reencode a file from Windows format to Linux (before processing it with "
41524 "the I<--merge> option), you would do something like this:"
41525 msgstr ""
41526
41527 #. type: verbatim
41528 #: ../tools/virt-win-reg.pl:602
41529 #, no-wrap
41530 msgid ""
41531 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41532 "\n"
41533 msgstr ""
41534
41535 #. type: textblock
41536 #: ../tools/virt-win-reg.pl:604
41537 msgid ""
41538 "To go in the opposite direction, after exporting and before sending the file "
41539 "to a Windows user, do something like this:"
41540 msgstr ""
41541
41542 #. type: verbatim
41543 #: ../tools/virt-win-reg.pl:607
41544 #, no-wrap
41545 msgid ""
41546 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41547 "\n"
41548 msgstr ""
41549
41550 #. type: textblock
41551 #: ../tools/virt-win-reg.pl:609
41552 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41553 msgstr ""
41554
41555 #. type: textblock
41556 #: ../tools/virt-win-reg.pl:611
41557 msgid ""
41558 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41559 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
41560 "Windows-style (CRLF) line endings, like this:"
41561 msgstr ""
41562
41563 #. type: verbatim
41564 #: ../tools/virt-win-reg.pl:615
41565 #, no-wrap
41566 msgid ""
41567 " $ file software.reg\n"
41568 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41569 " with CRLF line terminators\n"
41570 "\n"
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../tools/virt-win-reg.pl:619
41575 msgid "This file would need conversion before you could I<--merge> it."
41576 msgstr ""
41577
41578 #. type: =head1
41579 #: ../tools/virt-win-reg.pl:621
41580 msgid "CurrentControlSet etc."
41581 msgstr ""
41582
41583 #. type: textblock
41584 #: ../tools/virt-win-reg.pl:623
41585 msgid ""
41586 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41587 "Registry at the level of the hive file, and therefore you cannot modify "
41588 "these."
41589 msgstr ""
41590
41591 #. type: textblock
41592 #: ../tools/virt-win-reg.pl:627
41593 msgid ""
41594 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41595 "circumstances it might refer to another control set.  The way to find out is "
41596 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41597 msgstr ""
41598
41599 #. type: verbatim
41600 #: ../tools/virt-win-reg.pl:631
41601 #, no-wrap
41602 msgid ""
41603 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41604 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41605 " \"Current\"=dword:00000001\n"
41606 " \"Default\"=dword:00000001\n"
41607 " \"Failed\"=dword:00000000\n"
41608 " \"LastKnownGood\"=dword:00000002\n"
41609 "\n"
41610 msgstr ""
41611
41612 #. type: textblock
41613 #: ../tools/virt-win-reg.pl:638
41614 msgid "\"Current\" is the one which Windows will choose when it boots."
41615 msgstr ""
41616
41617 #. type: textblock
41618 #: ../tools/virt-win-reg.pl:640
41619 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
41620 msgstr ""
41621
41622 #. type: =head1
41623 #: ../tools/virt-win-reg.pl:643
41624 msgid "DELETING REGISTRY KEYS AND VALUES"
41625 msgstr ""
41626
41627 #. type: textblock
41628 #: ../tools/virt-win-reg.pl:645
41629 msgid "To delete a whole registry key, use the syntax:"
41630 msgstr ""
41631
41632 #. type: verbatim
41633 #: ../tools/virt-win-reg.pl:647
41634 #, no-wrap
41635 msgid ""
41636 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41637 "\n"
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../tools/virt-win-reg.pl:649
41642 msgid "To delete a single value within a key, use the syntax:"
41643 msgstr ""
41644
41645 #. type: verbatim
41646 #: ../tools/virt-win-reg.pl:651
41647 #, no-wrap
41648 msgid ""
41649 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41650 " \"Value\"=-\n"
41651 "\n"
41652 msgstr ""
41653
41654 #. type: =head1
41655 #: ../tools/virt-win-reg.pl:654
41656 msgid "WINDOWS TIPS"
41657 msgstr ""
41658
41659 #. type: textblock
41660 #: ../tools/virt-win-reg.pl:656
41661 msgid ""
41662 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41663 "be shut off, else you will get disk corruption."
41664 msgstr ""
41665
41666 #. type: =head2
41667 #: ../tools/virt-win-reg.pl:659
41668 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../tools/virt-win-reg.pl:661
41673 msgid ""
41674 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41675 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41676 "is uploaded into C<C:\\>:"
41677 msgstr ""
41678
41679 #. type: verbatim
41680 #: ../tools/virt-win-reg.pl:665
41681 #, no-wrap
41682 msgid ""
41683 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41684 "\n"
41685 msgstr ""
41686
41687 #. type: textblock
41688 #: ../tools/virt-win-reg.pl:667
41689 msgid "Prepare a regedit file containing the registry change:"
41690 msgstr ""
41691
41692 #. type: verbatim
41693 #: ../tools/virt-win-reg.pl:669
41694 #, no-wrap
41695 msgid ""
41696 " cat > test.reg <<'EOF'\n"
41697 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41698 " \"Test\"=\"c:\\\\test.bat\"\n"
41699 " EOF\n"
41700 "\n"
41701 msgstr ""
41702
41703 #. type: textblock
41704 #: ../tools/virt-win-reg.pl:674
41705 msgid ""
41706 "In this example we use the key C<RunOnce> which means that the script will "
41707 "run precisely once when the first user logs in.  If you want it to run every "
41708 "time a user logs in, replace C<RunOnce> with C<Run>."
41709 msgstr ""
41710
41711 #. type: textblock
41712 #: ../tools/virt-win-reg.pl:678
41713 msgid "Now update the registry:"
41714 msgstr ""
41715
41716 #. type: verbatim
41717 #: ../tools/virt-win-reg.pl:680
41718 #, no-wrap
41719 msgid ""
41720 " virt-win-reg --merge WindowsGuest test.reg\n"
41721 "\n"
41722 msgstr ""
41723
41724 #. type: =head2
41725 #: ../tools/virt-win-reg.pl:682
41726 msgid "INSTALLING A SERVICE"
41727 msgstr ""
41728
41729 #. type: textblock
41730 #: ../tools/virt-win-reg.pl:684
41731 msgid ""
41732 "This section assumes you are familiar with Windows services, and you either "
41733 "have a program which handles the Windows Service Control Protocol directly "
41734 "or you want to run any program using a service wrapper like SrvAny or the "
41735 "free RHSrvAny."
41736 msgstr ""
41737
41738 #. type: textblock
41739 #: ../tools/virt-win-reg.pl:689
41740 msgid ""
41741 "First upload the program and optionally the service wrapper.  In this case "
41742 "the test program is called C<test.exe> and we are using the RHSrvAny "
41743 "wrapper:"
41744 msgstr ""
41745
41746 #. type: verbatim
41747 #: ../tools/virt-win-reg.pl:693
41748 #, no-wrap
41749 msgid ""
41750 " guestfish -i -d WindowsGuest <<EOF\n"
41751 "   upload rhsrvany.exe /rhsrvany.exe\n"
41752 "   upload test.exe /test.exe\n"
41753 " EOF\n"
41754 "\n"
41755 msgstr ""
41756
41757 #. type: textblock
41758 #: ../tools/virt-win-reg.pl:698
41759 msgid ""
41760 "Prepare a regedit file containing the registry changes.  In this example, "
41761 "the first registry change is needed for the service itself or the service "
41762 "wrapper (if used).  The second registry change is only needed because I am "
41763 "using the RHSrvAny service wrapper."
41764 msgstr ""
41765
41766 #. type: verbatim
41767 #: ../tools/virt-win-reg.pl:703
41768 #, no-wrap
41769 msgid ""
41770 " cat > service.reg <<'EOF'\n"
41771 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41772 " \"Type\"=dword:00000010\n"
41773 " \"Start\"=dword:00000002\n"
41774 " \"ErrorControl\"=dword:00000001\n"
41775 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41776 " \"DisplayName\"=\"RHSrvAny\"\n"
41777 " \"ObjectName\"=\"NetworkService\"\n"
41778 " \n"
41779 msgstr ""
41780
41781 #. type: verbatim
41782 #: ../tools/virt-win-reg.pl:712
41783 #, no-wrap
41784 msgid ""
41785 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41786 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41787 " \"PWD\"=\"c:\\\\Temp\"\n"
41788 " EOF\n"
41789 "\n"
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../tools/virt-win-reg.pl:723
41794 msgid ""
41795 "For use of C<ControlSet001> see the section above in this manual page.  You "
41796 "may need to adjust this according to the control set that is in use by the "
41797 "guest."
41798 msgstr ""
41799
41800 #. type: textblock
41801 #: ../tools/virt-win-reg.pl:729
41802 msgid ""
41803 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41804 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41805 "privileged account."
41806 msgstr ""
41807
41808 #. type: textblock
41809 #: ../tools/virt-win-reg.pl:735
41810 msgid ""
41811 "For the meaning of the magic numbers, see this Microsoft KB article: "
41812 "L<http://support.microsoft.com/kb/103000>."
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../tools/virt-win-reg.pl:740
41817 msgid "Update the registry:"
41818 msgstr ""
41819
41820 #. type: verbatim
41821 #: ../tools/virt-win-reg.pl:742
41822 #, no-wrap
41823 msgid ""
41824 " virt-win-reg --merge WindowsGuest service.reg\n"
41825 "\n"
41826 msgstr ""
41827
41828 #. type: textblock
41829 #: ../tools/virt-win-reg.pl:746
41830 msgid ""
41831 "Be careful when passing parameters containing C<\\> (backslash) in the "
41832 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41833 "(but not both) to protect them from the shell."
41834 msgstr ""
41835
41836 #. type: textblock
41837 #: ../tools/virt-win-reg.pl:750
41838 msgid "Paths and value names are case-insensitive."
41839 msgstr ""
41840
41841 #. type: textblock
41842 #: ../tools/virt-win-reg.pl:759
41843 msgid ""
41844 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
41845 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
41846 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
41847 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41848 msgstr ""
41849
41850 #. type: verbatim
41851 #: ../tools/virt-win-reg.pl:777
41852 #, no-wrap
41853 msgid ""
41854 " export LIBGUESTFS_DEBUG=1\n"
41855 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41856 "\n"
41857 msgstr ""
41858
41859 #. type: textblock
41860 #: ../tools/virt-win-reg.pl:780
41861 msgid ""
41862 "Attach /tmp/virt-win-reg.log to a new bug report at "
41863 "L<https://bugzilla.redhat.com/>"
41864 msgstr ""