Version 1.15.14.
[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.15.14\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-12-23 12:44+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:31 ../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:112 ../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:116 ../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:118 ../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:120
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:122
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:128
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:135
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:137
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:139 ../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:142
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:145
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:147
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:149
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:152
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:154
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:156
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:161 ../src/guestfs.pod:2878
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:165
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:169
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:172
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:177
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:179
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:219 ../sparsify/virt-sparsify.pod:183
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:221 ../sparsify/virt-sparsify.pod:185
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:223 ../sparsify/virt-sparsify.pod:187
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:225 ../resize/virt-resize.pod:567 ../sparsify/virt-sparsify.pod:189
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:227 ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:191 ../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:229 ../resize/virt-resize.pod:571 ../sparsify/virt-sparsify.pod:193 ../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:240 ../sparsify/virt-sparsify.pod:195 ../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:242 ../sparsify/virt-sparsify.pod:197
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:303 ../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:305 ../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:251 ../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:1293 ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301 ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313 ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321 ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429 ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438 ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494 ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757 ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195 ../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:2118 ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126 ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160 ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377 ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388 ../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:3048 ../src/guestfs.pod:3053 ../src/guestfs.pod:3057 ../src/guestfs.pod:3061 ../src/guestfs.pod:3065 ../src/guestfs.pod:3079 ../src/guestfs.pod:3084 ../src/guestfs.pod:3316 ../src/guestfs.pod:3320 ../src/guestfs.pod:3324 ../src/guestfs.pod:3328 ../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:325 ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3256 ../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:334 ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288 ../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:336 ../resize/virt-resize.pod:719 ../sparsify/virt-sparsify.pod:290 ../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:338 ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3339 ../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:294
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:342 ../resize/virt-resize.pod:725 ../sparsify/virt-sparsify.pod:296 ../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:347 ../resize/virt-resize.pod:730 ../sparsify/virt-sparsify.pod:301 ../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:352 ../resize/virt-resize.pod:735 ../sparsify/virt-sparsify.pod:306 ../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:124
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:246
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:252
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:256
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:260
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:253
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:15
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:4519
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:340
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:21 ../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:298 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:3195 ../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:3335 ../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:3337 ../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:3344
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:3349
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:3354
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:1481 ../fish/guestfish-actions.pod:1746 ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3356 ../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:2793
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:3069
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:972 ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180 ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554 ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734 ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700 ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739 ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505 ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281 ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903 ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331 ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8674
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:655 ../fish/guestfish-actions.pod:866 ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925 ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943 ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202 ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472 ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770 ../fish/guestfish-actions.pod:5141
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:3434 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318
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 ../fish/guestfish-actions.pod:3277 ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039
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:780 ../fish/guestfish-actions.pod:864 ../fish/guestfish-actions.pod:885 ../fish/guestfish-actions.pod:1056 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1449 ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5009 ../fish/guestfish-actions.pod:5020 ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5171 ../fish/guestfish-actions.pod:5225 ../fish/guestfish-actions.pod:5248
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 "blkid"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:504
7025 #, no-wrap
7026 msgid ""
7027 " blkid device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7033 msgid ""
7034 "This command returns block device attributes for C<device>. The following "
7035 "fields are usually present in the returned hash. Other fields may also be "
7036 "present."
7037 msgstr ""
7038
7039 #. type: =item
7040 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:734
7041 msgid "C<UUID>"
7042 msgstr ""
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:513 ../src/guestfs-actions.pod:736
7046 msgid "The uuid of this device."
7047 msgstr ""
7048
7049 #. type: =item
7050 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:738
7051 msgid "C<LABEL>"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:517 ../src/guestfs-actions.pod:740
7056 msgid "The label of this device."
7057 msgstr ""
7058
7059 #. type: =item
7060 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:742
7061 msgid "C<VERSION>"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:744
7066 msgid "The version of blkid command."
7067 msgstr ""
7068
7069 #. type: =item
7070 #: ../fish/guestfish-actions.pod:523 ../src/guestfs-actions.pod:746
7071 msgid "C<TYPE>"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:525 ../src/guestfs-actions.pod:748
7076 msgid "The filesystem type or RAID of this device."
7077 msgstr ""
7078
7079 #. type: =item
7080 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:750
7081 msgid "C<USAGE>"
7082 msgstr ""
7083
7084 #. type: textblock
7085 #: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:752
7086 msgid "The usage of this device, for example C<filesystem> or C<raid>."
7087 msgstr ""
7088
7089 #. type: =head2
7090 #: ../fish/guestfish-actions.pod:533
7091 msgid "blockdev-flushbufs"
7092 msgstr ""
7093
7094 #. type: verbatim
7095 #: ../fish/guestfish-actions.pod:535
7096 #, no-wrap
7097 msgid ""
7098 " blockdev-flushbufs device\n"
7099 "\n"
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:537 ../src/guestfs-actions.pod:768
7104 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:570 ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:595 ../fish/guestfish-actions.pod:603 ../fish/guestfish-actions.pod:614 ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:888 ../src/guestfs-actions.pod:902 ../src/guestfs-actions.pod:916
7109 msgid "This uses the L<blockdev(8)> command."
7110 msgstr ""
7111
7112 #. type: =head2
7113 #: ../fish/guestfish-actions.pod:542
7114 msgid "blockdev-getbsz"
7115 msgstr ""
7116
7117 #. type: verbatim
7118 #: ../fish/guestfish-actions.pod:544
7119 #, no-wrap
7120 msgid ""
7121 " blockdev-getbsz device\n"
7122 "\n"
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:783
7127 msgid "This returns the block size of a device."
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../fish/guestfish-actions.pod:548 ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:885
7132 msgid ""
7133 "(Note this is different from both I<size in blocks> and I<filesystem block "
7134 "size>)."
7135 msgstr ""
7136
7137 #. type: =head2
7138 #: ../fish/guestfish-actions.pod:553
7139 msgid "blockdev-getro"
7140 msgstr ""
7141
7142 #. type: verbatim
7143 #: ../fish/guestfish-actions.pod:555
7144 #, no-wrap
7145 msgid ""
7146 " blockdev-getro device\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:800
7152 msgid ""
7153 "Returns a boolean indicating if the block device is read-only (true if "
7154 "read-only, false if not)."
7155 msgstr ""
7156
7157 #. type: =head2
7158 #: ../fish/guestfish-actions.pod:562
7159 msgid "blockdev-getsize64"
7160 msgstr ""
7161
7162 #. type: verbatim
7163 #: ../fish/guestfish-actions.pod:564
7164 #, no-wrap
7165 msgid ""
7166 " blockdev-getsize64 device\n"
7167 "\n"
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:815
7172 msgid "This returns the size of the device in bytes."
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:568
7177 msgid "See also L</blockdev-getsz>."
7178 msgstr ""
7179
7180 #. type: =head2
7181 #: ../fish/guestfish-actions.pod:572
7182 msgid "blockdev-getss"
7183 msgstr ""
7184
7185 #. type: verbatim
7186 #: ../fish/guestfish-actions.pod:574
7187 #, no-wrap
7188 msgid ""
7189 " blockdev-getss device\n"
7190 "\n"
7191 msgstr ""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:831
7195 msgid ""
7196 "This returns the size of sectors on a block device.  Usually 512, but can be "
7197 "larger for modern devices."
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:579
7202 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../fish/guestfish-actions.pod:584
7207 msgid "blockdev-getsz"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../fish/guestfish-actions.pod:586
7212 #, no-wrap
7213 msgid ""
7214 " blockdev-getsz device\n"
7215 "\n"
7216 msgstr ""
7217
7218 #. type: textblock
7219 #: ../fish/guestfish-actions.pod:588 ../src/guestfs-actions.pod:849
7220 msgid ""
7221 "This returns the size of the device in units of 512-byte sectors (even if "
7222 "the sectorsize isn't 512 bytes ... weird)."
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:591
7227 msgid ""
7228 "See also L</blockdev-getss> for the real sector size of the device, and "
7229 "L</blockdev-getsize64> for the more useful I<size in bytes>."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../fish/guestfish-actions.pod:597
7234 msgid "blockdev-rereadpt"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../fish/guestfish-actions.pod:599
7239 #, no-wrap
7240 msgid ""
7241 " blockdev-rereadpt device\n"
7242 "\n"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:868
7247 msgid "Reread the partition table on C<device>."
7248 msgstr ""
7249
7250 #. type: =head2
7251 #: ../fish/guestfish-actions.pod:605
7252 msgid "blockdev-setbsz"
7253 msgstr ""
7254
7255 #. type: verbatim
7256 #: ../fish/guestfish-actions.pod:607
7257 #, no-wrap
7258 msgid ""
7259 " blockdev-setbsz device blocksize\n"
7260 "\n"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:609 ../src/guestfs-actions.pod:883
7265 msgid "This sets the block size of a device."
7266 msgstr ""
7267
7268 #. type: =head2
7269 #: ../fish/guestfish-actions.pod:616
7270 msgid "blockdev-setro"
7271 msgstr ""
7272
7273 #. type: verbatim
7274 #: ../fish/guestfish-actions.pod:618
7275 #, no-wrap
7276 msgid ""
7277 " blockdev-setro device\n"
7278 "\n"
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:900
7283 msgid "Sets the block device named C<device> to read-only."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:624
7288 msgid "blockdev-setrw"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:626
7293 #, no-wrap
7294 msgid ""
7295 " blockdev-setrw device\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:628 ../src/guestfs-actions.pod:914
7301 msgid "Sets the block device named C<device> to read-write."
7302 msgstr ""
7303
7304 #. type: =head2
7305 #: ../fish/guestfish-actions.pod:632
7306 msgid "btrfs-filesystem-resize"
7307 msgstr ""
7308
7309 #. type: verbatim
7310 #: ../fish/guestfish-actions.pod:634
7311 #, no-wrap
7312 msgid ""
7313 " btrfs-filesystem-resize mountpoint [size:N]\n"
7314 "\n"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:636 ../src/guestfs-actions.pod:936
7319 msgid "This command resizes a btrfs filesystem."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:638 ../src/guestfs-actions.pod:938
7324 msgid ""
7325 "Note that unlike other resize calls, the filesystem has to be mounted and "
7326 "the parameter is the mountpoint not the device (this is a requirement of "
7327 "btrfs itself)."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:4935 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:7818
7332 msgid "The optional parameters are:"
7333 msgstr ""
7334
7335 #. type: =item
7336 #: ../fish/guestfish-actions.pod:646 ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:5846
7337 msgid "C<size>"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:948
7342 msgid ""
7343 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7344 "resized to the maximum size."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:953
7349 msgid "See also L<btrfs(8)>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../fish/guestfish-actions.pod:657
7354 msgid "case-sensitive-path"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../fish/guestfish-actions.pod:659
7359 #, no-wrap
7360 msgid ""
7361 " case-sensitive-path path\n"
7362 "\n"
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:987
7367 msgid ""
7368 "This can be used to resolve case insensitive paths on a filesystem which is "
7369 "case sensitive.  The use case is to resolve paths which you have read from "
7370 "Windows configuration files or the Windows Registry, to the true path."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:666 ../src/guestfs-actions.pod:992
7375 msgid ""
7376 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7377 "(and probably others), which is that although the underlying filesystem is "
7378 "case-insensitive, the driver exports the filesystem to Linux as "
7379 "case-sensitive."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:671 ../src/guestfs-actions.pod:997
7384 msgid ""
7385 "One consequence of this is that special directories such as C<c:\\windows> "
7386 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7387 "precise details of how they were created.  In Windows itself this would not "
7388 "be a problem."
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:1003
7393 msgid ""
7394 "Bug or feature? You decide: "
7395 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1006
7400 msgid ""
7401 "This function resolves the true case of each element in the path and returns "
7402 "the case-sensitive path."
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:683
7407 msgid ""
7408 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
7409 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7410 "how the directories were originally created under Windows)."
7411 msgstr ""
7412
7413 #. type: textblock
7414 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1014
7415 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7416 msgstr ""
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:691
7420 msgid "See also L</realpath>."
7421 msgstr ""
7422
7423 #. type: =head2
7424 #: ../fish/guestfish-actions.pod:693
7425 msgid "cat"
7426 msgstr ""
7427
7428 #. type: verbatim
7429 #: ../fish/guestfish-actions.pod:695
7430 #, no-wrap
7431 msgid ""
7432 " cat path\n"
7433 "\n"
7434 msgstr ""
7435
7436 #. type: textblock
7437 #: ../fish/guestfish-actions.pod:697 ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:6502
7438 msgid "Return the contents of the file named C<path>."
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../fish/guestfish-actions.pod:699
7443 msgid ""
7444 "Note that this function cannot correctly handle binary files (specifically, "
7445 "files containing C<\\0> character which is treated as end of string).  For "
7446 "those you need to use the L</read-file> or L</download> functions which have "
7447 "a more complex interface."
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:704 ../fish/guestfish-actions.pod:839 ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1134 ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1211 ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:1413 ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1736 ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4061 ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4154 ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4838 ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4969 ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:5469 ../fish/guestfish-actions.pod:5481 ../fish/guestfish-actions.pod:5499 ../fish/guestfish-actions.pod:5516 ../fish/guestfish-actions.pod:5526 ../fish/guestfish-actions.pod:5580 ../fish/guestfish-actions.pod:5590 ../fish/guestfish-actions.pod:5619 ../fish/guestfish-actions.pod:5629 ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1894 ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:2917 ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6467 ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7446 ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:8458 ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8511 ../src/guestfs-actions.pod:8530 ../src/guestfs-actions.pod:8549 ../src/guestfs-actions.pod:8640 ../src/guestfs-actions.pod:8659 ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8724
7452 msgid ""
7453 "Because of the message protocol, there is a transfer limit of somewhere "
7454 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7455 msgstr ""
7456
7457 #. type: =head2
7458 #: ../fish/guestfish-actions.pod:707
7459 msgid "checksum"
7460 msgstr ""
7461
7462 #. type: verbatim
7463 #: ../fish/guestfish-actions.pod:709
7464 #, no-wrap
7465 msgid ""
7466 " checksum csumtype path\n"
7467 "\n"
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1052
7472 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:714 ../src/guestfs-actions.pod:1055
7477 msgid ""
7478 "The type of checksum to compute is given by the C<csumtype> parameter which "
7479 "must have one of the following values:"
7480 msgstr ""
7481
7482 #. type: =item
7483 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1060
7484 msgid "C<crc>"
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:721 ../src/guestfs-actions.pod:1062
7489 msgid ""
7490 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7491 "C<cksum> command."
7492 msgstr ""
7493
7494 #. type: =item
7495 #: ../fish/guestfish-actions.pod:724 ../src/guestfs-actions.pod:1065
7496 msgid "C<md5>"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:726 ../src/guestfs-actions.pod:1067
7501 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7502 msgstr ""
7503
7504 #. type: =item
7505 #: ../fish/guestfish-actions.pod:728 ../src/guestfs-actions.pod:1069
7506 msgid "C<sha1>"
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:730 ../src/guestfs-actions.pod:1071
7511 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7512 msgstr ""
7513
7514 #. type: =item
7515 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1073
7516 msgid "C<sha224>"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1075
7521 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7522 msgstr ""
7523
7524 #. type: =item
7525 #: ../fish/guestfish-actions.pod:736 ../src/guestfs-actions.pod:1077
7526 msgid "C<sha256>"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:738 ../src/guestfs-actions.pod:1079
7531 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7532 msgstr ""
7533
7534 #. type: =item
7535 #: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1081
7536 msgid "C<sha384>"
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1083
7541 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7542 msgstr ""
7543
7544 #. type: =item
7545 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1085
7546 msgid "C<sha512>"
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1087
7551 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:750 ../src/guestfs-actions.pod:1091
7556 msgid "The checksum is returned as a printable string."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:752
7561 msgid "To get the checksum for a device, use L</checksum-device>."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:754
7566 msgid "To get the checksums for many files, use L</checksums-out>."
7567 msgstr ""
7568
7569 #. type: =head2
7570 #: ../fish/guestfish-actions.pod:756
7571 msgid "checksum-device"
7572 msgstr ""
7573
7574 #. type: verbatim
7575 #: ../fish/guestfish-actions.pod:758
7576 #, no-wrap
7577 msgid ""
7578 " checksum-device csumtype device\n"
7579 "\n"
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../fish/guestfish-actions.pod:760
7584 msgid ""
7585 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7586 "device named C<device>.  For the types of checksums supported see the "
7587 "L</checksum> command."
7588 msgstr ""
7589
7590 #. type: =head2
7591 #: ../fish/guestfish-actions.pod:764
7592 msgid "checksums-out"
7593 msgstr ""
7594
7595 #. type: verbatim
7596 #: ../fish/guestfish-actions.pod:766
7597 #, no-wrap
7598 msgid ""
7599 " checksums-out csumtype directory (sumsfile|-)\n"
7600 "\n"
7601 msgstr ""
7602
7603 #. type: textblock
7604 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1126
7605 msgid ""
7606 "This command computes the checksums of all regular files in C<directory> and "
7607 "then emits a list of those checksums to the local output file C<sumsfile>."
7608 msgstr ""
7609
7610 #. type: textblock
7611 #: ../fish/guestfish-actions.pod:772 ../src/guestfs-actions.pod:1130
7612 msgid ""
7613 "This can be used for verifying the integrity of a virtual machine.  However "
7614 "to be properly secure you should pay attention to the output of the checksum "
7615 "command (it uses the ones from GNU coreutils).  In particular when the "
7616 "filename is not printable, coreutils uses a special backslash syntax.  For "
7617 "more information, see the GNU coreutils info file."
7618 msgstr ""
7619
7620 #. type: =head2
7621 #: ../fish/guestfish-actions.pod:782
7622 msgid "chmod"
7623 msgstr ""
7624
7625 #. type: verbatim
7626 #: ../fish/guestfish-actions.pod:784
7627 #, no-wrap
7628 msgid ""
7629 " chmod mode path\n"
7630 "\n"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:786 ../src/guestfs-actions.pod:1149
7635 msgid ""
7636 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7637 "supported."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1152
7642 msgid ""
7643 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7644 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7645 "C<700>."
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3547 ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:1156 ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5458 ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5496
7650 msgid "The mode actually set is affected by the umask."
7651 msgstr ""
7652
7653 #. type: =head2
7654 #: ../fish/guestfish-actions.pod:795
7655 msgid "chown"
7656 msgstr ""
7657
7658 #. type: verbatim
7659 #: ../fish/guestfish-actions.pod:797
7660 #, no-wrap
7661 msgid ""
7662 " chown owner group path\n"
7663 "\n"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1170
7668 msgid "Change the file owner to C<owner> and group to C<group>."
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:801 ../fish/guestfish-actions.pod:2738 ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:4167
7673 msgid ""
7674 "Only numeric uid and gid are supported.  If you want to use names, you will "
7675 "need to locate and parse the password file yourself (Augeas support makes "
7676 "this relatively easy)."
7677 msgstr ""
7678
7679 #. type: =head2
7680 #: ../fish/guestfish-actions.pod:805
7681 msgid "command"
7682 msgstr ""
7683
7684 #. type: verbatim
7685 #: ../fish/guestfish-actions.pod:807
7686 #, no-wrap
7687 msgid ""
7688 " command 'arguments ...'\n"
7689 "\n"
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:809 ../src/guestfs-actions.pod:1186
7694 msgid ""
7695 "This call runs a command from the guest filesystem.  The filesystem must be "
7696 "mounted, and must contain a compatible operating system (ie. something "
7697 "Linux, with the same or compatible processor architecture)."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:814
7702 msgid ""
7703 "The single parameter is an argv-style list of arguments.  The first element "
7704 "is the name of the program to run.  Subsequent elements are parameters.  The "
7705 "list must be non-empty (ie. must contain a program name).  Note that the "
7706 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7707 msgstr ""
7708
7709 #. type: textblock
7710 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1198
7711 msgid "The return value is anything printed to I<stdout> by the command."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1201
7716 msgid ""
7717 "If the command returns a non-zero exit status, then this function returns an "
7718 "error message.  The error message string is the content of I<stderr> from "
7719 "the command."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:828 ../src/guestfs-actions.pod:1205
7724 msgid ""
7725 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7726 "C</bin>.  If you require a program from another location, you should provide "
7727 "the full path in the first parameter."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:833 ../src/guestfs-actions.pod:1210
7732 msgid ""
7733 "Shared libraries and data files required by the program must be available on "
7734 "filesystems which are mounted in the correct places.  It is the caller's "
7735 "responsibility to ensure all filesystems that are needed are mounted at the "
7736 "right locations."
7737 msgstr ""
7738
7739 #. type: =head2
7740 #: ../fish/guestfish-actions.pod:842
7741 msgid "command-lines"
7742 msgstr ""
7743
7744 #. type: verbatim
7745 #: ../fish/guestfish-actions.pod:844
7746 #, no-wrap
7747 msgid ""
7748 " command-lines 'arguments ...'\n"
7749 "\n"
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../fish/guestfish-actions.pod:846
7754 msgid "This is the same as L</command>, but splits the result into a list of lines."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:849
7759 msgid "See also: L</sh-lines>"
7760 msgstr ""
7761
7762 #. type: =head2
7763 #: ../fish/guestfish-actions.pod:854
7764 msgid "compress-device-out"
7765 msgstr ""
7766
7767 #. type: verbatim
7768 #: ../fish/guestfish-actions.pod:856
7769 #, no-wrap
7770 msgid ""
7771 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7772 "\n"
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../fish/guestfish-actions.pod:858 ../src/guestfs-actions.pod:1260
7777 msgid ""
7778 "This command compresses C<device> and writes it out to the local file "
7779 "C<zdevice>."
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:861
7784 msgid ""
7785 "The C<ctype> and optional C<level> parameters have the same meaning as in "
7786 "L</compress-out>."
7787 msgstr ""
7788
7789 #. type: =head2
7790 #: ../fish/guestfish-actions.pod:868
7791 msgid "compress-out"
7792 msgstr ""
7793
7794 #. type: verbatim
7795 #: ../fish/guestfish-actions.pod:870
7796 #, no-wrap
7797 msgid ""
7798 " compress-out ctype file (zfile|-) [level:N]\n"
7799 "\n"
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:872 ../src/guestfs-actions.pod:1312
7804 msgid ""
7805 "This command compresses C<file> and writes it out to the local file "
7806 "C<zfile>."
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:875 ../src/guestfs-actions.pod:1315
7811 msgid ""
7812 "The compression program used is controlled by the C<ctype> parameter.  "
7813 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7814 "Some compression types may not be supported by particular builds of "
7815 "libguestfs, in which case you will get an error containing the substring "
7816 "\"not supported\"."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1321
7821 msgid ""
7822 "The optional C<level> parameter controls compression level.  The meaning and "
7823 "default for this parameter depends on the compression program being used."
7824 msgstr ""
7825
7826 #. type: =head2
7827 #: ../fish/guestfish-actions.pod:889
7828 msgid "config"
7829 msgstr ""
7830
7831 #. type: verbatim
7832 #: ../fish/guestfish-actions.pod:891
7833 #, no-wrap
7834 msgid ""
7835 " config qemuparam qemuvalue\n"
7836 "\n"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:893 ../src/guestfs-actions.pod:1362
7841 msgid ""
7842 "This can be used to add arbitrary qemu command line parameters of the form "
7843 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7844 "setting some parameters which would interfere with parameters that we use."
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:898 ../src/guestfs-actions.pod:1367
7849 msgid "The first character of C<param> string must be a C<-> (dash)."
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:900 ../src/guestfs-actions.pod:1369
7854 msgid "C<value> can be NULL."
7855 msgstr ""
7856
7857 #. type: =head2
7858 #: ../fish/guestfish-actions.pod:902
7859 msgid "copy-device-to-device"
7860 msgstr ""
7861
7862 #. type: verbatim
7863 #: ../fish/guestfish-actions.pod:904
7864 #, no-wrap
7865 msgid ""
7866 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7867 "\n"
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:906
7872 msgid ""
7873 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7874 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7875 "source (device|file) to a destination (device|file)."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1399
7880 msgid ""
7881 "Partial copies can be made since you can specify optionally the source "
7882 "offset, destination offset and size to copy.  These values are all specified "
7883 "in bytes.  If not given, the offsets both default to zero, and the size "
7884 "defaults to copying as much as possible until we hit the end of the source."
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:919 ../src/guestfs-actions.pod:1405
7889 msgid ""
7890 "The source and destination may be the same object.  However overlapping "
7891 "regions may not be copied correctly."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:922 ../src/guestfs-actions.pod:1408
7896 msgid ""
7897 "If the destination is a file, it is created if required.  If the destination "
7898 "file is not large enough, it is extended."
7899 msgstr ""
7900
7901 #. type: =head2
7902 #: ../fish/guestfish-actions.pod:927
7903 msgid "copy-device-to-file"
7904 msgstr ""
7905
7906 #. type: verbatim
7907 #: ../fish/guestfish-actions.pod:929
7908 #, no-wrap
7909 msgid ""
7910 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7911 "\n"
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:931 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:949
7916 msgid "See L</copy-device-to-device> for a general overview of this call."
7917 msgstr ""
7918
7919 #. type: =head2
7920 #: ../fish/guestfish-actions.pod:936
7921 msgid "copy-file-to-device"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:938
7926 #, no-wrap
7927 msgid ""
7928 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: =head2
7933 #: ../fish/guestfish-actions.pod:945
7934 msgid "copy-file-to-file"
7935 msgstr ""
7936
7937 #. type: verbatim
7938 #: ../fish/guestfish-actions.pod:947
7939 #, no-wrap
7940 msgid ""
7941 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7942 "\n"
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:952
7947 msgid ""
7948 "This is B<not> the function you want for copying files.  This is for copying "
7949 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7950 "file copying and moving functions."
7951 msgstr ""
7952
7953 #. type: =head2
7954 #: ../fish/guestfish-actions.pod:959
7955 msgid "copy-size"
7956 msgstr ""
7957
7958 #. type: verbatim
7959 #: ../fish/guestfish-actions.pod:961
7960 #, no-wrap
7961 msgid ""
7962 " copy-size src dest size\n"
7963 "\n"
7964 msgstr ""
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1623
7968 msgid ""
7969 "This command copies exactly C<size> bytes from one source device or file "
7970 "C<src> to another destination device or file C<dest>."
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1626
7975 msgid ""
7976 "Note this will fail if the source is too short or if the destination is not "
7977 "large enough."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:969 ../fish/guestfish-actions.pod:1004
7982 msgid ""
7983 "I<This function is deprecated.> In new code, use the "
7984 "L</copy_device_to_device> call instead."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:976
7989 msgid "cp"
7990 msgstr ""
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:978
7994 #, no-wrap
7995 msgid ""
7996 " cp src dest\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:980 ../src/guestfs-actions.pod:1645
8002 msgid ""
8003 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8004 "destination filename or destination directory."
8005 msgstr ""
8006
8007 #. type: =head2
8008 #: ../fish/guestfish-actions.pod:983
8009 msgid "cp-a"
8010 msgstr ""
8011
8012 #. type: verbatim
8013 #: ../fish/guestfish-actions.pod:985
8014 #, no-wrap
8015 msgid ""
8016 " cp-a src dest\n"
8017 "\n"
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1659
8022 msgid ""
8023 "This copies a file or directory from C<src> to C<dest> recursively using the "
8024 "C<cp -a> command."
8025 msgstr ""
8026
8027 #. type: =head2
8028 #: ../fish/guestfish-actions.pod:990
8029 msgid "dd"
8030 msgstr ""
8031
8032 #. type: verbatim
8033 #: ../fish/guestfish-actions.pod:992
8034 #, no-wrap
8035 msgid ""
8036 " dd src dest\n"
8037 "\n"
8038 msgstr ""
8039
8040 #. type: textblock
8041 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1680
8042 msgid ""
8043 "This command copies from one source device or file C<src> to another "
8044 "destination device or file C<dest>.  Normally you would use this to copy to "
8045 "or from a device or partition, for example to duplicate a filesystem."
8046 msgstr ""
8047
8048 #. type: textblock
8049 #: ../fish/guestfish-actions.pod:999
8050 msgid ""
8051 "If the destination is a device, it must be as large or larger than the "
8052 "source file or device, otherwise the copy will fail.  This command cannot do "
8053 "partial copies (see L</copy-device-to-device>)."
8054 msgstr ""
8055
8056 #. type: =head2
8057 #: ../fish/guestfish-actions.pod:1011
8058 msgid "df"
8059 msgstr ""
8060
8061 #. type: verbatim
8062 #: ../fish/guestfish-actions.pod:1013
8063 #, no-wrap
8064 msgid ""
8065 " df\n"
8066 "\n"
8067 msgstr ""
8068
8069 #. type: textblock
8070 #: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1699
8071 msgid "This command runs the C<df> command to report disk space used."
8072 msgstr ""
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1028
8076 msgid ""
8077 "This command is mostly useful for interactive sessions.  It is I<not> "
8078 "intended that you try to parse the output string.  Use L</statvfs> from "
8079 "programs."
8080 msgstr ""
8081
8082 #. type: =head2
8083 #: ../fish/guestfish-actions.pod:1021
8084 msgid "df-h"
8085 msgstr ""
8086
8087 #. type: verbatim
8088 #: ../fish/guestfish-actions.pod:1023
8089 #, no-wrap
8090 msgid ""
8091 " df-h\n"
8092 "\n"
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1715
8097 msgid ""
8098 "This command runs the C<df -h> command to report disk space used in "
8099 "human-readable format."
8100 msgstr ""
8101
8102 #. type: =head2
8103 #: ../fish/guestfish-actions.pod:1032
8104 msgid "dmesg"
8105 msgstr ""
8106
8107 #. type: verbatim
8108 #: ../fish/guestfish-actions.pod:1034
8109 #, no-wrap
8110 msgid ""
8111 " dmesg\n"
8112 "\n"
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:1036 ../src/guestfs-actions.pod:1732
8117 msgid ""
8118 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8119 "This is sometimes useful for extended debugging of problems."
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../fish/guestfish-actions.pod:1040
8124 msgid ""
8125 "Another way to get the same information is to enable verbose messages with "
8126 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8127 "before running the program."
8128 msgstr ""
8129
8130 #. type: =head2
8131 #: ../fish/guestfish-actions.pod:1045
8132 msgid "download"
8133 msgstr ""
8134
8135 #. type: verbatim
8136 #: ../fish/guestfish-actions.pod:1047
8137 #, no-wrap
8138 msgid ""
8139 " download remotefilename (filename|-)\n"
8140 "\n"
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1049 ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:1778
8145 msgid ""
8146 "Download file C<remotefilename> and save it as C<filename> on the local "
8147 "machine."
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../fish/guestfish-actions.pod:1052 ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:8028
8152 msgid "C<filename> can also be a named pipe."
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../fish/guestfish-actions.pod:1054
8157 msgid "See also L</upload>, L</cat>."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:1058
8162 msgid "download-offset"
8163 msgstr ""
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:1060
8167 #, no-wrap
8168 msgid ""
8169 " download-offset remotefilename (filename|-) offset size\n"
8170 "\n"
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1065 ../src/guestfs-actions.pod:1781
8175 msgid ""
8176 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8177 "region must be within the file or device)."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:1068
8182 msgid ""
8183 "Note that there is no limit on the amount of data that can be downloaded "
8184 "with this call, unlike with L</pread>, and this call always reads the full "
8185 "amount unless an error occurs."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1073
8190 msgid "See also L</download>, L</pread>."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1077
8195 msgid "drop-caches"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1079
8200 #, no-wrap
8201 msgid ""
8202 " drop-caches whattodrop\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1806
8208 msgid ""
8209 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8210 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8211 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1811
8216 msgid "Setting C<whattodrop> to 3 should drop everything."
8217 msgstr ""
8218
8219 #. type: textblock
8220 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1813
8221 msgid ""
8222 "This automatically calls L<sync(2)> before the operation, so that the "
8223 "maximum guest memory is freed."
8224 msgstr ""
8225
8226 #. type: =head2
8227 #: ../fish/guestfish-actions.pod:1091
8228 msgid "du"
8229 msgstr ""
8230
8231 #. type: verbatim
8232 #: ../fish/guestfish-actions.pod:1093
8233 #, no-wrap
8234 msgid ""
8235 " du path\n"
8236 "\n"
8237 msgstr ""
8238
8239 #. type: textblock
8240 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1826
8241 msgid ""
8242 "This command runs the C<du -s> command to estimate file space usage for "
8243 "C<path>."
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1829
8248 msgid ""
8249 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8250 "estimate includes the contents of the directory and all subdirectories "
8251 "(recursively)."
8252 msgstr ""
8253
8254 #. type: textblock
8255 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1833
8256 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8257 msgstr ""
8258
8259 #. type: =head2
8260 #: ../fish/guestfish-actions.pod:1105
8261 msgid "e2fsck-f"
8262 msgstr ""
8263
8264 #. type: verbatim
8265 #: ../fish/guestfish-actions.pod:1107
8266 #, no-wrap
8267 msgid ""
8268 " e2fsck-f device\n"
8269 "\n"
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1851
8274 msgid ""
8275 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8276 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8277 "clean (I<-f>)."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1113
8282 msgid ""
8283 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8284 "should use L</fsck>."
8285 msgstr ""
8286
8287 #. type: =head2
8288 #: ../fish/guestfish-actions.pod:1116
8289 msgid "echo-daemon"
8290 msgstr ""
8291
8292 #. type: verbatim
8293 #: ../fish/guestfish-actions.pod:1118
8294 #, no-wrap
8295 msgid ""
8296 " echo-daemon 'words ...'\n"
8297 "\n"
8298 msgstr ""
8299
8300 #. type: textblock
8301 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1868
8302 msgid ""
8303 "This command concatenates the list of C<words> passed with single spaces "
8304 "between them and returns the resulting string."
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1871
8309 msgid "You can use this command to test the connection through to the daemon."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:1125
8314 msgid "See also L</ping-daemon>."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../fish/guestfish-actions.pod:1127
8319 msgid "egrep"
8320 msgstr ""
8321
8322 #. type: verbatim
8323 #: ../fish/guestfish-actions.pod:1129
8324 #, no-wrap
8325 msgid ""
8326 " egrep regex path\n"
8327 "\n"
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1887
8332 msgid "This calls the external C<egrep> program and returns the matching lines."
8333 msgstr ""
8334
8335 #. type: =head2
8336 #: ../fish/guestfish-actions.pod:1137
8337 msgid "egrepi"
8338 msgstr ""
8339
8340 #. type: verbatim
8341 #: ../fish/guestfish-actions.pod:1139
8342 #, no-wrap
8343 msgid ""
8344 " egrepi regex path\n"
8345 "\n"
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1906
8350 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8351 msgstr ""
8352
8353 #. type: =head2
8354 #: ../fish/guestfish-actions.pod:1147
8355 msgid "equal"
8356 msgstr ""
8357
8358 #. type: verbatim
8359 #: ../fish/guestfish-actions.pod:1149
8360 #, no-wrap
8361 msgid ""
8362 " equal file1 file2\n"
8363 "\n"
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1925
8368 msgid ""
8369 "This compares the two files C<file1> and C<file2> and returns true if their "
8370 "content is exactly equal, or false otherwise."
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1928
8375 msgid "The external L<cmp(1)> program is used for the comparison."
8376 msgstr ""
8377
8378 #. type: =head2
8379 #: ../fish/guestfish-actions.pod:1156
8380 msgid "exists"
8381 msgstr ""
8382
8383 #. type: verbatim
8384 #: ../fish/guestfish-actions.pod:1158
8385 #, no-wrap
8386 msgid ""
8387 " exists path\n"
8388 "\n"
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1940
8393 msgid ""
8394 "This returns C<true> if and only if there is a file, directory (or anything) "
8395 "with the given C<path> name."
8396 msgstr ""
8397
8398 #. type: textblock
8399 #: ../fish/guestfish-actions.pod:1163
8400 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8401 msgstr ""
8402
8403 #. type: =head2
8404 #: ../fish/guestfish-actions.pod:1165
8405 msgid "fallocate"
8406 msgstr ""
8407
8408 #. type: verbatim
8409 #: ../fish/guestfish-actions.pod:1167
8410 #, no-wrap
8411 msgid ""
8412 " fallocate path len\n"
8413 "\n"
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1169 ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:1982
8418 msgid ""
8419 "This command preallocates a file (containing zero bytes) named C<path> of "
8420 "size C<len> bytes.  If the file exists already, it is overwritten."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1967
8425 msgid ""
8426 "Do not confuse this with the guestfish-specific C<alloc> command which "
8427 "allocates a file in the host and attaches it as a device."
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1177
8432 msgid ""
8433 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8434 "instead."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:1184
8439 msgid "fallocate64"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:1186
8444 #, no-wrap
8445 msgid ""
8446 " fallocate64 path len\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1192
8452 msgid ""
8453 "Note that this call allocates disk blocks for the file.  To create a sparse "
8454 "file use L</truncate-size> instead."
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:1195
8459 msgid ""
8460 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8461 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8462 "maximum size of files created through that call to 1GB."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1994
8467 msgid ""
8468 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8469 "commands which create a file in the host and attach it as a device."
8470 msgstr ""
8471
8472 #. type: =head2
8473 #: ../fish/guestfish-actions.pod:1204
8474 msgid "fgrep"
8475 msgstr ""
8476
8477 #. type: verbatim
8478 #: ../fish/guestfish-actions.pod:1206
8479 #, no-wrap
8480 msgid ""
8481 " fgrep pattern path\n"
8482 "\n"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1208 ../src/guestfs-actions.pod:2009
8487 msgid "This calls the external C<fgrep> program and returns the matching lines."
8488 msgstr ""
8489
8490 #. type: =head2
8491 #: ../fish/guestfish-actions.pod:1214
8492 msgid "fgrepi"
8493 msgstr ""
8494
8495 #. type: verbatim
8496 #: ../fish/guestfish-actions.pod:1216
8497 #, no-wrap
8498 msgid ""
8499 " fgrepi pattern path\n"
8500 "\n"
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2028
8505 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8506 msgstr ""
8507
8508 #. type: =head2
8509 #: ../fish/guestfish-actions.pod:1224
8510 msgid "file"
8511 msgstr ""
8512
8513 #. type: verbatim
8514 #: ../fish/guestfish-actions.pod:1226
8515 #, no-wrap
8516 msgid ""
8517 " file path\n"
8518 "\n"
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1228 ../src/guestfs-actions.pod:2046
8523 msgid ""
8524 "This call uses the standard L<file(1)> command to determine the type or "
8525 "contents of the file."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:2049
8530 msgid ""
8531 "This call will also transparently look inside various types of compressed "
8532 "file."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2052
8537 msgid ""
8538 "The exact command which runs is C<file -zb path>.  Note in particular that "
8539 "the filename is not prepended to the output (the I<-b> option)."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2056
8544 msgid ""
8545 "The output depends on the output of the underlying L<file(1)> command and it "
8546 "can change in future in ways beyond our control.  In other words, the output "
8547 "is not guaranteed by the ABI."
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:1242
8552 msgid ""
8553 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8554 "(etc), L</is-zero>."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../fish/guestfish-actions.pod:1245
8559 msgid "file-architecture"
8560 msgstr ""
8561
8562 #. type: verbatim
8563 #: ../fish/guestfish-actions.pod:1247
8564 #, no-wrap
8565 msgid ""
8566 " file-architecture filename\n"
8567 "\n"
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1249 ../src/guestfs-actions.pod:2074
8572 msgid ""
8573 "This detects the architecture of the binary C<filename>, and returns it if "
8574 "known."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2077
8579 msgid "Currently defined architectures are:"
8580 msgstr ""
8581
8582 #. type: =item
8583 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2081
8584 msgid "\"i386\""
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2083
8589 msgid ""
8590 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8591 "irrespective of the precise processor requirements of the binary."
8592 msgstr ""
8593
8594 #. type: =item
8595 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:2086
8596 msgid "\"x86_64\""
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:1263 ../src/guestfs-actions.pod:2088
8601 msgid "64 bit x86-64."
8602 msgstr ""
8603
8604 #. type: =item
8605 #: ../fish/guestfish-actions.pod:1265 ../src/guestfs-actions.pod:2090
8606 msgid "\"sparc\""
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1267 ../src/guestfs-actions.pod:2092
8611 msgid "32 bit SPARC."
8612 msgstr ""
8613
8614 #. type: =item
8615 #: ../fish/guestfish-actions.pod:1269 ../src/guestfs-actions.pod:2094
8616 msgid "\"sparc64\""
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:2096
8621 msgid "64 bit SPARC V9 and above."
8622 msgstr ""
8623
8624 #. type: =item
8625 #: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:2098
8626 msgid "\"ia64\""
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1275 ../src/guestfs-actions.pod:2100
8631 msgid "Intel Itanium."
8632 msgstr ""
8633
8634 #. type: =item
8635 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2102
8636 msgid "\"ppc\""
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1279 ../src/guestfs-actions.pod:2104
8641 msgid "32 bit Power PC."
8642 msgstr ""
8643
8644 #. type: =item
8645 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:2106
8646 msgid "\"ppc64\""
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:1283 ../src/guestfs-actions.pod:2108
8651 msgid "64 bit Power PC."
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2112
8656 msgid "Libguestfs may return other architecture strings in future."
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:2114
8661 msgid "The function works on at least the following types of files:"
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1295 ../src/guestfs-actions.pod:2120
8666 msgid "many types of Un*x and Linux binary"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:2124
8671 msgid "many types of Un*x and Linux shared library"
8672 msgstr ""
8673
8674 #. type: textblock
8675 #: ../fish/guestfish-actions.pod:1303 ../src/guestfs-actions.pod:2128
8676 msgid "Windows Win32 and Win64 binaries"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2132
8681 msgid "Windows Win32 and Win64 DLLs"
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2134
8686 msgid "Win32 binaries and DLLs return C<i386>."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2136
8691 msgid "Win64 binaries and DLLs return C<x86_64>."
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../fish/guestfish-actions.pod:1315 ../src/guestfs-actions.pod:2140
8696 msgid "Linux kernel modules"
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2144
8701 msgid "Linux new-style initrd images"
8702 msgstr ""
8703
8704 #. type: textblock
8705 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2148
8706 msgid "some non-x86 Linux vmlinuz kernels"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1327 ../src/guestfs-actions.pod:2152
8711 msgid "What it can't do currently:"
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2158
8716 msgid "static libraries (libfoo.a)"
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2162
8721 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1341 ../src/guestfs-actions.pod:2166
8726 msgid "x86 Linux vmlinuz kernels"
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2168
8731 msgid ""
8732 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8733 "compressed code, and are horribly hard to unpack.  If you want to find the "
8734 "architecture of a kernel, use the architecture of the associated initrd or "
8735 "kernel module(s) instead."
8736 msgstr ""
8737
8738 #. type: =head2
8739 #: ../fish/guestfish-actions.pod:1350
8740 msgid "filesize"
8741 msgstr ""
8742
8743 #. type: verbatim
8744 #: ../fish/guestfish-actions.pod:1352
8745 #, no-wrap
8746 msgid ""
8747 " filesize file\n"
8748 "\n"
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2186
8753 msgid "This command returns the size of C<file> in bytes."
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1356
8758 msgid ""
8759 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
8760 "L</is-file> etc.  To get the size of block devices, use "
8761 "L</blockdev-getsize64>."
8762 msgstr ""
8763
8764 #. type: =head2
8765 #: ../fish/guestfish-actions.pod:1360
8766 msgid "fill"
8767 msgstr ""
8768
8769 #. type: verbatim
8770 #: ../fish/guestfish-actions.pod:1362
8771 #, no-wrap
8772 msgid ""
8773 " fill c len path\n"
8774 "\n"
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2204
8779 msgid ""
8780 "This command creates a new file called C<path>.  The initial content of the "
8781 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8782 "C<[0..255]>."
8783 msgstr ""
8784
8785 #. type: textblock
8786 #: ../fish/guestfish-actions.pod:1368
8787 msgid ""
8788 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8789 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8790 "L</fill-pattern>."
8791 msgstr ""
8792
8793 #. type: =head2
8794 #: ../fish/guestfish-actions.pod:1373
8795 msgid "fill-pattern"
8796 msgstr ""
8797
8798 #. type: verbatim
8799 #: ../fish/guestfish-actions.pod:1375
8800 #, no-wrap
8801 msgid ""
8802 " fill-pattern pattern len path\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:1377
8808 msgid ""
8809 "This function is like L</fill> except that it creates a new file of length "
8810 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8811 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8812 "bytes."
8813 msgstr ""
8814
8815 #. type: =head2
8816 #: ../fish/guestfish-actions.pod:1382
8817 msgid "find"
8818 msgstr ""
8819
8820 #. type: verbatim
8821 #: ../fish/guestfish-actions.pod:1384
8822 #, no-wrap
8823 msgid ""
8824 " find directory\n"
8825 "\n"
8826 msgstr ""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1386 ../src/guestfs-actions.pod:2250
8830 msgid ""
8831 "This command lists out all files and directories, recursively, starting at "
8832 "C<directory>.  It is essentially equivalent to running the shell command "
8833 "C<find directory -print> but some post-processing happens on the output, "
8834 "described below."
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:1391 ../src/guestfs-actions.pod:2255
8839 msgid ""
8840 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8841 "structure was:"
8842 msgstr ""
8843
8844 #. type: verbatim
8845 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2258
8846 #, no-wrap
8847 msgid ""
8848 " /tmp/a\n"
8849 " /tmp/b\n"
8850 " /tmp/c/d\n"
8851 "\n"
8852 msgstr ""
8853
8854 #. type: textblock
8855 #: ../fish/guestfish-actions.pod:1398
8856 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8857 msgstr ""
8858
8859 #. type: verbatim
8860 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2265
8861 #, no-wrap
8862 msgid ""
8863 " a\n"
8864 " b\n"
8865 " c\n"
8866 " c/d\n"
8867 "\n"
8868 msgstr ""
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:1406 ../src/guestfs-actions.pod:2270
8872 msgid "If C<directory> is not a directory, then this command returns an error."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2273
8877 msgid "The returned list is sorted."
8878 msgstr ""
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1411
8882 msgid "See also L</find0>."
8883 msgstr ""
8884
8885 #. type: =head2
8886 #: ../fish/guestfish-actions.pod:1416
8887 msgid "find0"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../fish/guestfish-actions.pod:1418
8892 #, no-wrap
8893 msgid ""
8894 " find0 directory (files|-)\n"
8895 "\n"
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293
8900 msgid ""
8901 "This command lists out all files and directories, recursively, starting at "
8902 "C<directory>, placing the resulting list in the external file called "
8903 "C<files>."
8904 msgstr ""
8905
8906 #. type: textblock
8907 #: ../fish/guestfish-actions.pod:1424
8908 msgid "This command works the same way as L</find> with the following exceptions:"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304
8913 msgid "The resulting list is written to an external file."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308
8918 msgid ""
8919 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8920 "L<find(1)> option I<-print0>."
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313
8925 msgid "This command is not limited in the number of names that it can return."
8926 msgstr ""
8927
8928 #. type: textblock
8929 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318
8930 msgid "The result list is not sorted."
8931 msgstr ""
8932
8933 #. type: =head2
8934 #: ../fish/guestfish-actions.pod:1451
8935 msgid "findfs-label"
8936 msgstr ""
8937
8938 #. type: verbatim
8939 #: ../fish/guestfish-actions.pod:1453
8940 #, no-wrap
8941 msgid ""
8942 " findfs-label label\n"
8943 "\n"
8944 msgstr ""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332
8948 msgid ""
8949 "This command searches the filesystems and returns the one which has the "
8950 "given label.  An error is returned if no such filesystem can be found."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1459
8955 msgid "To find the label of a filesystem, use L</vfs-label>."
8956 msgstr ""
8957
8958 #. type: =head2
8959 #: ../fish/guestfish-actions.pod:1461
8960 msgid "findfs-uuid"
8961 msgstr ""
8962
8963 #. type: verbatim
8964 #: ../fish/guestfish-actions.pod:1463
8965 #, no-wrap
8966 msgid ""
8967 " findfs-uuid uuid\n"
8968 "\n"
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8973 msgid ""
8974 "This command searches the filesystems and returns the one which has the "
8975 "given UUID.  An error is returned if no such filesystem can be found."
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:1469
8980 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8981 msgstr ""
8982
8983 #. type: =head2
8984 #: ../fish/guestfish-actions.pod:1471
8985 msgid "fsck"
8986 msgstr ""
8987
8988 #. type: verbatim
8989 #: ../fish/guestfish-actions.pod:1473
8990 #, no-wrap
8991 msgid ""
8992 " fsck fstype device\n"
8993 "\n"
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367
8998 msgid ""
8999 "This runs the filesystem checker (fsck) on C<device> which should have "
9000 "filesystem type C<fstype>."
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370
9005 msgid ""
9006 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9007 "codes from C<fsck>."
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379
9012 msgid "Multiple status codes can be summed together."
9013 msgstr ""
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383
9017 msgid ""
9018 "A non-zero return code can mean \"success\", for example if errors have been "
9019 "corrected on the filesystem."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388
9024 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393
9029 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9030 msgstr ""
9031
9032 #. type: =head2
9033 #: ../fish/guestfish-actions.pod:1503
9034 msgid "get-append"
9035 msgstr ""
9036
9037 #. type: verbatim
9038 #: ../fish/guestfish-actions.pod:1505
9039 #, no-wrap
9040 msgid ""
9041 " get-append\n"
9042 "\n"
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404
9047 msgid ""
9048 "Return the additional kernel options which are added to the guest kernel "
9049 "command line."
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407
9054 msgid "If C<NULL> then no options are added."
9055 msgstr ""
9056
9057 #. type: =head2
9058 #: ../fish/guestfish-actions.pod:1512
9059 msgid "get-attach-method"
9060 msgstr ""
9061
9062 #. type: verbatim
9063 #: ../fish/guestfish-actions.pod:1514
9064 #, no-wrap
9065 msgid ""
9066 " get-attach-method\n"
9067 "\n"
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1516
9072 msgid "Return the current attach method.  See L</set-attach-method>."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:1518
9077 msgid "get-autosync"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:1520
9082 #, no-wrap
9083 msgid ""
9084 " get-autosync\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432
9090 msgid "Get the autosync flag."
9091 msgstr ""
9092
9093 #. type: =head2
9094 #: ../fish/guestfish-actions.pod:1524
9095 msgid "get-direct"
9096 msgstr ""
9097
9098 #. type: verbatim
9099 #: ../fish/guestfish-actions.pod:1526
9100 #, no-wrap
9101 msgid ""
9102 " get-direct\n"
9103 "\n"
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443
9108 msgid "Return the direct appliance mode flag."
9109 msgstr ""
9110
9111 #. type: =head2
9112 #: ../fish/guestfish-actions.pod:1530
9113 msgid "get-e2label"
9114 msgstr ""
9115
9116 #. type: verbatim
9117 #: ../fish/guestfish-actions.pod:1532
9118 #, no-wrap
9119 msgid ""
9120 " get-e2label device\n"
9121 "\n"
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462
9126 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:1537
9131 msgid ""
9132 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9133 "instead."
9134 msgstr ""
9135
9136 #. type: =head2
9137 #: ../fish/guestfish-actions.pod:1544
9138 msgid "get-e2uuid"
9139 msgstr ""
9140
9141 #. type: verbatim
9142 #: ../fish/guestfish-actions.pod:1546
9143 #, no-wrap
9144 msgid ""
9145 " get-e2uuid device\n"
9146 "\n"
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483
9151 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1551
9156 msgid ""
9157 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9158 "instead."
9159 msgstr ""
9160
9161 #. type: =head2
9162 #: ../fish/guestfish-actions.pod:1558
9163 msgid "get-memsize"
9164 msgstr ""
9165
9166 #. type: verbatim
9167 #: ../fish/guestfish-actions.pod:1560
9168 #, no-wrap
9169 msgid ""
9170 " get-memsize\n"
9171 "\n"
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496
9176 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:1565
9181 msgid ""
9182 "If L</set-memsize> was not called on this handle, and if "
9183 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9184 "value for memsize."
9185 msgstr ""
9186
9187 #. type: textblock
9188 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626 ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086
9189 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9190 msgstr ""
9191
9192 #. type: =head2
9193 #: ../fish/guestfish-actions.pod:1572
9194 msgid "get-network"
9195 msgstr ""
9196
9197 #. type: verbatim
9198 #: ../fish/guestfish-actions.pod:1574
9199 #, no-wrap
9200 msgid ""
9201 " get-network\n"
9202 "\n"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515
9207 msgid "This returns the enable network flag."
9208 msgstr ""
9209
9210 #. type: =head2
9211 #: ../fish/guestfish-actions.pod:1578
9212 msgid "get-path"
9213 msgstr ""
9214
9215 #. type: verbatim
9216 #: ../fish/guestfish-actions.pod:1580
9217 #, no-wrap
9218 msgid ""
9219 " get-path\n"
9220 "\n"
9221 msgstr ""
9222
9223 #. type: textblock
9224 #: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526
9225 msgid "Return the current search path."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528
9230 msgid ""
9231 "This is always non-NULL.  If it wasn't set already, then this will return "
9232 "the default path."
9233 msgstr ""
9234
9235 #. type: =head2
9236 #: ../fish/guestfish-actions.pod:1587
9237 msgid "get-pgroup"
9238 msgstr ""
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:1589
9242 #, no-wrap
9243 msgid ""
9244 " get-pgroup\n"
9245 "\n"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541
9250 msgid "This returns the process group flag."
9251 msgstr ""
9252
9253 #. type: =head2
9254 #: ../fish/guestfish-actions.pod:1593
9255 msgid "get-pid"
9256 msgstr ""
9257
9258 #. type: =head2
9259 #: ../fish/guestfish-actions.pod:1595
9260 msgid "pid"
9261 msgstr ""
9262
9263 #. type: verbatim
9264 #: ../fish/guestfish-actions.pod:1597
9265 #, no-wrap
9266 msgid ""
9267 " get-pid\n"
9268 "\n"
9269 msgstr ""
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552
9273 msgid ""
9274 "Return the process ID of the qemu subprocess.  If there is no qemu "
9275 "subprocess, then this will return an error."
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555
9280 msgid "This is an internal call used for debugging and testing."
9281 msgstr ""
9282
9283 #. type: =head2
9284 #: ../fish/guestfish-actions.pod:1604
9285 msgid "get-qemu"
9286 msgstr ""
9287
9288 #. type: verbatim
9289 #: ../fish/guestfish-actions.pod:1606
9290 #, no-wrap
9291 msgid ""
9292 " get-qemu\n"
9293 "\n"
9294 msgstr ""
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566
9298 msgid "Return the current qemu binary."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568
9303 msgid ""
9304 "This is always non-NULL.  If it wasn't set already, then this will return "
9305 "the default qemu binary name."
9306 msgstr ""
9307
9308 #. type: =head2
9309 #: ../fish/guestfish-actions.pod:1613
9310 msgid "get-recovery-proc"
9311 msgstr ""
9312
9313 #. type: verbatim
9314 #: ../fish/guestfish-actions.pod:1615
9315 #, no-wrap
9316 msgid ""
9317 " get-recovery-proc\n"
9318 "\n"
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581
9323 msgid "Return the recovery process enabled flag."
9324 msgstr ""
9325
9326 #. type: =head2
9327 #: ../fish/guestfish-actions.pod:1619
9328 msgid "get-selinux"
9329 msgstr ""
9330
9331 #. type: verbatim
9332 #: ../fish/guestfish-actions.pod:1621
9333 #, no-wrap
9334 msgid ""
9335 " get-selinux\n"
9336 "\n"
9337 msgstr ""
9338
9339 #. type: textblock
9340 #: ../fish/guestfish-actions.pod:1623
9341 msgid ""
9342 "This returns the current setting of the selinux flag which is passed to the "
9343 "appliance at boot time.  See L</set-selinux>."
9344 msgstr ""
9345
9346 #. type: =head2
9347 #: ../fish/guestfish-actions.pod:1629
9348 msgid "get-smp"
9349 msgstr ""
9350
9351 #. type: verbatim
9352 #: ../fish/guestfish-actions.pod:1631
9353 #, no-wrap
9354 msgid ""
9355 " get-smp\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607
9361 msgid "This returns the number of virtual CPUs assigned to the appliance."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:1635
9366 msgid "get-state"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:1637
9371 #, no-wrap
9372 msgid ""
9373 " get-state\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618
9379 msgid ""
9380 "This returns the current state as an opaque integer.  This is only useful "
9381 "for printing debug and internal error messages."
9382 msgstr ""
9383
9384 #. type: textblock
9385 #: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605 ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661 ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061
9386 msgid "For more information on states, see L<guestfs(3)>."
9387 msgstr ""
9388
9389 #. type: =head2
9390 #: ../fish/guestfish-actions.pod:1644
9391 msgid "get-trace"
9392 msgstr ""
9393
9394 #. type: verbatim
9395 #: ../fish/guestfish-actions.pod:1646
9396 #, no-wrap
9397 msgid ""
9398 " get-trace\n"
9399 "\n"
9400 msgstr ""
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632
9404 msgid "Return the command trace flag."
9405 msgstr ""
9406
9407 #. type: =head2
9408 #: ../fish/guestfish-actions.pod:1650
9409 msgid "get-umask"
9410 msgstr ""
9411
9412 #. type: verbatim
9413 #: ../fish/guestfish-actions.pod:1652
9414 #, no-wrap
9415 msgid ""
9416 " get-umask\n"
9417 "\n"
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1654
9422 msgid ""
9423 "Return the current umask.  By default the umask is C<022> unless it has been "
9424 "set by calling L</umask>."
9425 msgstr ""
9426
9427 #. type: =head2
9428 #: ../fish/guestfish-actions.pod:1657
9429 msgid "get-verbose"
9430 msgstr ""
9431
9432 #. type: verbatim
9433 #: ../fish/guestfish-actions.pod:1659
9434 #, no-wrap
9435 msgid ""
9436 " get-verbose\n"
9437 "\n"
9438 msgstr ""
9439
9440 #. type: textblock
9441 #: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655
9442 msgid "This returns the verbose messages flag."
9443 msgstr ""
9444
9445 #. type: =head2
9446 #: ../fish/guestfish-actions.pod:1663
9447 msgid "getcon"
9448 msgstr ""
9449
9450 #. type: verbatim
9451 #: ../fish/guestfish-actions.pod:1665
9452 #, no-wrap
9453 msgid ""
9454 " getcon\n"
9455 "\n"
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666
9460 msgid "This gets the SELinux security context of the daemon."
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:1669
9465 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9466 msgstr ""
9467
9468 #. type: =head2
9469 #: ../fish/guestfish-actions.pod:1672
9470 msgid "getxattr"
9471 msgstr ""
9472
9473 #. type: verbatim
9474 #: ../fish/guestfish-actions.pod:1674
9475 #, no-wrap
9476 msgid ""
9477 " getxattr path name\n"
9478 "\n"
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../fish/guestfish-actions.pod:1676
9483 msgid ""
9484 "Get a single extended attribute from file C<path> named C<name>.  This call "
9485 "follows symlinks.  If you want to lookup an extended attribute for the "
9486 "symlink itself, use L</lgetxattr>."
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750
9491 msgid ""
9492 "Normally it is better to get all extended attributes from a file in one go "
9493 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9494 "buggy and do not provide a way to list out attributes.  For these "
9495 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9496 "attributes you want in advance and call this function."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194
9501 msgid ""
9502 "Extended attribute values are blobs of binary data.  If there is no extended "
9503 "attribute named C<name>, this returns an error."
9504 msgstr ""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:1690
9508 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9509 msgstr ""
9510
9511 #. type: =head2
9512 #: ../fish/guestfish-actions.pod:1692
9513 msgid "getxattrs"
9514 msgstr ""
9515
9516 #. type: verbatim
9517 #: ../fish/guestfish-actions.pod:1694
9518 #, no-wrap
9519 msgid ""
9520 " getxattrs path\n"
9521 "\n"
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712
9526 msgid "This call lists the extended attributes of the file or directory C<path>."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715
9531 msgid ""
9532 "At the system call level, this is a combination of the L<listxattr(2)> and "
9533 "L<getxattr(2)> calls."
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:1702
9538 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../fish/guestfish-actions.pod:1704
9543 msgid "glob-expand"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:1706
9548 #, no-wrap
9549 msgid ""
9550 " glob-expand pattern\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732
9556 msgid ""
9557 "This command searches for all the pathnames matching C<pattern> according to "
9558 "the wildcard expansion rules used by the shell."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736
9563 msgid "If no paths match, then this returns an empty list (note: not an error)."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739
9568 msgid ""
9569 "It is just a wrapper around the C L<glob(3)> function with flags "
9570 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9571 msgstr ""
9572
9573 #. type: =head2
9574 #: ../fish/guestfish-actions.pod:1719
9575 msgid "grep"
9576 msgstr ""
9577
9578 #. type: verbatim
9579 #: ../fish/guestfish-actions.pod:1721
9580 #, no-wrap
9581 msgid ""
9582 " grep regex path\n"
9583 "\n"
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756
9588 msgid "This calls the external C<grep> program and returns the matching lines."
9589 msgstr ""
9590
9591 #. type: =head2
9592 #: ../fish/guestfish-actions.pod:1729
9593 msgid "grepi"
9594 msgstr ""
9595
9596 #. type: verbatim
9597 #: ../fish/guestfish-actions.pod:1731
9598 #, no-wrap
9599 msgid ""
9600 " grepi regex path\n"
9601 "\n"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775
9606 msgid "This calls the external C<grep -i> program and returns the matching lines."
9607 msgstr ""
9608
9609 #. type: =head2
9610 #: ../fish/guestfish-actions.pod:1739
9611 msgid "grub-install"
9612 msgstr ""
9613
9614 #. type: verbatim
9615 #: ../fish/guestfish-actions.pod:1741
9616 #, no-wrap
9617 msgid ""
9618 " grub-install root device\n"
9619 "\n"
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794
9624 msgid ""
9625 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9626 "with the root directory being C<root>."
9627 msgstr ""
9628
9629 #. type: textblock
9630 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803
9631 msgid ""
9632 "There is currently no way in the API to install grub2, which is used by most "
9633 "modern Linux guests.  It is possible to run the grub2 command from the "
9634 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810
9639 msgid ""
9640 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9641 "compatible with itself, so this only works in rather narrow circumstances.  "
9642 "Careful testing with each guest version is advisable."
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817
9647 msgid ""
9648 "If grub-install reports the error \"No suitable drive was found in the "
9649 "generated device map.\" it may be that you need to create a "
9650 "C</boot/grub/device.map> file first that contains the mapping between grub "
9651 "device names and Linux device names.  It is usually sufficient to create a "
9652 "file containing:"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824
9657 #, no-wrap
9658 msgid ""
9659 " (hd0) /dev/vda\n"
9660 "\n"
9661 msgstr ""
9662
9663 #. type: textblock
9664 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826
9665 msgid "replacing C</dev/vda> with the name of the installation device."
9666 msgstr ""
9667
9668 #. type: =head2
9669 #: ../fish/guestfish-actions.pod:1779
9670 msgid "head"
9671 msgstr ""
9672
9673 #. type: verbatim
9674 #: ../fish/guestfish-actions.pod:1781
9675 #, no-wrap
9676 msgid ""
9677 " head path\n"
9678 "\n"
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840
9683 msgid ""
9684 "This command returns up to the first 10 lines of a file as a list of "
9685 "strings."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:1789
9690 msgid "head-n"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:1791
9695 #, no-wrap
9696 msgid ""
9697 " head-n nrlines path\n"
9698 "\n"
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859
9703 msgid ""
9704 "If the parameter C<nrlines> is a positive number, this returns the first "
9705 "C<nrlines> lines of the file C<path>."
9706 msgstr ""
9707
9708 #. type: textblock
9709 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862
9710 msgid ""
9711 "If the parameter C<nrlines> is a negative number, this returns lines from "
9712 "the file C<path>, excluding the last C<nrlines> lines."
9713 msgstr ""
9714
9715 #. type: textblock
9716 #: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665
9717 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9718 msgstr ""
9719
9720 #. type: =head2
9721 #: ../fish/guestfish-actions.pod:1804
9722 msgid "hexdump"
9723 msgstr ""
9724
9725 #. type: verbatim
9726 #: ../fish/guestfish-actions.pod:1806
9727 #, no-wrap
9728 msgid ""
9729 " hexdump path\n"
9730 "\n"
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882
9735 msgid ""
9736 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9737 "human-readable, canonical hex dump of the file."
9738 msgstr ""
9739
9740 #. type: =head2
9741 #: ../fish/guestfish-actions.pod:1814
9742 msgid "initrd-cat"
9743 msgstr ""
9744
9745 #. type: verbatim
9746 #: ../fish/guestfish-actions.pod:1816
9747 #, no-wrap
9748 msgid ""
9749 " initrd-cat initrdpath filename\n"
9750 "\n"
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901
9755 msgid ""
9756 "This command unpacks the file C<filename> from the initrd file called "
9757 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9758 "character."
9759 msgstr ""
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905
9763 msgid ""
9764 "For example, in guestfish you could use the following command to examine the "
9765 "boot script (usually called C</init>)  contained in a Linux initrd or "
9766 "initramfs image:"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909
9771 #, no-wrap
9772 msgid ""
9773 " initrd-cat /boot/initrd-<version>.img init\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:1828
9779 msgid "See also L</initrd-list>."
9780 msgstr ""
9781
9782 #. type: =head2
9783 #: ../fish/guestfish-actions.pod:1833
9784 msgid "initrd-list"
9785 msgstr ""
9786
9787 #. type: verbatim
9788 #: ../fish/guestfish-actions.pod:1835
9789 #, no-wrap
9790 msgid ""
9791 " initrd-list path\n"
9792 "\n"
9793 msgstr ""
9794
9795 #. type: textblock
9796 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928
9797 msgid "This command lists out files contained in an initrd."
9798 msgstr ""
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930
9802 msgid ""
9803 "The files are listed without any initial C</> character.  The files are "
9804 "listed in the order they appear (not necessarily alphabetical).  Directory "
9805 "names are listed as separate items."
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934
9810 msgid ""
9811 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9812 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9813 "files)."
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:1847
9818 msgid "inotify-add-watch"
9819 msgstr ""
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:1849
9823 #, no-wrap
9824 msgid ""
9825 " inotify-add-watch path mask\n"
9826 "\n"
9827 msgstr ""
9828
9829 #. type: textblock
9830 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951
9831 msgid "Watch C<path> for the events listed in C<mask>."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953
9836 msgid ""
9837 "Note that if C<path> is a directory then events within that directory are "
9838 "watched, but this does I<not> happen recursively (in subdirectories)."
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957
9843 msgid ""
9844 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9845 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9846 msgstr ""
9847
9848 #. type: =head2
9849 #: ../fish/guestfish-actions.pod:1861
9850 msgid "inotify-close"
9851 msgstr ""
9852
9853 #. type: verbatim
9854 #: ../fish/guestfish-actions.pod:1863
9855 #, no-wrap
9856 msgid ""
9857 " inotify-close\n"
9858 "\n"
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970
9863 msgid ""
9864 "This closes the inotify handle which was previously opened by inotify_init.  "
9865 "It removes all watches, throws away any pending events, and deallocates all "
9866 "resources."
9867 msgstr ""
9868
9869 #. type: =head2
9870 #: ../fish/guestfish-actions.pod:1869
9871 msgid "inotify-files"
9872 msgstr ""
9873
9874 #. type: verbatim
9875 #: ../fish/guestfish-actions.pod:1871
9876 #, no-wrap
9877 msgid ""
9878 " inotify-files\n"
9879 "\n"
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:1873
9884 msgid ""
9885 "This function is a helpful wrapper around L</inotify-read> which just "
9886 "returns a list of pathnames of objects that were touched.  The returned "
9887 "pathnames are sorted and deduplicated."
9888 msgstr ""
9889
9890 #. type: =head2
9891 #: ../fish/guestfish-actions.pod:1877
9892 msgid "inotify-init"
9893 msgstr ""
9894
9895 #. type: verbatim
9896 #: ../fish/guestfish-actions.pod:1879
9897 #, no-wrap
9898 msgid ""
9899 " inotify-init maxevents\n"
9900 "\n"
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999
9905 msgid ""
9906 "This command creates a new inotify handle.  The inotify subsystem can be "
9907 "used to notify events which happen to objects in the guest filesystem."
9908 msgstr ""
9909
9910 #. type: textblock
9911 #: ../fish/guestfish-actions.pod:1885
9912 msgid ""
9913 "C<maxevents> is the maximum number of events which will be queued up between "
9914 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9915 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9916 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9917 "but records the fact that it threw them away by setting a flag "
9918 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../fish/guestfish-actions.pod:1895
9923 msgid ""
9924 "Before any events are generated, you have to add some watches to the "
9925 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9926 "L</inotify-watch-all>."
9927 msgstr ""
9928
9929 #. type: textblock
9930 #: ../fish/guestfish-actions.pod:1901
9931 msgid ""
9932 "Queued up events should be read periodically by calling L</inotify-read> (or "
9933 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9934 "If you don't read the events out often enough then you risk the internal "
9935 "queue overflowing."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1908
9940 msgid ""
9941 "The handle should be closed after use by calling L</inotify-close>.  This "
9942 "also removes any watches automatically."
9943 msgstr ""
9944
9945 #. type: textblock
9946 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030
9947 msgid ""
9948 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9949 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9950 "that there is one global inotify handle per libguestfs instance."
9951 msgstr ""
9952
9953 #. type: =head2
9954 #: ../fish/guestfish-actions.pod:1917
9955 msgid "inotify-read"
9956 msgstr ""
9957
9958 #. type: verbatim
9959 #: ../fish/guestfish-actions.pod:1919
9960 #, no-wrap
9961 msgid ""
9962 " inotify-read\n"
9963 "\n"
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044
9968 msgid ""
9969 "Return the complete queue of events that have happened since the previous "
9970 "read call."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047
9975 msgid "If no events have happened, this returns an empty list."
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049
9980 msgid ""
9981 "I<Note>: In order to make sure that all events have been read, you must call "
9982 "this function repeatedly until it returns an empty list.  The reason is that "
9983 "the call will read events up to the maximum appliance-to-host message size "
9984 "and leave remaining events in the queue."
9985 msgstr ""
9986
9987 #. type: =head2
9988 #: ../fish/guestfish-actions.pod:1932
9989 msgid "inotify-rm-watch"
9990 msgstr ""
9991
9992 #. type: verbatim
9993 #: ../fish/guestfish-actions.pod:1934
9994 #, no-wrap
9995 msgid ""
9996 " inotify-rm-watch wd\n"
9997 "\n"
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:1936
10002 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10003 msgstr ""
10004
10005 #. type: =head2
10006 #: ../fish/guestfish-actions.pod:1939
10007 msgid "inspect-get-arch"
10008 msgstr ""
10009
10010 #. type: verbatim
10011 #: ../fish/guestfish-actions.pod:1941
10012 #, no-wrap
10013 msgid ""
10014 " inspect-get-arch root\n"
10015 "\n"
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:1943
10020 msgid ""
10021 "This returns the architecture of the inspected operating system.  The "
10022 "possible return values are listed under L</file-architecture>."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084
10027 msgid ""
10028 "If the architecture could not be determined, then the string C<unknown> is "
10029 "returned."
10030 msgstr ""
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045 ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282 ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317 ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397 ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551 ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911
10034 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10035 msgstr ""
10036
10037 #. type: =head2
10038 #: ../fish/guestfish-actions.pod:1952
10039 msgid "inspect-get-distro"
10040 msgstr ""
10041
10042 #. type: verbatim
10043 #: ../fish/guestfish-actions.pod:1954
10044 #, no-wrap
10045 msgid ""
10046 " inspect-get-distro root\n"
10047 "\n"
10048 msgstr ""
10049
10050 #. type: textblock
10051 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100
10052 msgid "This returns the distro (distribution) of the inspected operating system."
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103
10057 msgid "Currently defined distros are:"
10058 msgstr ""
10059
10060 #. type: =item
10061 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107
10062 msgid "\"archlinux\""
10063 msgstr ""
10064
10065 #. type: textblock
10066 #: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109
10067 msgid "Arch Linux."
10068 msgstr ""
10069
10070 #. type: =item
10071 #: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111
10072 msgid "\"centos\""
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113
10077 msgid "CentOS."
10078 msgstr ""
10079
10080 #. type: =item
10081 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115
10082 msgid "\"debian\""
10083 msgstr ""
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117
10087 msgid "Debian."
10088 msgstr ""
10089
10090 #. type: =item
10091 #: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119
10092 msgid "\"fedora\""
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121
10097 msgid "Fedora."
10098 msgstr ""
10099
10100 #. type: =item
10101 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123
10102 msgid "\"gentoo\""
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125
10107 msgid "Gentoo."
10108 msgstr ""
10109
10110 #. type: =item
10111 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127
10112 msgid "\"linuxmint\""
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129
10117 msgid "Linux Mint."
10118 msgstr ""
10119
10120 #. type: =item
10121 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131
10122 msgid "\"mageia\""
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133
10127 msgid "Mageia."
10128 msgstr ""
10129
10130 #. type: =item
10131 #: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135
10132 msgid "\"mandriva\""
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137
10137 msgid "Mandriva."
10138 msgstr ""
10139
10140 #. type: =item
10141 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139
10142 msgid "\"meego\""
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141
10147 msgid "MeeGo."
10148 msgstr ""
10149
10150 #. type: =item
10151 #: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143
10152 msgid "\"opensuse\""
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145
10157 msgid "OpenSUSE."
10158 msgstr ""
10159
10160 #. type: =item
10161 #: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147
10162 msgid "\"pardus\""
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149
10167 msgid "Pardus."
10168 msgstr ""
10169
10170 #. type: =item
10171 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10172 msgid "\"redhat-based\""
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153
10177 msgid "Some Red Hat-derived distro."
10178 msgstr ""
10179
10180 #. type: =item
10181 #: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155
10182 msgid "\"rhel\""
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157
10187 msgid "Red Hat Enterprise Linux."
10188 msgstr ""
10189
10190 #. type: =item
10191 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159
10192 msgid "\"scientificlinux\""
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161
10197 msgid "Scientific Linux."
10198 msgstr ""
10199
10200 #. type: =item
10201 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163
10202 msgid "\"slackware\""
10203 msgstr ""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165
10207 msgid "Slackware."
10208 msgstr ""
10209
10210 #. type: =item
10211 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167
10212 msgid "\"ttylinux\""
10213 msgstr ""
10214
10215 #. type: textblock
10216 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169
10217 msgid "ttylinux."
10218 msgstr ""
10219
10220 #. type: =item
10221 #: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171
10222 msgid "\"ubuntu\""
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173
10227 msgid "Ubuntu."
10228 msgstr ""
10229
10230 #. type: =item
10231 #: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175 ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668
10232 msgid "\"unknown\""
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177
10237 msgid "The distro could not be determined."
10238 msgstr ""
10239
10240 #. type: =item
10241 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652
10242 msgid "\"windows\""
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181
10247 msgid ""
10248 "Windows does not have distributions.  This string is returned if the OS type "
10249 "is Windows."
10250 msgstr ""
10251
10252 #. type: textblock
10253 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121 ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674
10254 msgid ""
10255 "Future versions of libguestfs may return other strings here.  The caller "
10256 "should be prepared to handle any string."
10257 msgstr ""
10258
10259 #. type: =head2
10260 #: ../fish/guestfish-actions.pod:2047
10261 msgid "inspect-get-drive-mappings"
10262 msgstr ""
10263
10264 #. type: verbatim
10265 #: ../fish/guestfish-actions.pod:2049
10266 #, no-wrap
10267 msgid ""
10268 " inspect-get-drive-mappings root\n"
10269 "\n"
10270 msgstr ""
10271
10272 #. type: textblock
10273 #: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202
10274 msgid ""
10275 "This call is useful for Windows which uses a primitive system of assigning "
10276 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10277 "Windows Registry to find out how disks/partitions are mapped to drive "
10278 "letters, and returns a hash table as in the example below:"
10279 msgstr ""
10280
10281 #. type: verbatim
10282 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208
10283 #, no-wrap
10284 msgid ""
10285 " C      =>     /dev/vda2\n"
10286 " E      =>     /dev/vdb1\n"
10287 " F      =>     /dev/vdc1\n"
10288 "\n"
10289 msgstr ""
10290
10291 #. type: textblock
10292 #: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212
10293 msgid ""
10294 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10295 "and just contains the drive letter, without the customary colon separator "
10296 "character."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216
10301 msgid ""
10302 "In future we may support other operating systems that also used drive "
10303 "letters, but the keys for those might not be case insensitive and might be "
10304 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10305 "C<h1> etc."
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221
10310 msgid ""
10311 "For Windows guests, currently only hard drive mappings are returned.  "
10312 "Removable disks (eg. DVD-ROMs) are ignored."
10313 msgstr ""
10314
10315 #. type: textblock
10316 #: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224
10317 msgid ""
10318 "For guests that do not use drive mappings, or if the drive mappings could "
10319 "not be determined, this returns an empty hash table."
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2076
10324 msgid ""
10325 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10326 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
10327 msgstr ""
10328
10329 #. type: =head2
10330 #: ../fish/guestfish-actions.pod:2080
10331 msgid "inspect-get-filesystems"
10332 msgstr ""
10333
10334 #. type: verbatim
10335 #: ../fish/guestfish-actions.pod:2082
10336 #, no-wrap
10337 msgid ""
10338 " inspect-get-filesystems root\n"
10339 "\n"
10340 msgstr ""
10341
10342 #. type: textblock
10343 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245
10344 msgid ""
10345 "This returns a list of all the filesystems that we think are associated with "
10346 "this operating system.  This includes the root filesystem, other ordinary "
10347 "filesystems, and non-mounted devices like swap partitions."
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250
10352 msgid ""
10353 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10354 "to be shared between operating systems."
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:2092
10359 msgid ""
10360 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10361 "L</inspect-get-mountpoints>."
10362 msgstr ""
10363
10364 #. type: =head2
10365 #: ../fish/guestfish-actions.pod:2095
10366 msgid "inspect-get-format"
10367 msgstr ""
10368
10369 #. type: verbatim
10370 #: ../fish/guestfish-actions.pod:2097
10371 #, no-wrap
10372 msgid ""
10373 " inspect-get-format root\n"
10374 "\n"
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268
10379 msgid ""
10380 "This returns the format of the inspected operating system.  You can use it "
10381 "to detect install images, live CDs and similar."
10382 msgstr ""
10383
10384 #. type: textblock
10385 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271
10386 msgid "Currently defined formats are:"
10387 msgstr ""
10388
10389 #. type: =item
10390 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275
10391 msgid "\"installed\""
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277
10396 msgid "This is an installed operating system."
10397 msgstr ""
10398
10399 #. type: =item
10400 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279
10401 msgid "\"installer\""
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281
10406 msgid ""
10407 "The disk image being inspected is not an installed operating system, but a "
10408 "I<bootable> install disk, live CD, or similar."
10409 msgstr ""
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286
10413 msgid "The format of this disk image is not known."
10414 msgstr ""
10415
10416 #. type: =head2
10417 #: ../fish/guestfish-actions.pod:2126
10418 msgid "inspect-get-hostname"
10419 msgstr ""
10420
10421 #. type: verbatim
10422 #: ../fish/guestfish-actions.pod:2128
10423 #, no-wrap
10424 msgid ""
10425 " inspect-get-hostname root\n"
10426 "\n"
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306
10431 msgid ""
10432 "This function returns the hostname of the operating system as found by "
10433 "inspection of the guest's configuration files."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309
10438 msgid ""
10439 "If the hostname could not be determined, then the string C<unknown> is "
10440 "returned."
10441 msgstr ""
10442
10443 #. type: =head2
10444 #: ../fish/guestfish-actions.pod:2138
10445 msgid "inspect-get-icon"
10446 msgstr ""
10447
10448 #. type: verbatim
10449 #: ../fish/guestfish-actions.pod:2140
10450 #, no-wrap
10451 msgid ""
10452 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10453 "\n"
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335
10458 msgid ""
10459 "This function returns an icon corresponding to the inspected operating "
10460 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10461 "to PNG if necessary)."
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339
10466 msgid ""
10467 "If it was not possible to get an icon this function returns a zero-length "
10468 "(non-NULL) buffer.  I<Callers must check for this case>."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342
10473 msgid ""
10474 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10475 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10476 "this file will be returned.  You can disable favicons by passing the "
10477 "optional C<favicon> boolean as false (default is true)."
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348
10482 msgid ""
10483 "If finding the favicon fails, then we look in other places in the guest for "
10484 "a suitable icon."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351
10489 msgid ""
10490 "If the optional C<highquality> boolean is true then only high quality icons "
10491 "are returned, which means only icons of high resolution with an alpha "
10492 "channel.  The default (false) is to return any icon we can, even if it is of "
10493 "substandard quality."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362
10498 msgid ""
10499 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10500 "before you call this, since it needs to read information from the guest "
10501 "filesystem during the call."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368
10506 msgid ""
10507 "B<Security:> The icon data comes from the untrusted guest, and should be "
10508 "treated with caution.  PNG files have been known to contain exploits.  "
10509 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10510 "trying to process or display the icon."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376
10515 msgid ""
10516 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10517 "tries to return the largest, highest quality icon available.  The "
10518 "application must scale the icon to the required size."
10519 msgstr ""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383
10523 msgid ""
10524 "Extracting icons from Windows guests requires the external C<wrestool> "
10525 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10526 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10527 "installed separately."
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390
10532 msgid ""
10533 "Operating system icons are usually trademarks.  Seek legal advice before "
10534 "using trademarks in applications."
10535 msgstr ""
10536
10537 #. type: =head2
10538 #: ../fish/guestfish-actions.pod:2204
10539 msgid "inspect-get-major-version"
10540 msgstr ""
10541
10542 #. type: verbatim
10543 #: ../fish/guestfish-actions.pod:2206
10544 #, no-wrap
10545 msgid ""
10546 " inspect-get-major-version root\n"
10547 "\n"
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431
10552 msgid "This returns the major version number of the inspected operating system."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434
10557 msgid ""
10558 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10559 "popular public names used by the operating system.  Notably the operating "
10560 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10561 "1).  You can find out the real versions corresponding to releases of Windows "
10562 "by consulting Wikipedia or MSDN."
10563 msgstr ""
10564
10565 #. type: textblock
10566 #: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458
10567 msgid "If the version could not be determined, then C<0> is returned."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2222
10572 msgid "inspect-get-minor-version"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2224
10577 #, no-wrap
10578 msgid ""
10579 " inspect-get-minor-version root\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455
10585 msgid "This returns the minor version number of the inspected operating system."
10586 msgstr ""
10587
10588 #. type: textblock
10589 #: ../fish/guestfish-actions.pod:2231
10590 msgid ""
10591 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10592 "L</inspect-get-major-version>."
10593 msgstr ""
10594
10595 #. type: =head2
10596 #: ../fish/guestfish-actions.pod:2234
10597 msgid "inspect-get-mountpoints"
10598 msgstr ""
10599
10600 #. type: verbatim
10601 #: ../fish/guestfish-actions.pod:2236
10602 #, no-wrap
10603 msgid ""
10604 " inspect-get-mountpoints root\n"
10605 "\n"
10606 msgstr ""
10607
10608 #. type: textblock
10609 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473
10610 msgid ""
10611 "This returns a hash of where we think the filesystems associated with this "
10612 "operating system should be mounted.  Callers should note that this is at "
10613 "best an educated guess made by reading configuration files such as "
10614 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10615 "are non-existent or not mountable and callers should be prepared to handle "
10616 "or ignore failures if they try to mount them."
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482
10621 msgid ""
10622 "Each element in the returned hashtable has a key which is the path of the "
10623 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10624 "mounted there (eg. C</dev/sda1>)."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487
10629 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:2255
10634 msgid ""
10635 "For operating systems like Windows which still use drive letters, this call "
10636 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10637 "information about the mapping of drive letters to partitions, see "
10638 "L</inspect-get-drive-mappings>."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2261
10643 msgid ""
10644 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10645 "L</inspect-get-filesystems>."
10646 msgstr ""
10647
10648 #. type: =head2
10649 #: ../fish/guestfish-actions.pod:2264
10650 msgid "inspect-get-package-format"
10651 msgstr ""
10652
10653 #. type: verbatim
10654 #: ../fish/guestfish-actions.pod:2266
10655 #, no-wrap
10656 msgid ""
10657 " inspect-get-package-format root\n"
10658 "\n"
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2268
10663 msgid ""
10664 "This function and L</inspect-get-package-management> return the package "
10665 "format and package management tool used by the inspected operating system.  "
10666 "For example for Fedora these functions would return C<rpm> (package format) "
10667 "and C<yum> (package management)."
10668 msgstr ""
10669
10670 #. type: textblock
10671 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519
10672 msgid ""
10673 "This returns the string C<unknown> if we could not determine the package "
10674 "format I<or> if the operating system does not have a real packaging system "
10675 "(eg. Windows)."
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523
10680 msgid ""
10681 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10682 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10683 msgstr ""
10684
10685 #. type: =head2
10686 #: ../fish/guestfish-actions.pod:2284
10687 msgid "inspect-get-package-management"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../fish/guestfish-actions.pod:2286
10692 #, no-wrap
10693 msgid ""
10694 " inspect-get-package-management root\n"
10695 "\n"
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2288
10700 msgid ""
10701 "L</inspect-get-package-format> and this function return the package format "
10702 "and package management tool used by the inspected operating system.  For "
10703 "example for Fedora these functions would return C<rpm> (package format) and "
10704 "C<yum> (package management)."
10705 msgstr ""
10706
10707 #. type: textblock
10708 #: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546
10709 msgid ""
10710 "This returns the string C<unknown> if we could not determine the package "
10711 "management tool I<or> if the operating system does not have a real packaging "
10712 "system (eg. Windows)."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550
10717 msgid ""
10718 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10719 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10720 "versions of libguestfs may return other strings."
10721 msgstr ""
10722
10723 #. type: =head2
10724 #: ../fish/guestfish-actions.pod:2305
10725 msgid "inspect-get-product-name"
10726 msgstr ""
10727
10728 #. type: verbatim
10729 #: ../fish/guestfish-actions.pod:2307
10730 #, no-wrap
10731 msgid ""
10732 " inspect-get-product-name root\n"
10733 "\n"
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568
10738 msgid ""
10739 "This returns the product name of the inspected operating system.  The "
10740 "product name is generally some freeform string which can be displayed to the "
10741 "user, but should not be parsed by programs."
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573
10746 msgid ""
10747 "If the product name could not be determined, then the string C<unknown> is "
10748 "returned."
10749 msgstr ""
10750
10751 #. type: =head2
10752 #: ../fish/guestfish-actions.pod:2319
10753 msgid "inspect-get-product-variant"
10754 msgstr ""
10755
10756 #. type: verbatim
10757 #: ../fish/guestfish-actions.pod:2321
10758 #, no-wrap
10759 msgid ""
10760 " inspect-get-product-variant root\n"
10761 "\n"
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589
10766 msgid "This returns the product variant of the inspected operating system."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592
10771 msgid ""
10772 "For Windows guests, this returns the contents of the Registry key "
10773 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10774 "which is usually a string such as C<Client> or C<Server> (other values are "
10775 "possible).  This can be used to distinguish consumer and enterprise versions "
10776 "of Windows that have the same version number (for example, Windows 7 and "
10777 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10778 "the latter is C<Server>)."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601
10783 msgid ""
10784 "For enterprise Linux guests, in future we intend this to return the product "
10785 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10786 "implemented at present."
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605
10791 msgid ""
10792 "If the product variant could not be determined, then the string C<unknown> "
10793 "is returned."
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../fish/guestfish-actions.pod:2342
10798 msgid ""
10799 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10800 "L</inspect-get-product-name>, L</inspect-get-major-version>."
10801 msgstr ""
10802
10803 #. type: =head2
10804 #: ../fish/guestfish-actions.pod:2346
10805 msgid "inspect-get-roots"
10806 msgstr ""
10807
10808 #. type: verbatim
10809 #: ../fish/guestfish-actions.pod:2348
10810 #, no-wrap
10811 msgid ""
10812 " inspect-get-roots\n"
10813 "\n"
10814 msgstr ""
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2350
10818 msgid ""
10819 "This function is a convenient way to get the list of root devices, as "
10820 "returned from a previous call to L</inspect-os>, but without redoing the "
10821 "whole inspection process."
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../fish/guestfish-actions.pod:2354
10826 msgid ""
10827 "This returns an empty list if either no root devices were found or the "
10828 "caller has not called L</inspect-os>."
10829 msgstr ""
10830
10831 #. type: =head2
10832 #: ../fish/guestfish-actions.pod:2359
10833 msgid "inspect-get-type"
10834 msgstr ""
10835
10836 #. type: verbatim
10837 #: ../fish/guestfish-actions.pod:2361
10838 #, no-wrap
10839 msgid ""
10840 " inspect-get-type root\n"
10841 "\n"
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643
10846 msgid ""
10847 "This returns the type of the inspected operating system.  Currently defined "
10848 "types are:"
10849 msgstr ""
10850
10851 #. type: =item
10852 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648
10853 msgid "\"linux\""
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650
10858 msgid "Any Linux-based operating system."
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654
10863 msgid "Any Microsoft Windows operating system."
10864 msgstr ""
10865
10866 #. type: =item
10867 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656
10868 msgid "\"freebsd\""
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658
10873 msgid "FreeBSD."
10874 msgstr ""
10875
10876 #. type: =item
10877 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660
10878 msgid "\"netbsd\""
10879 msgstr ""
10880
10881 #. type: textblock
10882 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662
10883 msgid "NetBSD."
10884 msgstr ""
10885
10886 #. type: =item
10887 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664
10888 msgid "\"hurd\""
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666
10893 msgid "GNU/Hurd."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670
10898 msgid "The operating system type could not be determined."
10899 msgstr ""
10900
10901 #. type: =head2
10902 #: ../fish/guestfish-actions.pod:2399
10903 msgid "inspect-get-windows-current-control-set"
10904 msgstr ""
10905
10906 #. type: verbatim
10907 #: ../fish/guestfish-actions.pod:2401
10908 #, no-wrap
10909 msgid ""
10910 " inspect-get-windows-current-control-set root\n"
10911 "\n"
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690
10916 msgid ""
10917 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10918 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693
10923 msgid ""
10924 "This call assumes that the guest is Windows and that the Registry could be "
10925 "examined by inspection.  If this is not the case then an error is returned."
10926 msgstr ""
10927
10928 #. type: =head2
10929 #: ../fish/guestfish-actions.pod:2412
10930 msgid "inspect-get-windows-systemroot"
10931 msgstr ""
10932
10933 #. type: verbatim
10934 #: ../fish/guestfish-actions.pod:2414
10935 #, no-wrap
10936 msgid ""
10937 " inspect-get-windows-systemroot root\n"
10938 "\n"
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710
10943 msgid ""
10944 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10945 "is a directory path such as C</WINDOWS>."
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713
10950 msgid ""
10951 "This call assumes that the guest is Windows and that the systemroot could be "
10952 "determined by inspection.  If this is not the case then an error is "
10953 "returned."
10954 msgstr ""
10955
10956 #. type: =head2
10957 #: ../fish/guestfish-actions.pod:2425
10958 msgid "inspect-is-live"
10959 msgstr ""
10960
10961 #. type: verbatim
10962 #: ../fish/guestfish-actions.pod:2427
10963 #, no-wrap
10964 msgid ""
10965 " inspect-is-live root\n"
10966 "\n"
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2429
10971 msgid ""
10972 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10973 "then this returns true if a live image was detected on the disk."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:2435
10978 msgid "inspect-is-multipart"
10979 msgstr ""
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:2437
10983 #, no-wrap
10984 msgid ""
10985 " inspect-is-multipart root\n"
10986 "\n"
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2439
10991 msgid ""
10992 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10993 "then this returns true if the disk is part of a set."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:2445
10998 msgid "inspect-is-netinst"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:2447
11003 #, no-wrap
11004 msgid ""
11005 " inspect-is-netinst root\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:2449
11011 msgid ""
11012 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11013 "then this returns true if the disk is a network installer, ie. not a "
11014 "self-contained install CD but one which is likely to require network access "
11015 "to complete the install."
11016 msgstr ""
11017
11018 #. type: =head2
11019 #: ../fish/guestfish-actions.pod:2457
11020 msgid "inspect-list-applications"
11021 msgstr ""
11022
11023 #. type: verbatim
11024 #: ../fish/guestfish-actions.pod:2459
11025 #, no-wrap
11026 msgid ""
11027 " inspect-list-applications root\n"
11028 "\n"
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780
11033 msgid "Return the list of applications installed in the operating system."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2463
11038 msgid ""
11039 "I<Note:> This call works differently from other parts of the inspection "
11040 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11041 "then mount up the disks, before calling this.  Listing applications is a "
11042 "significantly more difficult operation which requires access to the full "
11043 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11044 "are just returning data cached in the libguestfs handle, this call actually "
11045 "reads parts of the mounted filesystems during the call."
11046 msgstr ""
11047
11048 #. type: textblock
11049 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792
11050 msgid ""
11051 "This returns an empty list if the inspection code was not able to determine "
11052 "the list of applications."
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795
11057 msgid "The application structure contains the following fields:"
11058 msgstr ""
11059
11060 #. type: =item
11061 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799
11062 msgid "C<app_name>"
11063 msgstr ""
11064
11065 #. type: textblock
11066 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801
11067 msgid ""
11068 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11069 "guests, this is the package name."
11070 msgstr ""
11071
11072 #. type: =item
11073 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804
11074 msgid "C<app_display_name>"
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806
11079 msgid ""
11080 "The display name of the application, sometimes localized to the install "
11081 "language of the guest operating system."
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809
11086 msgid ""
11087 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11088 "to display something can use C<app_name> instead."
11089 msgstr ""
11090
11091 #. type: =item
11092 #: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812
11093 msgid "C<app_epoch>"
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814
11098 msgid ""
11099 "For package managers which use epochs, this contains the epoch of the "
11100 "package (an integer).  If unavailable, this is returned as C<0>."
11101 msgstr ""
11102
11103 #. type: =item
11104 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817
11105 msgid "C<app_version>"
11106 msgstr ""
11107
11108 #. type: textblock
11109 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819
11110 msgid ""
11111 "The version string of the application or package.  If unavailable this is "
11112 "returned as an empty string C<\"\">."
11113 msgstr ""
11114
11115 #. type: =item
11116 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822
11117 msgid "C<app_release>"
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824
11122 msgid ""
11123 "The release string of the application or package, for package managers that "
11124 "use this.  If unavailable this is returned as an empty string C<\"\">."
11125 msgstr ""
11126
11127 #. type: =item
11128 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828
11129 msgid "C<app_install_path>"
11130 msgstr ""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830
11134 msgid ""
11135 "The installation path of the application (on operating systems such as "
11136 "Windows which use installation paths).  This path is in the format used by "
11137 "the guest operating system, it is not a libguestfs path."
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835
11142 msgid "If unavailable this is returned as an empty string C<\"\">."
11143 msgstr ""
11144
11145 #. type: =item
11146 #: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837
11147 msgid "C<app_trans_path>"
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839
11152 msgid ""
11153 "The install path translated into a libguestfs path.  If unavailable this is "
11154 "returned as an empty string C<\"\">."
11155 msgstr ""
11156
11157 #. type: =item
11158 #: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842
11159 msgid "C<app_publisher>"
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844
11164 msgid ""
11165 "The name of the publisher of the application, for package managers that use "
11166 "this.  If unavailable this is returned as an empty string C<\"\">."
11167 msgstr ""
11168
11169 #. type: =item
11170 #: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848
11171 msgid "C<app_url>"
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850
11176 msgid ""
11177 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11178 "returned as an empty string C<\"\">."
11179 msgstr ""
11180
11181 #. type: =item
11182 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853
11183 msgid "C<app_source_package>"
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855
11188 msgid ""
11189 "For packaging systems which support this, the name of the source package.  "
11190 "If unavailable this is returned as an empty string C<\"\">."
11191 msgstr ""
11192
11193 #. type: =item
11194 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858
11195 msgid "C<app_summary>"
11196 msgstr ""
11197
11198 #. type: textblock
11199 #: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860
11200 msgid ""
11201 "A short (usually one line) description of the application or package.  If "
11202 "unavailable this is returned as an empty string C<\"\">."
11203 msgstr ""
11204
11205 #. type: =item
11206 #: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863
11207 msgid "C<app_description>"
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865
11212 msgid ""
11213 "A longer description of the application or package.  If unavailable this is "
11214 "returned as an empty string C<\"\">."
11215 msgstr ""
11216
11217 #. type: =head2
11218 #: ../fish/guestfish-actions.pod:2553
11219 msgid "inspect-os"
11220 msgstr ""
11221
11222 #. type: verbatim
11223 #: ../fish/guestfish-actions.pod:2555
11224 #, no-wrap
11225 msgid ""
11226 " inspect-os\n"
11227 "\n"
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883
11232 msgid ""
11233 "This function uses other libguestfs functions and certain heuristics to "
11234 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11235 "for operating systems."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887
11240 msgid "The list returned is empty if no operating systems were found."
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889
11245 msgid ""
11246 "If one operating system was found, then this returns a list with a single "
11247 "element, which is the name of the root filesystem of this operating system.  "
11248 "It is also possible for this function to return a list containing more than "
11249 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11250 "element being the root filesystem of one of the operating systems."
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2570
11255 msgid ""
11256 "You can pass the root string(s) returned to other L</inspect-get-*> "
11257 "functions in order to query further information about each operating system, "
11258 "such as the name and version."
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:2575
11263 msgid ""
11264 "This function uses other libguestfs features such as L</mount-ro> and "
11265 "L</umount-all> in order to mount and unmount filesystems and look at the "
11266 "contents.  This should be called with no disks currently mounted.  The "
11267 "function may also use Augeas, so any existing Augeas handle will be closed."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907
11272 msgid ""
11273 "This function cannot decrypt encrypted disks.  The caller must do that first "
11274 "(supplying the necessary keys) if the disk is encrypted."
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785 ../fish/guestfish-actions.pod:2850
11279 msgid "See also L</list-filesystems>."
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:2589
11284 msgid "is-blockdev"
11285 msgstr ""
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:2591
11289 #, no-wrap
11290 msgid ""
11291 " is-blockdev path\n"
11292 "\n"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927
11297 msgid ""
11298 "This returns C<true> if and only if there is a block device with the given "
11299 "C<path> name."
11300 msgstr ""
11301
11302 #. type: textblock
11303 #: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614 ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642 ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686 ../fish/guestfish-actions.pod:2695
11304 msgid "See also L</stat>."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:2598
11309 msgid "is-busy"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:2600
11314 #, no-wrap
11315 msgid ""
11316 " is-busy\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941
11322 msgid ""
11323 "This returns true iff this handle is busy processing a command (in the "
11324 "C<BUSY> state)."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:2607
11329 msgid "is-chardev"
11330 msgstr ""
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:2609
11334 #, no-wrap
11335 msgid ""
11336 " is-chardev path\n"
11337 "\n"
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956
11342 msgid ""
11343 "This returns C<true> if and only if there is a character device with the "
11344 "given C<path> name."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2616
11349 msgid "is-config"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2618
11354 #, no-wrap
11355 msgid ""
11356 " is-config\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970
11362 msgid ""
11363 "This returns true iff this handle is being configured (in the C<CONFIG> "
11364 "state)."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2625
11369 msgid "is-dir"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2627
11374 #, no-wrap
11375 msgid ""
11376 " is-dir path\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985
11382 msgid ""
11383 "This returns C<true> if and only if there is a directory with the given "
11384 "C<path> name.  Note that it returns false for other objects like files."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:2635
11389 msgid "is-fifo"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:2637
11394 #, no-wrap
11395 msgid ""
11396 " is-fifo path\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001
11402 msgid ""
11403 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11404 "given C<path> name."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2644
11409 msgid "is-file"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2646
11414 #, no-wrap
11415 msgid ""
11416 " is-file path\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016
11422 msgid ""
11423 "This returns C<true> if and only if there is a regular file with the given "
11424 "C<path> name.  Note that it returns false for other objects like "
11425 "directories."
11426 msgstr ""
11427
11428 #. type: =head2
11429 #: ../fish/guestfish-actions.pod:2654
11430 msgid "is-launching"
11431 msgstr ""
11432
11433 #. type: verbatim
11434 #: ../fish/guestfish-actions.pod:2656
11435 #, no-wrap
11436 msgid ""
11437 " is-launching\n"
11438 "\n"
11439 msgstr ""
11440
11441 #. type: textblock
11442 #: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031
11443 msgid ""
11444 "This returns true iff this handle is launching the subprocess (in the "
11445 "C<LAUNCHING> state)."
11446 msgstr ""
11447
11448 #. type: =head2
11449 #: ../fish/guestfish-actions.pod:2663
11450 msgid "is-lv"
11451 msgstr ""
11452
11453 #. type: verbatim
11454 #: ../fish/guestfish-actions.pod:2665
11455 #, no-wrap
11456 msgid ""
11457 " is-lv device\n"
11458 "\n"
11459 msgstr ""
11460
11461 #. type: textblock
11462 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046
11463 msgid ""
11464 "This command tests whether C<device> is a logical volume, and returns true "
11465 "iff this is the case."
11466 msgstr ""
11467
11468 #. type: =head2
11469 #: ../fish/guestfish-actions.pod:2670
11470 msgid "is-ready"
11471 msgstr ""
11472
11473 #. type: verbatim
11474 #: ../fish/guestfish-actions.pod:2672
11475 #, no-wrap
11476 msgid ""
11477 " is-ready\n"
11478 "\n"
11479 msgstr ""
11480
11481 #. type: textblock
11482 #: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058
11483 msgid ""
11484 "This returns true iff this handle is ready to accept commands (in the "
11485 "C<READY> state)."
11486 msgstr ""
11487
11488 #. type: =head2
11489 #: ../fish/guestfish-actions.pod:2679
11490 msgid "is-socket"
11491 msgstr ""
11492
11493 #. type: verbatim
11494 #: ../fish/guestfish-actions.pod:2681
11495 #, no-wrap
11496 msgid ""
11497 " is-socket path\n"
11498 "\n"
11499 msgstr ""
11500
11501 #. type: textblock
11502 #: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073
11503 msgid ""
11504 "This returns C<true> if and only if there is a Unix domain socket with the "
11505 "given C<path> name."
11506 msgstr ""
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2688
11510 msgid "is-symlink"
11511 msgstr ""
11512
11513 #. type: verbatim
11514 #: ../fish/guestfish-actions.pod:2690
11515 #, no-wrap
11516 msgid ""
11517 " is-symlink path\n"
11518 "\n"
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088
11523 msgid ""
11524 "This returns C<true> if and only if there is a symbolic link with the given "
11525 "C<path> name."
11526 msgstr ""
11527
11528 #. type: =head2
11529 #: ../fish/guestfish-actions.pod:2697
11530 msgid "is-zero"
11531 msgstr ""
11532
11533 #. type: verbatim
11534 #: ../fish/guestfish-actions.pod:2699
11535 #, no-wrap
11536 msgid ""
11537 " is-zero path\n"
11538 "\n"
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103
11543 msgid ""
11544 "This returns true iff the file exists and the file is empty or it contains "
11545 "all zero bytes."
11546 msgstr ""
11547
11548 #. type: =head2
11549 #: ../fish/guestfish-actions.pod:2704
11550 msgid "is-zero-device"
11551 msgstr ""
11552
11553 #. type: verbatim
11554 #: ../fish/guestfish-actions.pod:2706
11555 #, no-wrap
11556 msgid ""
11557 " is-zero-device device\n"
11558 "\n"
11559 msgstr ""
11560
11561 #. type: textblock
11562 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116
11563 msgid "This returns true iff the device exists and contains all zero bytes."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118
11568 msgid "Note that for large devices this can take a long time to run."
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:2712
11573 msgid "kill-subprocess"
11574 msgstr ""
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:2714
11578 #, no-wrap
11579 msgid ""
11580 " kill-subprocess\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129
11586 msgid "This kills the qemu subprocess.  You should never need to call this."
11587 msgstr ""
11588
11589 #. type: =head2
11590 #: ../fish/guestfish-actions.pod:2718
11591 msgid "launch"
11592 msgstr ""
11593
11594 #. type: =head2
11595 #: ../fish/guestfish-actions.pod:2720
11596 msgid "run"
11597 msgstr ""
11598
11599 #. type: verbatim
11600 #: ../fish/guestfish-actions.pod:2722
11601 #, no-wrap
11602 msgid ""
11603 " launch\n"
11604 "\n"
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140
11609 msgid ""
11610 "Internally libguestfs is implemented by running a virtual machine using "
11611 "L<qemu(1)>."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143
11616 msgid ""
11617 "You should call this after configuring the handle (eg. adding drives) but "
11618 "before performing any actions."
11619 msgstr ""
11620
11621 #. type: =head2
11622 #: ../fish/guestfish-actions.pod:2730
11623 msgid "lchown"
11624 msgstr ""
11625
11626 #. type: verbatim
11627 #: ../fish/guestfish-actions.pod:2732
11628 #, no-wrap
11629 msgid ""
11630 " lchown owner group path\n"
11631 "\n"
11632 msgstr ""
11633
11634 #. type: textblock
11635 #: ../fish/guestfish-actions.pod:2734
11636 msgid ""
11637 "Change the file owner to C<owner> and group to C<group>.  This is like "
11638 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
11639 "the target."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../fish/guestfish-actions.pod:2742
11644 msgid "lgetxattr"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../fish/guestfish-actions.pod:2744
11649 #, no-wrap
11650 msgid ""
11651 " lgetxattr path name\n"
11652 "\n"
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183
11657 msgid ""
11658 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11659 "is a symlink, then this call returns an extended attribute from the symlink."
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../fish/guestfish-actions.pod:2760
11664 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11665 msgstr ""
11666
11667 #. type: =head2
11668 #: ../fish/guestfish-actions.pod:2762
11669 msgid "lgetxattrs"
11670 msgstr ""
11671
11672 #. type: verbatim
11673 #: ../fish/guestfish-actions.pod:2764
11674 #, no-wrap
11675 msgid ""
11676 " lgetxattrs path\n"
11677 "\n"
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../fish/guestfish-actions.pod:2766
11682 msgid ""
11683 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11684 "it returns the extended attributes of the link itself."
11685 msgstr ""
11686
11687 #. type: =head2
11688 #: ../fish/guestfish-actions.pod:2770
11689 msgid "list-9p"
11690 msgstr ""
11691
11692 #. type: verbatim
11693 #: ../fish/guestfish-actions.pod:2772
11694 #, no-wrap
11695 msgid ""
11696 " list-9p\n"
11697 "\n"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226
11702 msgid ""
11703 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11704 "returned."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:2777
11709 msgid "list-devices"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:2779
11714 #, no-wrap
11715 msgid ""
11716 " list-devices\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240
11722 msgid "List all the block devices."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242
11727 msgid "The full block device names are returned, eg. C</dev/sda>."
11728 msgstr ""
11729
11730 #. type: =head2
11731 #: ../fish/guestfish-actions.pod:2787
11732 msgid "list-dm-devices"
11733 msgstr ""
11734
11735 #. type: verbatim
11736 #: ../fish/guestfish-actions.pod:2789
11737 #, no-wrap
11738 msgid ""
11739 " list-dm-devices\n"
11740 "\n"
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257
11745 msgid "List all device mapper devices."
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:2793
11750 msgid ""
11751 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11752 "previous call to L</luks-open>."
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:2796
11757 msgid ""
11758 "Device mapper devices which correspond to logical volumes are I<not> "
11759 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:2800
11764 msgid "list-filesystems"
11765 msgstr ""
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:2802
11769 #, no-wrap
11770 msgid ""
11771 " list-filesystems\n"
11772 "\n"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277
11777 msgid ""
11778 "This inspection command looks for filesystems on partitions, block devices "
11779 "and logical volumes, returning a list of devices containing filesystems and "
11780 "their type."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281
11785 msgid ""
11786 "The return value is a hash, where the keys are the devices containing "
11787 "filesystems, and the values are the filesystem types.  For example:"
11788 msgstr ""
11789
11790 #. type: verbatim
11791 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285
11792 #, no-wrap
11793 msgid ""
11794 " \"/dev/sda1\" => \"ntfs\"\n"
11795 " \"/dev/sda2\" => \"ext2\"\n"
11796 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11797 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11798 "\n"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290
11803 msgid ""
11804 "The value can have the special value \"unknown\", meaning the content of the "
11805 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../fish/guestfish-actions.pod:2821
11810 msgid ""
11811 "This command runs other libguestfs commands, which might include L</mount> "
11812 "and L</umount>, and therefore you should use this soon after launch and only "
11813 "when nothing is mounted."
11814 msgstr ""
11815
11816 #. type: textblock
11817 #: ../fish/guestfish-actions.pod:2825
11818 msgid ""
11819 "Not all of the filesystems returned will be mountable.  In particular, swap "
11820 "partitions are returned in the list.  Also this command does not check that "
11821 "each filesystem found is valid and mountable, and some filesystems might be "
11822 "mountable but require special options.  Filesystems may not all belong to a "
11823 "single logical operating system (use L</inspect-os> to look for OSes)."
11824 msgstr ""
11825
11826 #. type: =head2
11827 #: ../fish/guestfish-actions.pod:2833
11828 msgid "list-md-devices"
11829 msgstr ""
11830
11831 #. type: verbatim
11832 #: ../fish/guestfish-actions.pod:2835
11833 #, no-wrap
11834 msgid ""
11835 " list-md-devices\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319
11841 msgid "List all Linux md devices."
11842 msgstr ""
11843
11844 #. type: =head2
11845 #: ../fish/guestfish-actions.pod:2839
11846 msgid "list-partitions"
11847 msgstr ""
11848
11849 #. type: verbatim
11850 #: ../fish/guestfish-actions.pod:2841
11851 #, no-wrap
11852 msgid ""
11853 " list-partitions\n"
11854 "\n"
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332
11859 msgid "List all the partitions detected on all block devices."
11860 msgstr ""
11861
11862 #. type: textblock
11863 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334
11864 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:2847
11869 msgid ""
11870 "This does not return logical volumes.  For that you will need to call "
11871 "L</lvs>."
11872 msgstr ""
11873
11874 #. type: =head2
11875 #: ../fish/guestfish-actions.pod:2852
11876 msgid "ll"
11877 msgstr ""
11878
11879 #. type: verbatim
11880 #: ../fish/guestfish-actions.pod:2854
11881 #, no-wrap
11882 msgid ""
11883 " ll directory\n"
11884 "\n"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353
11889 msgid ""
11890 "List the files in C<directory> (relative to the root directory, there is no "
11891 "cwd) in the format of 'ls -la'."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356
11896 msgid ""
11897 "This command is mostly useful for interactive sessions.  It is I<not> "
11898 "intended that you try to parse the output string."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:2862
11903 msgid "ln"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:2864
11908 #, no-wrap
11909 msgid ""
11910 " ln target linkname\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371
11916 msgid "This command creates a hard link using the C<ln> command."
11917 msgstr ""
11918
11919 #. type: =head2
11920 #: ../fish/guestfish-actions.pod:2868
11921 msgid "ln-f"
11922 msgstr ""
11923
11924 #. type: verbatim
11925 #: ../fish/guestfish-actions.pod:2870
11926 #, no-wrap
11927 msgid ""
11928 " ln-f target linkname\n"
11929 "\n"
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384
11934 msgid ""
11935 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11936 "option removes the link (C<linkname>) if it exists already."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:2875
11941 msgid "ln-s"
11942 msgstr ""
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:2877
11946 #, no-wrap
11947 msgid ""
11948 " ln-s target linkname\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398
11954 msgid "This command creates a symbolic link using the C<ln -s> command."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../fish/guestfish-actions.pod:2881
11959 msgid "ln-sf"
11960 msgstr ""
11961
11962 #. type: verbatim
11963 #: ../fish/guestfish-actions.pod:2883
11964 #, no-wrap
11965 msgid ""
11966 " ln-sf target linkname\n"
11967 "\n"
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411
11972 msgid ""
11973 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11974 "option removes the link (C<linkname>) if it exists already."
11975 msgstr ""
11976
11977 #. type: =head2
11978 #: ../fish/guestfish-actions.pod:2888
11979 msgid "lremovexattr"
11980 msgstr ""
11981
11982 #. type: verbatim
11983 #: ../fish/guestfish-actions.pod:2890
11984 #, no-wrap
11985 msgid ""
11986 " lremovexattr xattr path\n"
11987 "\n"
11988 msgstr ""
11989
11990 #. type: textblock
11991 #: ../fish/guestfish-actions.pod:2892
11992 msgid ""
11993 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11994 "it removes an extended attribute of the link itself."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:2896
11999 msgid "ls"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:2898
12004 #, no-wrap
12005 msgid ""
12006 " ls directory\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439
12012 msgid ""
12013 "List the files in C<directory> (relative to the root directory, there is no "
12014 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
12015 "shown."
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:2904
12020 msgid ""
12021 "This command is mostly useful for interactive sessions.  Programs should "
12022 "probably use L</readdir> instead."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:2907
12027 msgid "lsetxattr"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:2909
12032 #, no-wrap
12033 msgid ""
12034 " lsetxattr xattr val vallen path\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:2911
12040 msgid ""
12041 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12042 "sets an extended attribute of the link itself."
12043 msgstr ""
12044
12045 #. type: =head2
12046 #: ../fish/guestfish-actions.pod:2915
12047 msgid "lstat"
12048 msgstr ""
12049
12050 #. type: verbatim
12051 #: ../fish/guestfish-actions.pod:2917
12052 #, no-wrap
12053 msgid ""
12054 " lstat path\n"
12055 "\n"
12056 msgstr ""
12057
12058 #. type: textblock
12059 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405
12060 msgid "Returns file information for the given C<path>."
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:2921
12065 msgid ""
12066 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12067 "the link is stat-ed, not the file it refers to."
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481
12072 msgid "This is the same as the C<lstat(2)> system call."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../fish/guestfish-actions.pod:2927
12077 msgid "lstatlist"
12078 msgstr ""
12079
12080 #. type: verbatim
12081 #: ../fish/guestfish-actions.pod:2929
12082 #, no-wrap
12083 msgid ""
12084 " lstatlist path 'names ...'\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:2931
12090 msgid ""
12091 "This call allows you to perform the L</lstat> operation on multiple files, "
12092 "where all files are in the directory C<path>.  C<names> is the list of files "
12093 "from this directory."
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500
12098 msgid ""
12099 "On return you get a list of stat structs, with a one-to-one correspondence "
12100 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12101 "then the C<ino> field of that structure is set to C<-1>."
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:2940
12106 msgid ""
12107 "This call is intended for programs that want to efficiently list a directory "
12108 "contents without making many round-trips.  See also L</lxattrlist> for a "
12109 "similarly efficient call for getting extended attributes.  Very long "
12110 "directory listings might cause the protocol message size to be exceeded, "
12111 "causing this call to fail.  The caller must split up such requests into "
12112 "smaller groups of names."
12113 msgstr ""
12114
12115 #. type: =head2
12116 #: ../fish/guestfish-actions.pod:2948
12117 msgid "luks-add-key"
12118 msgstr ""
12119
12120 #. type: verbatim
12121 #: ../fish/guestfish-actions.pod:2950
12122 #, no-wrap
12123 msgid ""
12124 " luks-add-key device keyslot\n"
12125 "\n"
12126 msgstr ""
12127
12128 #. type: textblock
12129 #: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528
12130 msgid ""
12131 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12132 "existing key, and is used to access the device.  C<newkey> is the new key to "
12133 "add.  C<keyslot> is the key slot that will be replaced."
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../fish/guestfish-actions.pod:2957
12138 msgid ""
12139 "Note that if C<keyslot> already contains a key, then this command will "
12140 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983 ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004 ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040
12145 msgid ""
12146 "This command has one or more key or passphrase parameters.  Guestfish will "
12147 "prompt for these separately."
12148 msgstr ""
12149
12150 #. type: =head2
12151 #: ../fish/guestfish-actions.pod:2964
12152 msgid "luks-close"
12153 msgstr ""
12154
12155 #. type: verbatim
12156 #: ../fish/guestfish-actions.pod:2966
12157 #, no-wrap
12158 msgid ""
12159 " luks-close device\n"
12160 "\n"
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:2968
12165 msgid ""
12166 "This closes a LUKS device that was created earlier by L</luks-open> or "
12167 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
12168 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12169 "underlying block device."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../fish/guestfish-actions.pod:2974
12174 msgid "luks-format"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../fish/guestfish-actions.pod:2976
12179 #, no-wrap
12180 msgid ""
12181 " luks-format device keyslot\n"
12182 "\n"
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569
12187 msgid ""
12188 "This command erases existing data on C<device> and formats the device as a "
12189 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12190 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:2986
12195 msgid "luks-format-cipher"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:2988
12200 #, no-wrap
12201 msgid ""
12202 " luks-format-cipher device keyslot cipher\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:2990
12208 msgid ""
12209 "This command is the same as L</luks-format> but it also allows you to set "
12210 "the C<cipher> used."
12211 msgstr ""
12212
12213 #. type: =head2
12214 #: ../fish/guestfish-actions.pod:2996
12215 msgid "luks-kill-slot"
12216 msgstr ""
12217
12218 #. type: verbatim
12219 #: ../fish/guestfish-actions.pod:2998
12220 #, no-wrap
12221 msgid ""
12222 " luks-kill-slot device keyslot\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610
12228 msgid ""
12229 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12230 "device C<device>.  C<key> must be one of the I<other> keys."
12231 msgstr ""
12232
12233 #. type: =head2
12234 #: ../fish/guestfish-actions.pod:3007
12235 msgid "luks-open"
12236 msgstr ""
12237
12238 #. type: verbatim
12239 #: ../fish/guestfish-actions.pod:3009
12240 #, no-wrap
12241 msgid ""
12242 " luks-open device mapname\n"
12243 "\n"
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630
12248 msgid ""
12249 "This command opens a block device which has been encrypted according to the "
12250 "Linux Unified Key Setup (LUKS) standard."
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633
12255 msgid "C<device> is the encrypted block device or partition."
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635
12260 msgid ""
12261 "The caller must supply one of the keys associated with the LUKS block "
12262 "device, in the C<key> parameter."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638
12267 msgid ""
12268 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12269 "writes to this block device are decrypted from and encrypted to the "
12270 "underlying C<device> respectively."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:3023
12275 msgid ""
12276 "If this block device contains LVM volume groups, then calling L</vgscan> "
12277 "followed by L</vg-activate-all> will make them visible."
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:3027
12282 msgid "Use L</list-dm-devices> to list all device mapper devices."
12283 msgstr ""
12284
12285 #. type: =head2
12286 #: ../fish/guestfish-actions.pod:3033
12287 msgid "luks-open-ro"
12288 msgstr ""
12289
12290 #. type: verbatim
12291 #: ../fish/guestfish-actions.pod:3035
12292 #, no-wrap
12293 msgid ""
12294 " luks-open-ro device mapname\n"
12295 "\n"
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:3037
12300 msgid ""
12301 "This is the same as L</luks-open> except that a read-only mapping is "
12302 "created."
12303 msgstr ""
12304
12305 #. type: =head2
12306 #: ../fish/guestfish-actions.pod:3043
12307 msgid "lvcreate"
12308 msgstr ""
12309
12310 #. type: verbatim
12311 #: ../fish/guestfish-actions.pod:3045
12312 #, no-wrap
12313 msgid ""
12314 " lvcreate logvol volgroup mbytes\n"
12315 "\n"
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684
12320 msgid ""
12321 "This creates an LVM logical volume called C<logvol> on the volume group "
12322 "C<volgroup>, with C<size> megabytes."
12323 msgstr ""
12324
12325 #. type: =head2
12326 #: ../fish/guestfish-actions.pod:3050
12327 msgid "lvm-canonical-lv-name"
12328 msgstr ""
12329
12330 #. type: verbatim
12331 #: ../fish/guestfish-actions.pod:3052
12332 #, no-wrap
12333 msgid ""
12334 " lvm-canonical-lv-name lvname\n"
12335 "\n"
12336 msgstr ""
12337
12338 #. type: textblock
12339 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697
12340 msgid ""
12341 "This converts alternative naming schemes for LVs that you might find to the "
12342 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12343 "C</dev/VG/LV>."
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3058 ../src/guestfs-actions.pod:4701
12348 msgid ""
12349 "This command returns an error if the C<lvname> parameter does not refer to a "
12350 "logical volume."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3061
12355 msgid "See also L</is-lv>."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:3063
12360 msgid "lvm-clear-filter"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:3065
12365 #, no-wrap
12366 msgid ""
12367 " lvm-clear-filter\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3067
12373 msgid ""
12374 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12375 "block device."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758
12380 msgid "This command also clears the LVM cache and performs a volume group scan."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../fish/guestfish-actions.pod:3073
12385 msgid "lvm-remove-all"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../fish/guestfish-actions.pod:3075
12390 #, no-wrap
12391 msgid ""
12392 " lvm-remove-all\n"
12393 "\n"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731
12398 msgid ""
12399 "This command removes all LVM logical volumes, volume groups and physical "
12400 "volumes."
12401 msgstr ""
12402
12403 #. type: =head2
12404 #: ../fish/guestfish-actions.pod:3080
12405 msgid "lvm-set-filter"
12406 msgstr ""
12407
12408 #. type: verbatim
12409 #: ../fish/guestfish-actions.pod:3082
12410 #, no-wrap
12411 msgid ""
12412 " lvm-set-filter 'devices ...'\n"
12413 "\n"
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744
12418 msgid ""
12419 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12420 "block devices in the list C<devices>, and will ignore all other attached "
12421 "block devices."
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748
12426 msgid ""
12427 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12428 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12429 "there are two types of duplication possible: either cloned PVs/VGs which "
12430 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12431 "same name.  In normal operation you cannot create this situation, but you "
12432 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12433 "inside the LVM metadata."
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761
12438 msgid "You can filter whole block devices or individual partitions."
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763
12443 msgid ""
12444 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12445 "filesystem), even if you are not filtering out that VG."
12446 msgstr ""
12447
12448 #. type: =head2
12449 #: ../fish/guestfish-actions.pod:3107
12450 msgid "lvremove"
12451 msgstr ""
12452
12453 #. type: verbatim
12454 #: ../fish/guestfish-actions.pod:3109
12455 #, no-wrap
12456 msgid ""
12457 " lvremove device\n"
12458 "\n"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777
12463 msgid ""
12464 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12465 "LV, such as C</dev/VG/LV>."
12466 msgstr ""
12467
12468 #. type: textblock
12469 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780
12470 msgid ""
12471 "You can also remove all LVs in a volume group by specifying the VG name, "
12472 "C</dev/VG>."
12473 msgstr ""
12474
12475 #. type: =head2
12476 #: ../fish/guestfish-actions.pod:3117
12477 msgid "lvrename"
12478 msgstr ""
12479
12480 #. type: verbatim
12481 #: ../fish/guestfish-actions.pod:3119
12482 #, no-wrap
12483 msgid ""
12484 " lvrename logvol newlogvol\n"
12485 "\n"
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794
12490 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12491 msgstr ""
12492
12493 #. type: =head2
12494 #: ../fish/guestfish-actions.pod:3123
12495 msgid "lvresize"
12496 msgstr ""
12497
12498 #. type: verbatim
12499 #: ../fish/guestfish-actions.pod:3125
12500 #, no-wrap
12501 msgid ""
12502 " lvresize device mbytes\n"
12503 "\n"
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807
12508 msgid ""
12509 "This resizes (expands or shrinks) an existing LVM logical volume to "
12510 "C<mbytes>.  When reducing, data in the reduced part is lost."
12511 msgstr ""
12512
12513 #. type: =head2
12514 #: ../fish/guestfish-actions.pod:3131
12515 msgid "lvresize-free"
12516 msgstr ""
12517
12518 #. type: verbatim
12519 #: ../fish/guestfish-actions.pod:3133
12520 #, no-wrap
12521 msgid ""
12522 " lvresize-free lv percent\n"
12523 "\n"
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822
12528 msgid ""
12529 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12530 "remaining free space in the volume group.  Commonly you would call this with "
12531 "pc = 100 which expands the logical volume as much as possible, using all "
12532 "remaining free space in the volume group."
12533 msgstr ""
12534
12535 #. type: =head2
12536 #: ../fish/guestfish-actions.pod:3141
12537 msgid "lvs"
12538 msgstr ""
12539
12540 #. type: verbatim
12541 #: ../fish/guestfish-actions.pod:3143
12542 #, no-wrap
12543 msgid ""
12544 " lvs\n"
12545 "\n"
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837
12550 msgid ""
12551 "List all the logical volumes detected.  This is the equivalent of the "
12552 "L<lvs(8)> command."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840
12557 msgid ""
12558 "This returns a list of the logical volume device names "
12559 "(eg. C</dev/VolGroup00/LogVol00>)."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:3151
12564 msgid "See also L</lvs-full>, L</list-filesystems>."
12565 msgstr ""
12566
12567 #. type: =head2
12568 #: ../fish/guestfish-actions.pod:3153
12569 msgid "lvs-full"
12570 msgstr ""
12571
12572 #. type: verbatim
12573 #: ../fish/guestfish-actions.pod:3155
12574 #, no-wrap
12575 msgid ""
12576 " lvs-full\n"
12577 "\n"
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856
12582 msgid ""
12583 "List all the logical volumes detected.  This is the equivalent of the "
12584 "L<lvs(8)> command.  The \"full\" version includes all fields."
12585 msgstr ""
12586
12587 #. type: =head2
12588 #: ../fish/guestfish-actions.pod:3160
12589 msgid "lvuuid"
12590 msgstr ""
12591
12592 #. type: verbatim
12593 #: ../fish/guestfish-actions.pod:3162
12594 #, no-wrap
12595 msgid ""
12596 " lvuuid device\n"
12597 "\n"
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871
12602 msgid "This command returns the UUID of the LVM LV C<device>."
12603 msgstr ""
12604
12605 #. type: =head2
12606 #: ../fish/guestfish-actions.pod:3166
12607 msgid "lxattrlist"
12608 msgstr ""
12609
12610 #. type: verbatim
12611 #: ../fish/guestfish-actions.pod:3168
12612 #, no-wrap
12613 msgid ""
12614 " lxattrlist path 'names ...'\n"
12615 "\n"
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885
12620 msgid ""
12621 "This call allows you to get the extended attributes of multiple files, where "
12622 "all files are in the directory C<path>.  C<names> is the list of files from "
12623 "this directory."
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889
12628 msgid ""
12629 "On return you get a flat list of xattr structs which must be interpreted "
12630 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12631 "C<attrval> in this struct is zero-length to indicate there was an error "
12632 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12633 "number (the number of following attributes for this file, which could be "
12634 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12635 "attributes for the first named file.  This repeats for the second and "
12636 "subsequent files."
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../fish/guestfish-actions.pod:3184
12641 msgid ""
12642 "This call is intended for programs that want to efficiently list a directory "
12643 "contents without making many round-trips.  See also L</lstatlist> for a "
12644 "similarly efficient call for getting standard stats.  Very long directory "
12645 "listings might cause the protocol message size to be exceeded, causing this "
12646 "call to fail.  The caller must split up such requests into smaller groups of "
12647 "names."
12648 msgstr ""
12649
12650 #. type: =head2
12651 #: ../fish/guestfish-actions.pod:3192
12652 msgid "md-create"
12653 msgstr ""
12654
12655 #. type: verbatim
12656 #: ../fish/guestfish-actions.pod:3194
12657 #, no-wrap
12658 msgid ""
12659 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] "
12660 "[chunk:N] [level:..]\n"
12661 "\n"
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932
12666 msgid ""
12667 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12668 "C<devices>."
12669 msgstr ""
12670
12671 #. type: =item
12672 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939
12673 msgid "C<missingbitmap>"
12674 msgstr ""
12675
12676 #. type: textblock
12677 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941
12678 msgid ""
12679 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12680 "is added to the array.  The least significant bit corresponds to the first "
12681 "device in the array."
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945
12686 msgid "As examples:"
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947
12691 msgid ""
12692 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12693 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950
12698 msgid ""
12699 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12700 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953
12705 msgid "This defaults to C<0> (no missing devices)."
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955
12710 msgid ""
12711 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12712 "equal C<nrdevices> + C<spare>."
12713 msgstr ""
12714
12715 #. type: =item
12716 #: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958
12717 msgid "C<nrdevices>"
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960
12722 msgid "The number of active RAID devices."
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962
12727 msgid ""
12728 "If not set, this defaults to the length of C<devices> plus the number of "
12729 "bits set in C<missingbitmap>."
12730 msgstr ""
12731
12732 #. type: =item
12733 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965
12734 msgid "C<spare>"
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967
12739 msgid "The number of spare devices."
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969
12744 msgid "If not set, this defaults to C<0>."
12745 msgstr ""
12746
12747 #. type: =item
12748 #: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971
12749 msgid "C<chunk>"
12750 msgstr ""
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973
12754 msgid "The chunk size in bytes."
12755 msgstr ""
12756
12757 #. type: =item
12758 #: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023
12759 msgid "C<level>"
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977
12764 msgid ""
12765 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12766 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12767 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12768 "added in future."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982
12773 msgid "If not set, this defaults to C<raid1>."
12774 msgstr ""
12775
12776 #. type: =head2
12777 #: ../fish/guestfish-actions.pod:3252
12778 msgid "md-detail"
12779 msgstr ""
12780
12781 #. type: verbatim
12782 #: ../fish/guestfish-actions.pod:3254
12783 #, no-wrap
12784 msgid ""
12785 " md-detail md\n"
12786 "\n"
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
12791 msgid ""
12792 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12793 "are usually present in the returned hash. Other fields may also be present."
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025
12798 msgid "The raid level of the MD device."
12799 msgstr ""
12800
12801 #. type: =item
12802 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027
12803 msgid "C<devices>"
12804 msgstr ""
12805
12806 #. type: textblock
12807 #: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029
12808 msgid "The number of underlying devices in the MD device."
12809 msgstr ""
12810
12811 #. type: =item
12812 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031
12813 msgid "C<metadata>"
12814 msgstr ""
12815
12816 #. type: textblock
12817 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033
12818 msgid "The metadata version used."
12819 msgstr ""
12820
12821 #. type: =item
12822 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035
12823 msgid "C<uuid>"
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037
12828 msgid "The UUID of the MD device."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041
12833 msgid "The name of the MD device."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3283
12838 msgid "md-stop"
12839 msgstr ""
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3285
12843 #, no-wrap
12844 msgid ""
12845 " md-stop md\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057
12851 msgid ""
12852 "This command deactivates the MD array named C<md>.  The device is stopped, "
12853 "but it is not destroyed or zeroed."
12854 msgstr ""
12855
12856 #. type: =head2
12857 #: ../fish/guestfish-actions.pod:3290
12858 msgid "mkdir"
12859 msgstr ""
12860
12861 #. type: verbatim
12862 #: ../fish/guestfish-actions.pod:3292
12863 #, no-wrap
12864 msgid ""
12865 " mkdir path\n"
12866 "\n"
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068
12871 msgid "Create a directory named C<path>."
12872 msgstr ""
12873
12874 #. type: =head2
12875 #: ../fish/guestfish-actions.pod:3296
12876 msgid "mkdir-mode"
12877 msgstr ""
12878
12879 #. type: verbatim
12880 #: ../fish/guestfish-actions.pod:3298
12881 #, no-wrap
12882 msgid ""
12883 " mkdir-mode path mode\n"
12884 "\n"
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081
12889 msgid ""
12890 "This command creates a directory, setting the initial permissions of the "
12891 "directory to C<mode>."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084
12896 msgid ""
12897 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12898 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12899 "other ways."
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:3307
12904 msgid "See also L</mkdir>, L</umask>"
12905 msgstr ""
12906
12907 #. type: =head2
12908 #: ../fish/guestfish-actions.pod:3309
12909 msgid "mkdir-p"
12910 msgstr ""
12911
12912 #. type: verbatim
12913 #: ../fish/guestfish-actions.pod:3311
12914 #, no-wrap
12915 msgid ""
12916 " mkdir-p path\n"
12917 "\n"
12918 msgstr ""
12919
12920 #. type: textblock
12921 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100
12922 msgid ""
12923 "Create a directory named C<path>, creating any parent directories as "
12924 "necessary.  This is like the C<mkdir -p> shell command."
12925 msgstr ""
12926
12927 #. type: =head2
12928 #: ../fish/guestfish-actions.pod:3316
12929 msgid "mkdtemp"
12930 msgstr ""
12931
12932 #. type: verbatim
12933 #: ../fish/guestfish-actions.pod:3318
12934 #, no-wrap
12935 msgid ""
12936 " mkdtemp template\n"
12937 "\n"
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113
12942 msgid ""
12943 "This command creates a temporary directory.  The C<template> parameter "
12944 "should be a full pathname for the temporary directory name with the final "
12945 "six characters being \"XXXXXX\"."
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5118
12950 msgid ""
12951 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12952 "being suitable for Windows filesystems."
12953 msgstr ""
12954
12955 #. type: textblock
12956 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5121
12957 msgid "The name of the temporary directory that was created is returned."
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5124
12962 msgid "The temporary directory is created with mode 0700 and is owned by root."
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5127
12967 msgid ""
12968 "The caller is responsible for deleting the temporary directory and its "
12969 "contents after use."
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5130
12974 msgid "See also: L<mkdtemp(3)>"
12975 msgstr ""
12976
12977 #. type: =head2
12978 #: ../fish/guestfish-actions.pod:3339
12979 msgid "mke2fs-J"
12980 msgstr ""
12981
12982 #. type: verbatim
12983 #: ../fish/guestfish-actions.pod:3341
12984 #, no-wrap
12985 msgid ""
12986 " mke2fs-J fstype blocksize device journal\n"
12987 "\n"
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5146
12992 msgid ""
12993 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12994 "C<journal>.  It is equivalent to the command:"
12995 msgstr ""
12996
12997 #. type: verbatim
12998 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5150
12999 #, no-wrap
13000 msgid ""
13001 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13002 "\n"
13003 msgstr ""
13004
13005 #. type: textblock
13006 #: ../fish/guestfish-actions.pod:3349
13007 msgid "See also L</mke2journal>."
13008 msgstr ""
13009
13010 #. type: =head2
13011 #: ../fish/guestfish-actions.pod:3351
13012 msgid "mke2fs-JL"
13013 msgstr ""
13014
13015 #. type: verbatim
13016 #: ../fish/guestfish-actions.pod:3353
13017 #, no-wrap
13018 msgid ""
13019 " mke2fs-JL fstype blocksize device label\n"
13020 "\n"
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5167
13025 msgid ""
13026 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13027 "the journal labeled C<label>."
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:3358
13032 msgid "See also L</mke2journal-L>."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3360
13037 msgid "mke2fs-JU"
13038 msgstr ""
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3362
13042 #, no-wrap
13043 msgid ""
13044 " mke2fs-JU fstype blocksize device uuid\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5185
13050 msgid ""
13051 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13052 "the journal with UUID C<uuid>."
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../fish/guestfish-actions.pod:3367
13057 msgid "See also L</mke2journal-U>."
13058 msgstr ""
13059
13060 #. type: =head2
13061 #: ../fish/guestfish-actions.pod:3369
13062 msgid "mke2journal"
13063 msgstr ""
13064
13065 #. type: verbatim
13066 #: ../fish/guestfish-actions.pod:3371
13067 #, no-wrap
13068 msgid ""
13069 " mke2journal blocksize device\n"
13070 "\n"
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5201
13075 msgid ""
13076 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13077 "command:"
13078 msgstr ""
13079
13080 #. type: verbatim
13081 #: ../fish/guestfish-actions.pod:3376 ../src/guestfs-actions.pod:5204
13082 #, no-wrap
13083 msgid ""
13084 " mke2fs -O journal_dev -b blocksize device\n"
13085 "\n"
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:3378
13090 msgid "mke2journal-L"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:3380
13095 #, no-wrap
13096 msgid ""
13097 " mke2journal-L blocksize label device\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5218
13103 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:3384
13108 msgid "mke2journal-U"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:3386
13113 #, no-wrap
13114 msgid ""
13115 " mke2journal-U blocksize uuid device\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5232
13121 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13122 msgstr ""
13123
13124 #. type: =head2
13125 #: ../fish/guestfish-actions.pod:3390
13126 msgid "mkfifo"
13127 msgstr ""
13128
13129 #. type: verbatim
13130 #: ../fish/guestfish-actions.pod:3392
13131 #, no-wrap
13132 msgid ""
13133 " mkfifo mode path\n"
13134 "\n"
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:3394
13139 msgid ""
13140 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13141 "is just a convenient wrapper around L</mknod>."
13142 msgstr ""
13143
13144 #. type: =head2
13145 #: ../fish/guestfish-actions.pod:3400
13146 msgid "mkfs"
13147 msgstr ""
13148
13149 #. type: verbatim
13150 #: ../fish/guestfish-actions.pod:3402
13151 #, no-wrap
13152 msgid ""
13153 " mkfs fstype device\n"
13154 "\n"
13155 msgstr ""
13156
13157 #. type: textblock
13158 #: ../fish/guestfish-actions.pod:3404 ../src/guestfs-actions.pod:5262
13159 msgid ""
13160 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13161 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13162 msgstr ""
13163
13164 #. type: =head2
13165 #: ../fish/guestfish-actions.pod:3408
13166 msgid "mkfs-b"
13167 msgstr ""
13168
13169 #. type: verbatim
13170 #: ../fish/guestfish-actions.pod:3410
13171 #, no-wrap
13172 msgid ""
13173 " mkfs-b fstype blocksize device\n"
13174 "\n"
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3412
13179 msgid ""
13180 "This call is similar to L</mkfs>, but it allows you to control the block "
13181 "size of the resulting filesystem.  Supported block sizes depend on the "
13182 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5328
13187 msgid ""
13188 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13189 "cluster size."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3420
13194 msgid ""
13195 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13196 "instead."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../fish/guestfish-actions.pod:3427
13201 msgid "mkfs-opts"
13202 msgstr ""
13203
13204 #. type: verbatim
13205 #: ../fish/guestfish-actions.pod:3429
13206 #, no-wrap
13207 msgid ""
13208 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] "
13209 "[sectorsize:N]\n"
13210 "\n"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5315
13215 msgid ""
13216 "This function creates a filesystem on C<device>.  The filesystem type is "
13217 "C<fstype>, for example C<ext3>."
13218 msgstr ""
13219
13220 #. type: =item
13221 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5322
13222 msgid "C<blocksize>"
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5324
13227 msgid ""
13228 "The filesystem block size.  Supported block sizes depend on the filesystem "
13229 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13230 "filesystems."
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5331
13235 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13236 msgstr ""
13237
13238 #. type: =item
13239 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5333
13240 msgid "C<features>"
13241 msgstr ""
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5335
13245 msgid "This passes the I<-O> parameter to the external mkfs program."
13246 msgstr ""
13247
13248 #. type: textblock
13249 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5337
13250 msgid ""
13251 "For certain filesystem types, this allows extra filesystem features to be "
13252 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5341
13257 msgid ""
13258 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13259 "type."
13260 msgstr ""
13261
13262 #. type: =item
13263 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5344
13264 msgid "C<inode>"
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5346
13269 msgid ""
13270 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13271 "sets the inode size (only for ext2/3/4 filesystems at present)."
13272 msgstr ""
13273
13274 #. type: =item
13275 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5349
13276 msgid "C<sectorsize>"
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5351
13281 msgid ""
13282 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13283 "sets sector size for ufs filesystem."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:3474
13288 msgid "mkmountpoint"
13289 msgstr ""
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:3476
13293 #, no-wrap
13294 msgid ""
13295 " mkmountpoint exemptpath\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:3478
13301 msgid ""
13302 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13303 "to create extra mountpoints before mounting the first filesystem."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5394
13308 msgid ""
13309 "These calls are I<only> necessary in some very limited circumstances, mainly "
13310 "the case where you want to mount a mix of unrelated and/or read-only "
13311 "filesystems together."
13312 msgstr ""
13313
13314 #. type: textblock
13315 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5398
13316 msgid ""
13317 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13318 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13319 "inside that.  You can unpack this as follows in guestfish:"
13320 msgstr ""
13321
13322 #. type: verbatim
13323 #: ../fish/guestfish-actions.pod:3491 ../src/guestfs-actions.pod:5403
13324 #, no-wrap
13325 msgid ""
13326 " add-ro Fedora-11-i686-Live.iso\n"
13327 " run\n"
13328 " mkmountpoint /cd\n"
13329 " mkmountpoint /sqsh\n"
13330 " mkmountpoint /ext3fs\n"
13331 " mount /dev/sda /cd\n"
13332 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13333 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13334 "\n"
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5412
13339 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3502
13344 msgid ""
13345 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13346 "unexpected errors if you try to mix these calls.  It is safest to manually "
13347 "unmount filesystems and remove mountpoints after use."
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3506
13352 msgid ""
13353 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13354 "for this to work for manual mountpoints, you must ensure that the innermost "
13355 "mountpoints have the longest pathnames, as in the example code above."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5423
13360 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3513
13365 msgid ""
13366 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13367 "L</umount-all> to be called when the handle is closed which can also trigger "
13368 "these issues."
13369 msgstr ""
13370
13371 #. type: =head2
13372 #: ../fish/guestfish-actions.pod:3517
13373 msgid "mknod"
13374 msgstr ""
13375
13376 #. type: verbatim
13377 #: ../fish/guestfish-actions.pod:3519
13378 #, no-wrap
13379 msgid ""
13380 " mknod mode devmajor devminor path\n"
13381 "\n"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5442
13386 msgid ""
13387 "This call creates block or character special devices, or named pipes "
13388 "(FIFOs)."
13389 msgstr ""
13390
13391 #. type: textblock
13392 #: ../fish/guestfish-actions.pod:3524 ../src/guestfs-actions.pod:5445
13393 msgid ""
13394 "The C<mode> parameter should be the mode, using the standard constants.  "
13395 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13396 "used when creating block and character special devices."
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:3529
13401 msgid ""
13402 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13403 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13404 "regular file).  These constants are available in the standard Linux header "
13405 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13406 "wrappers around this command which bitwise OR in the appropriate constant "
13407 "for you."
13408 msgstr ""
13409
13410 #. type: =head2
13411 #: ../fish/guestfish-actions.pod:3539
13412 msgid "mknod-b"
13413 msgstr ""
13414
13415 #. type: verbatim
13416 #: ../fish/guestfish-actions.pod:3541
13417 #, no-wrap
13418 msgid ""
13419 " mknod-b mode devmajor devminor path\n"
13420 "\n"
13421 msgstr ""
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:3543
13425 msgid ""
13426 "This call creates a block device node called C<path> with mode C<mode> and "
13427 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13428 "wrapper around L</mknod>."
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:3549
13433 msgid "mknod-c"
13434 msgstr ""
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:3551
13438 #, no-wrap
13439 msgid ""
13440 " mknod-c mode devmajor devminor path\n"
13441 "\n"
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3553
13446 msgid ""
13447 "This call creates a char device node called C<path> with mode C<mode> and "
13448 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13449 "wrapper around L</mknod>."
13450 msgstr ""
13451
13452 #. type: =head2
13453 #: ../fish/guestfish-actions.pod:3559
13454 msgid "mkswap"
13455 msgstr ""
13456
13457 #. type: verbatim
13458 #: ../fish/guestfish-actions.pod:3561
13459 #, no-wrap
13460 msgid ""
13461 " mkswap device\n"
13462 "\n"
13463 msgstr ""
13464
13465 #. type: textblock
13466 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5508
13467 msgid "Create a swap partition on C<device>."
13468 msgstr ""
13469
13470 #. type: =head2
13471 #: ../fish/guestfish-actions.pod:3565
13472 msgid "mkswap-L"
13473 msgstr ""
13474
13475 #. type: verbatim
13476 #: ../fish/guestfish-actions.pod:3567
13477 #, no-wrap
13478 msgid ""
13479 " mkswap-L label device\n"
13480 "\n"
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5521
13485 msgid "Create a swap partition on C<device> with label C<label>."
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5523
13490 msgid ""
13491 "Note that you cannot attach a swap label to a block device "
13492 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13493 "the kernel or swap tools."
13494 msgstr ""
13495
13496 #. type: =head2
13497 #: ../fish/guestfish-actions.pod:3575
13498 msgid "mkswap-U"
13499 msgstr ""
13500
13501 #. type: verbatim
13502 #: ../fish/guestfish-actions.pod:3577
13503 #, no-wrap
13504 msgid ""
13505 " mkswap-U uuid device\n"
13506 "\n"
13507 msgstr ""
13508
13509 #. type: textblock
13510 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5538
13511 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13512 msgstr ""
13513
13514 #. type: =head2
13515 #: ../fish/guestfish-actions.pod:3581
13516 msgid "mkswap-file"
13517 msgstr ""
13518
13519 #. type: verbatim
13520 #: ../fish/guestfish-actions.pod:3583
13521 #, no-wrap
13522 msgid ""
13523 " mkswap-file path\n"
13524 "\n"
13525 msgstr ""
13526
13527 #. type: textblock
13528 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5550
13529 msgid "Create a swap file."
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3587
13534 msgid ""
13535 "This command just writes a swap file signature to an existing file.  To "
13536 "create the file itself, use something like L</fallocate>."
13537 msgstr ""
13538
13539 #. type: =head2
13540 #: ../fish/guestfish-actions.pod:3590
13541 msgid "modprobe"
13542 msgstr ""
13543
13544 #. type: verbatim
13545 #: ../fish/guestfish-actions.pod:3592
13546 #, no-wrap
13547 msgid ""
13548 " modprobe modulename\n"
13549 "\n"
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5565
13554 msgid "This loads a kernel module in the appliance."
13555 msgstr ""
13556
13557 #. type: textblock
13558 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5567
13559 msgid ""
13560 "The kernel module must have been whitelisted when libguestfs was built (see "
13561 "C<appliance/kmod.whitelist.in> in the source)."
13562 msgstr ""
13563
13564 #. type: =head2
13565 #: ../fish/guestfish-actions.pod:3599
13566 msgid "mount"
13567 msgstr ""
13568
13569 #. type: verbatim
13570 #: ../fish/guestfish-actions.pod:3601
13571 #, no-wrap
13572 msgid ""
13573 " mount device mountpoint\n"
13574 "\n"
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5581
13579 msgid ""
13580 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13581 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13582 "those block devices contain partitions, they will have the usual names "
13583 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5587
13588 msgid ""
13589 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13590 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13591 "mounted on directories which already exist."
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5592
13596 msgid ""
13597 "The mounted filesystem is writable, if we have sufficient permissions on the "
13598 "underlying device."
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:3617
13603 msgid ""
13604 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13605 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13606 "problems for users.  If your program might need to work with older versions "
13607 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13608 "first parameter if you don't want any options)."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:3624
13613 msgid "mount-9p"
13614 msgstr ""
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:3626
13618 #, no-wrap
13619 msgid ""
13620 " mount-9p mounttag mountpoint [options:..]\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5621
13626 msgid ""
13627 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13628 "C<mountpoint>."
13629 msgstr ""
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5624
13633 msgid ""
13634 "If required, C<trans=virtio> will be automatically added to the options.  "
13635 "Any other options required can be passed in the optional C<options> "
13636 "parameter."
13637 msgstr ""
13638
13639 #. type: =head2
13640 #: ../fish/guestfish-actions.pod:3637
13641 msgid "mount-loop"
13642 msgstr ""
13643
13644 #. type: verbatim
13645 #: ../fish/guestfish-actions.pod:3639
13646 #, no-wrap
13647 msgid ""
13648 " mount-loop file mountpoint\n"
13649 "\n"
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5663
13654 msgid ""
13655 "This command lets you mount C<file> (a filesystem image in a file) on a "
13656 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13657 "mountpoint>."
13658 msgstr ""
13659
13660 #. type: =head2
13661 #: ../fish/guestfish-actions.pod:3645
13662 msgid "mount-options"
13663 msgstr ""
13664
13665 #. type: verbatim
13666 #: ../fish/guestfish-actions.pod:3647
13667 #, no-wrap
13668 msgid ""
13669 " mount-options options device mountpoint\n"
13670 "\n"
13671 msgstr ""
13672
13673 #. type: textblock
13674 #: ../fish/guestfish-actions.pod:3649
13675 msgid ""
13676 "This is the same as the L</mount> command, but it allows you to set the "
13677 "mount options as for the L<mount(8)> I<-o> flag."
13678 msgstr ""
13679
13680 #. type: textblock
13681 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5683
13682 msgid ""
13683 "If the C<options> parameter is an empty string, then no options are passed "
13684 "(all options default to whatever the filesystem uses)."
13685 msgstr ""
13686
13687 #. type: =head2
13688 #: ../fish/guestfish-actions.pod:3657
13689 msgid "mount-ro"
13690 msgstr ""
13691
13692 #. type: verbatim
13693 #: ../fish/guestfish-actions.pod:3659
13694 #, no-wrap
13695 msgid ""
13696 " mount-ro device mountpoint\n"
13697 "\n"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3661
13702 msgid ""
13703 "This is the same as the L</mount> command, but it mounts the filesystem with "
13704 "the read-only (I<-o ro>) flag."
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:3664
13709 msgid "mount-vfs"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:3666
13714 #, no-wrap
13715 msgid ""
13716 " mount-vfs options vfstype device mountpoint\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3668
13722 msgid ""
13723 "This is the same as the L</mount> command, but it allows you to set both the "
13724 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13725 msgstr ""
13726
13727 #. type: =head2
13728 #: ../fish/guestfish-actions.pod:3672
13729 msgid "mountpoints"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:3674
13734 #, no-wrap
13735 msgid ""
13736 " mountpoints\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3676
13742 msgid ""
13743 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13744 "This one returns a hash table (map) of device name to directory where the "
13745 "device is mounted."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:3680
13750 msgid "mounts"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:3682
13755 #, no-wrap
13756 msgid ""
13757 " mounts\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5744
13763 msgid ""
13764 "This returns the list of currently mounted filesystems.  It returns the list "
13765 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5747
13770 msgid "Some internal mounts are not shown."
13771 msgstr ""
13772
13773 #. type: textblock
13774 #: ../fish/guestfish-actions.pod:3689
13775 msgid "See also: L</mountpoints>"
13776 msgstr ""
13777
13778 #. type: =head2
13779 #: ../fish/guestfish-actions.pod:3691
13780 msgid "mv"
13781 msgstr ""
13782
13783 #. type: verbatim
13784 #: ../fish/guestfish-actions.pod:3693
13785 #, no-wrap
13786 msgid ""
13787 " mv src dest\n"
13788 "\n"
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5764
13793 msgid ""
13794 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13795 "destination filename or destination directory."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../fish/guestfish-actions.pod:3698
13800 msgid "ntfs-3g-probe"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../fish/guestfish-actions.pod:3700
13805 #, no-wrap
13806 msgid ""
13807 " ntfs-3g-probe true|false device\n"
13808 "\n"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5778
13813 msgid ""
13814 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13815 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13816 "read-write, and some cannot be mounted at all)."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5782
13821 msgid ""
13822 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13823 "can be mounted read-write.  Set it to false if you want to test if the "
13824 "volume can be mounted read-only."
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5786
13829 msgid ""
13830 "The return value is an integer which C<0> if the operation would succeed, or "
13831 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13832 msgstr ""
13833
13834 #. type: =head2
13835 #: ../fish/guestfish-actions.pod:3714
13836 msgid "ntfsresize"
13837 msgstr ""
13838
13839 #. type: verbatim
13840 #: ../fish/guestfish-actions.pod:3716
13841 #, no-wrap
13842 msgid ""
13843 " ntfsresize device\n"
13844 "\n"
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5839
13849 msgid ""
13850 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13851 "size of the underlying device."
13852 msgstr ""
13853
13854 #. type: textblock
13855 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5810
13856 msgid ""
13857 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13858 "consistency check (for safety).  You have to boot into Windows to perform "
13859 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13860 "resize filesystems which have been marked in this way.  So in effect it is "
13861 "not possible to call ntfsresize multiple times on a single filesystem "
13862 "without booting into Windows between each resize."
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:5865
13867 msgid "See also L<ntfsresize(8)>."
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:3731 ../fish/guestfish-actions.pod:3779
13872 msgid ""
13873 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13874 "call instead."
13875 msgstr ""
13876
13877 #. type: =head2
13878 #: ../fish/guestfish-actions.pod:3738
13879 msgid "ntfsresize-opts"
13880 msgstr ""
13881
13882 #. type: verbatim
13883 #: ../fish/guestfish-actions.pod:3740
13884 #, no-wrap
13885 msgid ""
13886 " ntfsresize-opts device [size:N] [force:true|false]\n"
13887 "\n"
13888 msgstr ""
13889
13890 #. type: textblock
13891 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5848
13892 msgid ""
13893 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13894 "resized to fit the container (eg. partition)."
13895 msgstr ""
13896
13897 #. type: =item
13898 #: ../fish/guestfish-actions.pod:3754 ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:7822
13899 msgid "C<force>"
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5853
13904 msgid ""
13905 "If this option is true, then force the resize of the filesystem even if the "
13906 "filesystem is marked as requiring a consistency check."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3759
13911 msgid ""
13912 "After the resize operation, the filesystem is always marked as requiring a "
13913 "consistency check (for safety).  You have to boot into Windows to perform "
13914 "this check and clear this condition.  If you I<don't> set the C<force> "
13915 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13916 "a single filesystem without booting into Windows between each resize."
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:3772
13921 msgid "ntfsresize-size"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:3774
13926 #, no-wrap
13927 msgid ""
13928 " ntfsresize-size device size\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:3776
13934 msgid ""
13935 "This command is the same as L</ntfsresize> except that it allows you to "
13936 "specify the new size (in bytes) explicitly."
13937 msgstr ""
13938
13939 #. type: =head2
13940 #: ../fish/guestfish-actions.pod:3786
13941 msgid "part-add"
13942 msgstr ""
13943
13944 #. type: verbatim
13945 #: ../fish/guestfish-actions.pod:3788
13946 #, no-wrap
13947 msgid ""
13948 " part-add device prlogex startsect endsect\n"
13949 "\n"
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:3790
13954 msgid ""
13955 "This command adds a partition to C<device>.  If there is no partition table "
13956 "on the device, call L</part-init> first."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5926
13961 msgid ""
13962 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13963 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13964 "C<logical>) and C<e> (or C<extended>) partition types."
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5931
13969 msgid ""
13970 "C<startsect> and C<endsect> are the start and end of the partition in "
13971 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13972 "from the end of the disk (C<-1> is the last sector)."
13973 msgstr ""
13974
13975 #. type: textblock
13976 #: ../fish/guestfish-actions.pod:3802
13977 msgid ""
13978 "Creating a partition which covers the whole disk is not so easy.  Use "
13979 "L</part-disk> to do that."
13980 msgstr ""
13981
13982 #. type: =head2
13983 #: ../fish/guestfish-actions.pod:3805
13984 msgid "part-del"
13985 msgstr ""
13986
13987 #. type: verbatim
13988 #: ../fish/guestfish-actions.pod:3807
13989 #, no-wrap
13990 msgid ""
13991 " part-del device partnum\n"
13992 "\n"
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5949
13997 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13998 msgstr ""
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5951
14002 msgid ""
14003 "Note that in the case of MBR partitioning, deleting an extended partition "
14004 "also deletes any logical partitions it contains."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:3815
14009 msgid "part-disk"
14010 msgstr ""
14011
14012 #. type: verbatim
14013 #: ../fish/guestfish-actions.pod:3817
14014 #, no-wrap
14015 msgid ""
14016 " part-disk device parttype\n"
14017 "\n"
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3819
14022 msgid ""
14023 "This command is simply a combination of L</part-init> followed by "
14024 "L</part-add> to create a single primary partition covering the whole disk."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:3823
14029 msgid ""
14030 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14031 "possible values are described in L</part-init>."
14032 msgstr ""
14033
14034 #. type: =head2
14035 #: ../fish/guestfish-actions.pod:3826
14036 msgid "part-get-bootable"
14037 msgstr ""
14038
14039 #. type: verbatim
14040 #: ../fish/guestfish-actions.pod:3828
14041 #, no-wrap
14042 msgid ""
14043 " part-get-bootable device partnum\n"
14044 "\n"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5984
14049 msgid ""
14050 "This command returns true if the partition C<partnum> on C<device> has the "
14051 "bootable flag set."
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:3833
14056 msgid "See also L</part-set-bootable>."
14057 msgstr ""
14058
14059 #. type: =head2
14060 #: ../fish/guestfish-actions.pod:3835
14061 msgid "part-get-mbr-id"
14062 msgstr ""
14063
14064 #. type: verbatim
14065 #: ../fish/guestfish-actions.pod:3837
14066 #, no-wrap
14067 msgid ""
14068 " part-get-mbr-id device partnum\n"
14069 "\n"
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:6000
14074 msgid ""
14075 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14076 "partition C<partnum>."
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3986
14081 msgid ""
14082 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14083 "undefined results for other partition table types (see "
14084 "L</part-get-parttype>)."
14085 msgstr ""
14086
14087 #. type: =head2
14088 #: ../fish/guestfish-actions.pod:3846
14089 msgid "part-get-parttype"
14090 msgstr ""
14091
14092 #. type: verbatim
14093 #: ../fish/guestfish-actions.pod:3848
14094 #, no-wrap
14095 msgid ""
14096 " part-get-parttype device\n"
14097 "\n"
14098 msgstr ""
14099
14100 #. type: textblock
14101 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
14102 msgid ""
14103 "This command examines the partition table on C<device> and returns the "
14104 "partition table type (format) being used."
14105 msgstr ""
14106
14107 #. type: textblock
14108 #: ../fish/guestfish-actions.pod:3853
14109 msgid ""
14110 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14111 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14112 "possible, although unusual.  See L</part-init> for a full list."
14113 msgstr ""
14114
14115 #. type: =head2
14116 #: ../fish/guestfish-actions.pod:3858
14117 msgid "part-init"
14118 msgstr ""
14119
14120 #. type: verbatim
14121 #: ../fish/guestfish-actions.pod:3860
14122 #, no-wrap
14123 msgid ""
14124 " part-init device parttype\n"
14125 "\n"
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6037
14130 msgid ""
14131 "This creates an empty partition table on C<device> of one of the partition "
14132 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14133 "(for large disks)."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:3866
14138 msgid ""
14139 "Initially there are no partitions.  Following this, you should call "
14140 "L</part-add> for each partition required."
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6044
14145 msgid "Possible values for C<parttype> are:"
14146 msgstr ""
14147
14148 #. type: =item
14149 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6048
14150 msgid "B<efi>"
14151 msgstr ""
14152
14153 #. type: =item
14154 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6050
14155 msgid "B<gpt>"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6052
14160 msgid "Intel EFI / GPT partition table."
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6054
14165 msgid ""
14166 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14167 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14168 "the C<mbr> format."
14169 msgstr ""
14170
14171 #. type: =item
14172 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6058
14173 msgid "B<mbr>"
14174 msgstr ""
14175
14176 #. type: =item
14177 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6060
14178 msgid "B<msdos>"
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6062
14183 msgid ""
14184 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14185 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14186 "TB.  For large disks we recommend using C<gpt>."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6069
14191 msgid "Other partition table types that may work but are not supported include:"
14192 msgstr ""
14193
14194 #. type: =item
14195 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6074
14196 msgid "B<aix>"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:6076
14201 msgid "AIX disk labels."
14202 msgstr ""
14203
14204 #. type: =item
14205 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6078
14206 msgid "B<amiga>"
14207 msgstr ""
14208
14209 #. type: =item
14210 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:6080
14211 msgid "B<rdb>"
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:6082
14216 msgid "Amiga \"Rigid Disk Block\" format."
14217 msgstr ""
14218
14219 #. type: =item
14220 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:6084
14221 msgid "B<bsd>"
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6086
14226 msgid "BSD disk labels."
14227 msgstr ""
14228
14229 #. type: =item
14230 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6088
14231 msgid "B<dasd>"
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6090
14236 msgid "DASD, used on IBM mainframes."
14237 msgstr ""
14238
14239 #. type: =item
14240 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6092
14241 msgid "B<dvh>"
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6094
14246 msgid "MIPS/SGI volumes."
14247 msgstr ""
14248
14249 #. type: =item
14250 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6096
14251 msgid "B<mac>"
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6098
14256 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14257 msgstr ""
14258
14259 #. type: =item
14260 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6100
14261 msgid "B<pc98>"
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6102
14266 msgid "NEC PC-98 format, common in Japan apparently."
14267 msgstr ""
14268
14269 #. type: =item
14270 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6104
14271 msgid "B<sun>"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6106
14276 msgid "Sun disk labels."
14277 msgstr ""
14278
14279 #. type: =head2
14280 #: ../fish/guestfish-actions.pod:3935
14281 msgid "part-list"
14282 msgstr ""
14283
14284 #. type: verbatim
14285 #: ../fish/guestfish-actions.pod:3937
14286 #, no-wrap
14287 msgid ""
14288 " part-list device\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6120
14294 msgid ""
14295 "This command parses the partition table on C<device> and returns the list of "
14296 "partitions found."
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6123
14301 msgid "The fields in the returned structure are:"
14302 msgstr ""
14303
14304 #. type: =item
14305 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6127
14306 msgid "B<part_num>"
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6129
14311 msgid "Partition number, counting from 1."
14312 msgstr ""
14313
14314 #. type: =item
14315 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6131
14316 msgid "B<part_start>"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3952
14321 msgid ""
14322 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14323 "the device's sector size, see L</blockdev-getss>."
14324 msgstr ""
14325
14326 #. type: =item
14327 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6136
14328 msgid "B<part_end>"
14329 msgstr ""
14330
14331 #. type: textblock
14332 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6138
14333 msgid "End of the partition in bytes."
14334 msgstr ""
14335
14336 #. type: =item
14337 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6140
14338 msgid "B<part_size>"
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6142
14343 msgid "Size of the partition in bytes."
14344 msgstr ""
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:3965
14348 msgid "part-set-bootable"
14349 msgstr ""
14350
14351 #. type: verbatim
14352 #: ../fish/guestfish-actions.pod:3967
14353 #, no-wrap
14354 msgid ""
14355 " part-set-bootable device partnum true|false\n"
14356 "\n"
14357 msgstr ""
14358
14359 #. type: textblock
14360 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6160
14361 msgid ""
14362 "This sets the bootable flag on partition numbered C<partnum> on device "
14363 "C<device>.  Note that partitions are numbered from 1."
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6163
14368 msgid ""
14369 "The bootable flag is used by some operating systems (notably Windows) to "
14370 "determine which partition to boot from.  It is by no means universally "
14371 "recognized."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3976
14376 msgid "part-set-mbr-id"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3978
14381 #, no-wrap
14382 msgid ""
14383 " part-set-mbr-id device partnum idbyte\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6179
14389 msgid ""
14390 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14391 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14392 "documentation are in fact hexadecimal numbers, but usually documented "
14393 "without any leading \"0x\" which might be confusing."
14394 msgstr ""
14395
14396 #. type: =head2
14397 #: ../fish/guestfish-actions.pod:3990
14398 msgid "part-set-name"
14399 msgstr ""
14400
14401 #. type: verbatim
14402 #: ../fish/guestfish-actions.pod:3992
14403 #, no-wrap
14404 msgid ""
14405 " part-set-name device partnum name\n"
14406 "\n"
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6201
14411 msgid ""
14412 "This sets the partition name on partition numbered C<partnum> on device "
14413 "C<device>.  Note that partitions are numbered from 1."
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:3997 ../src/guestfs-actions.pod:6204
14418 msgid ""
14419 "The partition name can only be set on certain types of partition table.  "
14420 "This works on C<gpt> but not on C<mbr> partitions."
14421 msgstr ""
14422
14423 #. type: =head2
14424 #: ../fish/guestfish-actions.pod:4000
14425 msgid "part-to-dev"
14426 msgstr ""
14427
14428 #. type: verbatim
14429 #: ../fish/guestfish-actions.pod:4002
14430 #, no-wrap
14431 msgid ""
14432 " part-to-dev partition\n"
14433 "\n"
14434 msgstr ""
14435
14436 #. type: textblock
14437 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6217
14438 msgid ""
14439 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14440 "partition number, returning the device name (eg. \"/dev/sdb\")."
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4020
14445 msgid ""
14446 "The named partition must exist, for example as a string returned from "
14447 "L</list-partitions>."
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:4011
14452 msgid "See also L</part-to-partnum>."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:4013
14457 msgid "part-to-partnum"
14458 msgstr ""
14459
14460 #. type: verbatim
14461 #: ../fish/guestfish-actions.pod:4015
14462 #, no-wrap
14463 msgid ""
14464 " part-to-partnum partition\n"
14465 "\n"
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6237
14470 msgid ""
14471 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14472 "partition number (eg. C<1>)."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4023
14477 msgid "See also L</part-to-dev>."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../fish/guestfish-actions.pod:4025
14482 msgid "ping-daemon"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../fish/guestfish-actions.pod:4027
14487 #, no-wrap
14488 msgid ""
14489 " ping-daemon\n"
14490 "\n"
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6254
14495 msgid ""
14496 "This is a test probe into the guestfs daemon running inside the qemu "
14497 "subprocess.  Calling this function checks that the daemon responds to the "
14498 "ping message, without affecting the daemon or attached block device(s) in "
14499 "any other way."
14500 msgstr ""
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4034
14504 msgid "pread"
14505 msgstr ""
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4036
14509 #, no-wrap
14510 msgid ""
14511 " pread path count offset\n"
14512 "\n"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6272
14517 msgid ""
14518 "This command lets you read part of a file.  It reads C<count> bytes of the "
14519 "file, starting at C<offset>, from file C<path>."
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6301
14524 msgid ""
14525 "This may read fewer bytes than requested.  For further details see the "
14526 "L<pread(2)> system call."
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:4044
14531 msgid "See also L</pwrite>, L</pread-device>."
14532 msgstr ""
14533
14534 #. type: =head2
14535 #: ../fish/guestfish-actions.pod:4049
14536 msgid "pread-device"
14537 msgstr ""
14538
14539 #. type: verbatim
14540 #: ../fish/guestfish-actions.pod:4051
14541 #, no-wrap
14542 msgid ""
14543 " pread-device device count offset\n"
14544 "\n"
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6298
14549 msgid ""
14550 "This command lets you read part of a file.  It reads C<count> bytes of "
14551 "C<device>, starting at C<offset>."
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4059
14556 msgid "See also L</pread>."
14557 msgstr ""
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:4064
14561 msgid "pvcreate"
14562 msgstr ""
14563
14564 #. type: verbatim
14565 #: ../fish/guestfish-actions.pod:4066
14566 #, no-wrap
14567 msgid ""
14568 " pvcreate device\n"
14569 "\n"
14570 msgstr ""
14571
14572 #. type: textblock
14573 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6321
14574 msgid ""
14575 "This creates an LVM physical volume on the named C<device>, where C<device> "
14576 "should usually be a partition name such as C</dev/sda1>."
14577 msgstr ""
14578
14579 #. type: =head2
14580 #: ../fish/guestfish-actions.pod:4072
14581 msgid "pvremove"
14582 msgstr ""
14583
14584 #. type: verbatim
14585 #: ../fish/guestfish-actions.pod:4074
14586 #, no-wrap
14587 msgid ""
14588 " pvremove device\n"
14589 "\n"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6335
14594 msgid ""
14595 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14596 "it."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6338
14601 msgid ""
14602 "The implementation uses the C<pvremove> command which refuses to wipe "
14603 "physical volumes that contain any volume groups, so you have to remove those "
14604 "first."
14605 msgstr ""
14606
14607 #. type: =head2
14608 #: ../fish/guestfish-actions.pod:4083
14609 msgid "pvresize"
14610 msgstr ""
14611
14612 #. type: verbatim
14613 #: ../fish/guestfish-actions.pod:4085
14614 #, no-wrap
14615 msgid ""
14616 " pvresize device\n"
14617 "\n"
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6352
14622 msgid ""
14623 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14624 "the new size of the underlying device."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:4090
14629 msgid "pvresize-size"
14630 msgstr ""
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:4092
14634 #, no-wrap
14635 msgid ""
14636 " pvresize-size device size\n"
14637 "\n"
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4094
14642 msgid ""
14643 "This command is the same as L</pvresize> except that it allows you to "
14644 "specify the new size (in bytes) explicitly."
14645 msgstr ""
14646
14647 #. type: =head2
14648 #: ../fish/guestfish-actions.pod:4097
14649 msgid "pvs"
14650 msgstr ""
14651
14652 #. type: verbatim
14653 #: ../fish/guestfish-actions.pod:4099
14654 #, no-wrap
14655 msgid ""
14656 " pvs\n"
14657 "\n"
14658 msgstr ""
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6378
14662 msgid ""
14663 "List all the physical volumes detected.  This is the equivalent of the "
14664 "L<pvs(8)> command."
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6381
14669 msgid ""
14670 "This returns a list of just the device names that contain PVs "
14671 "(eg. C</dev/sda2>)."
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4107
14676 msgid "See also L</pvs-full>."
14677 msgstr ""
14678
14679 #. type: =head2
14680 #: ../fish/guestfish-actions.pod:4109
14681 msgid "pvs-full"
14682 msgstr ""
14683
14684 #. type: verbatim
14685 #: ../fish/guestfish-actions.pod:4111
14686 #, no-wrap
14687 msgid ""
14688 " pvs-full\n"
14689 "\n"
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6397
14694 msgid ""
14695 "List all the physical volumes detected.  This is the equivalent of the "
14696 "L<pvs(8)> command.  The \"full\" version includes all fields."
14697 msgstr ""
14698
14699 #. type: =head2
14700 #: ../fish/guestfish-actions.pod:4116
14701 msgid "pvuuid"
14702 msgstr ""
14703
14704 #. type: verbatim
14705 #: ../fish/guestfish-actions.pod:4118
14706 #, no-wrap
14707 msgid ""
14708 " pvuuid device\n"
14709 "\n"
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6412
14714 msgid "This command returns the UUID of the LVM PV C<device>."
14715 msgstr ""
14716
14717 #. type: =head2
14718 #: ../fish/guestfish-actions.pod:4122
14719 msgid "pwrite"
14720 msgstr ""
14721
14722 #. type: verbatim
14723 #: ../fish/guestfish-actions.pod:4124
14724 #, no-wrap
14725 msgid ""
14726 " pwrite path content offset\n"
14727 "\n"
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6428
14732 msgid ""
14733 "This command writes to part of a file.  It writes the data buffer C<content> "
14734 "to the file C<path> starting at offset C<offset>."
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6431
14739 msgid ""
14740 "This command implements the L<pwrite(2)> system call, and like that system "
14741 "call it may not write the full data requested.  The return value is the "
14742 "number of bytes that were actually written to the file.  This could even be "
14743 "0, although short writes are unlikely for regular files in ordinary "
14744 "circumstances."
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4135
14749 msgid "See also L</pread>, L</pwrite-device>."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:4140
14754 msgid "pwrite-device"
14755 msgstr ""
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:4142
14759 #, no-wrap
14760 msgid ""
14761 " pwrite-device device content offset\n"
14762 "\n"
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6455
14767 msgid ""
14768 "This command writes to part of a device.  It writes the data buffer "
14769 "C<content> to C<device> starting at offset C<offset>."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6458
14774 msgid ""
14775 "This command implements the L<pwrite(2)> system call, and like that system "
14776 "call it may not write the full data requested (although short writes to disk "
14777 "devices and partitions are probably impossible with standard Linux kernels)."
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4152
14782 msgid "See also L</pwrite>."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:4157
14787 msgid "read-file"
14788 msgstr ""
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:4159
14792 #, no-wrap
14793 msgid ""
14794 " read-file path\n"
14795 "\n"
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6479
14800 msgid "This calls returns the contents of the file C<path> as a buffer."
14801 msgstr ""
14802
14803 #. type: textblock
14804 #: ../fish/guestfish-actions.pod:4164
14805 msgid ""
14806 "Unlike L</cat>, this function can correctly handle files that contain "
14807 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14808 "is limited in the total size of file that can be handled."
14809 msgstr ""
14810
14811 #. type: =head2
14812 #: ../fish/guestfish-actions.pod:4172
14813 msgid "read-lines"
14814 msgstr ""
14815
14816 #. type: verbatim
14817 #: ../fish/guestfish-actions.pod:4174
14818 #, no-wrap
14819 msgid ""
14820 " read-lines path\n"
14821 "\n"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
14826 msgid ""
14827 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14828 "C<CRLF> character sequences are I<not> returned."
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../fish/guestfish-actions.pod:4181
14833 msgid ""
14834 "Note that this function cannot correctly handle binary files (specifically, "
14835 "files containing C<\\0> character which is treated as end of line).  For "
14836 "those you need to use the L</read-file> function which has a more complex "
14837 "interface."
14838 msgstr ""
14839
14840 #. type: =head2
14841 #: ../fish/guestfish-actions.pod:4186
14842 msgid "readdir"
14843 msgstr ""
14844
14845 #. type: verbatim
14846 #: ../fish/guestfish-actions.pod:4188
14847 #, no-wrap
14848 msgid ""
14849 " readdir dir\n"
14850 "\n"
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6524
14855 msgid "This returns the list of directory entries in directory C<dir>."
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6526
14860 msgid ""
14861 "All entries in the directory are returned, including C<.> and C<..>.  The "
14862 "entries are I<not> sorted, but returned in the same order as the underlying "
14863 "filesystem."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6530
14868 msgid ""
14869 "Also this call returns basic file type information about each file.  The "
14870 "C<ftyp> field will contain one of the following characters:"
14871 msgstr ""
14872
14873 #. type: =item
14874 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6535
14875 msgid "'b'"
14876 msgstr ""
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6537
14880 msgid "Block special"
14881 msgstr ""
14882
14883 #. type: =item
14884 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6539
14885 msgid "'c'"
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:4207 ../src/guestfs-actions.pod:6541
14890 msgid "Char special"
14891 msgstr ""
14892
14893 #. type: =item
14894 #: ../fish/guestfish-actions.pod:4209 ../src/guestfs-actions.pod:6543
14895 msgid "'d'"
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6545
14900 msgid "Directory"
14901 msgstr ""
14902
14903 #. type: =item
14904 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6547
14905 msgid "'f'"
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6549
14910 msgid "FIFO (named pipe)"
14911 msgstr ""
14912
14913 #. type: =item
14914 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
14915 msgid "'l'"
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6553
14920 msgid "Symbolic link"
14921 msgstr ""
14922
14923 #. type: =item
14924 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6555
14925 msgid "'r'"
14926 msgstr ""
14927
14928 #. type: textblock
14929 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
14930 msgid "Regular file"
14931 msgstr ""
14932
14933 #. type: =item
14934 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6559
14935 msgid "'s'"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6561
14940 msgid "Socket"
14941 msgstr ""
14942
14943 #. type: =item
14944 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6563
14945 msgid "'u'"
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6565
14950 msgid "Unknown file type"
14951 msgstr ""
14952
14953 #. type: =item
14954 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6567
14955 msgid "'?'"
14956 msgstr ""
14957
14958 #. type: textblock
14959 #: ../fish/guestfish-actions.pod:4235 ../src/guestfs-actions.pod:6569
14960 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:4240
14965 msgid ""
14966 "This function is primarily intended for use by programs.  To get a simple "
14967 "list of names, use L</ls>.  To get a printable directory for human "
14968 "consumption, use L</ll>."
14969 msgstr ""
14970
14971 #. type: =head2
14972 #: ../fish/guestfish-actions.pod:4244
14973 msgid "readlink"
14974 msgstr ""
14975
14976 #. type: verbatim
14977 #: ../fish/guestfish-actions.pod:4246
14978 #, no-wrap
14979 msgid ""
14980 " readlink path\n"
14981 "\n"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6590
14986 msgid "This command reads the target of a symbolic link."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:4250
14991 msgid "readlinklist"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:4252
14996 #, no-wrap
14997 msgid ""
14998 " readlinklist path 'names ...'\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6604
15004 msgid ""
15005 "This call allows you to do a C<readlink> operation on multiple files, where "
15006 "all files are in the directory C<path>.  C<names> is the list of files from "
15007 "this directory."
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6608
15012 msgid ""
15013 "On return you get a list of strings, with a one-to-one correspondence to the "
15014 "C<names> list.  Each string is the value of the symbolic link."
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6612
15019 msgid ""
15020 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15021 "result string is the empty string C<\"\">.  However the whole operation is "
15022 "completed even if there were C<readlink(2)> errors, and so you can call this "
15023 "function with names where you don't know if they are symbolic links already "
15024 "(albeit slightly less efficient)."
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6619
15029 msgid ""
15030 "This call is intended for programs that want to efficiently list a directory "
15031 "contents without making many round-trips.  Very long directory listings "
15032 "might cause the protocol message size to be exceeded, causing this call to "
15033 "fail.  The caller must split up such requests into smaller groups of names."
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:4276
15038 msgid "realpath"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:4278
15043 #, no-wrap
15044 msgid ""
15045 " realpath path\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6638
15051 msgid ""
15052 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15053 "has no C<.>, C<..> or symbolic link path elements."
15054 msgstr ""
15055
15056 #. type: =head2
15057 #: ../fish/guestfish-actions.pod:4283
15058 msgid "removexattr"
15059 msgstr ""
15060
15061 #. type: verbatim
15062 #: ../fish/guestfish-actions.pod:4285
15063 #, no-wrap
15064 msgid ""
15065 " removexattr xattr path\n"
15066 "\n"
15067 msgstr ""
15068
15069 #. type: textblock
15070 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
15071 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4290
15076 msgid "See also: L</lremovexattr>, L<attr(5)>."
15077 msgstr ""
15078
15079 #. type: =head2
15080 #: ../fish/guestfish-actions.pod:4292
15081 msgid "resize2fs"
15082 msgstr ""
15083
15084 #. type: verbatim
15085 #: ../fish/guestfish-actions.pod:4294
15086 #, no-wrap
15087 msgid ""
15088 " resize2fs device\n"
15089 "\n"
15090 msgstr ""
15091
15092 #. type: textblock
15093 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6668
15094 msgid ""
15095 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15096 "underlying device."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4299
15101 msgid ""
15102 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15103 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15104 "gives an error about this and sometimes not.  In any case, it is always safe "
15105 "to call L</e2fsck-f> before calling this function."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:4305
15110 msgid "resize2fs-M"
15111 msgstr ""
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:4307
15115 #, no-wrap
15116 msgid ""
15117 " resize2fs-M device\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-actions.pod:4309
15123 msgid ""
15124 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15125 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15126 "command."
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../fish/guestfish-actions.pod:4313
15131 msgid ""
15132 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15133 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15134 "multiplied together, give the resulting size of the minimal filesystem in "
15135 "bytes."
15136 msgstr ""
15137
15138 #. type: =head2
15139 #: ../fish/guestfish-actions.pod:4318
15140 msgid "resize2fs-size"
15141 msgstr ""
15142
15143 #. type: verbatim
15144 #: ../fish/guestfish-actions.pod:4320
15145 #, no-wrap
15146 msgid ""
15147 " resize2fs-size device size\n"
15148 "\n"
15149 msgstr ""
15150
15151 #. type: textblock
15152 #: ../fish/guestfish-actions.pod:4322
15153 msgid ""
15154 "This command is the same as L</resize2fs> except that it allows you to "
15155 "specify the new size (in bytes) explicitly."
15156 msgstr ""
15157
15158 #. type: =head2
15159 #: ../fish/guestfish-actions.pod:4325
15160 msgid "rm"
15161 msgstr ""
15162
15163 #. type: verbatim
15164 #: ../fish/guestfish-actions.pod:4327
15165 #, no-wrap
15166 msgid ""
15167 " rm path\n"
15168 "\n"
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6720
15173 msgid "Remove the single file C<path>."
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:4331
15178 msgid "rm-rf"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:4333
15183 #, no-wrap
15184 msgid ""
15185 " rm-rf path\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:4335 ../src/guestfs-actions.pod:6732
15191 msgid ""
15192 "Remove the file or directory C<path>, recursively removing the contents if "
15193 "its a directory.  This is like the C<rm -rf> shell command."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:4339
15198 msgid "rmdir"
15199 msgstr ""
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:4341
15203 #, no-wrap
15204 msgid ""
15205 " rmdir path\n"
15206 "\n"
15207 msgstr ""
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6746
15211 msgid "Remove the single directory C<path>."
15212 msgstr ""
15213
15214 #. type: =head2
15215 #: ../fish/guestfish-actions.pod:4345
15216 msgid "rmmountpoint"
15217 msgstr ""
15218
15219 #. type: verbatim
15220 #: ../fish/guestfish-actions.pod:4347
15221 #, no-wrap
15222 msgid ""
15223 " rmmountpoint exemptpath\n"
15224 "\n"
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-actions.pod:4349
15229 msgid ""
15230 "This calls removes a mountpoint that was previously created with "
15231 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
15232 msgstr ""
15233
15234 #. type: =head2
15235 #: ../fish/guestfish-actions.pod:4353
15236 msgid "scrub-device"
15237 msgstr ""
15238
15239 #. type: verbatim
15240 #: ../fish/guestfish-actions.pod:4355
15241 #, no-wrap
15242 msgid ""
15243 " scrub-device device\n"
15244 "\n"
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6772
15249 msgid ""
15250 "This command writes patterns over C<device> to make data retrieval more "
15251 "difficult."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6812
15256 msgid ""
15257 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15258 "more details."
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:4363
15263 msgid "scrub-file"
15264 msgstr ""
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:4365
15268 #, no-wrap
15269 msgid ""
15270 " scrub-file file\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15276 msgid ""
15277 "This command writes patterns over a file to make data retrieval more "
15278 "difficult."
15279 msgstr ""
15280
15281 #. type: textblock
15282 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6791
15283 msgid "The file is I<removed> after scrubbing."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4375
15288 msgid "scrub-freespace"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4377
15293 #, no-wrap
15294 msgid ""
15295 " scrub-freespace dir\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4379
15301 msgid ""
15302 "This command creates the directory C<dir> and then fills it with files until "
15303 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15304 "deletes them.  The intention is to scrub any free space on the partition "
15305 "containing C<dir>."
15306 msgstr ""
15307
15308 #. type: =head2
15309 #: ../fish/guestfish-actions.pod:4388
15310 msgid "set-append"
15311 msgstr ""
15312
15313 #. type: =head2
15314 #: ../fish/guestfish-actions.pod:4390
15315 msgid "append"
15316 msgstr ""
15317
15318 #. type: verbatim
15319 #: ../fish/guestfish-actions.pod:4392
15320 #, no-wrap
15321 msgid ""
15322 " set-append append\n"
15323 "\n"
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6825
15328 msgid ""
15329 "This function is used to add additional options to the guest kernel command "
15330 "line."
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6828
15335 msgid ""
15336 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15337 "environment variable."
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6831
15342 msgid ""
15343 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15344 "(libguestfs always adds a few of its own)."
15345 msgstr ""
15346
15347 #. type: =head2
15348 #: ../fish/guestfish-actions.pod:4403
15349 msgid "set-attach-method"
15350 msgstr ""
15351
15352 #. type: =head2
15353 #: ../fish/guestfish-actions.pod:4405
15354 msgid "attach-method"
15355 msgstr ""
15356
15357 #. type: verbatim
15358 #: ../fish/guestfish-actions.pod:4407
15359 #, no-wrap
15360 msgid ""
15361 " set-attach-method attachmethod\n"
15362 "\n"
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6844
15367 msgid ""
15368 "Set the method that libguestfs uses to connect to the back end guestfsd "
15369 "daemon.  Possible methods are:"
15370 msgstr ""
15371
15372 #. type: =item
15373 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6849 ../src/guestfs.pod:2917
15374 msgid "C<appliance>"
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6851
15379 msgid ""
15380 "Launch an appliance and connect to it.  This is the ordinary method and the "
15381 "default."
15382 msgstr ""
15383
15384 #. type: =item
15385 #: ../fish/guestfish-actions.pod:4419 ../src/guestfs-actions.pod:6854
15386 msgid "C<unix:I<path>>"
15387 msgstr ""
15388
15389 #. type: textblock
15390 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6856
15391 msgid "Connect to the Unix domain socket I<path>."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6858
15396 msgid ""
15397 "This method lets you connect to an existing daemon or (using virtio-serial) "
15398 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15399 "RUNNING DAEMONS>."
15400 msgstr ""
15401
15402 #. type: =head2
15403 #: ../fish/guestfish-actions.pod:4429
15404 msgid "set-autosync"
15405 msgstr ""
15406
15407 #. type: =head2
15408 #: ../fish/guestfish-actions.pod:4431
15409 msgid "autosync"
15410 msgstr ""
15411
15412 #. type: verbatim
15413 #: ../fish/guestfish-actions.pod:4433
15414 #, no-wrap
15415 msgid ""
15416 " set-autosync true|false\n"
15417 "\n"
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6874
15422 msgid ""
15423 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15424 "effort attempt to make filesystems consistent and synchronized when the "
15425 "handle is closed (also if the program exits without closing handles)."
15426 msgstr ""
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6879
15430 msgid ""
15431 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15432 "disabled by default)."
15433 msgstr ""
15434
15435 #. type: =head2
15436 #: ../fish/guestfish-actions.pod:4443
15437 msgid "set-direct"
15438 msgstr ""
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:4445
15442 msgid "direct"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:4447
15447 #, no-wrap
15448 msgid ""
15449 " set-direct true|false\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6892
15455 msgid ""
15456 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15457 "passed directly through to the appliance once it is launched."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:4453
15462 msgid ""
15463 "One consequence of this is that log messages aren't caught by the library "
15464 "and handled by L</set-log-message-callback>, but go straight to stdout."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4457 ../src/guestfs-actions.pod:6900
15469 msgid "You probably don't want to use this unless you know what you are doing."
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6903
15474 msgid "The default is disabled."
15475 msgstr ""
15476
15477 #. type: =head2
15478 #: ../fish/guestfish-actions.pod:4462
15479 msgid "set-e2label"
15480 msgstr ""
15481
15482 #. type: verbatim
15483 #: ../fish/guestfish-actions.pod:4464
15484 #, no-wrap
15485 msgid ""
15486 " set-e2label device label\n"
15487 "\n"
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6916
15492 msgid ""
15493 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15494 "C<label>.  Filesystem labels are limited to 16 characters."
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4470
15499 msgid ""
15500 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15501 "label on a filesystem."
15502 msgstr ""
15503
15504 #. type: =head2
15505 #: ../fish/guestfish-actions.pod:4473
15506 msgid "set-e2uuid"
15507 msgstr ""
15508
15509 #. type: verbatim
15510 #: ../fish/guestfish-actions.pod:4475
15511 #, no-wrap
15512 msgid ""
15513 " set-e2uuid device uuid\n"
15514 "\n"
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
15519 msgid ""
15520 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15521 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15522 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15523 msgstr ""
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4482
15527 msgid ""
15528 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15529 "UUID of a filesystem."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4485
15534 msgid "set-memsize"
15535 msgstr ""
15536
15537 #. type: =head2
15538 #: ../fish/guestfish-actions.pod:4487
15539 msgid "memsize"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish-actions.pod:4489
15544 #, no-wrap
15545 msgid ""
15546 " set-memsize memsize\n"
15547 "\n"
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:4491
15552 msgid ""
15553 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15554 "This only has any effect if called before L</launch>."
15555 msgstr ""
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6956
15559 msgid ""
15560 "You can also change this by setting the environment variable "
15561 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15562 msgstr ""
15563
15564 #. type: =head2
15565 #: ../fish/guestfish-actions.pod:4502
15566 msgid "set-network"
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4504
15571 msgid "network"
15572 msgstr ""
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4506
15576 #, no-wrap
15577 msgid ""
15578 " set-network true|false\n"
15579 "\n"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
15584 msgid ""
15585 "If C<network> is true, then the network is enabled in the libguestfs "
15586 "appliance.  The default is false."
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
15591 msgid ""
15592 "This affects whether commands are able to access the network (see "
15593 "L<guestfs(3)/RUNNING COMMANDS>)."
15594 msgstr ""
15595
15596 #. type: textblock
15597 #: ../fish/guestfish-actions.pod:4514
15598 msgid "You must call this before calling L</launch>, otherwise it has no effect."
15599 msgstr ""
15600
15601 #. type: =head2
15602 #: ../fish/guestfish-actions.pod:4517
15603 msgid "set-path"
15604 msgstr ""
15605
15606 #. type: verbatim
15607 #: ../fish/guestfish-actions.pod:4521
15608 #, no-wrap
15609 msgid ""
15610 " set-path searchpath\n"
15611 "\n"
15612 msgstr ""
15613
15614 #. type: textblock
15615 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6992
15616 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
15621 msgid ""
15622 "The default is C<$libdir/guestfs> unless overridden by setting "
15623 "C<LIBGUESTFS_PATH> environment variable."
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
15628 msgid "Setting C<path> to C<NULL> restores the default path."
15629 msgstr ""
15630
15631 #. type: =head2
15632 #: ../fish/guestfish-actions.pod:4530
15633 msgid "set-pgroup"
15634 msgstr ""
15635
15636 #. type: =head2
15637 #: ../fish/guestfish-actions.pod:4532
15638 msgid "pgroup"
15639 msgstr ""
15640
15641 #. type: verbatim
15642 #: ../fish/guestfish-actions.pod:4534
15643 #, no-wrap
15644 msgid ""
15645 " set-pgroup true|false\n"
15646 "\n"
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7009
15651 msgid ""
15652 "If C<pgroup> is true, child processes are placed into their own process "
15653 "group."
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:7012
15658 msgid ""
15659 "The practical upshot of this is that signals like C<SIGINT> (from users "
15660 "pressing C<^C>) won't be received by the child process."
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:7015
15665 msgid ""
15666 "The default for this flag is false, because usually you want C<^C> to kill "
15667 "the subprocess."
15668 msgstr ""
15669
15670 #. type: =head2
15671 #: ../fish/guestfish-actions.pod:4545
15672 msgid "set-qemu"
15673 msgstr ""
15674
15675 #. type: =head2
15676 #: ../fish/guestfish-actions.pod:4547
15677 msgid "qemu"
15678 msgstr ""
15679
15680 #. type: verbatim
15681 #: ../fish/guestfish-actions.pod:4549
15682 #, no-wrap
15683 msgid ""
15684 " set-qemu qemu\n"
15685 "\n"
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7028
15690 msgid "Set the qemu binary that we will use."
15691 msgstr ""
15692
15693 #. type: textblock
15694 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7030
15695 msgid "The default is chosen when the library was compiled by the configure script."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7033
15700 msgid ""
15701 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15702 "variable."
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:7036
15707 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:7038
15712 msgid ""
15713 "Note that you should call this function as early as possible after creating "
15714 "the handle.  This is because some pre-launch operations depend on testing "
15715 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15716 "don't retest features, and so you might see inconsistent results.  Using the "
15717 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15718 "the qemu binary at the same time as the handle is created."
15719 msgstr ""
15720
15721 #. type: =head2
15722 #: ../fish/guestfish-actions.pod:4569
15723 msgid "set-recovery-proc"
15724 msgstr ""
15725
15726 #. type: =head2
15727 #: ../fish/guestfish-actions.pod:4571
15728 msgid "recovery-proc"
15729 msgstr ""
15730
15731 #. type: verbatim
15732 #: ../fish/guestfish-actions.pod:4573
15733 #, no-wrap
15734 msgid ""
15735 " set-recovery-proc true|false\n"
15736 "\n"
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4575
15741 msgid ""
15742 "If this is called with the parameter C<false> then L</launch> does not "
15743 "create a recovery process.  The purpose of the recovery process is to stop "
15744 "runaway qemu processes in the case where the main program aborts abruptly."
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-actions.pod:4580
15749 msgid ""
15750 "This only has any effect if called before L</launch>, and the default is "
15751 "true."
15752 msgstr ""
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7064
15756 msgid ""
15757 "About the only time when you would want to disable this is if the main "
15758 "process will fork itself into the background (\"daemonize\" itself).  In "
15759 "this case the recovery process thinks that the main program has disappeared "
15760 "and so kills qemu, which is not very helpful."
15761 msgstr ""
15762
15763 #. type: =head2
15764 #: ../fish/guestfish-actions.pod:4589
15765 msgid "set-selinux"
15766 msgstr ""
15767
15768 #. type: =head2
15769 #: ../fish/guestfish-actions.pod:4591
15770 msgid "selinux"
15771 msgstr ""
15772
15773 #. type: verbatim
15774 #: ../fish/guestfish-actions.pod:4593
15775 #, no-wrap
15776 msgid ""
15777 " set-selinux true|false\n"
15778 "\n"
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7080
15783 msgid ""
15784 "This sets the selinux flag that is passed to the appliance at boot time.  "
15785 "The default is C<selinux=0> (disabled)."
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
15790 msgid ""
15791 "Note that if SELinux is enabled, it is always in Permissive mode "
15792 "(C<enforcing=0>)."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4604
15797 msgid "set-smp"
15798 msgstr ""
15799
15800 #. type: =head2
15801 #: ../fish/guestfish-actions.pod:4606
15802 msgid "smp"
15803 msgstr ""
15804
15805 #. type: verbatim
15806 #: ../fish/guestfish-actions.pod:4608
15807 #, no-wrap
15808 msgid ""
15809 " set-smp smp\n"
15810 "\n"
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7099
15815 msgid ""
15816 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15817 "C<1>.  Increasing this may improve performance, though often it has no "
15818 "effect."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../fish/guestfish-actions.pod:4614
15823 msgid "This function must be called before L</launch>."
15824 msgstr ""
15825
15826 #. type: =head2
15827 #: ../fish/guestfish-actions.pod:4616
15828 msgid "set-trace"
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4618
15833 msgid "trace"
15834 msgstr ""
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4620
15838 #, no-wrap
15839 msgid ""
15840 " set-trace true|false\n"
15841 "\n"
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7115
15846 msgid ""
15847 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15848 "return values are traced."
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:7118
15853 msgid ""
15854 "If you want to trace C API calls into libguestfs (and other libraries) then "
15855 "possibly a better way is to use the external ltrace(1) command."
15856 msgstr ""
15857
15858 #. type: textblock
15859 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7122
15860 msgid ""
15861 "Command traces are disabled unless the environment variable "
15862 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../fish/guestfish-actions.pod:4632
15867 msgid ""
15868 "Trace messages are normally sent to C<stderr>, unless you register a "
15869 "callback to send them somewhere else (see L</set-event-callback>)."
15870 msgstr ""
15871
15872 #. type: =head2
15873 #: ../fish/guestfish-actions.pod:4636
15874 msgid "set-verbose"
15875 msgstr ""
15876
15877 #. type: =head2
15878 #: ../fish/guestfish-actions.pod:4638
15879 msgid "verbose"
15880 msgstr ""
15881
15882 #. type: verbatim
15883 #: ../fish/guestfish-actions.pod:4640
15884 #, no-wrap
15885 msgid ""
15886 " set-verbose true|false\n"
15887 "\n"
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:7139
15892 msgid "If C<verbose> is true, this turns on verbose messages."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7141
15897 msgid ""
15898 "Verbose messages are disabled unless the environment variable "
15899 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-actions.pod:4647
15904 msgid ""
15905 "Verbose messages are normally sent to C<stderr>, unless you register a "
15906 "callback to send them somewhere else (see L</set-event-callback>)."
15907 msgstr ""
15908
15909 #. type: =head2
15910 #: ../fish/guestfish-actions.pod:4651
15911 msgid "setcon"
15912 msgstr ""
15913
15914 #. type: verbatim
15915 #: ../fish/guestfish-actions.pod:4653
15916 #, no-wrap
15917 msgid ""
15918 " setcon context\n"
15919 "\n"
15920 msgstr ""
15921
15922 #. type: textblock
15923 #: ../fish/guestfish-actions.pod:4655 ../src/guestfs-actions.pod:7158
15924 msgid ""
15925 "This sets the SELinux security context of the daemon to the string "
15926 "C<context>."
15927 msgstr ""
15928
15929 #. type: textblock
15930 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7161
15931 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15932 msgstr ""
15933
15934 #. type: =head2
15935 #: ../fish/guestfish-actions.pod:4660
15936 msgid "setxattr"
15937 msgstr ""
15938
15939 #. type: verbatim
15940 #: ../fish/guestfish-actions.pod:4662
15941 #, no-wrap
15942 msgid ""
15943 " setxattr xattr val vallen path\n"
15944 "\n"
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7176
15949 msgid ""
15950 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15951 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15952 msgstr ""
15953
15954 #. type: textblock
15955 #: ../fish/guestfish-actions.pod:4668
15956 msgid "See also: L</lsetxattr>, L<attr(5)>."
15957 msgstr ""
15958
15959 #. type: =head2
15960 #: ../fish/guestfish-actions.pod:4670
15961 msgid "sfdisk"
15962 msgstr ""
15963
15964 #. type: verbatim
15965 #: ../fish/guestfish-actions.pod:4672
15966 #, no-wrap
15967 msgid ""
15968 " sfdisk device cyls heads sectors 'lines ...'\n"
15969 "\n"
15970 msgstr ""
15971
15972 #. type: textblock
15973 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7203
15974 msgid ""
15975 "This is a direct interface to the L<sfdisk(8)> program for creating "
15976 "partitions on block devices."
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7206
15981 msgid "C<device> should be a block device, for example C</dev/sda>."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7208
15986 msgid ""
15987 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15988 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15989 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15990 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15991 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15992 "the kernel) cannot work out the right geometry and you will need to tell it."
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7216
15997 msgid ""
15998 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15999 "refer to the L<sfdisk(8)> manpage."
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7219
16004 msgid ""
16005 "To create a single partition occupying the whole disk, you would pass "
16006 "C<lines> as a single element list, when the single element being the string "
16007 "C<,> (comma)."
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4694
16012 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4717 ../fish/guestfish-actions.pod:4736
16017 msgid ""
16018 "I<This function is deprecated.> In new code, use the L</part_add> call "
16019 "instead."
16020 msgstr ""
16021
16022 #. type: =head2
16023 #: ../fish/guestfish-actions.pod:4704
16024 msgid "sfdiskM"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish-actions.pod:4706
16029 #, no-wrap
16030 msgid ""
16031 " sfdiskM device 'lines ...'\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4708
16037 msgid ""
16038 "This is a simplified interface to the L</sfdisk> command, where partition "
16039 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16040 "you don't need to specify the cyls, heads and sectors parameters which were "
16041 "rarely if ever used anyway."
16042 msgstr ""
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:4714
16046 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16047 msgstr ""
16048
16049 #. type: =head2
16050 #: ../fish/guestfish-actions.pod:4724
16051 msgid "sfdisk-N"
16052 msgstr ""
16053
16054 #. type: verbatim
16055 #: ../fish/guestfish-actions.pod:4726
16056 #, no-wrap
16057 msgid ""
16058 " sfdisk-N device partnum cyls heads sectors line\n"
16059 "\n"
16060 msgstr ""
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16064 msgid ""
16065 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16066 "(note: C<n> counts from 1)."
16067 msgstr ""
16068
16069 #. type: textblock
16070 #: ../fish/guestfish-actions.pod:4731
16071 msgid ""
16072 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16073 "cyls/heads/sectors parameters."
16074 msgstr ""
16075
16076 #. type: textblock
16077 #: ../fish/guestfish-actions.pod:4734
16078 msgid "See also: L</part-add>"
16079 msgstr ""
16080
16081 #. type: =head2
16082 #: ../fish/guestfish-actions.pod:4743
16083 msgid "sfdisk-disk-geometry"
16084 msgstr ""
16085
16086 #. type: verbatim
16087 #: ../fish/guestfish-actions.pod:4745
16088 #, no-wrap
16089 msgid ""
16090 " sfdisk-disk-geometry device\n"
16091 "\n"
16092 msgstr ""
16093
16094 #. type: textblock
16095 #: ../fish/guestfish-actions.pod:4747
16096 msgid ""
16097 "This displays the disk geometry of C<device> read from the partition table.  "
16098 "Especially in the case where the underlying block device has been resized, "
16099 "this can be different from the kernel's idea of the geometry (see "
16100 "L</sfdisk-kernel-geometry>)."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:7314
16105 msgid "The result is in human-readable format, and not designed to be parsed."
16106 msgstr ""
16107
16108 #. type: =head2
16109 #: ../fish/guestfish-actions.pod:4755
16110 msgid "sfdisk-kernel-geometry"
16111 msgstr ""
16112
16113 #. type: verbatim
16114 #: ../fish/guestfish-actions.pod:4757
16115 #, no-wrap
16116 msgid ""
16117 " sfdisk-kernel-geometry device\n"
16118 "\n"
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7312
16123 msgid "This displays the kernel's idea of the geometry of C<device>."
16124 msgstr ""
16125
16126 #. type: =head2
16127 #: ../fish/guestfish-actions.pod:4764
16128 msgid "sfdisk-l"
16129 msgstr ""
16130
16131 #. type: verbatim
16132 #: ../fish/guestfish-actions.pod:4766
16133 #, no-wrap
16134 msgid ""
16135 " sfdisk-l device\n"
16136 "\n"
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7335
16141 msgid ""
16142 "This displays the partition table on C<device>, in the human-readable output "
16143 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16144 msgstr ""
16145
16146 #. type: textblock
16147 #: ../fish/guestfish-actions.pod:4772
16148 msgid "See also: L</part-list>"
16149 msgstr ""
16150
16151 #. type: textblock
16152 #: ../fish/guestfish-actions.pod:4774
16153 msgid ""
16154 "I<This function is deprecated.> In new code, use the L</part_list> call "
16155 "instead."
16156 msgstr ""
16157
16158 #. type: =head2
16159 #: ../fish/guestfish-actions.pod:4781
16160 msgid "sh"
16161 msgstr ""
16162
16163 #. type: verbatim
16164 #: ../fish/guestfish-actions.pod:4783
16165 #, no-wrap
16166 msgid ""
16167 " sh command\n"
16168 "\n"
16169 msgstr ""
16170
16171 #. type: textblock
16172 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7352
16173 msgid ""
16174 "This call runs a command from the guest filesystem via the guest's "
16175 "C</bin/sh>."
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish-actions.pod:4788
16180 msgid "This is like L</command>, but passes the command to:"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7357
16185 #, no-wrap
16186 msgid ""
16187 " /bin/sh -c \"command\"\n"
16188 "\n"
16189 msgstr ""
16190
16191 #. type: textblock
16192 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7359
16193 msgid ""
16194 "Depending on the guest's shell, this usually results in wildcards being "
16195 "expanded, shell expressions being interpolated and so on."
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish-actions.pod:4796
16200 msgid "All the provisos about L</command> apply to this call."
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../fish/guestfish-actions.pod:4798
16205 msgid "sh-lines"
16206 msgstr ""
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-actions.pod:4800
16210 #, no-wrap
16211 msgid ""
16212 " sh-lines command\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-actions.pod:4802
16218 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4805
16223 msgid "See also: L</command-lines>"
16224 msgstr ""
16225
16226 #. type: =head2
16227 #: ../fish/guestfish-actions.pod:4807
16228 msgid "sleep"
16229 msgstr ""
16230
16231 #. type: verbatim
16232 #: ../fish/guestfish-actions.pod:4809
16233 #, no-wrap
16234 msgid ""
16235 " sleep secs\n"
16236 "\n"
16237 msgstr ""
16238
16239 #. type: textblock
16240 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7393
16241 msgid "Sleep for C<secs> seconds."
16242 msgstr ""
16243
16244 #. type: =head2
16245 #: ../fish/guestfish-actions.pod:4813
16246 msgid "stat"
16247 msgstr ""
16248
16249 #. type: verbatim
16250 #: ../fish/guestfish-actions.pod:4815
16251 #, no-wrap
16252 msgid ""
16253 " stat path\n"
16254 "\n"
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7407
16259 msgid "This is the same as the C<stat(2)> system call."
16260 msgstr ""
16261
16262 #. type: =head2
16263 #: ../fish/guestfish-actions.pod:4821
16264 msgid "statvfs"
16265 msgstr ""
16266
16267 #. type: verbatim
16268 #: ../fish/guestfish-actions.pod:4823
16269 #, no-wrap
16270 msgid ""
16271 " statvfs path\n"
16272 "\n"
16273 msgstr ""
16274
16275 #. type: textblock
16276 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7421
16277 msgid ""
16278 "Returns file system statistics for any mounted file system.  C<path> should "
16279 "be a file or directory in the mounted file system (typically it is the mount "
16280 "point itself, but it doesn't need to be)."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7425
16285 msgid "This is the same as the C<statvfs(2)> system call."
16286 msgstr ""
16287
16288 #. type: =head2
16289 #: ../fish/guestfish-actions.pod:4831
16290 msgid "strings"
16291 msgstr ""
16292
16293 #. type: verbatim
16294 #: ../fish/guestfish-actions.pod:4833
16295 #, no-wrap
16296 msgid ""
16297 " strings path\n"
16298 "\n"
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7439
16303 msgid ""
16304 "This runs the L<strings(1)> command on a file and returns the list of "
16305 "printable strings found."
16306 msgstr ""
16307
16308 #. type: =head2
16309 #: ../fish/guestfish-actions.pod:4841
16310 msgid "strings-e"
16311 msgstr ""
16312
16313 #. type: verbatim
16314 #: ../fish/guestfish-actions.pod:4843
16315 #, no-wrap
16316 msgid ""
16317 " strings-e encoding path\n"
16318 "\n"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4845
16323 msgid ""
16324 "This is like the L</strings> command, but allows you to specify the encoding "
16325 "of strings that are looked for in the source file C<path>."
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7462
16330 msgid "Allowed encodings are:"
16331 msgstr ""
16332
16333 #. type: =item
16334 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7466
16335 msgid "s"
16336 msgstr ""
16337
16338 #. type: textblock
16339 #: ../fish/guestfish-actions.pod:4855
16340 msgid ""
16341 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16342 "ISO-8859-X (this is what L</strings> uses)."
16343 msgstr ""
16344
16345 #. type: =item
16346 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7471
16347 msgid "S"
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7473
16352 msgid "Single 8-bit-byte characters."
16353 msgstr ""
16354
16355 #. type: =item
16356 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7475
16357 msgid "b"
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7477
16362 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16363 msgstr ""
16364
16365 #. type: =item
16366 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7480
16367 msgid "l (lower case letter L)"
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7482
16372 msgid ""
16373 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16374 "examining binaries in Windows guests."
16375 msgstr ""
16376
16377 #. type: =item
16378 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7485
16379 msgid "B"
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7487
16384 msgid "32-bit big endian such as UCS-4BE."
16385 msgstr ""
16386
16387 #. type: =item
16388 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7489
16389 msgid "L"
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7491
16394 msgid "32-bit little endian such as UCS-4LE."
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7495
16399 msgid "The returned strings are transcoded to UTF-8."
16400 msgstr ""
16401
16402 #. type: =head2
16403 #: ../fish/guestfish-actions.pod:4887
16404 msgid "swapoff-device"
16405 msgstr ""
16406
16407 #. type: verbatim
16408 #: ../fish/guestfish-actions.pod:4889
16409 #, no-wrap
16410 msgid ""
16411 " swapoff-device device\n"
16412 "\n"
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4891
16417 msgid ""
16418 "This command disables the libguestfs appliance swap device or partition "
16419 "named C<device>.  See L</swapon-device>."
16420 msgstr ""
16421
16422 #. type: =head2
16423 #: ../fish/guestfish-actions.pod:4895
16424 msgid "swapoff-file"
16425 msgstr ""
16426
16427 #. type: verbatim
16428 #: ../fish/guestfish-actions.pod:4897
16429 #, no-wrap
16430 msgid ""
16431 " swapoff-file file\n"
16432 "\n"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7526
16437 msgid "This command disables the libguestfs appliance swap on file."
16438 msgstr ""
16439
16440 #. type: =head2
16441 #: ../fish/guestfish-actions.pod:4901
16442 msgid "swapoff-label"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-actions.pod:4903
16447 #, no-wrap
16448 msgid ""
16449 " swapoff-label label\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7538
16455 msgid ""
16456 "This command disables the libguestfs appliance swap on labeled swap "
16457 "partition."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4908
16462 msgid "swapoff-uuid"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4910
16467 #, no-wrap
16468 msgid ""
16469 " swapoff-uuid uuid\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4912 ../src/guestfs-actions.pod:7551
16475 msgid ""
16476 "This command disables the libguestfs appliance swap partition with the given "
16477 "UUID."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:4915
16482 msgid "swapon-device"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish-actions.pod:4917
16487 #, no-wrap
16488 msgid ""
16489 " swapon-device device\n"
16490 "\n"
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:4919
16495 msgid ""
16496 "This command enables the libguestfs appliance to use the swap device or "
16497 "partition named C<device>.  The increased memory is made available for all "
16498 "commands, for example those run using L</command> or L</sh>."
16499 msgstr ""
16500
16501 #. type: textblock
16502 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7569
16503 msgid ""
16504 "Note that you should not swap to existing guest swap partitions unless you "
16505 "know what you are doing.  They may contain hibernation information, or other "
16506 "information that the guest doesn't want you to trash.  You also risk leaking "
16507 "information about the host to the guest this way.  Instead, attach a new "
16508 "host device to the guest and swap on that."
16509 msgstr ""
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-actions.pod:4931
16513 msgid "swapon-file"
16514 msgstr ""
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-actions.pod:4933
16518 #, no-wrap
16519 msgid ""
16520 " swapon-file file\n"
16521 "\n"
16522 msgstr ""
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-actions.pod:4935
16526 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
16527 msgstr ""
16528
16529 #. type: =head2
16530 #: ../fish/guestfish-actions.pod:4938
16531 msgid "swapon-label"
16532 msgstr ""
16533
16534 #. type: verbatim
16535 #: ../fish/guestfish-actions.pod:4940
16536 #, no-wrap
16537 msgid ""
16538 " swapon-label label\n"
16539 "\n"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish-actions.pod:4942
16544 msgid ""
16545 "This command enables swap to a labeled swap partition.  See "
16546 "L</swapon-device> for other notes."
16547 msgstr ""
16548
16549 #. type: =head2
16550 #: ../fish/guestfish-actions.pod:4945
16551 msgid "swapon-uuid"
16552 msgstr ""
16553
16554 #. type: verbatim
16555 #: ../fish/guestfish-actions.pod:4947
16556 #, no-wrap
16557 msgid ""
16558 " swapon-uuid uuid\n"
16559 "\n"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:4949
16564 msgid ""
16565 "This command enables swap to a swap partition with the given UUID.  See "
16566 "L</swapon-device> for other notes."
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../fish/guestfish-actions.pod:4952
16571 msgid "sync"
16572 msgstr ""
16573
16574 #. type: verbatim
16575 #: ../fish/guestfish-actions.pod:4954
16576 #, no-wrap
16577 msgid ""
16578 " sync\n"
16579 "\n"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7624
16584 msgid ""
16585 "This syncs the disk, so that any writes are flushed through to the "
16586 "underlying disk image."
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7627
16591 msgid ""
16592 "You should always call this if you have modified a disk image, before "
16593 "closing the handle."
16594 msgstr ""
16595
16596 #. type: =head2
16597 #: ../fish/guestfish-actions.pod:4962
16598 msgid "tail"
16599 msgstr ""
16600
16601 #. type: verbatim
16602 #: ../fish/guestfish-actions.pod:4964
16603 #, no-wrap
16604 msgid ""
16605 " tail path\n"
16606 "\n"
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7640
16611 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16612 msgstr ""
16613
16614 #. type: =head2
16615 #: ../fish/guestfish-actions.pod:4972
16616 msgid "tail-n"
16617 msgstr ""
16618
16619 #. type: verbatim
16620 #: ../fish/guestfish-actions.pod:4974
16621 #, no-wrap
16622 msgid ""
16623 " tail-n nrlines path\n"
16624 "\n"
16625 msgstr ""
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7659
16629 msgid ""
16630 "If the parameter C<nrlines> is a positive number, this returns the last "
16631 "C<nrlines> lines of the file C<path>."
16632 msgstr ""
16633
16634 #. type: textblock
16635 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7662
16636 msgid ""
16637 "If the parameter C<nrlines> is a negative number, this returns lines from "
16638 "the file C<path>, starting with the C<-nrlines>th line."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-actions.pod:4987
16643 msgid "tar-in"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-actions.pod:4989
16648 #, no-wrap
16649 msgid ""
16650 " tar-in (tarfile|-) directory\n"
16651 "\n"
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7683
16656 msgid ""
16657 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16658 "tar file) into C<directory>."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-actions.pod:4994
16663 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16664 msgstr ""
16665
16666 #. type: =head2
16667 #: ../fish/guestfish-actions.pod:4999
16668 msgid "tar-out"
16669 msgstr ""
16670
16671 #. type: verbatim
16672 #: ../fish/guestfish-actions.pod:5001
16673 #, no-wrap
16674 msgid ""
16675 " tar-out directory (tarfile|-)\n"
16676 "\n"
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7700
16681 msgid ""
16682 "This command packs the contents of C<directory> and downloads it to local "
16683 "file C<tarfile>."
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../fish/guestfish-actions.pod:5006
16688 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../fish/guestfish-actions.pod:5011
16693 msgid "tgz-in"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../fish/guestfish-actions.pod:5013
16698 #, no-wrap
16699 msgid ""
16700 " tgz-in (tarball|-) directory\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7717
16706 msgid ""
16707 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16708 "tar file) into C<directory>."
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5018
16713 msgid "To upload an uncompressed tarball, use L</tar-in>."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-actions.pod:5022
16718 msgid "tgz-out"
16719 msgstr ""
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-actions.pod:5024
16723 #, no-wrap
16724 msgid ""
16725 " tgz-out directory (tarball|-)\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7733
16731 msgid ""
16732 "This command packs the contents of C<directory> and downloads it to local "
16733 "file C<tarball>."
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-actions.pod:5029
16738 msgid "To download an uncompressed tarball, use L</tar-out>."
16739 msgstr ""
16740
16741 #. type: =head2
16742 #: ../fish/guestfish-actions.pod:5033
16743 msgid "touch"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish-actions.pod:5035
16748 #, no-wrap
16749 msgid ""
16750 " touch path\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7748
16756 msgid ""
16757 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16758 "timestamps on a file, or, if the file does not exist, to create a new "
16759 "zero-length file."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7752
16764 msgid ""
16765 "This command only works on regular files, and will fail on other file types "
16766 "such as directories, symbolic links, block special etc."
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../fish/guestfish-actions.pod:5044
16771 msgid "truncate"
16772 msgstr ""
16773
16774 #. type: verbatim
16775 #: ../fish/guestfish-actions.pod:5046
16776 #, no-wrap
16777 msgid ""
16778 " truncate path\n"
16779 "\n"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5048 ../src/guestfs-actions.pod:7765
16784 msgid ""
16785 "This command truncates C<path> to a zero-length file.  The file must exist "
16786 "already."
16787 msgstr ""
16788
16789 #. type: =head2
16790 #: ../fish/guestfish-actions.pod:5051
16791 msgid "truncate-size"
16792 msgstr ""
16793
16794 #. type: verbatim
16795 #: ../fish/guestfish-actions.pod:5053
16796 #, no-wrap
16797 msgid ""
16798 " truncate-size path size\n"
16799 "\n"
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7779
16804 msgid ""
16805 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16806 "already."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-actions.pod:5058
16811 msgid ""
16812 "If the current file size is less than C<size> then the file is extended to "
16813 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16814 "blocks are not allocated for the file until you write to it).  To create a "
16815 "non-sparse file of zeroes, use L</fallocate64> instead."
16816 msgstr ""
16817
16818 #. type: =head2
16819 #: ../fish/guestfish-actions.pod:5064
16820 msgid "tune2fs"
16821 msgstr ""
16822
16823 #. type: verbatim
16824 #: ../fish/guestfish-actions.pod:5066
16825 #, no-wrap
16826 msgid ""
16827 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] "
16828 "[errorbehavior:..] [group:N] [intervalbetweenchecks:N] "
16829 "[reservedblockspercentage:N] [lastmounteddirectory:..] "
16830 "[reservedblockscount:N] [user:N]\n"
16831 "\n"
16832 msgstr ""
16833
16834 #. type: textblock
16835 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7815
16836 msgid ""
16837 "This call allows you to adjust various filesystem parameters of an "
16838 "ext2/ext3/ext4 filesystem called C<device>."
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7824
16843 msgid ""
16844 "Force tune2fs to complete the operation even in the face of errors.  This is "
16845 "the same as the tune2fs C<-f> option."
16846 msgstr ""
16847
16848 #. type: =item
16849 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7827
16850 msgid "C<maxmountcount>"
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-actions.pod:5082 ../src/guestfs-actions.pod:7829
16855 msgid ""
16856 "Set the number of mounts after which the filesystem is checked by "
16857 "L<e2fsck(8)>.  If this is C<0> then the number of mounts is disregarded.  "
16858 "This is the same as the tune2fs C<-c> option."
16859 msgstr ""
16860
16861 #. type: =item
16862 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7833
16863 msgid "C<mountcount>"
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7835
16868 msgid ""
16869 "Set the number of times the filesystem has been mounted.  This is the same "
16870 "as the tune2fs C<-C> option."
16871 msgstr ""
16872
16873 #. type: =item
16874 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7838
16875 msgid "C<errorbehavior>"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7840
16880 msgid ""
16881 "Change the behavior of the kernel code when errors are detected.  Possible "
16882 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16883 "these options don't really make any difference, particularly for write "
16884 "errors."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7845
16889 msgid "This is the same as the tune2fs C<-e> option."
16890 msgstr ""
16891
16892 #. type: =item
16893 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7847
16894 msgid "C<group>"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish-actions.pod:5102 ../src/guestfs-actions.pod:7849
16899 msgid ""
16900 "Set the group which can use reserved filesystem blocks.  This is the same as "
16901 "the tune2fs C<-g> option except that it can only be specified as a number."
16902 msgstr ""
16903
16904 #. type: =item
16905 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7853
16906 msgid "C<intervalbetweenchecks>"
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7855
16911 msgid ""
16912 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16913 "option is passed as C<0> then time-dependent checking is disabled."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7859
16918 msgid "This is the same as the tune2fs C<-i> option."
16919 msgstr ""
16920
16921 #. type: =item
16922 #: ../fish/guestfish-actions.pod:5114 ../src/guestfs-actions.pod:7861
16923 msgid "C<reservedblockspercentage>"
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7863
16928 msgid ""
16929 "Set the percentage of the filesystem which may only be allocated by "
16930 "privileged processes.  This is the same as the tune2fs C<-m> option."
16931 msgstr ""
16932
16933 #. type: =item
16934 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7867
16935 msgid "C<lastmounteddirectory>"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7869
16940 msgid ""
16941 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16942 "option."
16943 msgstr ""
16944
16945 #. type: =item
16946 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7872
16947 msgid ""
16948 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16949 "is the same as the tune2fs C<-r> option."
16950 msgstr ""
16951
16952 #. type: =item
16953 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7876
16954 msgid "C<user>"
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7878
16959 msgid ""
16960 "Set the user who can use the reserved filesystem blocks.  This is the same "
16961 "as the tune2fs C<-u> option except that it can only be specified as a "
16962 "number."
16963 msgstr ""
16964
16965 #. type: textblock
16966 #: ../fish/guestfish-actions.pod:5137
16967 msgid ""
16968 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16969 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16970 msgstr ""
16971
16972 #. type: =head2
16973 #: ../fish/guestfish-actions.pod:5143
16974 msgid "tune2fs-l"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish-actions.pod:5145
16979 #, no-wrap
16980 msgid ""
16981 " tune2fs-l device\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7920
16987 msgid ""
16988 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16989 "C<device>."
16990 msgstr ""
16991
16992 #. type: textblock
16993 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7923
16994 msgid ""
16995 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16996 "for more details.  The list of fields returned isn't clearly defined, and "
16997 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16998 "and the filesystem itself."
16999 msgstr ""
17000
17001 #. type: =head2
17002 #: ../fish/guestfish-actions.pod:5155
17003 msgid "txz-in"
17004 msgstr ""
17005
17006 #. type: verbatim
17007 #: ../fish/guestfish-actions.pod:5157
17008 #, no-wrap
17009 msgid ""
17010 " txz-in (tarball|-) directory\n"
17011 "\n"
17012 msgstr ""
17013
17014 #. type: textblock
17015 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7943
17016 msgid ""
17017 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17018 "tar file) into C<directory>."
17019 msgstr ""
17020
17021 #. type: =head2
17022 #: ../fish/guestfish-actions.pod:5164
17023 msgid "txz-out"
17024 msgstr ""
17025
17026 #. type: verbatim
17027 #: ../fish/guestfish-actions.pod:5166
17028 #, no-wrap
17029 msgid ""
17030 " txz-out directory (tarball|-)\n"
17031 "\n"
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7957
17036 msgid ""
17037 "This command packs the contents of C<directory> and downloads it to local "
17038 "file C<tarball> (as an xz compressed tar archive)."
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish-actions.pod:5173
17043 msgid "umask"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish-actions.pod:5175
17048 #, no-wrap
17049 msgid ""
17050 " umask mask\n"
17051 "\n"
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7970
17056 msgid ""
17057 "This function sets the mask used for creating new files and device nodes to "
17058 "C<mask & 0777>."
17059 msgstr ""
17060
17061 #. type: textblock
17062 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7973
17063 msgid ""
17064 "Typical umask values would be C<022> which creates new files with "
17065 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17066 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7978
17071 msgid ""
17072 "The default umask is C<022>.  This is important because it means that "
17073 "directories and device nodes will be created with C<0644> or C<0755> mode "
17074 "even if you specify C<0777>."
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish-actions.pod:5189
17079 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7985
17084 msgid "This call returns the previous umask."
17085 msgstr ""
17086
17087 #. type: =head2
17088 #: ../fish/guestfish-actions.pod:5194
17089 msgid "umount"
17090 msgstr ""
17091
17092 #. type: =head2
17093 #: ../fish/guestfish-actions.pod:5196
17094 msgid "unmount"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish-actions.pod:5198
17099 #, no-wrap
17100 msgid ""
17101 " umount pathordevice\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7997
17107 msgid ""
17108 "This unmounts the given filesystem.  The filesystem may be specified either "
17109 "by its mountpoint (path) or the device which contains the filesystem."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../fish/guestfish-actions.pod:5204
17114 msgid "umount-all"
17115 msgstr ""
17116
17117 #. type: =head2
17118 #: ../fish/guestfish-actions.pod:5206
17119 msgid "unmount-all"
17120 msgstr ""
17121
17122 #. type: verbatim
17123 #: ../fish/guestfish-actions.pod:5208
17124 #, no-wrap
17125 msgid ""
17126 " umount-all\n"
17127 "\n"
17128 msgstr ""
17129
17130 #. type: textblock
17131 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8010
17132 msgid "This unmounts all mounted filesystems."
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8012
17137 msgid "Some internal mounts are not unmounted by this call."
17138 msgstr ""
17139
17140 #. type: =head2
17141 #: ../fish/guestfish-actions.pod:5214
17142 msgid "upload"
17143 msgstr ""
17144
17145 #. type: verbatim
17146 #: ../fish/guestfish-actions.pod:5216
17147 #, no-wrap
17148 msgid ""
17149 " upload (filename|-) remotefilename\n"
17150 "\n"
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:5218 ../fish/guestfish-actions.pod:5231 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8049
17155 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-actions.pod:5223
17160 msgid "See also L</download>."
17161 msgstr ""
17162
17163 #. type: =head2
17164 #: ../fish/guestfish-actions.pod:5227
17165 msgid "upload-offset"
17166 msgstr ""
17167
17168 #. type: verbatim
17169 #: ../fish/guestfish-actions.pod:5229
17170 #, no-wrap
17171 msgid ""
17172 " upload-offset (filename|-) remotefilename offset\n"
17173 "\n"
17174 msgstr ""
17175
17176 #. type: textblock
17177 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:8052
17178 msgid ""
17179 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17180 "The intention is to overwrite parts of existing files or devices, although "
17181 "if a non-existant file is specified then it is created with a \"hole\" "
17182 "before C<offset>.  The size of the data written is implicit in the size of "
17183 "the source C<filename>."
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish-actions.pod:5241
17188 msgid ""
17189 "Note that there is no limit on the amount of data that can be uploaded with "
17190 "this call, unlike with L</pwrite>, and this call always writes the full "
17191 "amount unless an error occurs."
17192 msgstr ""
17193
17194 #. type: textblock
17195 #: ../fish/guestfish-actions.pod:5246
17196 msgid "See also L</upload>, L</pwrite>."
17197 msgstr ""
17198
17199 #. type: =head2
17200 #: ../fish/guestfish-actions.pod:5250
17201 msgid "utimens"
17202 msgstr ""
17203
17204 #. type: verbatim
17205 #: ../fish/guestfish-actions.pod:5252
17206 #, no-wrap
17207 msgid ""
17208 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17209 "\n"
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8085
17214 msgid "This command sets the timestamps of a file with nanosecond precision."
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5257 ../src/guestfs-actions.pod:8088
17219 msgid ""
17220 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17221 "from the epoch."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8091
17226 msgid ""
17227 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17228 "nanoseconds from the epoch."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8094
17233 msgid ""
17234 "If the C<*nsecs> field contains the special value C<-1> then the "
17235 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17236 "ignored in this case)."
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8098
17241 msgid ""
17242 "If the C<*nsecs> field contains the special value C<-2> then the "
17243 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17244 "in this case)."
17245 msgstr ""
17246
17247 #. type: =head2
17248 #: ../fish/guestfish-actions.pod:5271
17249 msgid "version"
17250 msgstr ""
17251
17252 #. type: verbatim
17253 #: ../fish/guestfish-actions.pod:5273
17254 #, no-wrap
17255 msgid ""
17256 " version\n"
17257 "\n"
17258 msgstr ""
17259
17260 #. type: textblock
17261 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8111
17262 msgid "Return the libguestfs version number that the program is linked against."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8114
17267 msgid ""
17268 "Note that because of dynamic linking this is not necessarily the version of "
17269 "libguestfs that you compiled against.  You can compile the program, and then "
17270 "at runtime dynamically link against a completely different C<libguestfs.so> "
17271 "library."
17272 msgstr ""
17273
17274 #. type: textblock
17275 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8119
17276 msgid ""
17277 "This call was added in version C<1.0.58>.  In previous versions of "
17278 "libguestfs there was no way to get the version number.  From C code you can "
17279 "use dynamic linker functions to find out if this symbol exists (if it "
17280 "doesn't, then it's an earlier version)."
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../fish/guestfish-actions.pod:5289 ../src/guestfs-actions.pod:8125
17285 msgid ""
17286 "The call returns a structure with four elements.  The first three (C<major>, "
17287 "C<minor> and C<release>) are numbers and correspond to the usual version "
17288 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17289 "but may be used for distro-specific information."
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8131
17294 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17295 msgstr ""
17296
17297 #. type: textblock
17298 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8134
17299 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../fish/guestfish-actions.pod:5300
17304 msgid ""
17305 "I<Note:> Don't use this call to test for availability of features.  In "
17306 "enterprise distributions we backport features from later versions into "
17307 "earlier versions, making this an unreliable way to test for features.  Use "
17308 "L</available> instead."
17309 msgstr ""
17310
17311 #. type: =head2
17312 #: ../fish/guestfish-actions.pod:5306
17313 msgid "vfs-label"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish-actions.pod:5308
17318 #, no-wrap
17319 msgid ""
17320 " vfs-label device\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish-actions.pod:5310 ../src/guestfs-actions.pod:8154
17326 msgid "This returns the filesystem label of the filesystem on C<device>."
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8157
17331 msgid "If the filesystem is unlabeled, this returns the empty string."
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-actions.pod:5315
17336 msgid "To find a filesystem from the label, use L</findfs-label>."
17337 msgstr ""
17338
17339 #. type: =head2
17340 #: ../fish/guestfish-actions.pod:5317
17341 msgid "vfs-type"
17342 msgstr ""
17343
17344 #. type: verbatim
17345 #: ../fish/guestfish-actions.pod:5319
17346 #, no-wrap
17347 msgid ""
17348 " vfs-type device\n"
17349 "\n"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:5321 ../src/guestfs-actions.pod:8172
17354 msgid ""
17355 "This command gets the filesystem type corresponding to the filesystem on "
17356 "C<device>."
17357 msgstr ""
17358
17359 #. type: textblock
17360 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8175
17361 msgid ""
17362 "For most filesystems, the result is the name of the Linux VFS module which "
17363 "would be used to mount this filesystem if you mounted it without specifying "
17364 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17365 msgstr ""
17366
17367 #. type: =head2
17368 #: ../fish/guestfish-actions.pod:5329
17369 msgid "vfs-uuid"
17370 msgstr ""
17371
17372 #. type: verbatim
17373 #: ../fish/guestfish-actions.pod:5331
17374 #, no-wrap
17375 msgid ""
17376 " vfs-uuid device\n"
17377 "\n"
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8191
17382 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8194
17387 msgid "If the filesystem does not have a UUID, this returns the empty string."
17388 msgstr ""
17389
17390 #. type: textblock
17391 #: ../fish/guestfish-actions.pod:5338
17392 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17393 msgstr ""
17394
17395 #. type: =head2
17396 #: ../fish/guestfish-actions.pod:5340
17397 msgid "vg-activate"
17398 msgstr ""
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish-actions.pod:5342
17402 #, no-wrap
17403 msgid ""
17404 " vg-activate true|false 'volgroups ...'\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8210
17410 msgid ""
17411 "This command activates or (if C<activate> is false) deactivates all logical "
17412 "volumes in the listed volume groups C<volgroups>."
17413 msgstr ""
17414
17415 #. type: textblock
17416 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8213
17417 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8215
17422 msgid ""
17423 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17424 "activated or deactivated."
17425 msgstr ""
17426
17427 #. type: =head2
17428 #: ../fish/guestfish-actions.pod:5352
17429 msgid "vg-activate-all"
17430 msgstr ""
17431
17432 #. type: verbatim
17433 #: ../fish/guestfish-actions.pod:5354
17434 #, no-wrap
17435 msgid ""
17436 " vg-activate-all true|false\n"
17437 "\n"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8228
17442 msgid ""
17443 "This command activates or (if C<activate> is false) deactivates all logical "
17444 "volumes in all volume groups."
17445 msgstr ""
17446
17447 #. type: textblock
17448 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8231
17449 msgid "This command is the same as running C<vgchange -a y|n>"
17450 msgstr ""
17451
17452 #. type: =head2
17453 #: ../fish/guestfish-actions.pod:5361
17454 msgid "vgcreate"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish-actions.pod:5363
17459 #, no-wrap
17460 msgid ""
17461 " vgcreate volgroup 'physvols ...'\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8244
17467 msgid ""
17468 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17469 "of physical volumes C<physvols>."
17470 msgstr ""
17471
17472 #. type: =head2
17473 #: ../fish/guestfish-actions.pod:5368
17474 msgid "vglvuuids"
17475 msgstr ""
17476
17477 #. type: verbatim
17478 #: ../fish/guestfish-actions.pod:5370
17479 #, no-wrap
17480 msgid ""
17481 " vglvuuids vgname\n"
17482 "\n"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8257
17487 msgid ""
17488 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17489 "volumes created in this volume group."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5375
17494 msgid ""
17495 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17496 "logical volumes and volume groups."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-actions.pod:5378
17501 msgid "See also L</vgpvuuids>."
17502 msgstr ""
17503
17504 #. type: =head2
17505 #: ../fish/guestfish-actions.pod:5380
17506 msgid "vgpvuuids"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish-actions.pod:5382
17511 #, no-wrap
17512 msgid ""
17513 " vgpvuuids vgname\n"
17514 "\n"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8277
17519 msgid ""
17520 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17521 "volumes that this volume group resides on."
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:5387
17526 msgid ""
17527 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17528 "physical volumes and volume groups."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:5390
17533 msgid "See also L</vglvuuids>."
17534 msgstr ""
17535
17536 #. type: =head2
17537 #: ../fish/guestfish-actions.pod:5392
17538 msgid "vgremove"
17539 msgstr ""
17540
17541 #. type: verbatim
17542 #: ../fish/guestfish-actions.pod:5394
17543 #, no-wrap
17544 msgid ""
17545 " vgremove vgname\n"
17546 "\n"
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8297
17551 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8299
17556 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17557 msgstr ""
17558
17559 #. type: =head2
17560 #: ../fish/guestfish-actions.pod:5401
17561 msgid "vgrename"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../fish/guestfish-actions.pod:5403
17566 #, no-wrap
17567 msgid ""
17568 " vgrename volgroup newvolgroup\n"
17569 "\n"
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8313
17574 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17575 msgstr ""
17576
17577 #. type: =head2
17578 #: ../fish/guestfish-actions.pod:5407
17579 msgid "vgs"
17580 msgstr ""
17581
17582 #. type: verbatim
17583 #: ../fish/guestfish-actions.pod:5409
17584 #, no-wrap
17585 msgid ""
17586 " vgs\n"
17587 "\n"
17588 msgstr ""
17589
17590 #. type: textblock
17591 #: ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:8324
17592 msgid ""
17593 "List all the volumes groups detected.  This is the equivalent of the "
17594 "L<vgs(8)> command."
17595 msgstr ""
17596
17597 #. type: textblock
17598 #: ../fish/guestfish-actions.pod:5414 ../src/guestfs-actions.pod:8327
17599 msgid ""
17600 "This returns a list of just the volume group names that were detected "
17601 "(eg. C<VolGroup00>)."
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish-actions.pod:5417
17606 msgid "See also L</vgs-full>."
17607 msgstr ""
17608
17609 #. type: =head2
17610 #: ../fish/guestfish-actions.pod:5419
17611 msgid "vgs-full"
17612 msgstr ""
17613
17614 #. type: verbatim
17615 #: ../fish/guestfish-actions.pod:5421
17616 #, no-wrap
17617 msgid ""
17618 " vgs-full\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish-actions.pod:5423 ../src/guestfs-actions.pod:8343
17624 msgid ""
17625 "List all the volumes groups detected.  This is the equivalent of the "
17626 "L<vgs(8)> command.  The \"full\" version includes all fields."
17627 msgstr ""
17628
17629 #. type: =head2
17630 #: ../fish/guestfish-actions.pod:5426
17631 msgid "vgscan"
17632 msgstr ""
17633
17634 #. type: verbatim
17635 #: ../fish/guestfish-actions.pod:5428
17636 #, no-wrap
17637 msgid ""
17638 " vgscan\n"
17639 "\n"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish-actions.pod:5430 ../src/guestfs-actions.pod:8357
17644 msgid ""
17645 "This rescans all block devices and rebuilds the list of LVM physical "
17646 "volumes, volume groups and logical volumes."
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish-actions.pod:5433
17651 msgid "vguuid"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish-actions.pod:5435
17656 #, no-wrap
17657 msgid ""
17658 " vguuid vgname\n"
17659 "\n"
17660 msgstr ""
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-actions.pod:5437 ../src/guestfs-actions.pod:8370
17664 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17665 msgstr ""
17666
17667 #. type: =head2
17668 #: ../fish/guestfish-actions.pod:5439
17669 msgid "wc-c"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish-actions.pod:5441
17674 #, no-wrap
17675 msgid ""
17676 " wc-c path\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish-actions.pod:5443 ../src/guestfs-actions.pod:8410
17682 msgid ""
17683 "This command counts the characters in a file, using the C<wc -c> external "
17684 "command."
17685 msgstr ""
17686
17687 #. type: =head2
17688 #: ../fish/guestfish-actions.pod:5446
17689 msgid "wc-l"
17690 msgstr ""
17691
17692 #. type: verbatim
17693 #: ../fish/guestfish-actions.pod:5448
17694 #, no-wrap
17695 msgid ""
17696 " wc-l path\n"
17697 "\n"
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8423
17702 msgid ""
17703 "This command counts the lines in a file, using the C<wc -l> external "
17704 "command."
17705 msgstr ""
17706
17707 #. type: =head2
17708 #: ../fish/guestfish-actions.pod:5453
17709 msgid "wc-w"
17710 msgstr ""
17711
17712 #. type: verbatim
17713 #: ../fish/guestfish-actions.pod:5455
17714 #, no-wrap
17715 msgid ""
17716 " wc-w path\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8436
17722 msgid ""
17723 "This command counts the words in a file, using the C<wc -w> external "
17724 "command."
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../fish/guestfish-actions.pod:5460
17729 msgid "write"
17730 msgstr ""
17731
17732 #. type: verbatim
17733 #: ../fish/guestfish-actions.pod:5462
17734 #, no-wrap
17735 msgid ""
17736 " write path content\n"
17737 "\n"
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5464 ../src/guestfs-actions.pod:8451
17742 msgid ""
17743 "This call creates a file called C<path>.  The content of the file is the "
17744 "string C<content> (which can contain any 8 bit data)."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-actions.pod:5467
17749 msgid "See also L</write-append>."
17750 msgstr ""
17751
17752 #. type: =head2
17753 #: ../fish/guestfish-actions.pod:5472
17754 msgid "write-append"
17755 msgstr ""
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish-actions.pod:5474
17759 #, no-wrap
17760 msgid ""
17761 " write-append path content\n"
17762 "\n"
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish-actions.pod:5476 ../src/guestfs-actions.pod:8471
17767 msgid ""
17768 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17769 "not exist, then a new file is created."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish-actions.pod:5479
17774 msgid "See also L</write>."
17775 msgstr ""
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-actions.pod:5484
17779 msgid "write-file"
17780 msgstr ""
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish-actions.pod:5486
17784 #, no-wrap
17785 msgid ""
17786 " write-file path content size\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8498
17792 msgid ""
17793 "This call creates a file called C<path>.  The contents of the file is the "
17794 "string C<content> (which can contain any 8 bit data), with length C<size>."
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8502
17799 msgid ""
17800 "As a special case, if C<size> is C<0> then the length is calculated using "
17801 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:5496 ../src/guestfs-actions.pod:8506
17806 msgid ""
17807 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17808 "I<not> work, even if the length is specified."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:5502
17813 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
17814 msgstr ""
17815
17816 #. type: =head2
17817 #: ../fish/guestfish-actions.pod:5509
17818 msgid "zegrep"
17819 msgstr ""
17820
17821 #. type: verbatim
17822 #: ../fish/guestfish-actions.pod:5511
17823 #, no-wrap
17824 msgid ""
17825 " zegrep regex path\n"
17826 "\n"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-actions.pod:5513 ../src/guestfs-actions.pod:8523
17831 msgid "This calls the external C<zegrep> program and returns the matching lines."
17832 msgstr ""
17833
17834 #. type: =head2
17835 #: ../fish/guestfish-actions.pod:5519
17836 msgid "zegrepi"
17837 msgstr ""
17838
17839 #. type: verbatim
17840 #: ../fish/guestfish-actions.pod:5521
17841 #, no-wrap
17842 msgid ""
17843 " zegrepi regex path\n"
17844 "\n"
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8542
17849 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17850 msgstr ""
17851
17852 #. type: =head2
17853 #: ../fish/guestfish-actions.pod:5529
17854 msgid "zero"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish-actions.pod:5531
17859 #, no-wrap
17860 msgid ""
17861 " zero device\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish-actions.pod:5533 ../src/guestfs-actions.pod:8560
17867 msgid "This command writes zeroes over the first few blocks of C<device>."
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8562
17872 msgid ""
17873 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17874 "securely wipe the device).  It should be sufficient to remove any partition "
17875 "tables, filesystem superblocks and so on."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:5554 ../src/guestfs-actions.pod:8566 ../src/guestfs-actions.pod:8592
17880 msgid ""
17881 "If blocks are already zero, then this command avoids writing zeroes.  This "
17882 "prevents the underlying device from becoming non-sparse or growing "
17883 "unnecessarily."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:5543
17888 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17889 msgstr ""
17890
17891 #. type: =head2
17892 #: ../fish/guestfish-actions.pod:5546
17893 msgid "zero-device"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish-actions.pod:5548
17898 #, no-wrap
17899 msgid ""
17900 " zero-device device\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish-actions.pod:5550
17906 msgid ""
17907 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17908 "which just zeroes the first few blocks of a device."
17909 msgstr ""
17910
17911 #. type: =head2
17912 #: ../fish/guestfish-actions.pod:5558
17913 msgid "zerofree"
17914 msgstr ""
17915
17916 #. type: verbatim
17917 #: ../fish/guestfish-actions.pod:5560
17918 #, no-wrap
17919 msgid ""
17920 " zerofree device\n"
17921 "\n"
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8611
17926 msgid ""
17927 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17928 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17929 "possible to compress the filesystem more effectively."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5567 ../src/guestfs-actions.pod:8616
17934 msgid "You should B<not> run this program if the filesystem is mounted."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish-actions.pod:5570 ../src/guestfs-actions.pod:8619
17939 msgid ""
17940 "It is possible that using this program can damage the filesystem or data on "
17941 "the filesystem."
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish-actions.pod:5573
17946 msgid "zfgrep"
17947 msgstr ""
17948
17949 #. type: verbatim
17950 #: ../fish/guestfish-actions.pod:5575
17951 #, no-wrap
17952 msgid ""
17953 " zfgrep pattern path\n"
17954 "\n"
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:8633
17959 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17960 msgstr ""
17961
17962 #. type: =head2
17963 #: ../fish/guestfish-actions.pod:5583
17964 msgid "zfgrepi"
17965 msgstr ""
17966
17967 #. type: verbatim
17968 #: ../fish/guestfish-actions.pod:5585
17969 #, no-wrap
17970 msgid ""
17971 " zfgrepi pattern path\n"
17972 "\n"
17973 msgstr ""
17974
17975 #. type: textblock
17976 #: ../fish/guestfish-actions.pod:5587 ../src/guestfs-actions.pod:8652
17977 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17978 msgstr ""
17979
17980 #. type: =head2
17981 #: ../fish/guestfish-actions.pod:5593
17982 msgid "zfile"
17983 msgstr ""
17984
17985 #. type: verbatim
17986 #: ../fish/guestfish-actions.pod:5595
17987 #, no-wrap
17988 msgid ""
17989 " zfile meth path\n"
17990 "\n"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish-actions.pod:5597 ../src/guestfs-actions.pod:8678
17995 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish-actions.pod:5600 ../src/guestfs-actions.pod:8681
18000 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish-actions.pod:5602
18005 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish-actions.pod:5605
18010 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
18011 msgstr ""
18012
18013 #. type: =head2
18014 #: ../fish/guestfish-actions.pod:5612
18015 msgid "zgrep"
18016 msgstr ""
18017
18018 #. type: verbatim
18019 #: ../fish/guestfish-actions.pod:5614
18020 #, no-wrap
18021 msgid ""
18022 " zgrep regex path\n"
18023 "\n"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish-actions.pod:5616 ../src/guestfs-actions.pod:8698
18028 msgid "This calls the external C<zgrep> program and returns the matching lines."
18029 msgstr ""
18030
18031 #. type: =head2
18032 #: ../fish/guestfish-actions.pod:5622
18033 msgid "zgrepi"
18034 msgstr ""
18035
18036 #. type: verbatim
18037 #: ../fish/guestfish-actions.pod:5624
18038 #, no-wrap
18039 msgid ""
18040 " zgrepi regex path\n"
18041 "\n"
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish-actions.pod:5626 ../src/guestfs-actions.pod:8717
18046 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-commands.pod:1
18051 msgid "alloc"
18052 msgstr ""
18053
18054 #. type: =head2
18055 #: ../fish/guestfish-commands.pod:3
18056 msgid "allocate"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish-commands.pod:5
18061 #, no-wrap
18062 msgid ""
18063 " alloc filename size\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: textblock
18068 #: ../fish/guestfish-commands.pod:7
18069 msgid ""
18070 "This creates an empty (zeroed) file of the given size, and then adds so it "
18071 "can be further examined."
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:243
18076 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:245
18081 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18082 msgstr ""
18083
18084 #. type: textblock
18085 #: ../fish/guestfish-commands.pod:14
18086 msgid ""
18087 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18088 "image, see L</PREPARED DISK IMAGES>."
18089 msgstr ""
18090
18091 #. type: =head2
18092 #: ../fish/guestfish-commands.pod:17
18093 msgid "copy-in"
18094 msgstr ""
18095
18096 #. type: verbatim
18097 #: ../fish/guestfish-commands.pod:19
18098 #, no-wrap
18099 msgid ""
18100 " copy-in local [local ...] /remotedir\n"
18101 "\n"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish-commands.pod:21
18106 msgid ""
18107 "C<copy-in> copies local files or directories recursively into the disk "
18108 "image, placing them in the directory called C</remotedir> (which must "
18109 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18110 "other commands as necessary."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish-commands.pod:26
18115 msgid ""
18116 "Multiple local files and directories can be specified, but the last "
18117 "parameter must always be a remote directory.  Wildcards cannot be used."
18118 msgstr ""
18119
18120 #. type: =head2
18121 #: ../fish/guestfish-commands.pod:30
18122 msgid "copy-out"
18123 msgstr ""
18124
18125 #. type: verbatim
18126 #: ../fish/guestfish-commands.pod:32
18127 #, no-wrap
18128 msgid ""
18129 " copy-out remote [remote ...] localdir\n"
18130 "\n"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish-commands.pod:34
18135 msgid ""
18136 "C<copy-out> copies remote files or directories recursively out of the disk "
18137 "image, placing them on the host disk in a local directory called C<localdir> "
18138 "(which must exist).  This guestfish meta-command turns into a sequence of "
18139 "L</download>, L</tar-out> and other commands as necessary."
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish-commands.pod:40
18144 msgid ""
18145 "Multiple remote files and directories can be specified, but the last "
18146 "parameter must always be a local directory.  To download to the current "
18147 "directory, use C<.> as in:"
18148 msgstr ""
18149
18150 #. type: verbatim
18151 #: ../fish/guestfish-commands.pod:44
18152 #, no-wrap
18153 msgid ""
18154 " copy-out /home .\n"
18155 "\n"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish-commands.pod:46
18160 msgid ""
18161 "Wildcards cannot be used in the ordinary command, but you can use them with "
18162 "the help of L</glob> like this:"
18163 msgstr ""
18164
18165 #. type: verbatim
18166 #: ../fish/guestfish-commands.pod:49
18167 #, no-wrap
18168 msgid ""
18169 " glob copy-out /home/* .\n"
18170 "\n"
18171 msgstr ""
18172
18173 #. type: =head2
18174 #: ../fish/guestfish-commands.pod:51
18175 msgid "delete-event"
18176 msgstr ""
18177
18178 #. type: verbatim
18179 #: ../fish/guestfish-commands.pod:53
18180 #, no-wrap
18181 msgid ""
18182 " delete-event name\n"
18183 "\n"
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish-commands.pod:55
18188 msgid ""
18189 "Delete the event handler which was previously registered as C<name>.  If "
18190 "multiple event handlers were registered with the same name, they are all "
18191 "deleted."
18192 msgstr ""
18193
18194 #. type: textblock
18195 #: ../fish/guestfish-commands.pod:59
18196 msgid "See also the guestfish commands C<event> and C<list-events>."
18197 msgstr ""
18198
18199 #. type: =head2
18200 #: ../fish/guestfish-commands.pod:61
18201 msgid "display"
18202 msgstr ""
18203
18204 #. type: verbatim
18205 #: ../fish/guestfish-commands.pod:63
18206 #, no-wrap
18207 msgid ""
18208 " display filename\n"
18209 "\n"
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../fish/guestfish-commands.pod:65
18214 msgid ""
18215 "Use C<display> (a graphical display program) to display an image file.  It "
18216 "downloads the file, and runs C<display> on it."
18217 msgstr ""
18218
18219 #. type: textblock
18220 #: ../fish/guestfish-commands.pod:68
18221 msgid ""
18222 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18223 "environment variable.  For example to use the GNOME display program:"
18224 msgstr ""
18225
18226 #. type: verbatim
18227 #: ../fish/guestfish-commands.pod:71
18228 #, no-wrap
18229 msgid ""
18230 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18231 "\n"
18232 msgstr ""
18233
18234 #. type: textblock
18235 #: ../fish/guestfish-commands.pod:73
18236 msgid "See also L<display(1)>."
18237 msgstr ""
18238
18239 #. type: =head2
18240 #: ../fish/guestfish-commands.pod:75
18241 msgid "echo"
18242 msgstr ""
18243
18244 #. type: verbatim
18245 #: ../fish/guestfish-commands.pod:77
18246 #, no-wrap
18247 msgid ""
18248 " echo [params ...]\n"
18249 "\n"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish-commands.pod:79
18254 msgid "This echos the parameters to the terminal."
18255 msgstr ""
18256
18257 #. type: =head2
18258 #: ../fish/guestfish-commands.pod:81
18259 msgid "edit"
18260 msgstr ""
18261
18262 #. type: =head2
18263 #: ../fish/guestfish-commands.pod:83
18264 msgid "vi"
18265 msgstr ""
18266
18267 #. type: =head2
18268 #: ../fish/guestfish-commands.pod:85
18269 msgid "emacs"
18270 msgstr ""
18271
18272 #. type: verbatim
18273 #: ../fish/guestfish-commands.pod:87
18274 #, no-wrap
18275 msgid ""
18276 " edit filename\n"
18277 "\n"
18278 msgstr ""
18279
18280 #. type: textblock
18281 #: ../fish/guestfish-commands.pod:89
18282 msgid ""
18283 "This is used to edit a file.  It downloads the file, edits it locally using "
18284 "your editor, then uploads the result."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish-commands.pod:92
18289 msgid ""
18290 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18291 "or C<emacs> you will get those corresponding editors."
18292 msgstr ""
18293
18294 #. type: =head2
18295 #: ../fish/guestfish-commands.pod:96
18296 msgid "event"
18297 msgstr ""
18298
18299 #. type: verbatim
18300 #: ../fish/guestfish-commands.pod:98
18301 #, no-wrap
18302 msgid ""
18303 " event name eventset \"shell script ...\"\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../fish/guestfish-commands.pod:100
18309 msgid ""
18310 "Register a shell script fragment which is executed when an event is raised.  "
18311 "See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
18312 "API in libguestfs."
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish-commands.pod:104
18317 msgid ""
18318 "The C<name> parameter is a name that you give to this event handler.  It can "
18319 "be any string (even the empty string) and is simply there so you can delete "
18320 "the handler using the guestfish C<delete-event> command."
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish-commands.pod:109
18325 msgid ""
18326 "The C<eventset> parameter is a comma-separated list of one or more events, "
18327 "for example C<close> or C<close,trace>.  The special value C<*> means all "
18328 "events."
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish-commands.pod:113
18333 msgid ""
18334 "The third and final parameter is the shell script fragment (or any external "
18335 "command) that is executed when any of the events in the eventset occurs.  It "
18336 "is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh "
18337 "-c>."
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/guestfish-commands.pod:118
18342 msgid ""
18343 "The shell script fragment receives callback parameters as arguments C<$1>, "
18344 "C<$2> etc.  The actual event that was called is available in the environment "
18345 "variable C<$EVENT>."
18346 msgstr ""
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish-commands.pod:122
18350 #, no-wrap
18351 msgid ""
18352 " event \"\" close \"echo closed\"\n"
18353 " event messages appliance,library,trace \"echo $@\"\n"
18354 " event \"\" progress \"echo progress: $3/$4\"\n"
18355 " event \"\" * \"echo $EVENT $@\"\n"
18356 "\n"
18357 msgstr ""
18358
18359 #. type: textblock
18360 #: ../fish/guestfish-commands.pod:127
18361 msgid "See also the guestfish commands C<delete-event> and C<list-events>."
18362 msgstr ""
18363
18364 #. type: =head2
18365 #: ../fish/guestfish-commands.pod:129
18366 msgid "glob"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../fish/guestfish-commands.pod:131
18371 #, no-wrap
18372 msgid ""
18373 " glob command args...\n"
18374 "\n"
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/guestfish-commands.pod:133
18379 msgid ""
18380 "Expand wildcards in any paths in the args list, and run C<command> "
18381 "repeatedly on each matching path."
18382 msgstr ""
18383
18384 #. type: textblock
18385 #: ../fish/guestfish-commands.pod:136
18386 msgid "See L</WILDCARDS AND GLOBBING>."
18387 msgstr ""
18388
18389 #. type: =head2
18390 #: ../fish/guestfish-commands.pod:138
18391 msgid "hexedit"
18392 msgstr ""
18393
18394 #. type: verbatim
18395 #: ../fish/guestfish-commands.pod:140
18396 #, no-wrap
18397 msgid ""
18398 " hexedit <filename|device>\n"
18399 " hexedit <filename|device> <max>\n"
18400 " hexedit <filename|device> <start> <max>\n"
18401 "\n"
18402 msgstr ""
18403
18404 #. type: textblock
18405 #: ../fish/guestfish-commands.pod:144
18406 msgid ""
18407 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18408 "device."
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish-commands.pod:147
18413 msgid ""
18414 "This command works by downloading potentially the whole file or device, "
18415 "editing it locally, then uploading it.  If the file or device is large, you "
18416 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18417 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18418 "usual modifiers allowed such as C<1M> (1 megabyte)."
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish-commands.pod:154
18423 msgid "For example to edit the first few sectors of a disk you might do:"
18424 msgstr ""
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish-commands.pod:157
18428 #, no-wrap
18429 msgid ""
18430 " hexedit /dev/sda 1M\n"
18431 "\n"
18432 msgstr ""
18433
18434 #. type: textblock
18435 #: ../fish/guestfish-commands.pod:159
18436 msgid ""
18437 "which would allow you to edit anywhere within the first megabyte of the "
18438 "disk."
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fish/guestfish-commands.pod:162
18443 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18444 msgstr ""
18445
18446 #. type: verbatim
18447 #: ../fish/guestfish-commands.pod:164
18448 #, no-wrap
18449 msgid ""
18450 " hexedit /dev/sda1 0x400 0x400\n"
18451 "\n"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish-commands.pod:166
18456 msgid "(assuming the superblock is in the standard location)."
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish-commands.pod:168
18461 msgid ""
18462 "This command requires the external L<hexedit(1)> program.  You can specify "
18463 "another program to use by setting the C<HEXEDITOR> environment variable."
18464 msgstr ""
18465
18466 #. type: textblock
18467 #: ../fish/guestfish-commands.pod:172
18468 msgid "See also L</hexdump>."
18469 msgstr ""
18470
18471 #. type: =head2
18472 #: ../fish/guestfish-commands.pod:174
18473 msgid "lcd"
18474 msgstr ""
18475
18476 #. type: verbatim
18477 #: ../fish/guestfish-commands.pod:176
18478 #, no-wrap
18479 msgid ""
18480 " lcd directory\n"
18481 "\n"
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../fish/guestfish-commands.pod:178
18486 msgid "Change the local directory, ie. the current directory of guestfish itself."
18487 msgstr ""
18488
18489 #. type: textblock
18490 #: ../fish/guestfish-commands.pod:181
18491 msgid "Note that C<!cd> won't do what you might expect."
18492 msgstr ""
18493
18494 #. type: =head2
18495 #: ../fish/guestfish-commands.pod:183
18496 msgid "list-events"
18497 msgstr ""
18498
18499 #. type: verbatim
18500 #: ../fish/guestfish-commands.pod:185
18501 #, no-wrap
18502 msgid ""
18503 " list-events\n"
18504 "\n"
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../fish/guestfish-commands.pod:187
18509 msgid "List the event handlers registered using the guestfish C<event> command."
18510 msgstr ""
18511
18512 #. type: =head2
18513 #: ../fish/guestfish-commands.pod:190
18514 msgid "man"
18515 msgstr ""
18516
18517 #. type: =head2
18518 #: ../fish/guestfish-commands.pod:192
18519 msgid "manual"
18520 msgstr ""
18521
18522 #. type: verbatim
18523 #: ../fish/guestfish-commands.pod:194
18524 #, no-wrap
18525 msgid ""
18526 "  man\n"
18527 "\n"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish-commands.pod:196
18532 msgid "Opens the manual page for guestfish."
18533 msgstr ""
18534
18535 #. type: =head2
18536 #: ../fish/guestfish-commands.pod:198
18537 msgid "more"
18538 msgstr ""
18539
18540 #. type: =head2
18541 #: ../fish/guestfish-commands.pod:200
18542 msgid "less"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../fish/guestfish-commands.pod:202
18547 #, no-wrap
18548 msgid ""
18549 " more filename\n"
18550 "\n"
18551 msgstr ""
18552
18553 #. type: verbatim
18554 #: ../fish/guestfish-commands.pod:204
18555 #, no-wrap
18556 msgid ""
18557 " less filename\n"
18558 "\n"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish-commands.pod:206
18563 msgid "This is used to view a file."
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish-commands.pod:208
18568 msgid ""
18569 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18570 "C<less> you will get the C<less> command specifically."
18571 msgstr ""
18572
18573 #. type: =head2
18574 #: ../fish/guestfish-commands.pod:211
18575 msgid "reopen"
18576 msgstr ""
18577
18578 #. type: verbatim
18579 #: ../fish/guestfish-commands.pod:213
18580 #, no-wrap
18581 msgid ""
18582 "  reopen\n"
18583 "\n"
18584 msgstr ""
18585
18586 #. type: textblock
18587 #: ../fish/guestfish-commands.pod:215
18588 msgid ""
18589 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18590 "normally, because the handle is closed properly when guestfish exits.  "
18591 "However this is occasionally useful for testing."
18592 msgstr ""
18593
18594 #. type: =head2
18595 #: ../fish/guestfish-commands.pod:219
18596 msgid "setenv"
18597 msgstr ""
18598
18599 #. type: verbatim
18600 #: ../fish/guestfish-commands.pod:221
18601 #, no-wrap
18602 msgid ""
18603 "  setenv VAR value\n"
18604 "\n"
18605 msgstr ""
18606
18607 #. type: textblock
18608 #: ../fish/guestfish-commands.pod:223
18609 msgid "Set the environment variable C<VAR> to the string C<value>."
18610 msgstr ""
18611
18612 #. type: textblock
18613 #: ../fish/guestfish-commands.pod:225
18614 msgid "To print the value of an environment variable use a shell command such as:"
18615 msgstr ""
18616
18617 #. type: verbatim
18618 #: ../fish/guestfish-commands.pod:228
18619 #, no-wrap
18620 msgid ""
18621 " !echo $VAR\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: =head2
18626 #: ../fish/guestfish-commands.pod:230
18627 msgid "sparse"
18628 msgstr ""
18629
18630 #. type: verbatim
18631 #: ../fish/guestfish-commands.pod:232
18632 #, no-wrap
18633 msgid ""
18634 " sparse filename size\n"
18635 "\n"
18636 msgstr ""
18637
18638 #. type: textblock
18639 #: ../fish/guestfish-commands.pod:234
18640 msgid ""
18641 "This creates an empty sparse file of the given size, and then adds so it can "
18642 "be further examined."
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish-commands.pod:237
18647 msgid ""
18648 "In all respects it works the same as the L</alloc> command, except that the "
18649 "image file is allocated sparsely, which means that disk blocks are not "
18650 "assigned to the file until they are needed.  Sparse disk files only use "
18651 "space when written to, but they are slower and there is a danger you could "
18652 "run out of real disk space during a write operation."
18653 msgstr ""
18654
18655 #. type: =head2
18656 #: ../fish/guestfish-commands.pod:247
18657 msgid "supported"
18658 msgstr ""
18659
18660 #. type: verbatim
18661 #: ../fish/guestfish-commands.pod:249
18662 #, no-wrap
18663 msgid ""
18664 " supported\n"
18665 "\n"
18666 msgstr ""
18667
18668 #. type: textblock
18669 #: ../fish/guestfish-commands.pod:251
18670 msgid ""
18671 "This command returns a list of the optional groups known to the daemon, and "
18672 "indicates which ones are supported by this build of the libguestfs "
18673 "appliance."
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fish/guestfish-commands.pod:255
18678 msgid "See also L<guestfs(3)/AVAILABILITY>."
18679 msgstr ""
18680
18681 #. type: =head2
18682 #: ../fish/guestfish-commands.pod:257
18683 msgid "time"
18684 msgstr ""
18685
18686 #. type: verbatim
18687 #: ../fish/guestfish-commands.pod:259
18688 #, no-wrap
18689 msgid ""
18690 " time command args...\n"
18691 "\n"
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/guestfish-commands.pod:261
18696 msgid ""
18697 "Run the command as usual, but print the elapsed time afterwards.  This can "
18698 "be useful for benchmarking operations."
18699 msgstr ""
18700
18701 #. type: =head2
18702 #: ../fish/guestfish-commands.pod:264
18703 msgid "unsetenv"
18704 msgstr ""
18705
18706 #. type: verbatim
18707 #: ../fish/guestfish-commands.pod:266
18708 #, no-wrap
18709 msgid ""
18710 "  unsetenv VAR\n"
18711 "\n"
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/guestfish-commands.pod:268
18716 msgid "Remove C<VAR> from the environment."
18717 msgstr ""
18718
18719 #. type: textblock
18720 #: ../fish/guestfish.pod:5
18721 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18722 msgstr ""
18723
18724 #. type: verbatim
18725 #: ../fish/guestfish.pod:9
18726 #, no-wrap
18727 msgid ""
18728 " guestfish [--options] [commands]\n"
18729 "\n"
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish.pod:11
18734 #, no-wrap
18735 msgid ""
18736 " guestfish\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: verbatim
18741 #: ../fish/guestfish.pod:13
18742 #, no-wrap
18743 msgid ""
18744 " guestfish [--ro|--rw] -a disk.img\n"
18745 "\n"
18746 msgstr ""
18747
18748 #. type: verbatim
18749 #: ../fish/guestfish.pod:15
18750 #, no-wrap
18751 msgid ""
18752 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18753 "\n"
18754 msgstr ""
18755
18756 #. type: verbatim
18757 #: ../fish/guestfish.pod:17
18758 #, no-wrap
18759 msgid ""
18760 " guestfish -d libvirt-domain\n"
18761 "\n"
18762 msgstr ""
18763
18764 #. type: verbatim
18765 #: ../fish/guestfish.pod:19
18766 #, no-wrap
18767 msgid ""
18768 " guestfish [--ro|--rw] -a disk.img -i\n"
18769 "\n"
18770 msgstr ""
18771
18772 #. type: verbatim
18773 #: ../fish/guestfish.pod:21
18774 #, no-wrap
18775 msgid ""
18776 " guestfish -d libvirt-domain -i\n"
18777 "\n"
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/guestfish.pod:25
18782 msgid ""
18783 "Using guestfish in read/write mode on live virtual machines can be "
18784 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18785 "option to use guestfish safely if the disk image or virtual machine might be "
18786 "live."
18787 msgstr ""
18788
18789 #. type: textblock
18790 #: ../fish/guestfish.pod:32
18791 msgid ""
18792 "Guestfish is a shell and command-line tool for examining and modifying "
18793 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18794 "functionality of the guestfs API, see L<guestfs(3)>."
18795 msgstr ""
18796
18797 #. type: textblock
18798 #: ../fish/guestfish.pod:36
18799 msgid ""
18800 "Guestfish gives you structured access to the libguestfs API, from shell "
18801 "scripts or the command line or interactively.  If you want to rescue a "
18802 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18803 "command."
18804 msgstr ""
18805
18806 #. type: =head2
18807 #: ../fish/guestfish.pod:43
18808 msgid "As an interactive shell"
18809 msgstr ""
18810
18811 #. type: verbatim
18812 #: ../fish/guestfish.pod:45
18813 #, no-wrap
18814 msgid ""
18815 " $ guestfish\n"
18816 " \n"
18817 msgstr ""
18818
18819 #. type: verbatim
18820 #: ../fish/guestfish.pod:47
18821 #, no-wrap
18822 msgid ""
18823 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18824 " editing virtual machine filesystems.\n"
18825 " \n"
18826 msgstr ""
18827
18828 #. type: verbatim
18829 #: ../fish/guestfish.pod:50
18830 #, no-wrap
18831 msgid ""
18832 " Type: 'help' for a list of commands\n"
18833 "       'man' to read the manual\n"
18834 "       'quit' to quit the shell\n"
18835 " \n"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/guestfish.pod:54
18840 #, no-wrap
18841 msgid ""
18842 " ><fs> add-ro disk.img\n"
18843 " ><fs> run\n"
18844 " ><fs> list-filesystems\n"
18845 " /dev/sda1: ext4\n"
18846 " /dev/vg_guest/lv_root: ext4\n"
18847 " /dev/vg_guest/lv_swap: swap\n"
18848 " ><fs> mount /dev/vg_guest/lv_root /\n"
18849 " ><fs> cat /etc/fstab\n"
18850 " # /etc/fstab\n"
18851 " # Created by anaconda\n"
18852 " [...]\n"
18853 " ><fs> exit\n"
18854 "\n"
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish.pod:67
18859 msgid "From shell scripts"
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/guestfish.pod:69
18864 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18865 msgstr ""
18866
18867 #. type: verbatim
18868 #: ../fish/guestfish.pod:71
18869 #, no-wrap
18870 msgid ""
18871 " guestfish <<_EOF_\n"
18872 " add disk.img\n"
18873 " run\n"
18874 " mount /dev/vg_guest/lv_root /\n"
18875 " write /etc/motd \"Welcome, new users\"\n"
18876 " _EOF_\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:78
18882 msgid "List the LVM logical volumes in a disk image:"
18883 msgstr ""
18884
18885 #. type: verbatim
18886 #: ../fish/guestfish.pod:80
18887 #, no-wrap
18888 msgid ""
18889 " guestfish -a disk.img --ro <<_EOF_\n"
18890 " run\n"
18891 " lvs\n"
18892 " _EOF_\n"
18893 "\n"
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/guestfish.pod:85
18898 msgid "List all the filesystems in a disk image:"
18899 msgstr ""
18900
18901 #. type: verbatim
18902 #: ../fish/guestfish.pod:87
18903 #, no-wrap
18904 msgid ""
18905 " guestfish -a disk.img --ro <<_EOF_\n"
18906 " run\n"
18907 " list-filesystems\n"
18908 " _EOF_\n"
18909 "\n"
18910 msgstr ""
18911
18912 #. type: =head2
18913 #: ../fish/guestfish.pod:92
18914 msgid "On one command line"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18919 msgid "Update C</etc/resolv.conf> in a guest:"
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../fish/guestfish.pod:96
18924 #, no-wrap
18925 msgid ""
18926 " guestfish \\\n"
18927 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18928 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18929 "\n"
18930 msgstr ""
18931
18932 #. type: textblock
18933 #: ../fish/guestfish.pod:100
18934 msgid "Edit C</boot/grub/grub.conf> interactively:"
18935 msgstr ""
18936
18937 #. type: verbatim
18938 #: ../fish/guestfish.pod:102
18939 #, no-wrap
18940 msgid ""
18941 " guestfish --rw --add disk.img \\\n"
18942 "   --mount /dev/vg_guest/lv_root \\\n"
18943 "   --mount /dev/sda1:/boot \\\n"
18944 "   edit /boot/grub/grub.conf\n"
18945 "\n"
18946 msgstr ""
18947
18948 #. type: =head2
18949 #: ../fish/guestfish.pod:107
18950 msgid "Mount disks automatically"
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../fish/guestfish.pod:109
18955 msgid ""
18956 "Use the I<-i> option to automatically mount the disks from a virtual "
18957 "machine:"
18958 msgstr ""
18959
18960 #. type: verbatim
18961 #: ../fish/guestfish.pod:112
18962 #, no-wrap
18963 msgid ""
18964 " guestfish --ro -a disk.img -i cat /etc/group\n"
18965 "\n"
18966 msgstr ""
18967
18968 #. type: verbatim
18969 #: ../fish/guestfish.pod:114
18970 #, no-wrap
18971 msgid ""
18972 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18973 "\n"
18974 msgstr ""
18975
18976 #. type: textblock
18977 #: ../fish/guestfish.pod:116
18978 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18979 msgstr ""
18980
18981 #. type: verbatim
18982 #: ../fish/guestfish.pod:118
18983 #, no-wrap
18984 msgid ""
18985 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18986 "\n"
18987 msgstr ""
18988
18989 #. type: =head2
18990 #: ../fish/guestfish.pod:120
18991 msgid "As a script interpreter"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:122
18996 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18997 msgstr ""
18998
18999 #. type: verbatim
19000 #: ../fish/guestfish.pod:124
19001 #, no-wrap
19002 msgid ""
19003 " #!/usr/bin/guestfish -f\n"
19004 " sparse test1.img 100M\n"
19005 " run\n"
19006 " part-disk /dev/sda mbr\n"
19007 " mkfs ext2 /dev/sda1\n"
19008 "\n"
19009 msgstr ""
19010
19011 #. type: =head2
19012 #: ../fish/guestfish.pod:130
19013 msgid "Start with a prepared disk"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:132
19018 msgid ""
19019 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19020 "single ext2-formatted partition:"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19025 #, no-wrap
19026 msgid ""
19027 " guestfish -N fs\n"
19028 "\n"
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:137
19033 msgid "To list what is available do:"
19034 msgstr ""
19035
19036 #. type: verbatim
19037 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19038 #, no-wrap
19039 msgid ""
19040 " guestfish -N help | less\n"
19041 "\n"
19042 msgstr ""
19043
19044 #. type: =head2
19045 #: ../fish/guestfish.pod:141
19046 msgid "Remote control"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish.pod:143
19051 #, no-wrap
19052 msgid ""
19053 " eval \"`guestfish --listen`\"\n"
19054 " guestfish --remote add-ro disk.img\n"
19055 " guestfish --remote run\n"
19056 " guestfish --remote lvs\n"
19057 "\n"
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:154
19062 msgid "Displays general help on options."
19063 msgstr ""
19064
19065 #. type: =item
19066 #: ../fish/guestfish.pod:158
19067 msgid "B<--cmd-help>"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:160
19072 msgid "Lists all available guestfish commands."
19073 msgstr ""
19074
19075 #. type: =item
19076 #: ../fish/guestfish.pod:162
19077 msgid "B<-h cmd>"
19078 msgstr ""
19079
19080 #. type: =item
19081 #: ../fish/guestfish.pod:164
19082 msgid "B<--cmd-help cmd>"
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:166
19087 msgid "Displays detailed help on a single command C<cmd>."
19088 msgstr ""
19089
19090 #. type: =item
19091 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19092 msgid "B<-a image>"
19093 msgstr ""
19094
19095 #. type: =item
19096 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19097 msgid "B<--add image>"
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish.pod:172
19102 msgid "Add a block device or virtual machine image to the shell."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:177
19107 msgid ""
19108 "Using this flag is mostly equivalent to using the C<add> command, with "
19109 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19110 "the I<--format=...> flag was given."
19111 msgstr ""
19112
19113 #. type: textblock
19114 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19115 msgid ""
19116 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19117 "URI to use.  The default is to use the default libvirt connection."
19118 msgstr ""
19119
19120 #. type: =item
19121 #: ../fish/guestfish.pod:189
19122 msgid "B<--csh>"
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fish/guestfish.pod:191
19127 msgid ""
19128 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19129 "section L</REMOTE CONTROL AND CSH> below."
19130 msgstr ""
19131
19132 #. type: =item
19133 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19134 msgid "B<-d libvirt-domain>"
19135 msgstr ""
19136
19137 #. type: =item
19138 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19139 msgid "B<--domain libvirt-domain>"
19140 msgstr ""
19141
19142 #. type: textblock
19143 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19144 msgid ""
19145 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19146 "used, then any libvirt domain can be used.  However in write mode, only "
19147 "libvirt domains which are shut down can be named here."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19152 msgid "Domain UUIDs can be used instead of names."
19153 msgstr ""
19154
19155 #. type: textblock
19156 #: ../fish/guestfish.pod:204
19157 msgid ""
19158 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19159 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19160 "if the I<--format:...> flag was given."
19161 msgstr ""
19162
19163 #. type: =item
19164 #: ../fish/guestfish.pod:208
19165 msgid "B<-D>"
19166 msgstr ""
19167
19168 #. type: =item
19169 #: ../fish/guestfish.pod:210
19170 msgid "B<--no-dest-paths>"
19171 msgstr ""
19172
19173 #. type: textblock
19174 #: ../fish/guestfish.pod:212
19175 msgid ""
19176 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19177 "to hit the tab key to complete paths on the guest filesystem, but this "
19178 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19179 "allow this feature to be disabled."
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19184 msgid ""
19185 "When prompting for keys and passphrases, guestfish normally turns echoing "
19186 "off so you cannot see what you are typing.  If you are not worried about "
19187 "Tempest attacks and there is no one else in the room you can specify this "
19188 "flag to see what you are typing."
19189 msgstr ""
19190
19191 #. type: =item
19192 #: ../fish/guestfish.pod:224
19193 msgid "B<-f file>"
19194 msgstr ""
19195
19196 #. type: =item
19197 #: ../fish/guestfish.pod:226
19198 msgid "B<--file file>"
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fish/guestfish.pod:228
19203 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19204 msgstr ""
19205
19206 #. type: verbatim
19207 #: ../fish/guestfish.pod:231
19208 #, no-wrap
19209 msgid ""
19210 " #!/usr/bin/guestfish -f\n"
19211 "\n"
19212 msgstr ""
19213
19214 #. type: verbatim
19215 #: ../fish/guestfish.pod:244
19216 #, no-wrap
19217 msgid ""
19218 " guestfish --format=raw -a disk.img\n"
19219 "\n"
19220 msgstr ""
19221
19222 #. type: verbatim
19223 #: ../fish/guestfish.pod:248
19224 #, no-wrap
19225 msgid ""
19226 " guestfish --format=raw -a disk.img --format -a another.img\n"
19227 "\n"
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:253
19232 msgid ""
19233 "If you have untrusted raw-format guest disk images, you should use this "
19234 "option to specify the disk format.  This avoids a possible security problem "
19235 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19236 msgstr ""
19237
19238 #. type: =item
19239 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19240 msgid "B<--inspector>"
19241 msgstr ""
19242
19243 #. type: textblock
19244 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19245 msgid ""
19246 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19247 "system and mount filesystems as they would be mounted on the real virtual "
19248 "machine."
19249 msgstr ""
19250
19251 #. type: textblock
19252 #: ../fish/guestfish.pod:266
19253 msgid "Typical usage is either:"
19254 msgstr ""
19255
19256 #. type: verbatim
19257 #: ../fish/guestfish.pod:268
19258 #, no-wrap
19259 msgid ""
19260 " guestfish -d myguest -i\n"
19261 "\n"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:270
19266 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19267 msgstr ""
19268
19269 #. type: verbatim
19270 #: ../fish/guestfish.pod:272
19271 #, no-wrap
19272 msgid ""
19273 " guestfish --ro -d myguest -i\n"
19274 "\n"
19275 msgstr ""
19276
19277 #. type: textblock
19278 #: ../fish/guestfish.pod:274
19279 msgid "(for active domains, readonly), or specify the block device directly:"
19280 msgstr ""
19281
19282 #. type: verbatim
19283 #: ../fish/guestfish.pod:276
19284 #, no-wrap
19285 msgid ""
19286 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:278
19292 msgid ""
19293 "Note that the command line syntax changed slightly over older versions of "
19294 "guestfish.  You can still use the old syntax:"
19295 msgstr ""
19296
19297 #. type: verbatim
19298 #: ../fish/guestfish.pod:281
19299 #, no-wrap
19300 msgid ""
19301 " guestfish [--ro] -i disk.img\n"
19302 "\n"
19303 msgstr ""
19304
19305 #. type: verbatim
19306 #: ../fish/guestfish.pod:283
19307 #, no-wrap
19308 msgid ""
19309 " guestfish [--ro] -i libvirt-domain\n"
19310 "\n"
19311 msgstr ""
19312
19313 #. type: textblock
19314 #: ../fish/guestfish.pod:285
19315 msgid ""
19316 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19317 "then using other commands to mount the filesystems that were found."
19318 msgstr ""
19319
19320 #. type: =item
19321 #: ../fish/guestfish.pod:294
19322 msgid "B<--listen>"
19323 msgstr ""
19324
19325 #. type: textblock
19326 #: ../fish/guestfish.pod:296
19327 msgid ""
19328 "Fork into the background and listen for remote commands.  See section "
19329 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19330 msgstr ""
19331
19332 #. type: =item
19333 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19334 msgid "B<--live>"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19339 msgid ""
19340 "Connect to a live virtual machine.  (Experimental, see "
19341 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19342 msgstr ""
19343
19344 #. type: =item
19345 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19346 msgid "B<-m dev[:mountpoint[:options]]>"
19347 msgstr ""
19348
19349 #. type: =item
19350 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19351 msgid "B<--mount dev[:mountpoint[:options]]>"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:308
19356 msgid "Mount the named partition or logical volume on the given mountpoint."
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:310
19361 msgid "If the mountpoint is omitted, it defaults to C</>."
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../fish/guestfish.pod:312
19366 msgid "You have to mount something on C</> before most commands will work."
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:314
19371 msgid ""
19372 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19373 "launched."
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:317
19378 msgid ""
19379 "If you don't know what filesystems a disk image contains, you can either run "
19380 "guestfish without this option, then list the partitions, filesystems and LVs "
19381 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19382 "commands), or you can use the L<virt-filesystems(1)> program."
19383 msgstr ""
19384
19385 #. type: textblock
19386 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19387 msgid ""
19388 "The third (and rarely used) part of the mount parameter is the list of mount "
19389 "options used to mount the underlying filesystem.  If this is not given, then "
19390 "the mount options are either the empty string or C<ro> (the latter if the "
19391 "I<--ro> flag is used).  By specifying the mount options, you override this "
19392 "default choice.  Probably the only time you would use this is to enable ACLs "
19393 "and/or extended attributes if the filesystem can support them:"
19394 msgstr ""
19395
19396 #. type: verbatim
19397 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19398 #, no-wrap
19399 msgid ""
19400 " -m /dev/sda1:/:acl,user_xattr\n"
19401 "\n"
19402 msgstr ""
19403
19404 #. type: textblock
19405 #: ../fish/guestfish.pod:333
19406 msgid "Using this flag is equivalent to using the C<mount-options> command."
19407 msgstr ""
19408
19409 #. type: =item
19410 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:441
19411 msgid "B<-n>"
19412 msgstr ""
19413
19414 #. type: =item
19415 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19416 msgid "B<--no-sync>"
19417 msgstr ""
19418
19419 #. type: textblock
19420 #: ../fish/guestfish.pod:339
19421 msgid ""
19422 "Disable autosync.  This is enabled by default.  See the discussion of "
19423 "autosync in the L<guestfs(3)> manpage."
19424 msgstr ""
19425
19426 #. type: =item
19427 #: ../fish/guestfish.pod:342
19428 msgid "B<-N type>"
19429 msgstr ""
19430
19431 #. type: =item
19432 #: ../fish/guestfish.pod:344
19433 msgid "B<--new type>"
19434 msgstr ""
19435
19436 #. type: =item
19437 #: ../fish/guestfish.pod:346
19438 msgid "B<-N help>"
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../fish/guestfish.pod:348
19443 msgid ""
19444 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19445 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19446 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19447 "IMAGES> below."
19448 msgstr ""
19449
19450 #. type: =item
19451 #: ../fish/guestfish.pod:353
19452 msgid "B<--progress-bars>"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/guestfish.pod:355
19457 msgid "Enable progress bars, even when guestfish is used non-interactively."
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:357
19462 msgid ""
19463 "Progress bars are enabled by default when guestfish is used as an "
19464 "interactive shell."
19465 msgstr ""
19466
19467 #. type: =item
19468 #: ../fish/guestfish.pod:360
19469 msgid "B<--no-progress-bars>"
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:362
19474 msgid "Disable progress bars."
19475 msgstr ""
19476
19477 #. type: =item
19478 #: ../fish/guestfish.pod:364
19479 msgid "B<--remote[=pid]>"
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:366
19484 msgid ""
19485 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19486 "CONTROL GUESTFISH OVER A SOCKET> below."
19487 msgstr ""
19488
19489 #. type: =item
19490 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:189
19491 msgid "B<-r>"
19492 msgstr ""
19493
19494 #. type: =item
19495 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:191
19496 msgid "B<--ro>"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:373
19501 msgid ""
19502 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19503 "mounts are done read-only."
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19508 msgid ""
19509 "The option must always be used if the disk image or virtual machine might be "
19510 "running, and is generally recommended in cases where you don't need write "
19511 "access to the disk."
19512 msgstr ""
19513
19514 #. type: textblock
19515 #: ../fish/guestfish.pod:380
19516 msgid ""
19517 "Note that prepared disk images created with I<-N> are not affected by this "
19518 "option.  Also commands like C<add> are not affected - you have to specify "
19519 "the C<readonly:true> option explicitly if you need it."
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../fish/guestfish.pod:384
19524 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19525 msgstr ""
19526
19527 #. type: =item
19528 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:201
19529 msgid "B<--selinux>"
19530 msgstr ""
19531
19532 #. type: textblock
19533 #: ../fish/guestfish.pod:388
19534 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:394
19539 msgid ""
19540 "Enable very verbose messages.  This is particularly useful if you find a "
19541 "bug."
19542 msgstr ""
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:401
19546 msgid "Display the guestfish / libguestfs version number and exit."
19547 msgstr ""
19548
19549 #. type: =item
19550 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:231
19551 msgid "B<-w>"
19552 msgstr ""
19553
19554 #. type: =item
19555 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:233
19556 msgid "B<--rw>"
19557 msgstr ""
19558
19559 #. type: textblock
19560 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19561 msgid ""
19562 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19563 "mounts are done read-write."
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:410
19568 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:414
19573 msgid "Echo each command before executing it."
19574 msgstr ""
19575
19576 #. type: =head1
19577 #: ../fish/guestfish.pod:418
19578 msgid "COMMANDS ON COMMAND LINE"
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:420
19583 msgid "Any additional (non-option) arguments are treated as commands to execute."
19584 msgstr ""
19585
19586 #. type: textblock
19587 #: ../fish/guestfish.pod:423
19588 msgid ""
19589 "Commands to execute should be separated by a colon (C<:>), where the colon "
19590 "is a separate parameter.  Thus:"
19591 msgstr ""
19592
19593 #. type: verbatim
19594 #: ../fish/guestfish.pod:426
19595 #, no-wrap
19596 msgid ""
19597 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19598 "\n"
19599 msgstr ""
19600
19601 #. type: textblock
19602 #: ../fish/guestfish.pod:428
19603 msgid ""
19604 "If there are no additional arguments, then we enter a shell, either an "
19605 "interactive shell with a prompt (if the input is a terminal) or a "
19606 "non-interactive shell."
19607 msgstr ""
19608
19609 #. type: textblock
19610 #: ../fish/guestfish.pod:432
19611 msgid ""
19612 "In either command line mode or non-interactive shell, the first command that "
19613 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19614 "prompt) if a command fails, you can continue to enter commands."
19615 msgstr ""
19616
19617 #. type: =head1
19618 #: ../fish/guestfish.pod:437
19619 msgid "USING launch (OR run)"
19620 msgstr ""
19621
19622 #. type: textblock
19623 #: ../fish/guestfish.pod:439
19624 msgid ""
19625 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19626 "then launch it, then mount any disks you need, and finally issue "
19627 "actions/commands.  So the general order of the day is:"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../fish/guestfish.pod:447
19632 msgid "add or -a/--add"
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:451
19637 msgid "launch (aka run)"
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../fish/guestfish.pod:455
19642 msgid "mount or -m/--mount"
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/guestfish.pod:459
19647 msgid "any other commands"
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:463
19652 msgid ""
19653 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19654 "guest before mounting or performing any other commands."
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:466
19659 msgid ""
19660 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19661 "I<--new> options were given then C<run> is done automatically, simply "
19662 "because guestfish can't perform the action you asked for without doing this."
19663 msgstr ""
19664
19665 #. type: =head1
19666 #: ../fish/guestfish.pod:471
19667 msgid "OPENING DISKS FOR READ AND WRITE"
19668 msgstr ""
19669
19670 #. type: textblock
19671 #: ../fish/guestfish.pod:473
19672 msgid ""
19673 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19674 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19675 "I<-i> and I<-m> open disk images read-only or for writing."
19676 msgstr ""
19677
19678 #. type: textblock
19679 #: ../fish/guestfish.pod:478
19680 msgid ""
19681 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19682 "opening disk images supplied on the command line for write.  To open a disk "
19683 "image read-only you have to do I<-a image --ro>."
19684 msgstr ""
19685
19686 #. type: textblock
19687 #: ../fish/guestfish.pod:482
19688 msgid ""
19689 "This matters: If you accidentally open a live VM disk image writable then "
19690 "you will cause irreversible disk corruption."
19691 msgstr ""
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:485
19695 msgid ""
19696 "In a future libguestfs we intend to change the default the other way.  Disk "
19697 "images will be opened read-only.  You will have to either specify "
19698 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19699 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19700 "access for disk images specified by those other command line options."
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../fish/guestfish.pod:492
19705 msgid ""
19706 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19707 "which does nothing (it is already the default).  However it is highly "
19708 "recommended that you use this option to indicate that you need write access, "
19709 "and prepare your scripts for the day when this option will be required for "
19710 "write access."
19711 msgstr ""
19712
19713 #. type: textblock
19714 #: ../fish/guestfish.pod:498
19715 msgid ""
19716 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19717 "other libguestfs program apart from guestfish and guestmount."
19718 msgstr ""
19719
19720 #. type: =head1
19721 #: ../fish/guestfish.pod:501
19722 msgid "QUOTING"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:503
19727 msgid ""
19728 "You can quote ordinary parameters using either single or double quotes.  For "
19729 "example:"
19730 msgstr ""
19731
19732 #. type: verbatim
19733 #: ../fish/guestfish.pod:506
19734 #, no-wrap
19735 msgid ""
19736 " add \"file with a space.img\"\n"
19737 "\n"
19738 msgstr ""
19739
19740 #. type: verbatim
19741 #: ../fish/guestfish.pod:508
19742 #, no-wrap
19743 msgid ""
19744 " rm '/file name'\n"
19745 "\n"
19746 msgstr ""
19747
19748 #. type: verbatim
19749 #: ../fish/guestfish.pod:510
19750 #, no-wrap
19751 msgid ""
19752 " rm '/\"'\n"
19753 "\n"
19754 msgstr ""
19755
19756 #. type: textblock
19757 #: ../fish/guestfish.pod:512
19758 msgid ""
19759 "A few commands require a list of strings to be passed.  For these, use a "
19760 "whitespace-separated list, enclosed in quotes.  Strings containing "
19761 "whitespace to be passed through must be enclosed in single quotes.  A "
19762 "literal single quote must be escaped with a backslash."
19763 msgstr ""
19764
19765 #. type: verbatim
19766 #: ../fish/guestfish.pod:517
19767 #, no-wrap
19768 msgid ""
19769 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19770 " command \"/bin/echo 'foo      bar'\"\n"
19771 " command \"/bin/echo \\'foo\\'\"\n"
19772 "\n"
19773 msgstr ""
19774
19775 #. type: =head2
19776 #: ../fish/guestfish.pod:521
19777 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19778 msgstr ""
19779
19780 #. type: textblock
19781 #: ../fish/guestfish.pod:523
19782 msgid ""
19783 "In double-quoted arguments (only) use backslash to insert special "
19784 "characters:"
19785 msgstr ""
19786
19787 #. type: =item
19788 #: ../fish/guestfish.pod:528
19789 msgid "C<\\a>"
19790 msgstr ""
19791
19792 #. type: textblock
19793 #: ../fish/guestfish.pod:530
19794 msgid "Alert (bell) character."
19795 msgstr ""
19796
19797 #. type: =item
19798 #: ../fish/guestfish.pod:532
19799 msgid "C<\\b>"
19800 msgstr ""
19801
19802 #. type: textblock
19803 #: ../fish/guestfish.pod:534
19804 msgid "Backspace character."
19805 msgstr ""
19806
19807 #. type: =item
19808 #: ../fish/guestfish.pod:536
19809 msgid "C<\\f>"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/guestfish.pod:538
19814 msgid "Form feed character."
19815 msgstr ""
19816
19817 #. type: =item
19818 #: ../fish/guestfish.pod:540
19819 msgid "C<\\n>"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../fish/guestfish.pod:542
19824 msgid "Newline character."
19825 msgstr ""
19826
19827 #. type: =item
19828 #: ../fish/guestfish.pod:544
19829 msgid "C<\\r>"
19830 msgstr ""
19831
19832 #. type: textblock
19833 #: ../fish/guestfish.pod:546
19834 msgid "Carriage return character."
19835 msgstr ""
19836
19837 #. type: =item
19838 #: ../fish/guestfish.pod:548
19839 msgid "C<\\t>"
19840 msgstr ""
19841
19842 #. type: textblock
19843 #: ../fish/guestfish.pod:550
19844 msgid "Horizontal tab character."
19845 msgstr ""
19846
19847 #. type: =item
19848 #: ../fish/guestfish.pod:552
19849 msgid "C<\\v>"
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../fish/guestfish.pod:554
19854 msgid "Vertical tab character."
19855 msgstr ""
19856
19857 #. type: =item
19858 #: ../fish/guestfish.pod:556
19859 msgid "C<\\\">"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:558
19864 msgid "A literal double quote character."
19865 msgstr ""
19866
19867 #. type: =item
19868 #: ../fish/guestfish.pod:560
19869 msgid "C<\\ooo>"
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../fish/guestfish.pod:562
19874 msgid ""
19875 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19876 "(unlike C)."
19877 msgstr ""
19878
19879 #. type: =item
19880 #: ../fish/guestfish.pod:565
19881 msgid "C<\\xhh>"
19882 msgstr ""
19883
19884 #. type: textblock
19885 #: ../fish/guestfish.pod:567
19886 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/guestfish.pod:570
19891 msgid ""
19892 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19893 "strings."
19894 msgstr ""
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:573
19898 msgid "C<\\\\>"
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:575
19903 msgid "A literal backslash character."
19904 msgstr ""
19905
19906 #. type: =head1
19907 #: ../fish/guestfish.pod:579
19908 msgid "OPTIONAL ARGUMENTS"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:581
19913 msgid ""
19914 "Some commands take optional arguments.  These arguments appear in this "
19915 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19916 msgstr ""
19917
19918 #. type: verbatim
19919 #: ../fish/guestfish.pod:585
19920 #, no-wrap
19921 msgid ""
19922 " add-drive-opts filename\n"
19923 "\n"
19924 msgstr ""
19925
19926 #. type: verbatim
19927 #: ../fish/guestfish.pod:587
19928 #, no-wrap
19929 msgid ""
19930 " add-drive-opts filename readonly:true\n"
19931 "\n"
19932 msgstr ""
19933
19934 #. type: verbatim
19935 #: ../fish/guestfish.pod:589
19936 #, no-wrap
19937 msgid ""
19938 " add-drive-opts filename format:qcow2 readonly:false\n"
19939 "\n"
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../fish/guestfish.pod:591
19944 msgid ""
19945 "Each optional argument can appear at most once.  All optional arguments must "
19946 "appear after the required ones."
19947 msgstr ""
19948
19949 #. type: =head1
19950 #: ../fish/guestfish.pod:594
19951 msgid "NUMBERS"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:596
19956 msgid "This section applies to all commands which can take integers as parameters."
19957 msgstr ""
19958
19959 #. type: =head2
19960 #: ../fish/guestfish.pod:599
19961 msgid "SIZE SUFFIX"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:601
19966 msgid ""
19967 "When the command takes a parameter measured in bytes, you can use one of the "
19968 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19969 msgstr ""
19970
19971 #. type: =item
19972 #: ../fish/guestfish.pod:607
19973 msgid "B<k> or B<K> or B<KiB>"
19974 msgstr ""
19975
19976 #. type: textblock
19977 #: ../fish/guestfish.pod:609
19978 msgid "The size in kilobytes (multiplied by 1024)."
19979 msgstr ""
19980
19981 #. type: =item
19982 #: ../fish/guestfish.pod:611
19983 msgid "B<KB>"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:613
19988 msgid "The size in SI 1000 byte units."
19989 msgstr ""
19990
19991 #. type: =item
19992 #: ../fish/guestfish.pod:615
19993 msgid "B<M> or B<MiB>"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../fish/guestfish.pod:617
19998 msgid "The size in megabytes (multiplied by 1048576)."
19999 msgstr ""
20000
20001 #. type: =item
20002 #: ../fish/guestfish.pod:619
20003 msgid "B<MB>"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:621
20008 msgid "The size in SI 1000000 byte units."
20009 msgstr ""
20010
20011 #. type: =item
20012 #: ../fish/guestfish.pod:623
20013 msgid "B<G> or B<GiB>"
20014 msgstr ""
20015
20016 #. type: textblock
20017 #: ../fish/guestfish.pod:625
20018 msgid "The size in gigabytes (multiplied by 2**30)."
20019 msgstr ""
20020
20021 #. type: =item
20022 #: ../fish/guestfish.pod:627
20023 msgid "B<GB>"
20024 msgstr ""
20025
20026 #. type: textblock
20027 #: ../fish/guestfish.pod:629
20028 msgid "The size in SI 10**9 byte units."
20029 msgstr ""
20030
20031 #. type: =item
20032 #: ../fish/guestfish.pod:631
20033 msgid "B<T> or B<TiB>"
20034 msgstr ""
20035
20036 #. type: textblock
20037 #: ../fish/guestfish.pod:633
20038 msgid "The size in terabytes (multiplied by 2**40)."
20039 msgstr ""
20040
20041 #. type: =item
20042 #: ../fish/guestfish.pod:635
20043 msgid "B<TB>"
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../fish/guestfish.pod:637
20048 msgid "The size in SI 10**12 byte units."
20049 msgstr ""
20050
20051 #. type: =item
20052 #: ../fish/guestfish.pod:639
20053 msgid "B<P> or B<PiB>"
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:641
20058 msgid "The size in petabytes (multiplied by 2**50)."
20059 msgstr ""
20060
20061 #. type: =item
20062 #: ../fish/guestfish.pod:643
20063 msgid "B<PB>"
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:645
20068 msgid "The size in SI 10**15 byte units."
20069 msgstr ""
20070
20071 #. type: =item
20072 #: ../fish/guestfish.pod:647
20073 msgid "B<E> or B<EiB>"
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fish/guestfish.pod:649
20078 msgid "The size in exabytes (multiplied by 2**60)."
20079 msgstr ""
20080
20081 #. type: =item
20082 #: ../fish/guestfish.pod:651
20083 msgid "B<EB>"
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../fish/guestfish.pod:653
20088 msgid "The size in SI 10**18 byte units."
20089 msgstr ""
20090
20091 #. type: =item
20092 #: ../fish/guestfish.pod:655
20093 msgid "B<Z> or B<ZiB>"
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../fish/guestfish.pod:657
20098 msgid "The size in zettabytes (multiplied by 2**70)."
20099 msgstr ""
20100
20101 #. type: =item
20102 #: ../fish/guestfish.pod:659
20103 msgid "B<ZB>"
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:661
20108 msgid "The size in SI 10**21 byte units."
20109 msgstr ""
20110
20111 #. type: =item
20112 #: ../fish/guestfish.pod:663
20113 msgid "B<Y> or B<YiB>"
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/guestfish.pod:665
20118 msgid "The size in yottabytes (multiplied by 2**80)."
20119 msgstr ""
20120
20121 #. type: =item
20122 #: ../fish/guestfish.pod:667
20123 msgid "B<YB>"
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/guestfish.pod:669
20128 msgid "The size in SI 10**24 byte units."
20129 msgstr ""
20130
20131 #. type: verbatim
20132 #: ../fish/guestfish.pod:675
20133 #, no-wrap
20134 msgid ""
20135 " truncate-size /file 1G\n"
20136 "\n"
20137 msgstr ""
20138
20139 #. type: textblock
20140 #: ../fish/guestfish.pod:677
20141 msgid "would truncate the file to 1 gigabyte."
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../fish/guestfish.pod:679
20146 msgid ""
20147 "Be careful because a few commands take sizes in kilobytes or megabytes "
20148 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
20149 "Adding a suffix will probably not do what you expect."
20150 msgstr ""
20151
20152 #. type: =head2
20153 #: ../fish/guestfish.pod:683
20154 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:685
20159 msgid ""
20160 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20161 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20162 msgstr ""
20163
20164 #. type: verbatim
20165 #: ../fish/guestfish.pod:688
20166 #, no-wrap
20167 msgid ""
20168 " 1234      decimal number 1234\n"
20169 " 02322     octal number, equivalent to decimal 1234\n"
20170 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20171 "\n"
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../fish/guestfish.pod:692
20176 msgid ""
20177 "When using the C<chmod> command, you almost always want to specify an octal "
20178 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20179 "L<chmod(1)> program):"
20180 msgstr ""
20181
20182 #. type: verbatim
20183 #: ../fish/guestfish.pod:696
20184 #, no-wrap
20185 msgid ""
20186 " chmod 0777 /public  # OK\n"
20187 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20188 "\n"
20189 msgstr ""
20190
20191 #. type: textblock
20192 #: ../fish/guestfish.pod:699
20193 msgid ""
20194 "Commands that return numbers usually print them in decimal, but some "
20195 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20196 "octal, preceeded by C<0>)."
20197 msgstr ""
20198
20199 #. type: =head1
20200 #: ../fish/guestfish.pod:703
20201 msgid "WILDCARDS AND GLOBBING"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fish/guestfish.pod:705
20206 msgid ""
20207 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20208 "(globbing) by default.  So for example the following will not do what you "
20209 "expect:"
20210 msgstr ""
20211
20212 #. type: verbatim
20213 #: ../fish/guestfish.pod:709
20214 #, no-wrap
20215 msgid ""
20216 " rm-rf /home/*\n"
20217 "\n"
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:711
20222 msgid ""
20223 "Assuming you don't have a directory called literally C</home/*> then the "
20224 "above command will return an error."
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:714
20229 msgid "To perform wildcard expansion, use the C<glob> command."
20230 msgstr ""
20231
20232 #. type: verbatim
20233 #: ../fish/guestfish.pod:716
20234 #, no-wrap
20235 msgid ""
20236 " glob rm-rf /home/*\n"
20237 "\n"
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:718
20242 msgid ""
20243 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20244 "many times), equivalent to:"
20245 msgstr ""
20246
20247 #. type: verbatim
20248 #: ../fish/guestfish.pod:721
20249 #, no-wrap
20250 msgid ""
20251 " rm-rf /home/jim\n"
20252 " rm-rf /home/joe\n"
20253 " rm-rf /home/mary\n"
20254 "\n"
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:725
20259 msgid "C<glob> only works on simple guest paths and not on device names."
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/guestfish.pod:727
20264 msgid ""
20265 "If you have several parameters, each containing a wildcard, then glob will "
20266 "perform a Cartesian product."
20267 msgstr ""
20268
20269 #. type: =head1
20270 #: ../fish/guestfish.pod:730
20271 msgid "COMMENTS"
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../fish/guestfish.pod:732
20276 msgid ""
20277 "Any line which starts with a I<#> character is treated as a comment and "
20278 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20279 "a command.  For example:"
20280 msgstr ""
20281
20282 #. type: verbatim
20283 #: ../fish/guestfish.pod:736
20284 #, no-wrap
20285 msgid ""
20286 " # this is a comment\n"
20287 "         # this is a comment\n"
20288 " foo # NOT a comment\n"
20289 "\n"
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:740
20294 msgid "Blank lines are also ignored."
20295 msgstr ""
20296
20297 #. type: =head1
20298 #: ../fish/guestfish.pod:742
20299 msgid "RUNNING COMMANDS LOCALLY"
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fish/guestfish.pod:744
20304 msgid ""
20305 "Any line which starts with a I<!> character is treated as a command sent to "
20306 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../fish/guestfish.pod:748
20311 #, no-wrap
20312 msgid ""
20313 " !mkdir local\n"
20314 " tgz-out /remote local/remote-data.tar.gz\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fish/guestfish.pod:751
20320 msgid ""
20321 "will create a directory C<local> on the host, and then export the contents "
20322 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20323 "(See C<tgz-out>)."
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../fish/guestfish.pod:755
20328 msgid ""
20329 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20330 "effect, due to the way that subprocesses work in Unix."
20331 msgstr ""
20332
20333 #. type: =head2
20334 #: ../fish/guestfish.pod:758
20335 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20336 msgstr ""
20337
20338 #. type: textblock
20339 #: ../fish/guestfish.pod:760
20340 msgid ""
20341 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20342 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20343 "and executed as guestfish commands."
20344 msgstr ""
20345
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:764
20348 msgid ""
20349 "Thus you can use shell script to construct arbitrary guestfish commands "
20350 "which are then parsed by guestfish."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fish/guestfish.pod:767
20355 msgid ""
20356 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20357 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20358 "if we use a shell script to create the guestfish commands for us:"
20359 msgstr ""
20360
20361 #. type: verbatim
20362 #: ../fish/guestfish.pod:772
20363 #, no-wrap
20364 msgid ""
20365 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20366 "\n"
20367 msgstr ""
20368
20369 #. type: textblock
20370 #: ../fish/guestfish.pod:774
20371 msgid "or with names like C</foo.001>:"
20372 msgstr ""
20373
20374 #. type: verbatim
20375 #: ../fish/guestfish.pod:776
20376 #, no-wrap
20377 msgid ""
20378 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20379 "\n"
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:778
20384 msgid ""
20385 "When using guestfish interactively it can be helpful to just run the shell "
20386 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20387 "ordinary I<!> local command), see what guestfish commands it would run, and "
20388 "when you are happy with those prepend the C<E<lt>> character to run the "
20389 "guestfish commands for real."
20390 msgstr ""
20391
20392 #. type: =head1
20393 #: ../fish/guestfish.pod:784
20394 msgid "PIPES"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:786
20399 msgid ""
20400 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20401 "command (a guestfish command) to the second command (any host command).  For "
20402 "example:"
20403 msgstr ""
20404
20405 #. type: verbatim
20406 #: ../fish/guestfish.pod:790
20407 #, no-wrap
20408 msgid ""
20409 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20410 "\n"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:792
20415 msgid ""
20416 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20417 "program).  The above command would list all accounts in the guest filesystem "
20418 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20419 msgstr ""
20420
20421 #. type: verbatim
20422 #: ../fish/guestfish.pod:797
20423 #, no-wrap
20424 msgid ""
20425 " hexdump /bin/ls | head\n"
20426 " list-devices | tail -1\n"
20427 " tgz-out / - | tar ztf -\n"
20428 "\n"
20429 msgstr ""
20430
20431 #. type: textblock
20432 #: ../fish/guestfish.pod:801
20433 msgid ""
20434 "The space before the pipe symbol is required, any space after the pipe "
20435 "symbol is optional.  Everything after the pipe symbol is just passed "
20436 "straight to the host shell, so it can contain redirections, globs and "
20437 "anything else that makes sense on the host side."
20438 msgstr ""
20439
20440 #. type: textblock
20441 #: ../fish/guestfish.pod:806
20442 msgid ""
20443 "To use a literal argument which begins with a pipe symbol, you have to quote "
20444 "it, eg:"
20445 msgstr ""
20446
20447 #. type: verbatim
20448 #: ../fish/guestfish.pod:809
20449 #, no-wrap
20450 msgid ""
20451 " echo \"|\"\n"
20452 "\n"
20453 msgstr ""
20454
20455 #. type: =head1
20456 #: ../fish/guestfish.pod:811
20457 msgid "HOME DIRECTORIES"
20458 msgstr ""
20459
20460 #. type: textblock
20461 #: ../fish/guestfish.pod:813
20462 msgid ""
20463 "If a parameter starts with the character C<~> then the tilde may be expanded "
20464 "as a home directory path (either C<~> for the current user's home directory, "
20465 "or C<~user> for another user)."
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:817
20470 msgid ""
20471 "Note that home directory expansion happens for users known I<on the host>, "
20472 "not in the guest filesystem."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fish/guestfish.pod:820
20477 msgid ""
20478 "To use a literal argument which begins with a tilde, you have to quote it, "
20479 "eg:"
20480 msgstr ""
20481
20482 #. type: verbatim
20483 #: ../fish/guestfish.pod:823
20484 #, no-wrap
20485 msgid ""
20486 " echo \"~\"\n"
20487 "\n"
20488 msgstr ""
20489
20490 #. type: =head2
20491 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20492 msgid "ENCRYPTED DISKS"
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/guestfish.pod:827
20497 msgid ""
20498 "Libguestfs has some support for Linux guests encrypted according to the "
20499 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20500 "disk encryption systems used by modern Linux guests.  Currently only "
20501 "LVM-on-LUKS is supported."
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../fish/guestfish.pod:832
20506 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20507 msgstr ""
20508
20509 #. type: verbatim
20510 #: ../fish/guestfish.pod:834
20511 #, no-wrap
20512 msgid ""
20513 " ><fs> vfs-type /dev/sda2\n"
20514 " crypto_LUKS\n"
20515 "\n"
20516 msgstr ""
20517
20518 #. type: textblock
20519 #: ../fish/guestfish.pod:837
20520 msgid ""
20521 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20522 "device called C</dev/mapper/luksdev>."
20523 msgstr ""
20524
20525 #. type: verbatim
20526 #: ../fish/guestfish.pod:840
20527 #, no-wrap
20528 msgid ""
20529 " ><fs> luks-open /dev/sda2 luksdev\n"
20530 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20531 "\n"
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../fish/guestfish.pod:843
20536 msgid ""
20537 "Finally you have to tell LVM to scan for volume groups on the newly created "
20538 "mapper device:"
20539 msgstr ""
20540
20541 #. type: verbatim
20542 #: ../fish/guestfish.pod:846
20543 #, no-wrap
20544 msgid ""
20545 " vgscan\n"
20546 " vg-activate-all true\n"
20547 "\n"
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:849
20552 msgid "The logical volume(s) can now be mounted in the usual way."
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../fish/guestfish.pod:851
20557 msgid ""
20558 "Before closing a LUKS device you must unmount any logical volumes on it and "
20559 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20560 "one.  Then you can close the mapper device:"
20561 msgstr ""
20562
20563 #. type: verbatim
20564 #: ../fish/guestfish.pod:855
20565 #, no-wrap
20566 msgid ""
20567 " vg-activate false /dev/VG\n"
20568 " luks-close /dev/mapper/luksdev\n"
20569 "\n"
20570 msgstr ""
20571
20572 #. type: textblock
20573 #: ../fish/guestfish.pod:860
20574 msgid ""
20575 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20576 "letters and paths (with some limitations).  The following commands are "
20577 "equivalent:"
20578 msgstr ""
20579
20580 #. type: verbatim
20581 #: ../fish/guestfish.pod:864
20582 #, no-wrap
20583 msgid ""
20584 " file /WINDOWS/system32/config/system.LOG\n"
20585 "\n"
20586 msgstr ""
20587
20588 #. type: verbatim
20589 #: ../fish/guestfish.pod:866
20590 #, no-wrap
20591 msgid ""
20592 " file win:\\windows\\system32\\config\\system.log\n"
20593 "\n"
20594 msgstr ""
20595
20596 #. type: verbatim
20597 #: ../fish/guestfish.pod:868
20598 #, no-wrap
20599 msgid ""
20600 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20601 "\n"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:870
20606 msgid ""
20607 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20608 "where the drive is mounted, prepending that to the path, changing all "
20609 "backslash characters to forward slash, then resolving the result using "
20610 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20611 "then the parameter might be rewritten like this:"
20612 msgstr ""
20613
20614 #. type: verbatim
20615 #: ../fish/guestfish.pod:876
20616 #, no-wrap
20617 msgid ""
20618 " win:e:\\foo\\bar => /e/FOO/bar\n"
20619 "\n"
20620 msgstr ""
20621
20622 #. type: textblock
20623 #: ../fish/guestfish.pod:878
20624 msgid "This only works in argument positions that expect a path."
20625 msgstr ""
20626
20627 #. type: =head1
20628 #: ../fish/guestfish.pod:880
20629 msgid "UPLOADING AND DOWNLOADING FILES"
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../fish/guestfish.pod:882
20634 msgid ""
20635 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20636 "others which upload from or download to a local file, you can use the "
20637 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20638 msgstr ""
20639
20640 #. type: verbatim
20641 #: ../fish/guestfish.pod:886
20642 #, no-wrap
20643 msgid ""
20644 " upload - /foo\n"
20645 "\n"
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../fish/guestfish.pod:888
20650 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../fish/guestfish.pod:891
20655 #, no-wrap
20656 msgid ""
20657 " tar-out /etc - | tar tf -\n"
20658 "\n"
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../fish/guestfish.pod:893
20663 msgid ""
20664 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20665 "command (see L</PIPES>)."
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../fish/guestfish.pod:896
20670 msgid ""
20671 "When using C<-> to read from stdin, the input is read up to the end of "
20672 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20673 "some arbitrary end marker:"
20674 msgstr ""
20675
20676 #. type: verbatim
20677 #: ../fish/guestfish.pod:900
20678 #, no-wrap
20679 msgid ""
20680 " upload -<<END /foo\n"
20681 " input line 1\n"
20682 " input line 2\n"
20683 " input line 3\n"
20684 " END\n"
20685 "\n"
20686 msgstr ""
20687
20688 #. type: textblock
20689 #: ../fish/guestfish.pod:906
20690 msgid ""
20691 "Any string of characters can be used instead of C<END>.  The end marker must "
20692 "appear on a line of its own, without any preceeding or following characters "
20693 "(not even spaces)."
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../fish/guestfish.pod:910
20698 msgid ""
20699 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20700 "upload local files (so-called \"FileIn\" parameters in the generator)."
20701 msgstr ""
20702
20703 #. type: =head1
20704 #: ../fish/guestfish.pod:913
20705 msgid "EXIT ON ERROR BEHAVIOUR"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../fish/guestfish.pod:915
20710 msgid ""
20711 "By default, guestfish will ignore any errors when in interactive mode "
20712 "(ie. taking commands from a human over a tty), and will exit on the first "
20713 "error in non-interactive mode (scripts, commands given on the command line)."
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:920
20718 msgid ""
20719 "If you prefix a command with a I<-> character, then that command will not "
20720 "cause guestfish to exit, even if that (one) command returns an error."
20721 msgstr ""
20722
20723 #. type: =head1
20724 #: ../fish/guestfish.pod:924
20725 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:926
20730 msgid ""
20731 "Guestfish can be remote-controlled over a socket.  This is useful "
20732 "particularly in shell scripts where you want to make several different "
20733 "changes to a filesystem, but you don't want the overhead of starting up a "
20734 "guestfish process each time."
20735 msgstr ""
20736
20737 #. type: textblock
20738 #: ../fish/guestfish.pod:931
20739 msgid "Start a guestfish server process using:"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:933
20744 #, no-wrap
20745 msgid ""
20746 " eval \"`guestfish --listen`\"\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:935
20752 msgid "and then send it commands by doing:"
20753 msgstr ""
20754
20755 #. type: verbatim
20756 #: ../fish/guestfish.pod:937
20757 #, no-wrap
20758 msgid ""
20759 " guestfish --remote cmd [...]\n"
20760 "\n"
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../fish/guestfish.pod:939
20765 msgid "To cause the server to exit, send it the exit command:"
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:943
20770 msgid ""
20771 "Note that the server will normally exit if there is an error in a command.  "
20772 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20773 "BEHAVIOUR>."
20774 msgstr ""
20775
20776 #. type: =head2
20777 #: ../fish/guestfish.pod:947
20778 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:949
20783 msgid ""
20784 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20785 "is how the I<--remote> option knows where to send the commands.  You can "
20786 "have several guestfish listener processes running using:"
20787 msgstr ""
20788
20789 #. type: verbatim
20790 #: ../fish/guestfish.pod:953
20791 #, no-wrap
20792 msgid ""
20793 " eval \"`guestfish --listen`\"\n"
20794 " pid1=$GUESTFISH_PID\n"
20795 " eval \"`guestfish --listen`\"\n"
20796 " pid2=$GUESTFISH_PID\n"
20797 " ...\n"
20798 " guestfish --remote=$pid1 cmd\n"
20799 " guestfish --remote=$pid2 cmd\n"
20800 "\n"
20801 msgstr ""
20802
20803 #. type: =head2
20804 #: ../fish/guestfish.pod:961
20805 msgid "REMOTE CONTROL AND CSH"
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../fish/guestfish.pod:963
20810 msgid ""
20811 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20812 "option:"
20813 msgstr ""
20814
20815 #. type: verbatim
20816 #: ../fish/guestfish.pod:966
20817 #, no-wrap
20818 msgid ""
20819 " eval \"`guestfish --listen --csh`\"\n"
20820 "\n"
20821 msgstr ""
20822
20823 #. type: =head2
20824 #: ../fish/guestfish.pod:968
20825 msgid "REMOTE CONTROL DETAILS"
20826 msgstr ""
20827
20828 #. type: textblock
20829 #: ../fish/guestfish.pod:970
20830 msgid ""
20831 "Remote control happens over a Unix domain socket called "
20832 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20833 "of the process, and C<$PID> is the process ID of the server."
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:974
20838 msgid "Guestfish client and server versions must match exactly."
20839 msgstr ""
20840
20841 #. type: =head2
20842 #: ../fish/guestfish.pod:976
20843 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../fish/guestfish.pod:978
20848 msgid ""
20849 "From Bash, you can use the following code which creates a guestfish "
20850 "instance, correctly quotes the command line, handles failure to start, and "
20851 "cleans up guestfish when the script exits:"
20852 msgstr ""
20853
20854 #. type: verbatim
20855 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20856 #, no-wrap
20857 msgid ""
20858 " #!/bin/bash -\n"
20859 " \n"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../fish/guestfish.pod:986
20864 #, no-wrap
20865 msgid ""
20866 " guestfish[0]=\"guestfish\"\n"
20867 " guestfish[1]=\"--listen\"\n"
20868 " guestfish[2]=\"--ro\"\n"
20869 " guestfish[3]=\"-a\"\n"
20870 " guestfish[4]=\"disk.img\"\n"
20871 " \n"
20872 msgstr ""
20873
20874 #. type: verbatim
20875 #: ../fish/guestfish.pod:992
20876 #, no-wrap
20877 msgid ""
20878 " GUESTFISH_PID=\n"
20879 " eval $(\"${guestfish[@]}\")\n"
20880 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20881 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20882 "     exit 1\n"
20883 " fi\n"
20884 " \n"
20885 msgstr ""
20886
20887 #. type: verbatim
20888 #: ../fish/guestfish.pod:999
20889 #, no-wrap
20890 msgid ""
20891 " cleanup_guestfish ()\n"
20892 " {\n"
20893 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20894 " }\n"
20895 " trap cleanup_guestfish EXIT ERR\n"
20896 " \n"
20897 msgstr ""
20898
20899 #. type: verbatim
20900 #: ../fish/guestfish.pod:1005
20901 #, no-wrap
20902 msgid ""
20903 " guestfish --remote -- run\n"
20904 " \n"
20905 msgstr ""
20906
20907 #. type: verbatim
20908 #: ../fish/guestfish.pod:1007
20909 #, no-wrap
20910 msgid ""
20911 " # ...\n"
20912 "\n"
20913 msgstr ""
20914
20915 #. type: =head2
20916 #: ../fish/guestfish.pod:1009
20917 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fish/guestfish.pod:1011
20922 msgid ""
20923 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20924 "context hangs, ie. don't do (note the backquotes):"
20925 msgstr ""
20926
20927 #. type: verbatim
20928 #: ../fish/guestfish.pod:1014
20929 #, no-wrap
20930 msgid ""
20931 " a=`guestfish --remote run`\n"
20932 "\n"
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../fish/guestfish.pod:1016
20937 msgid ""
20938 "Since the C<run> command produces no output on stdout, this is not useful "
20939 "anyway.  For further information see "
20940 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
20941 msgstr ""
20942
20943 #. type: =head1
20944 #: ../fish/guestfish.pod:1020
20945 msgid "PREPARED DISK IMAGES"
20946 msgstr ""
20947
20948 #. type: textblock
20949 #: ../fish/guestfish.pod:1022
20950 msgid ""
20951 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20952 "preformatted disk images that guestfish can make for you to save typing.  "
20953 "This is particularly useful for testing purposes.  This option is used "
20954 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20955 "can be mixed with I<-a>)."
20956 msgstr ""
20957
20958 #. type: textblock
20959 #: ../fish/guestfish.pod:1028
20960 msgid ""
20961 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20962 "the second and so on.  Existing files in the current directory are "
20963 "I<overwritten>."
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../fish/guestfish.pod:1032
20968 msgid ""
20969 "The type briefly describes how the disk should be sized, partitioned, how "
20970 "filesystem(s) should be created, and how content should be added.  "
20971 "Optionally the type can be followed by extra parameters, separated by C<:> "
20972 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20973 "sparsely-allocated disk, containing a single partition, with the partition "
20974 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20975 "on a 1GB disk instead."
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fish/guestfish.pod:1040
20980 msgid "To list the available types and any extra parameters they take, run:"
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../fish/guestfish.pod:1044
20985 msgid ""
20986 "Note that the prepared filesystem is not mounted.  You would usually have to "
20987 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fish/guestfish.pod:1048
20992 msgid ""
20993 "If any I<-N> or I<--new> options are given, the guest is automatically "
20994 "launched."
20995 msgstr ""
20996
20997 #. type: textblock
20998 #: ../fish/guestfish.pod:1053
20999 msgid "Create a 100MB disk with an ext4-formatted partition:"
21000 msgstr ""
21001
21002 #. type: verbatim
21003 #: ../fish/guestfish.pod:1055
21004 #, no-wrap
21005 msgid ""
21006 " guestfish -N fs:ext4\n"
21007 "\n"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:1057
21012 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../fish/guestfish.pod:1059
21017 #, no-wrap
21018 msgid ""
21019 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21020 "\n"
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../fish/guestfish.pod:1061
21025 msgid "Create a blank 200MB disk:"
21026 msgstr ""
21027
21028 #. type: verbatim
21029 #: ../fish/guestfish.pod:1063
21030 #, no-wrap
21031 msgid ""
21032 " guestfish -N disk:200M\n"
21033 "\n"
21034 msgstr ""
21035
21036 #. type: =head1
21037 #: ../fish/guestfish.pod:1065
21038 msgid "PROGRESS BARS"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../fish/guestfish.pod:1067
21043 msgid ""
21044 "Some (not all) long-running commands send progress notification messages as "
21045 "they are running.  Guestfish turns these messages into progress bars."
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../fish/guestfish.pod:1071
21050 msgid ""
21051 "When a command that supports progress bars takes longer than two seconds to "
21052 "run, and if progress bars are enabled, then you will see one appearing below "
21053 "the command:"
21054 msgstr ""
21055
21056 #. type: verbatim
21057 #: ../fish/guestfish.pod:1075
21058 #, no-wrap
21059 msgid ""
21060 " ><fs> copy-size /large-file /another-file 2048M\n"
21061 " / 10% [#####-----------------------------------------] 00:30\n"
21062 "\n"
21063 msgstr ""
21064
21065 #. type: textblock
21066 #: ../fish/guestfish.pod:1078
21067 msgid ""
21068 "The spinner on the left hand side moves round once for every progress "
21069 "notification received from the backend.  This is a (reasonably) golden "
21070 "assurance that the command is \"doing something\" even if the progress bar "
21071 "is not moving, because the command is able to send the progress "
21072 "notifications.  When the bar reaches 100% and the command finishes, the "
21073 "spinner disappears."
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fish/guestfish.pod:1085
21078 msgid ""
21079 "Progress bars are enabled by default when guestfish is used interactively.  "
21080 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21081 "and you can disable them completely using I<--no-progress-bars>."
21082 msgstr ""
21083
21084 #. type: =head1
21085 #: ../fish/guestfish.pod:1090
21086 msgid "GUESTFISH COMMANDS"
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../fish/guestfish.pod:1092
21091 msgid ""
21092 "The commands in this section are guestfish convenience commands, in other "
21093 "words, they are not part of the L<guestfs(3)> API."
21094 msgstr ""
21095
21096 #. type: =head2
21097 #: ../fish/guestfish.pod:1095
21098 msgid "help"
21099 msgstr ""
21100
21101 #. type: verbatim
21102 #: ../fish/guestfish.pod:1097
21103 #, no-wrap
21104 msgid ""
21105 " help\n"
21106 " help cmd\n"
21107 "\n"
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../fish/guestfish.pod:1100
21112 msgid "Without any parameter, this provides general help."
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../fish/guestfish.pod:1102
21117 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21118 msgstr ""
21119
21120 #. type: =head2
21121 #: ../fish/guestfish.pod:1104
21122 msgid "quit | exit"
21123 msgstr ""
21124
21125 #. type: textblock
21126 #: ../fish/guestfish.pod:1106
21127 msgid "This exits guestfish.  You can also use C<^D> key."
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../fish/guestfish.pod:1108
21132 msgid "@FISH_COMMANDS@"
21133 msgstr ""
21134
21135 #. type: =head1
21136 #: ../fish/guestfish.pod:1110
21137 msgid "COMMANDS"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21142 msgid "@ACTIONS@"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:1116
21147 msgid ""
21148 "guestfish returns 0 if the commands completed without error, or 1 if there "
21149 "was an error."
21150 msgstr ""
21151
21152 #. type: =item
21153 #: ../fish/guestfish.pod:1123
21154 msgid "EDITOR"
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../fish/guestfish.pod:1125
21159 msgid ""
21160 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21161 "C<vi>."
21162 msgstr ""
21163
21164 #. type: =item
21165 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3199
21166 msgid "FEBOOTSTRAP_KERNEL"
21167 msgstr ""
21168
21169 #. type: =item
21170 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3201
21171 msgid "FEBOOTSTRAP_MODULES"
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3203
21176 msgid ""
21177 "These two environment variables allow the kernel that libguestfs uses in the "
21178 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21179 "most recent host kernel is chosen.  For more information about kernel "
21180 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21181 "available in febootstrap E<ge> 3.8."
21182 msgstr ""
21183
21184 #. type: =item
21185 #: ../fish/guestfish.pod:1138
21186 msgid "GUESTFISH_DISPLAY_IMAGE"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/guestfish.pod:1140
21191 msgid ""
21192 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21193 "If not set, it uses L<display(1)>."
21194 msgstr ""
21195
21196 #. type: =item
21197 #: ../fish/guestfish.pod:1143
21198 msgid "GUESTFISH_PID"
21199 msgstr ""
21200
21201 #. type: textblock
21202 #: ../fish/guestfish.pod:1145
21203 msgid ""
21204 "Used with the I<--remote> option to specify the remote guestfish process to "
21205 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21206 msgstr ""
21207
21208 #. type: =item
21209 #: ../fish/guestfish.pod:1149
21210 msgid "HEXEDITOR"
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../fish/guestfish.pod:1151
21215 msgid ""
21216 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21217 "not specified, the external L<hexedit(1)> program is used."
21218 msgstr ""
21219
21220 #. type: =item
21221 #: ../fish/guestfish.pod:1155
21222 msgid "HOME"
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../fish/guestfish.pod:1157
21227 msgid ""
21228 "If compiled with GNU readline support, various files in the home directory "
21229 "can be used.  See L</FILES>."
21230 msgstr ""
21231
21232 #. type: =item
21233 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3209
21234 msgid "LIBGUESTFS_APPEND"
21235 msgstr ""
21236
21237 #. type: textblock
21238 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3211
21239 msgid "Pass additional options to the guest kernel."
21240 msgstr ""
21241
21242 #. type: =item
21243 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3213
21244 msgid "LIBGUESTFS_DEBUG"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fish/guestfish.pod:1166
21249 msgid ""
21250 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21251 "effect as using the B<-v> option."
21252 msgstr ""
21253
21254 #. type: =item
21255 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3218
21256 msgid "LIBGUESTFS_MEMSIZE"
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3220
21261 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
21262 msgstr ""
21263
21264 #. type: verbatim
21265 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3223
21266 #, no-wrap
21267 msgid ""
21268 " LIBGUESTFS_MEMSIZE=700\n"
21269 "\n"
21270 msgstr ""
21271
21272 #. type: =item
21273 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3225
21274 msgid "LIBGUESTFS_PATH"
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:1178
21279 msgid ""
21280 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21281 "the discussion of paths in L<guestfs(3)>."
21282 msgstr ""
21283
21284 #. type: =item
21285 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3230
21286 msgid "LIBGUESTFS_QEMU"
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3232
21291 msgid ""
21292 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21293 "which was found at compile time by the configure script is used."
21294 msgstr ""
21295
21296 #. type: =item
21297 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3238
21298 msgid "LIBGUESTFS_TRACE"
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fish/guestfish.pod:1189
21303 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21304 msgstr ""
21305
21306 #. type: =item
21307 #: ../fish/guestfish.pod:1191
21308 msgid "PAGER"
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../fish/guestfish.pod:1193
21313 msgid ""
21314 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21315 "C<more>."
21316 msgstr ""
21317
21318 #. type: =item
21319 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260 ../src/guestfs.pod:3243
21320 msgid "TMPDIR"
21321 msgstr ""
21322
21323 #. type: textblock
21324 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3245
21325 msgid ""
21326 "Location of temporary directory, defaults to C</tmp> except for the cached "
21327 "supermin appliance which defaults to C</var/tmp>."
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3248
21332 msgid ""
21333 "If libguestfs was compiled to use the supermin appliance then the real "
21334 "appliance is cached in this directory, shared between all handles belonging "
21335 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21336 "use in case C</var/tmp> is not large enough."
21337 msgstr ""
21338
21339 #. type: =head1
21340 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:310
21341 msgid "FILES"
21342 msgstr ""
21343
21344 #. type: =item
21345 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:314
21346 msgid "$HOME/.libguestfs-tools.rc"
21347 msgstr ""
21348
21349 #. type: =item
21350 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:316
21351 msgid "/etc/libguestfs-tools.conf"
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:318
21356 msgid ""
21357 "This configuration file controls the default read-only or read-write mode "
21358 "(I<--ro> or I<--rw>)."
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../fish/guestfish.pod:1220
21363 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21364 msgstr ""
21365
21366 #. type: =item
21367 #: ../fish/guestfish.pod:1222
21368 msgid "$HOME/.guestfish"
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../fish/guestfish.pod:1224
21373 msgid ""
21374 "If compiled with GNU readline support, then the command history is saved in "
21375 "this file."
21376 msgstr ""
21377
21378 #. type: =item
21379 #: ../fish/guestfish.pod:1227
21380 msgid "$HOME/.inputrc"
21381 msgstr ""
21382
21383 #. type: =item
21384 #: ../fish/guestfish.pod:1229
21385 msgid "/etc/inputrc"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:1231
21390 msgid ""
21391 "If compiled with GNU readline support, then these files can be used to "
21392 "configure readline.  For further information, please see "
21393 "L<readline(3)/INITIALIZATION FILE>."
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:1235
21398 msgid "To write rules which only apply to guestfish, use:"
21399 msgstr ""
21400
21401 #. type: verbatim
21402 #: ../fish/guestfish.pod:1237
21403 #, no-wrap
21404 msgid ""
21405 " $if guestfish\n"
21406 " ...\n"
21407 " $endif\n"
21408 "\n"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fish/guestfish.pod:1241
21413 msgid ""
21414 "Variables that you can set in inputrc that change the behaviour of guestfish "
21415 "in useful ways include:"
21416 msgstr ""
21417
21418 #. type: =item
21419 #: ../fish/guestfish.pod:1246
21420 msgid "completion-ignore-case (default: on)"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:1248
21425 msgid ""
21426 "By default, guestfish will ignore case when tab-completing paths on the "
21427 "disk.  Use:"
21428 msgstr ""
21429
21430 #. type: verbatim
21431 #: ../fish/guestfish.pod:1251
21432 #, no-wrap
21433 msgid ""
21434 " set completion-ignore-case off\n"
21435 "\n"
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../fish/guestfish.pod:1253
21440 msgid "to make guestfish case sensitive."
21441 msgstr ""
21442
21443 #. type: =item
21444 #: ../fish/guestfish.pod:1257
21445 msgid "test1.img"
21446 msgstr ""
21447
21448 #. type: =item
21449 #: ../fish/guestfish.pod:1259
21450 msgid "test2.img (etc)"
21451 msgstr ""
21452
21453 #. type: textblock
21454 #: ../fish/guestfish.pod:1261
21455 msgid ""
21456 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21457 "will be created in the file C<test1.img> in the current directory.  The "
21458 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21459 "the same name will be overwritten."
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../fish/guestfish.pod:1270
21464 msgid ""
21465 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
21466 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
21467 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
21468 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
21469 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
21470 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21471 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
21472 "L<febootstrap-supermin-helper(8)>."
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3341 ../test-tool/libguestfs-test-tool.pod:112
21477 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../fish/virt-copy-in.pod:5
21482 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
21483 msgstr ""
21484
21485 #. type: verbatim
21486 #: ../fish/virt-copy-in.pod:9
21487 #, no-wrap
21488 msgid ""
21489 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21490 "\n"
21491 msgstr ""
21492
21493 #. type: verbatim
21494 #: ../fish/virt-copy-in.pod:11
21495 #, no-wrap
21496 msgid ""
21497 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21498 "\n"
21499 msgstr ""
21500
21501 #. type: textblock
21502 #: ../fish/virt-copy-in.pod:15
21503 msgid ""
21504 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21505 "causing disk corruption.  The virtual machine must be shut down before you "
21506 "use this command."
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../fish/virt-copy-in.pod:21
21511 msgid ""
21512 "C<virt-copy-in> copies files and directories from the local disk into a "
21513 "virtual machine disk image or named libvirt domain."
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../fish/virt-copy-in.pod:24
21518 msgid ""
21519 "You can give one of more filenames and directories on the command line.  "
21520 "Directories are copied in recursively.  The final parameter must be the "
21521 "destination directory in the disk image which must be an absolute path "
21522 "starting with a C</> character."
21523 msgstr ""
21524
21525 #. type: verbatim
21526 #: ../fish/virt-copy-in.pod:33
21527 #, no-wrap
21528 msgid ""
21529 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21530 "\n"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21535 msgid "Upload a home directory to a guest:"
21536 msgstr ""
21537
21538 #. type: verbatim
21539 #: ../fish/virt-copy-in.pod:37
21540 #, no-wrap
21541 msgid ""
21542 " virt-copy-in -d MyGuest skel /home\n"
21543 "\n"
21544 msgstr ""
21545
21546 #. type: =head1
21547 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21548 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fish/virt-copy-in.pod:41
21553 msgid ""
21554 "This command is just a simple shell script wrapper around the "
21555 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
21556 "trivial copy, you are probably better off using guestfish directly."
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21561 msgid ""
21562 "Since the shell script just passes options straight to guestfish, read "
21563 "L<guestfish(1)> to see the full list of options."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../fish/virt-copy-in.pod:52
21568 msgid ""
21569 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21570 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21571 msgstr ""
21572
21573 #. type: textblock
21574 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21575 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21576 msgstr ""
21577
21578 #. type: textblock
21579 #: ../fish/virt-copy-out.pod:5
21580 msgid ""
21581 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21582 "image."
21583 msgstr ""
21584
21585 #. type: verbatim
21586 #: ../fish/virt-copy-out.pod:9
21587 #, no-wrap
21588 msgid ""
21589 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: verbatim
21594 #: ../fish/virt-copy-out.pod:11
21595 #, no-wrap
21596 msgid ""
21597 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21598 "\n"
21599 msgstr ""
21600
21601 #. type: textblock
21602 #: ../fish/virt-copy-out.pod:15
21603 msgid ""
21604 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21605 "image or named libvirt domain."
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../fish/virt-copy-out.pod:18
21610 msgid ""
21611 "You can give one of more filenames and directories on the command line.  "
21612 "Directories are copied out recursively."
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../fish/virt-copy-out.pod:23
21617 msgid "Download the home directories from a virtual machine:"
21618 msgstr ""
21619
21620 #. type: verbatim
21621 #: ../fish/virt-copy-out.pod:25
21622 #, no-wrap
21623 msgid ""
21624 " mkdir homes\n"
21625 " virt-copy-out -d MyGuest /home homes\n"
21626 "\n"
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../fish/virt-copy-out.pod:30
21631 msgid ""
21632 "This command is just a simple shell script wrapper around the "
21633 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
21634 "trivial copy, you are probably better off using guestfish directly."
21635 msgstr ""
21636
21637 #. type: textblock
21638 #: ../fish/virt-copy-out.pod:41
21639 msgid ""
21640 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
21641 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../fish/virt-tar-in.pod:5
21646 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21647 msgstr ""
21648
21649 #. type: verbatim
21650 #: ../fish/virt-tar-in.pod:9
21651 #, no-wrap
21652 msgid ""
21653 " virt-tar-in -a disk.img data.tar /destination\n"
21654 "\n"
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../fish/virt-tar-in.pod:11
21659 #, no-wrap
21660 msgid ""
21661 " virt-tar-in -d domain data.tar /destination\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: verbatim
21666 #: ../fish/virt-tar-in.pod:13
21667 #, no-wrap
21668 msgid ""
21669 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21670 "\n"
21671 msgstr ""
21672
21673 #. type: textblock
21674 #: ../fish/virt-tar-in.pod:17
21675 msgid ""
21676 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21677 "causing disk corruption.  The virtual machine must be shut down before you "
21678 "use this command."
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../fish/virt-tar-in.pod:23
21683 msgid ""
21684 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21685 "image or named libvirt domain."
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/virt-tar-in.pod:26
21690 msgid ""
21691 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21692 "standard input.  The second parameter is the absolute target directory to "
21693 "unpack into."
21694 msgstr ""
21695
21696 #. type: verbatim
21697 #: ../fish/virt-tar-in.pod:34
21698 #, no-wrap
21699 msgid ""
21700 " virt-tar-in -d MyGuest homes.tar /home\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fish/virt-tar-in.pod:38
21706 msgid ""
21707 "This command is just a simple shell script wrapper around the "
21708 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
21709 "copy, you are probably better off using guestfish directly."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../fish/virt-tar-in.pod:49
21714 msgid ""
21715 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21716 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
21717 "L<http://libguestfs.org/>."
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../fish/virt-tar-out.pod:5
21722 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../fish/virt-tar-out.pod:9
21727 #, no-wrap
21728 msgid ""
21729 " virt-tar-out -a disk.img /dir files.tar\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: verbatim
21734 #: ../fish/virt-tar-out.pod:11
21735 #, no-wrap
21736 msgid ""
21737 " virt-tar-out -d domain /dir files.tar\n"
21738 "\n"
21739 msgstr ""
21740
21741 #. type: verbatim
21742 #: ../fish/virt-tar-out.pod:13
21743 #, no-wrap
21744 msgid ""
21745 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21746 "\n"
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fish/virt-tar-out.pod:17
21751 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../fish/virt-tar-out.pod:20
21756 msgid ""
21757 "The first parameter is the absolute path of the virtual machine directory.  "
21758 "The second parameter is the tar file to write.  Use C<-> to write to "
21759 "standard output."
21760 msgstr ""
21761
21762 #. type: textblock
21763 #: ../fish/virt-tar-out.pod:26
21764 msgid "Download the home directories from a guest:"
21765 msgstr ""
21766
21767 #. type: verbatim
21768 #: ../fish/virt-tar-out.pod:28
21769 #, no-wrap
21770 msgid ""
21771 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21772 "\n"
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../fish/virt-tar-out.pod:32
21777 msgid ""
21778 "This command is just a simple shell script wrapper around the "
21779 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
21780 "trivial copy, you are probably better off using guestfish directly."
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../fish/virt-tar-out.pod:43
21785 msgid ""
21786 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21787 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../fuse/guestmount.pod:5
21792 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21793 msgstr ""
21794
21795 #. type: verbatim
21796 #: ../fuse/guestmount.pod:9
21797 #, no-wrap
21798 msgid ""
21799 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21800 "\n"
21801 msgstr ""
21802
21803 #. type: verbatim
21804 #: ../fuse/guestmount.pod:11
21805 #, no-wrap
21806 msgid ""
21807 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21808 "\n"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../fuse/guestmount.pod:13
21813 #, no-wrap
21814 msgid ""
21815 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21816 "\n"
21817 msgstr ""
21818
21819 #. type: textblock
21820 #: ../fuse/guestmount.pod:17
21821 msgid ""
21822 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21823 "machines.  If you do this, you risk disk corruption in the VM."
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fuse/guestmount.pod:22
21828 msgid ""
21829 "The guestmount program can be used to mount virtual machine filesystems and "
21830 "other disk images on the host.  It uses libguestfs for access to the guest "
21831 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21832 "a mountable device."
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../fuse/guestmount.pod:27
21837 msgid ""
21838 "Along with other options, you have to give at least one device (I<-a> "
21839 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21840 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21841 "this works is better explained in the L<guestfish(1)> manual page, or by "
21842 "looking at the examples below."
21843 msgstr ""
21844
21845 #. type: textblock
21846 #: ../fuse/guestmount.pod:33
21847 msgid ""
21848 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21849 "by you, and the filesystem will not be visible to any other users unless you "
21850 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21851 "the filesystem, use the C<fusermount -u> command."
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../fuse/guestmount.pod:41
21856 msgid ""
21857 "For a typical Windows guest which has its main filesystem on the first "
21858 "partition:"
21859 msgstr ""
21860
21861 #. type: verbatim
21862 #: ../fuse/guestmount.pod:44
21863 #, no-wrap
21864 msgid ""
21865 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: textblock
21870 #: ../fuse/guestmount.pod:46
21871 msgid ""
21872 "For a typical Linux guest which has a /boot filesystem on the first "
21873 "partition, and the root filesystem on a logical volume:"
21874 msgstr ""
21875
21876 #. type: verbatim
21877 #: ../fuse/guestmount.pod:49
21878 #, no-wrap
21879 msgid ""
21880 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21881 "\n"
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../fuse/guestmount.pod:51
21886 msgid "To get libguestfs to detect guest mountpoints for you:"
21887 msgstr ""
21888
21889 #. type: verbatim
21890 #: ../fuse/guestmount.pod:53
21891 #, no-wrap
21892 msgid ""
21893 " guestmount -a guest.img -i --ro /mnt\n"
21894 "\n"
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../fuse/guestmount.pod:55
21899 msgid "For a libvirt guest called \"Guest\" you could do:"
21900 msgstr ""
21901
21902 #. type: verbatim
21903 #: ../fuse/guestmount.pod:57
21904 #, no-wrap
21905 msgid ""
21906 " guestmount -d Guest -i --ro /mnt\n"
21907 "\n"
21908 msgstr ""
21909
21910 #. type: textblock
21911 #: ../fuse/guestmount.pod:59
21912 msgid ""
21913 "If you don't know what filesystems are contained in a guest or disk image, "
21914 "use L<virt-filesystems(1)> first:"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../fuse/guestmount.pod:62
21919 #, no-wrap
21920 msgid ""
21921 " virt-filesystems MyGuest\n"
21922 "\n"
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../fuse/guestmount.pod:64
21927 msgid ""
21928 "If you want to trace the libguestfs calls but without excessive debugging "
21929 "information, we recommend:"
21930 msgstr ""
21931
21932 #. type: verbatim
21933 #: ../fuse/guestmount.pod:67
21934 #, no-wrap
21935 msgid ""
21936 " guestmount [...] --trace /mnt\n"
21937 "\n"
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../fuse/guestmount.pod:69
21942 msgid "If you want to debug the program, we recommend:"
21943 msgstr ""
21944
21945 #. type: verbatim
21946 #: ../fuse/guestmount.pod:71
21947 #, no-wrap
21948 msgid ""
21949 " guestmount [...] --trace --verbose /mnt\n"
21950 "\n"
21951 msgstr ""
21952
21953 #. type: =head1
21954 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96 ../resize/virt-resize.pod:627
21955 msgid "NOTES"
21956 msgstr ""
21957
21958 #. type: =head2
21959 #: ../fuse/guestmount.pod:75
21960 msgid "Other users cannot see the filesystem by default"
21961 msgstr ""
21962
21963 #. type: textblock
21964 #: ../fuse/guestmount.pod:77
21965 msgid ""
21966 "If you mount a filesystem as one user (eg. root), then other users will not "
21967 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21968 "option when mounting:"
21969 msgstr ""
21970
21971 #. type: verbatim
21972 #: ../fuse/guestmount.pod:81
21973 #, no-wrap
21974 msgid ""
21975 " sudo guestmount [...] -o allow_other /mnt\n"
21976 "\n"
21977 msgstr ""
21978
21979 #. type: =head2
21980 #: ../fuse/guestmount.pod:83
21981 msgid "Enabling FUSE"
21982 msgstr ""
21983
21984 #. type: textblock
21985 #: ../fuse/guestmount.pod:85
21986 msgid ""
21987 "On some distros, you may need to add yourself to a special group "
21988 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21989 "Debian and derivatives."
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../fuse/guestmount.pod:89
21994 msgid ""
21995 "On other distros, no special group is required.  It is not necessary on "
21996 "Fedora or Red Hat Enterprise Linux."
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../fuse/guestmount.pod:100
22001 msgid "Add a block device or virtual machine image."
22002 msgstr ""
22003
22004 #. type: =item
22005 #: ../fuse/guestmount.pod:123
22006 msgid "B<--dir-cache-timeout N>"
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../fuse/guestmount.pod:125
22011 msgid ""
22012 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22013 "seconds.  The readdir cache [actually, there are several semi-independent "
22014 "caches] is populated after a readdir(2) call with the stat and extended "
22015 "attributes of the files in the directory, in anticipation that they will be "
22016 "requested soon after."
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../fuse/guestmount.pod:131
22021 msgid ""
22022 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22023 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22024 "requests, only cache existing ones."
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fuse/guestmount.pod:151
22029 msgid ""
22030 "If you have untrusted raw-format guest disk images, you should use this "
22031 "option to specify the disk format.  This avoids a possible security problem "
22032 "with malicious guests (CVE-2010-3851).  See also "
22033 "L<guestfs(3)/guestfs_add_drive_opts>."
22034 msgstr ""
22035
22036 #. type: =item
22037 #: ../fuse/guestmount.pod:156
22038 msgid "B<--fuse-help>"
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../fuse/guestmount.pod:158
22043 msgid "Display help on special FUSE options (see I<-o> below)."
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../fuse/guestmount.pod:162
22048 msgid "Display brief help and exit."
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../fuse/guestmount.pod:186
22053 msgid ""
22054 "Mount the named partition or logical volume on the given mountpoint B<in the "
22055 "guest> (this has nothing to do with mountpoints in the host)."
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../fuse/guestmount.pod:189
22060 msgid ""
22061 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22062 "something on C</>."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../fuse/guestmount.pod:206
22067 msgid ""
22068 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22069 "unmounted.  If you specify this option, then we don't attempt to sync the "
22070 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22071 msgstr ""
22072
22073 #. type: =item
22074 #: ../fuse/guestmount.pod:211
22075 msgid "B<-o option>"
22076 msgstr ""
22077
22078 #. type: =item
22079 #: ../fuse/guestmount.pod:213
22080 msgid "B<--option option>"
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../fuse/guestmount.pod:215
22085 msgid "Pass extra options to FUSE."
22086 msgstr ""
22087
22088 #. type: textblock
22089 #: ../fuse/guestmount.pod:217
22090 msgid ""
22091 "To get a list of all the extra options supported by FUSE, use the command "
22092 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22093 "of them are a good idea."
22094 msgstr ""
22095
22096 #. type: verbatim
22097 #: ../fuse/guestmount.pod:221
22098 #, no-wrap
22099 msgid ""
22100 " guestmount --fuse-help\n"
22101 "\n"
22102 msgstr ""
22103
22104 #. type: textblock
22105 #: ../fuse/guestmount.pod:223
22106 msgid "Some potentially useful FUSE options:"
22107 msgstr ""
22108
22109 #. type: =item
22110 #: ../fuse/guestmount.pod:227
22111 msgid "B<-o allow_other>"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../fuse/guestmount.pod:229
22116 msgid "Allow other users to see the filesystem."
22117 msgstr ""
22118
22119 #. type: =item
22120 #: ../fuse/guestmount.pod:231
22121 msgid "B<-o attr_timeout=N>"
22122 msgstr ""
22123
22124 #. type: textblock
22125 #: ../fuse/guestmount.pod:233
22126 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22127 msgstr ""
22128
22129 #. type: =item
22130 #: ../fuse/guestmount.pod:235
22131 msgid "B<-o kernel_cache>"
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../fuse/guestmount.pod:237
22136 msgid ""
22137 "Allow the kernel to cache files (reduces the number of reads that have to go "
22138 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22139 "afford the extra memory usage."
22140 msgstr ""
22141
22142 #. type: =item
22143 #: ../fuse/guestmount.pod:241
22144 msgid "B<-o uid=N> B<-o gid=N>"
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../fuse/guestmount.pod:243
22149 msgid ""
22150 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22151 "the chosen values."
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../fuse/guestmount.pod:252
22156 msgid ""
22157 "Add devices and mount everything read-only.  Also disallow writes and make "
22158 "the disk appear read-only to FUSE."
22159 msgstr ""
22160
22161 #. type: textblock
22162 #: ../fuse/guestmount.pod:255
22163 msgid ""
22164 "This is highly recommended if you are not going to edit the guest disk.  If "
22165 "the guest is running and this option is I<not> supplied, then there is a "
22166 "strong risk of disk corruption in the guest.  We try to prevent this from "
22167 "happening, but it is not always possible."
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22172 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22173 msgstr ""
22174
22175 #. type: textblock
22176 #: ../fuse/guestmount.pod:264
22177 msgid "Enable SELinux support for the guest."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../fuse/guestmount.pod:270
22182 msgid "Enable verbose messages from underlying libguestfs."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../fuse/guestmount.pod:276
22187 msgid "Display the program version and exit."
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22192 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22193 msgstr ""
22194
22195 #. type: =item
22196 #: ../fuse/guestmount.pod:289
22197 msgid "B<--trace>"
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../fuse/guestmount.pod:291
22202 msgid "Trace libguestfs calls and entry into each FUSE function."
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../fuse/guestmount.pod:293
22207 msgid "This also stops the daemon from forking into the background."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../fuse/guestmount.pod:319
22212 msgid ""
22213 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22214 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
22215 "L<http://fuse.sf.net/>."
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../fuse/guestmount.pod:334
22220 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../inspector/virt-inspector.pod:5
22225 msgid ""
22226 "virt-inspector - Display operating system version and other information "
22227 "about a virtual machine"
22228 msgstr ""
22229
22230 #. type: verbatim
22231 #: ../inspector/virt-inspector.pod:9
22232 #, no-wrap
22233 msgid ""
22234 " virt-inspector [--options] -d domname\n"
22235 "\n"
22236 msgstr ""
22237
22238 #. type: verbatim
22239 #: ../inspector/virt-inspector.pod:11
22240 #, no-wrap
22241 msgid ""
22242 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22243 "\n"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../inspector/virt-inspector.pod:15
22248 #, no-wrap
22249 msgid ""
22250 " virt-inspector domname\n"
22251 "\n"
22252 msgstr ""
22253
22254 #. type: verbatim
22255 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22256 #, no-wrap
22257 msgid ""
22258 " virt-inspector disk.img [disk.img ...]\n"
22259 "\n"
22260 msgstr ""
22261
22262 #. type: textblock
22263 #: ../inspector/virt-inspector.pod:21
22264 msgid ""
22265 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22266 "determine the version of the operating system and other information about "
22267 "the virtual machine."
22268 msgstr ""
22269
22270 #. type: textblock
22271 #: ../inspector/virt-inspector.pod:25
22272 msgid "Virt-inspector produces XML output for feeding into other programs."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../inspector/virt-inspector.pod:27
22277 msgid ""
22278 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22279 "the libvirt domain (see: C<virsh list --all>)."
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../inspector/virt-inspector.pod:30
22284 msgid ""
22285 "You can also run virt-inspector directly on disk images from a single "
22286 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22287 "has several block devices, in which case you should list several I<-a> "
22288 "options one after another, with the first corresponding to the guest's "
22289 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../inspector/virt-inspector.pod:37
22294 msgid ""
22295 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22296 "keys and similar."
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../inspector/virt-inspector.pod:40
22301 msgid ""
22302 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22303 "inspect several virtual machines, you have to run virt-inspector several "
22304 "times (for example, from a shell script for-loop)."
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../inspector/virt-inspector.pod:45
22309 msgid ""
22310 "Because virt-inspector needs direct access to guest images, it won't "
22311 "normally work over remote libvirt connections."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../inspector/virt-inspector.pod:48
22316 msgid ""
22317 "All of the information available from virt-inspector is also available "
22318 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22319 "The same information can also be fetched using guestfish or via libguestfs "
22320 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22321 "WITH OTHER PROGRAMMING LANGUAGES>)."
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../inspector/virt-inspector.pod:81
22326 msgid ""
22327 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22328 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22329 "at all."
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../inspector/virt-inspector.pod:94
22334 msgid ""
22335 "When prompting for keys and passphrases, virt-inspector normally turns "
22336 "echoing off so you cannot see what you are typing.  If you are not worried "
22337 "about Tempest attacks and there is no one else in the room you can specify "
22338 "this flag to see what you are typing."
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../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
22343 msgid ""
22344 "Specify the format of disk images given on the command line.  If this is "
22345 "omitted then the format is autodetected from the content of the disk image."
22346 msgstr ""
22347
22348 #. type: textblock
22349 #: ../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
22350 msgid ""
22351 "If disk images are requested from libvirt, then this program asks libvirt "
22352 "for this information.  In this case, the value of the format parameter is "
22353 "ignored."
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397 ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22358 msgid ""
22359 "If working with untrusted raw-format guest disk images, you should ensure "
22360 "the format is always specified."
22361 msgstr ""
22362
22363 #. type: =item
22364 #: ../inspector/virt-inspector.pod:135
22365 msgid "B<--xpath> query"
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../inspector/virt-inspector.pod:137
22370 msgid ""
22371 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22372 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22373 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../inspector/virt-inspector.pod:146
22378 msgid "Previous versions of virt-inspector allowed you to write either:"
22379 msgstr ""
22380
22381 #. type: verbatim
22382 #: ../inspector/virt-inspector.pod:152
22383 #, no-wrap
22384 msgid ""
22385 " virt-inspector guestname\n"
22386 "\n"
22387 msgstr ""
22388
22389 #. type: =head1
22390 #: ../inspector/virt-inspector.pod:160
22391 msgid "XML FORMAT"
22392 msgstr ""
22393
22394 #. type: textblock
22395 #: ../inspector/virt-inspector.pod:162
22396 msgid ""
22397 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22398 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22399 "just an overview."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:166
22404 msgid ""
22405 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22406 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22407 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22408 "which is vanishingly rare in real world VMs."
22409 msgstr ""
22410
22411 #. type: =head2
22412 #: ../inspector/virt-inspector.pod:171
22413 msgid "E<lt>operatingsystemE<gt>"
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../inspector/virt-inspector.pod:173
22418 msgid ""
22419 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22420 "describe the operating system, its architecture, the descriptive \"product "
22421 "name\" string, the type of OS and so on, as in this example:"
22422 msgstr ""
22423
22424 #. type: verbatim
22425 #: ../inspector/virt-inspector.pod:177
22426 #, no-wrap
22427 msgid ""
22428 " <operatingsystems>\n"
22429 "   <operatingsystem>\n"
22430 "     <root>/dev/sda2</root>\n"
22431 "     <name>windows</name>\n"
22432 "     <arch>i386</arch>\n"
22433 "     <distro>windows</distro>\n"
22434 "     <product_name>Windows 7 Enterprise</product_name>\n"
22435 "     <product_variant>Client</product_variant>\n"
22436 "     <major_version>6</major_version>\n"
22437 "     <minor_version>1</minor_version>\n"
22438 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22439 "     <format>installed</format>\n"
22440 "\n"
22441 msgstr ""
22442
22443 #. type: textblock
22444 #: ../inspector/virt-inspector.pod:190
22445 msgid ""
22446 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22447 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22448 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22449 "architecture.  The other fields are fairly self-explanatory, but because "
22450 "these fields are taken directly from the libguestfs inspection API you can "
22451 "find precise information from L<guestfs(3)/INSPECTION>."
22452 msgstr ""
22453
22454 #. type: textblock
22455 #: ../inspector/virt-inspector.pod:198
22456 msgid ""
22457 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22458 "of view of libguestfs (block devices may have completely different names "
22459 "inside the VM itself)."
22460 msgstr ""
22461
22462 #. type: =head2
22463 #: ../inspector/virt-inspector.pod:202
22464 msgid "E<lt>mountpointsE<gt>"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../inspector/virt-inspector.pod:204
22469 msgid ""
22470 "Un*x-like guests typically have multiple filesystems which are mounted at "
22471 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22472 "element which looks like this:"
22473 msgstr ""
22474
22475 #. type: verbatim
22476 #: ../inspector/virt-inspector.pod:208
22477 #, no-wrap
22478 msgid ""
22479 " <operatingsystems>\n"
22480 "   <operatingsystem>\n"
22481 "     ...\n"
22482 "     <mountpoints>\n"
22483 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22484 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22485 "     </mountpoints>\n"
22486 "\n"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../inspector/virt-inspector.pod:216
22491 msgid ""
22492 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22493 "and may have completely different names inside the guest.  Only mountable "
22494 "filesystems appear in this list, not things like swap devices."
22495 msgstr ""
22496
22497 #. type: =head2
22498 #: ../inspector/virt-inspector.pod:221
22499 msgid "E<lt>filesystemsE<gt>"
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../inspector/virt-inspector.pod:223
22504 msgid ""
22505 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22506 "filesystems belonging to the guest, including swap and empty partitions.  "
22507 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22508 "this OS or shared with this OS and other OSes)."
22509 msgstr ""
22510
22511 #. type: textblock
22512 #: ../inspector/virt-inspector.pod:229
22513 msgid "You might see something like this:"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../inspector/virt-inspector.pod:231
22518 #, no-wrap
22519 msgid ""
22520 " <operatingsystems>\n"
22521 "   <operatingsystem>\n"
22522 "     ...\n"
22523 "     <filesystems>\n"
22524 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22525 "         <type>ext4</type>\n"
22526 "         <label>Fedora-13-x86_64</label>\n"
22527 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22528 "       </filesystem>\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../inspector/virt-inspector.pod:241
22534 msgid ""
22535 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22536 "the label, and the UUID."
22537 msgstr ""
22538
22539 #. type: =head2
22540 #: ../inspector/virt-inspector.pod:244
22541 msgid "E<lt>applicationsE<gt>"
22542 msgstr ""
22543
22544 #. type: textblock
22545 #: ../inspector/virt-inspector.pod:246
22546 msgid ""
22547 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22548 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22549 "machine."
22550 msgstr ""
22551
22552 #. type: textblock
22553 #: ../inspector/virt-inspector.pod:250
22554 msgid ""
22555 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22556 "Typical values would be C<rpm> and C<deb>."
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../inspector/virt-inspector.pod:253
22561 msgid ""
22562 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22563 "Typical values include C<yum>, C<up2date> and C<apt>"
22564 msgstr ""
22565
22566 #. type: textblock
22567 #: ../inspector/virt-inspector.pod:256
22568 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22569 msgstr ""
22570
22571 #. type: verbatim
22572 #: ../inspector/virt-inspector.pod:259
22573 #, no-wrap
22574 msgid ""
22575 " <operatingsystems>\n"
22576 "   <operatingsystem>\n"
22577 "     ...\n"
22578 "     <applications>\n"
22579 "       <application>\n"
22580 "         <name>coreutils</name>\n"
22581 "         <version>8.5</version>\n"
22582 "         <release>1</release>\n"
22583 "       </application>\n"
22584 "\n"
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../inspector/virt-inspector.pod:269
22589 msgid ""
22590 "The version and release fields may not be available for some types guests.  "
22591 "Other fields are possible, see "
22592 "L<guestfs(3)/guestfs_inspect_list_applications>."
22593 msgstr ""
22594
22595 #. type: =head2
22596 #: ../inspector/virt-inspector.pod:273
22597 msgid "E<lt>drive_mappingsE<gt>"
22598 msgstr ""
22599
22600 #. type: textblock
22601 #: ../inspector/virt-inspector.pod:275
22602 msgid ""
22603 "For operating systems like Windows which use drive letters, virt-inspector "
22604 "is able to find out how drive letters map to filesystems."
22605 msgstr ""
22606
22607 #. type: verbatim
22608 #: ../inspector/virt-inspector.pod:279
22609 #, no-wrap
22610 msgid ""
22611 " <operatingsystems>\n"
22612 "   <operatingsystem>\n"
22613 "     ...\n"
22614 "     <drive_mappings>\n"
22615 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22616 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22617 "     </drive_mappings>\n"
22618 "\n"
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../inspector/virt-inspector.pod:287
22623 msgid ""
22624 "In the example above, drive C maps to the filesystem on the second partition "
22625 "on the first disk, and drive E maps to the filesystem on the first partition "
22626 "on the second disk."
22627 msgstr ""
22628
22629 #. type: textblock
22630 #: ../inspector/virt-inspector.pod:291
22631 msgid ""
22632 "Note that this only covers permanent local filesystem mappings, not things "
22633 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22634 "here."
22635 msgstr ""
22636
22637 #. type: =head2
22638 #: ../inspector/virt-inspector.pod:295
22639 msgid "E<lt>iconE<gt>"
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../inspector/virt-inspector.pod:297
22644 msgid ""
22645 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22646 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22647 "very large and high quality."
22648 msgstr ""
22649
22650 #. type: verbatim
22651 #: ../inspector/virt-inspector.pod:301
22652 #, no-wrap
22653 msgid ""
22654 " <operatingsystems>\n"
22655 "   <operatingsystem>\n"
22656 "     ...\n"
22657 "     <icon>\n"
22658 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22659 "       [... many lines of base64 data ...]\n"
22660 "     </icon>\n"
22661 "\n"
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../inspector/virt-inspector.pod:309
22666 msgid ""
22667 "To display the icon, you have to extract it and convert the base64 data back "
22668 "to a binary file.  Use an XPath query or simply an editor to extract the "
22669 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22670 "to a PNG file:"
22671 msgstr ""
22672
22673 #. type: verbatim
22674 #: ../inspector/virt-inspector.pod:314
22675 #, no-wrap
22676 msgid ""
22677 " base64 -i -d < icon.data > icon.png\n"
22678 "\n"
22679 msgstr ""
22680
22681 #. type: =head2
22682 #: ../inspector/virt-inspector.pod:316
22683 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../inspector/virt-inspector.pod:318
22688 msgid ""
22689 "Virt-inspector can detect some operating system installers on install disks, "
22690 "live CDs, bootable USB keys and more."
22691 msgstr ""
22692
22693 #. type: textblock
22694 #: ../inspector/virt-inspector.pod:321
22695 msgid ""
22696 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22697 "fields may be present to indicate a live CD, network installer, or one part "
22698 "of a multipart CD.  For example:"
22699 msgstr ""
22700
22701 #. type: verbatim
22702 #: ../inspector/virt-inspector.pod:325
22703 #, no-wrap
22704 msgid ""
22705 " <operatingsystems>\n"
22706 "   <operatingsystem>\n"
22707 "     <root>/dev/sda</root>\n"
22708 "     <name>linux</name>\n"
22709 "     <arch>i386</arch>\n"
22710 "     <distro>ubuntu</distro>\n"
22711 "     <product_name>Ubuntu 10.10 &quot;Maverick "
22712 "Meerkat&quot;</product_name>\n"
22713 "     <major_version>10</major_version>\n"
22714 "     <minor_version>10</minor_version>\n"
22715 "     <format>installer</format>\n"
22716 "     <live/>\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: =head1
22721 #: ../inspector/virt-inspector.pod:337
22722 msgid "XPATH QUERIES"
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../inspector/virt-inspector.pod:339
22727 msgid ""
22728 "Virt-inspector includes built in support for running XPath queries.  The "
22729 "reason for including XPath support directly in virt-inspector is simply that "
22730 "there are no good and widely available command line programs that can do "
22731 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22732 "available on Red Hat Enterprise Linux."
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../inspector/virt-inspector.pod:346
22737 msgid ""
22738 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22739 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22740 "result on stdout.  All other inspection features are disabled in this mode."
22741 msgstr ""
22742
22743 #. type: verbatim
22744 #: ../inspector/virt-inspector.pod:353
22745 #, no-wrap
22746 msgid ""
22747 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22748 " <filesystems>\n"
22749 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22750 "        <type>ext4</type>\n"
22751 " [...]\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: verbatim
22756 #: ../inspector/virt-inspector.pod:359
22757 #, no-wrap
22758 msgid ""
22759 " $ virt-inspector -d Guest | \\\n"
22760 "     virt-inspector --xpath "
22761 "\"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22762 " ext4\n"
22763 "\n"
22764 msgstr ""
22765
22766 #. type: verbatim
22767 #: ../inspector/virt-inspector.pod:363
22768 #, no-wrap
22769 msgid ""
22770 " $ virt-inspector -d Guest | \\\n"
22771 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22772 " [displays the guest icon, if there is one]\n"
22773 "\n"
22774 msgstr ""
22775
22776 #. type: =head1
22777 #: ../inspector/virt-inspector.pod:374
22778 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22779 msgstr ""
22780
22781 #. type: textblock
22782 #: ../inspector/virt-inspector.pod:376
22783 msgid ""
22784 "Early versions of libguestfs shipped with a different virt-inspector program "
22785 "written in Perl (the current version is written in C).  The XML output of "
22786 "the Perl virt-inspector was different and it could also output in other "
22787 "formats like text."
22788 msgstr ""
22789
22790 #. type: textblock
22791 #: ../inspector/virt-inspector.pod:381
22792 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../inspector/virt-inspector.pod:384
22797 msgid ""
22798 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22799 "versions of virt-inspector with different names:"
22800 msgstr ""
22801
22802 #. type: verbatim
22803 #: ../inspector/virt-inspector.pod:387
22804 #, no-wrap
22805 msgid ""
22806 " virt-inspector     Old Perl version.\n"
22807 " virt-inspector2    New C version.\n"
22808 "\n"
22809 msgstr ""
22810
22811 #. type: textblock
22812 #: ../inspector/virt-inspector.pod:397
22813 msgid ""
22814 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
22815 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../inspector/virt-inspector.pod:414
22820 msgid "Matthew Booth L<mbooth@redhat.com>"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../java/examples/guestfs-java.pod:5
22825 msgid "guestfs-java - How to use libguestfs from Java"
22826 msgstr ""
22827
22828 #. type: verbatim
22829 #: ../java/examples/guestfs-java.pod:9
22830 #, no-wrap
22831 msgid ""
22832 " import com.redhat.et.libguestfs.*;\n"
22833 " \n"
22834 msgstr ""
22835
22836 #. type: verbatim
22837 #: ../java/examples/guestfs-java.pod:11
22838 #, no-wrap
22839 msgid ""
22840 " GuestFS g = new GuestFS ();\n"
22841 " g.add_drive_opts (\"disk.img\", null);\n"
22842 " g.launch ();\n"
22843 "\n"
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../java/examples/guestfs-java.pod:17
22848 msgid ""
22849 "This manual page documents how to call libguestfs from the Java programming "
22850 "language.  This page just documents the differences from the C API and gives "
22851 "some examples.  If you are not familiar with using libguestfs, you also need "
22852 "to read L<guestfs(3)>."
22853 msgstr ""
22854
22855 #. type: =head2
22856 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22857 msgid "CLOSING THE HANDLE"
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../java/examples/guestfs-java.pod:24
22862 msgid ""
22863 "The handle is closed when it is reaped by the garbage collector.  Because "
22864 "libguestfs handles include a lot of state, it is also possible to close (and "
22865 "hence free) them explicitly by calling the C<close> method."
22866 msgstr ""
22867
22868 #. type: =head2
22869 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
22870 msgid "EXCEPTIONS"
22871 msgstr ""
22872
22873 #. type: textblock
22874 #: ../java/examples/guestfs-java.pod:31
22875 msgid ""
22876 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22877 "exception.  This has a single parameter which is the error message (a "
22878 "C<String>)."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../java/examples/guestfs-java.pod:35
22883 msgid "Calling any method on a closed handle raises the same exception."
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../java/examples/guestfs-java.pod:47
22888 msgid ""
22889 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22890 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22891 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
22892 "L<http://caml.inria.fr/>."
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../ocaml/examples/guestfs-ocaml.pod:5
22897 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22898 msgstr ""
22899
22900 #. type: textblock
22901 #: ../ocaml/examples/guestfs-ocaml.pod:9
22902 msgid "Module style:"
22903 msgstr ""
22904
22905 #. type: verbatim
22906 #: ../ocaml/examples/guestfs-ocaml.pod:11
22907 #, no-wrap
22908 msgid ""
22909 " let g = Guestfs.create () in\n"
22910 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22911 " Guestfs.launch g;\n"
22912 "\n"
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../ocaml/examples/guestfs-ocaml.pod:15
22917 msgid "Object-oriented style:"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../ocaml/examples/guestfs-ocaml.pod:17
22922 #, no-wrap
22923 msgid ""
22924 " let g = new Guestfs.guestfs () in\n"
22925 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22926 " g#launch ();\n"
22927 "\n"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../ocaml/examples/guestfs-ocaml.pod:21
22932 #, no-wrap
22933 msgid ""
22934 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22935 "or:\n"
22936 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22937 "\n"
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../ocaml/examples/guestfs-ocaml.pod:27
22942 msgid ""
22943 "This manual page documents how to call libguestfs from the OCaml programming "
22944 "language.  This page just documents the differences from the C API and gives "
22945 "some examples.  If you are not familiar with using libguestfs, you also need "
22946 "to read L<guestfs(3)>."
22947 msgstr ""
22948
22949 #. type: =head2
22950 #: ../ocaml/examples/guestfs-ocaml.pod:32
22951 msgid "PROGRAMMING STYLES"
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../ocaml/examples/guestfs-ocaml.pod:34
22956 msgid ""
22957 "There are two different programming styles supported by the OCaml bindings.  "
22958 "You can use a module style, with each C function mapped to an OCaml "
22959 "function:"
22960 msgstr ""
22961
22962 #. type: verbatim
22963 #: ../ocaml/examples/guestfs-ocaml.pod:38
22964 #, no-wrap
22965 msgid ""
22966 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../ocaml/examples/guestfs-ocaml.pod:40
22972 msgid "becomes:"
22973 msgstr ""
22974
22975 #. type: verbatim
22976 #: ../ocaml/examples/guestfs-ocaml.pod:42
22977 #, no-wrap
22978 msgid ""
22979 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22980 "\n"
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../ocaml/examples/guestfs-ocaml.pod:44
22985 msgid ""
22986 "Alternately you can use an object-oriented style, calling methods on the "
22987 "class C<Guestfs.guestfs>:"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../ocaml/examples/guestfs-ocaml.pod:47
22992 #, no-wrap
22993 msgid ""
22994 " method set_verbose : bool -> unit\n"
22995 "\n"
22996 msgstr ""
22997
22998 #. type: textblock
22999 #: ../ocaml/examples/guestfs-ocaml.pod:49
23000 msgid ""
23001 "The object-oriented style is usually briefer, and the minor performance "
23002 "penalty isn't noticable in the general overhead of performing libguestfs "
23003 "functions."
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../ocaml/examples/guestfs-ocaml.pod:55
23008 msgid ""
23009 "The handle is closed when it is reaped by the garbage collector.  Because "
23010 "libguestfs handles include a lot of state, it is also possible to close (and "
23011 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23012 "method."
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../ocaml/examples/guestfs-ocaml.pod:62
23017 msgid ""
23018 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23019 "exception.  This has a single parameter which is the error message (a "
23020 "string)."
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../ocaml/examples/guestfs-ocaml.pod:66
23025 msgid ""
23026 "Calling any function/method on a closed handle raises "
23027 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
23028 "that you called."
23029 msgstr ""
23030
23031 #. type: textblock
23032 #: ../ocaml/examples/guestfs-ocaml.pod:80
23033 msgid ""
23034 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23035 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23036 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
23037 "L<http://caml.inria.fr/>."
23038 msgstr ""
23039
23040 #. type: textblock
23041 #: ../perl/examples/guestfs-perl.pod:5
23042 msgid "guestfs-perl - How to use libguestfs from Perl"
23043 msgstr ""
23044
23045 #. type: verbatim
23046 #: ../perl/examples/guestfs-perl.pod:9
23047 #, no-wrap
23048 msgid ""
23049 " use Sys::Guestfs;\n"
23050 " \n"
23051 msgstr ""
23052
23053 #. type: verbatim
23054 #: ../perl/examples/guestfs-perl.pod:11
23055 #, no-wrap
23056 msgid ""
23057 " my $h = Sys::Guestfs->new ();\n"
23058 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23059 " $h->launch ();\n"
23060 " $h->mount_options ('', '/dev/sda1', '/');\n"
23061 " $h->touch ('/hello');\n"
23062 " $h->sync ();\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../perl/examples/guestfs-perl.pod:20
23068 msgid ""
23069 "This manual page documents how to call libguestfs from the Perl programming "
23070 "language.  This page just documents the differences from the C API and gives "
23071 "some examples.  If you are not familiar with using libguestfs, you also need "
23072 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../perl/examples/guestfs-perl.pod:26
23077 msgid "ERRORS"
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../perl/examples/guestfs-perl.pod:28
23082 msgid ""
23083 "Errors from libguestfs functions turn into calls to C<croak> (see "
23084 "L<Carp(3)>)."
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../perl/examples/guestfs-perl.pod:41
23089 msgid ""
23090 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
23091 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
23092 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
23093 "L<http://libguestfs.org/>."
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../python/examples/guestfs-python.pod:5
23098 msgid "guestfs-python - How to use libguestfs from Python"
23099 msgstr ""
23100
23101 #. type: verbatim
23102 #: ../python/examples/guestfs-python.pod:9
23103 #, no-wrap
23104 msgid ""
23105 " import guestfs\n"
23106 " g = guestfs.GuestFS ()\n"
23107 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23108 " g.launch ()\n"
23109 "\n"
23110 msgstr ""
23111
23112 #. type: textblock
23113 #: ../python/examples/guestfs-python.pod:16
23114 msgid ""
23115 "This manual page documents how to call libguestfs from the Python "
23116 "programming language.  This page just documents the differences from the C "
23117 "API and gives some examples.  If you are not familiar with using libguestfs, "
23118 "you also need to read L<guestfs(3)>."
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../python/examples/guestfs-python.pod:23
23123 msgid ""
23124 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23125 "single string argument which is the error message."
23126 msgstr ""
23127
23128 #. type: =head2
23129 #: ../python/examples/guestfs-python.pod:26
23130 msgid "MORE DOCUMENTATION"
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../python/examples/guestfs-python.pod:28
23135 msgid "Type:"
23136 msgstr ""
23137
23138 #. type: verbatim
23139 #: ../python/examples/guestfs-python.pod:30
23140 #, no-wrap
23141 msgid ""
23142 " $ python\n"
23143 " >>> import guestfs\n"
23144 " >>> help (guestfs)\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../python/examples/guestfs-python.pod:44
23150 msgid ""
23151 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23152 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23153 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23154 msgstr ""
23155
23156 #. type: textblock
23157 #: ../rescue/virt-rescue.pod:5
23158 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23159 msgstr ""
23160
23161 #. type: verbatim
23162 #: ../rescue/virt-rescue.pod:9
23163 #, no-wrap
23164 msgid ""
23165 " virt-rescue [--options] -d domname\n"
23166 "\n"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../rescue/virt-rescue.pod:11
23171 #, no-wrap
23172 msgid ""
23173 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23174 "\n"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../rescue/virt-rescue.pod:13
23179 #, no-wrap
23180 msgid ""
23181 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: verbatim
23186 #: ../rescue/virt-rescue.pod:17
23187 #, no-wrap
23188 msgid ""
23189 " virt-rescue [--options] domname\n"
23190 "\n"
23191 msgstr ""
23192
23193 #. type: verbatim
23194 #: ../rescue/virt-rescue.pod:19
23195 #, no-wrap
23196 msgid ""
23197 " virt-rescue [--options] disk.img [disk.img ...]\n"
23198 "\n"
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../rescue/virt-rescue.pod:23
23203 msgid ""
23204 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23205 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23206 "you from doing this, but doesn't catch all cases."
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../rescue/virt-rescue.pod:27
23211 msgid ""
23212 "However if you use the I<--ro> (read only) option, then you can attach a "
23213 "shell to a live virtual machine.  The results might be strange or "
23214 "inconsistent at times but you won't get disk corruption."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../rescue/virt-rescue.pod:33
23219 msgid ""
23220 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23221 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23222 "recovery tools which you can use to examine or rescue a virtual machine or "
23223 "disk image."
23224 msgstr ""
23225
23226 #. type: textblock
23227 #: ../rescue/virt-rescue.pod:38
23228 msgid ""
23229 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23230 "on disk image(s):"
23231 msgstr ""
23232
23233 #. type: verbatim
23234 #: ../rescue/virt-rescue.pod:41
23235 #, no-wrap
23236 msgid ""
23237 " virt-rescue -d GuestName\n"
23238 "\n"
23239 msgstr ""
23240
23241 #. type: verbatim
23242 #: ../rescue/virt-rescue.pod:43
23243 #, no-wrap
23244 msgid ""
23245 " virt-rescue --ro -a /path/to/disk.img\n"
23246 "\n"
23247 msgstr ""
23248
23249 #. type: verbatim
23250 #: ../rescue/virt-rescue.pod:45
23251 #, no-wrap
23252 msgid ""
23253 " virt-rescue -a /dev/sdc\n"
23254 "\n"
23255 msgstr ""
23256
23257 #. type: textblock
23258 #: ../rescue/virt-rescue.pod:47
23259 msgid "For live VMs you I<must> use the --ro option."
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../rescue/virt-rescue.pod:49
23264 msgid ""
23265 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23266 "in an interactive bash shell where you can use many ordinary Linux "
23267 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23268 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23269 "is an empty directory called C</sysroot> where you can mount filesystems."
23270 msgstr ""
23271
23272 #. type: textblock
23273 #: ../rescue/virt-rescue.pod:56
23274 msgid ""
23275 "You can get virt-rescue to suggest mount commands for you by using the "
23276 "I<--suggest> option (in another terminal):"
23277 msgstr ""
23278
23279 #. type: verbatim
23280 #: ../rescue/virt-rescue.pod:59
23281 #, no-wrap
23282 msgid ""
23283 " $ virt-rescue --suggest -d Fedora15\n"
23284 " Inspecting the virtual machine or disk image ...\n"
23285 " \n"
23286 msgstr ""
23287
23288 #. type: verbatim
23289 #: ../rescue/virt-rescue.pod:62
23290 #, no-wrap
23291 msgid ""
23292 " This disk contains one or more operating systems.  You can use these\n"
23293 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23294 " filesystems.\n"
23295 " \n"
23296 msgstr ""
23297
23298 #. type: verbatim
23299 #: ../rescue/virt-rescue.pod:66
23300 #, no-wrap
23301 msgid ""
23302 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23303 " # type: linux, distro: fedora, version: 15.0\n"
23304 " # Fedora release 15 (Lovelock)\n"
23305 " \n"
23306 msgstr ""
23307
23308 #. type: verbatim
23309 #: ../rescue/virt-rescue.pod:70
23310 #, no-wrap
23311 msgid ""
23312 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23313 " mount /dev/vda1 /sysroot/boot\n"
23314 " mount --bind /dev /sysroot/dev\n"
23315 " mount --bind /dev/pts /sysroot/dev/pts\n"
23316 " mount --bind /proc /sysroot/proc\n"
23317 " mount --bind /sys /sysroot/sys\n"
23318 "\n"
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../rescue/virt-rescue.pod:77
23323 msgid ""
23324 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23325 "(with L<parted(8)>) and mount them by hand:"
23326 msgstr ""
23327
23328 #. type: verbatim
23329 #: ../rescue/virt-rescue.pod:80
23330 #, no-wrap
23331 msgid ""
23332 " ><rescue> lvs\n"
23333 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23334 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23335 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23336 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23337 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23338 " ><rescue> ls /sysroot\n"
23339 "\n"
23340 msgstr ""
23341
23342 #. type: textblock
23343 #: ../rescue/virt-rescue.pod:88
23344 msgid "Another command to list available filesystems is L<virt-filesystems(1)>."
23345 msgstr ""
23346
23347 #. type: textblock
23348 #: ../rescue/virt-rescue.pod:91
23349 msgid ""
23350 "To run commands in a Linux guest (for example, grub), you should chroot into "
23351 "the /sysroot directory first:"
23352 msgstr ""
23353
23354 #. type: verbatim
23355 #: ../rescue/virt-rescue.pod:94
23356 #, no-wrap
23357 msgid ""
23358 " ><rescue> chroot /sysroot\n"
23359 "\n"
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../rescue/virt-rescue.pod:98
23364 msgid ""
23365 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23366 "virtual machine.  For example you can use it on a blank file if you want to "
23367 "partition that file (although we would recommend using L<guestfish(1)> "
23368 "instead as it is more suitable for this purpose).  You can even use "
23369 "virt-rescue on things like SD cards."
23370 msgstr ""
23371
23372 #. type: textblock
23373 #: ../rescue/virt-rescue.pod:104
23374 msgid ""
23375 "Virt-rescue does not require root.  You only need to run it as root if you "
23376 "need root to open the disk image."
23377 msgstr ""
23378
23379 #. type: textblock
23380 #: ../rescue/virt-rescue.pod:107
23381 msgid ""
23382 "This tool is just designed for quick interactive hacking on a virtual "
23383 "machine.  For more structured access to a virtual machine disk image, you "
23384 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23385 "make scripted changes to guests, use L<guestfish(1)>."
23386 msgstr ""
23387
23388 #. type: =item
23389 #: ../rescue/virt-rescue.pod:131
23390 msgid "B<--append kernelopts>"
23391 msgstr ""
23392
23393 #. type: textblock
23394 #: ../rescue/virt-rescue.pod:133
23395 msgid "Pass additional options to the rescue kernel."
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../rescue/virt-rescue.pod:163
23400 #, no-wrap
23401 msgid ""
23402 " virt-rescue --format=raw -a disk.img\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../rescue/virt-rescue.pod:167
23408 #, no-wrap
23409 msgid ""
23410 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23411 "\n"
23412 msgstr ""
23413
23414 #. type: =item
23415 #: ../rescue/virt-rescue.pod:176
23416 msgid "B<-m MB>"
23417 msgstr ""
23418
23419 #. type: =item
23420 #: ../rescue/virt-rescue.pod:178
23421 msgid "B<--memsize MB>"
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../rescue/virt-rescue.pod:180
23426 msgid ""
23427 "Change the amount of memory allocated to the rescue system.  The default is "
23428 "set by libguestfs and is small but adequate for running system tools.  The "
23429 "occasional program might need more memory.  The parameter is specified in "
23430 "megabytes."
23431 msgstr ""
23432
23433 #. type: =item
23434 #: ../rescue/virt-rescue.pod:185
23435 msgid "B<--network>"
23436 msgstr ""
23437
23438 #. type: textblock
23439 #: ../rescue/virt-rescue.pod:187
23440 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23441 msgstr ""
23442
23443 #. type: textblock
23444 #: ../rescue/virt-rescue.pod:193
23445 msgid "Open the image read-only."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../rescue/virt-rescue.pod:203
23450 msgid ""
23451 "Enable SELinux in the rescue appliance.  You should read "
23452 "L<guestfs(3)/SELINUX> before using this option."
23453 msgstr ""
23454
23455 #. type: =item
23456 #: ../rescue/virt-rescue.pod:206
23457 msgid "B<--smp> N"
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../rescue/virt-rescue.pod:208
23462 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23463 msgstr ""
23464
23465 #. type: =item
23466 #: ../rescue/virt-rescue.pod:210
23467 msgid "B<--suggest>"
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../rescue/virt-rescue.pod:212
23472 msgid ""
23473 "Inspect the disk image and suggest what mount commands should be used to "
23474 "mount the disks.  You should use the I<--suggest> option in a second "
23475 "terminal, then paste the commands into another virt-rescue."
23476 msgstr ""
23477
23478 #. type: textblock
23479 #: ../rescue/virt-rescue.pod:216
23480 msgid ""
23481 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23482 "another virt-rescue is running."
23483 msgstr ""
23484
23485 #. type: textblock
23486 #: ../rescue/virt-rescue.pod:235
23487 msgid ""
23488 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23489 "are done read-write."
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../rescue/virt-rescue.pod:248
23494 msgid "Previous versions of virt-rescue allowed you to write either:"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../rescue/virt-rescue.pod:250
23499 #, no-wrap
23500 msgid ""
23501 " virt-rescue disk.img [disk.img ...]\n"
23502 "\n"
23503 msgstr ""
23504
23505 #. type: verbatim
23506 #: ../rescue/virt-rescue.pod:254
23507 #, no-wrap
23508 msgid ""
23509 " virt-rescue guestname\n"
23510 "\n"
23511 msgstr ""
23512
23513 #. type: =head1
23514 #: ../rescue/virt-rescue.pod:262
23515 msgid "NETWORK"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../rescue/virt-rescue.pod:264
23520 msgid ""
23521 "Adding the I<--network> option enables QEMU user networking in the rescue "
23522 "appliance.  There are some differences between user networking and ordinary "
23523 "networking:"
23524 msgstr ""
23525
23526 #. type: =item
23527 #: ../rescue/virt-rescue.pod:270
23528 msgid "ping does not work"
23529 msgstr ""
23530
23531 #. type: textblock
23532 #: ../rescue/virt-rescue.pod:272
23533 msgid ""
23534 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23535 "send the ping packets, and because virt-rescue must be able to run as "
23536 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
23537 "command.  The ping command will appear to resolve addresses but will not be "
23538 "able to send or receive any packets.  This does not mean that the network is "
23539 "not working."
23540 msgstr ""
23541
23542 #. type: =item
23543 #: ../rescue/virt-rescue.pod:279
23544 msgid "cannot receive connections"
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../rescue/virt-rescue.pod:281
23549 msgid "QEMU user networking cannot receive incoming connections."
23550 msgstr ""
23551
23552 #. type: =item
23553 #: ../rescue/virt-rescue.pod:283
23554 msgid "making TCP connections"
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../rescue/virt-rescue.pod:285
23559 msgid ""
23560 "The virt-rescue appliance needs to be small and so does not include many "
23561 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23562 "make TCP connections from the shell using the magical "
23563 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23564 msgstr ""
23565
23566 #. type: verbatim
23567 #: ../rescue/virt-rescue.pod:290
23568 #, no-wrap
23569 msgid ""
23570 " exec 3<>/dev/tcp/redhat.com/80\n"
23571 " echo \"GET /\" >&3\n"
23572 " cat <&3\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../rescue/virt-rescue.pod:294
23578 msgid "See L<bash(1)> for more details."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../rescue/virt-rescue.pod:300
23583 msgid ""
23584 "Several environment variables affect virt-rescue.  See "
23585 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
23586 msgstr ""
23587
23588 #. type: textblock
23589 #: ../rescue/virt-rescue.pod:327
23590 msgid ""
23591 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23592 "L<virt-filesystems(1)>, L<http://libguestfs.org/>."
23593 msgstr ""
23594
23595 #. type: textblock
23596 #: ../resize/virt-resize.pod:5
23597 msgid "virt-resize - Resize a virtual machine disk"
23598 msgstr ""
23599
23600 #. type: verbatim
23601 #: ../resize/virt-resize.pod:9
23602 #, no-wrap
23603 msgid ""
23604 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23605 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23606 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: textblock
23611 #: ../resize/virt-resize.pod:15
23612 msgid ""
23613 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23614 "larger or smaller overall, and resizing or deleting any partitions contained "
23615 "within."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../resize/virt-resize.pod:19
23620 msgid ""
23621 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23622 "not> be used on live virtual machines - for consistent results, shut the "
23623 "virtual machine down before resizing it."
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../resize/virt-resize.pod:23
23628 msgid ""
23629 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23630 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23631 msgstr ""
23632
23633 #. type: =item
23634 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484 ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23635 msgid "1."
23636 msgstr ""
23637
23638 #. type: textblock
23639 #: ../resize/virt-resize.pod:33
23640 msgid ""
23641 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23642 "fill the extra 5GB of space."
23643 msgstr ""
23644
23645 #. type: verbatim
23646 #: ../resize/virt-resize.pod:36
23647 #, no-wrap
23648 msgid ""
23649 " virt-filesystems --long -h --all -a olddisk\n"
23650 " \n"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../resize/virt-resize.pod:38
23655 #, no-wrap
23656 msgid ""
23657 " truncate -r olddisk newdisk\n"
23658 " truncate -s +5G newdisk\n"
23659 " \n"
23660 msgstr ""
23661
23662 #. type: verbatim
23663 #: ../resize/virt-resize.pod:41
23664 #, no-wrap
23665 msgid ""
23666 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23667 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23668 "\n"
23669 msgstr ""
23670
23671 #. type: =item
23672 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490 ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23673 msgid "2."
23674 msgstr ""
23675
23676 #. type: textblock
23677 #: ../resize/virt-resize.pod:46
23678 msgid ""
23679 "As above, but make the /boot partition 200MB bigger, while giving the "
23680 "remaining space to /dev/sda2:"
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../resize/virt-resize.pod:49
23685 #, no-wrap
23686 msgid ""
23687 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23688 "   olddisk newdisk\n"
23689 "\n"
23690 msgstr ""
23691
23692 #. type: =item
23693 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
23694 msgid "3."
23695 msgstr ""
23696
23697 #. type: textblock
23698 #: ../resize/virt-resize.pod:54
23699 msgid ""
23700 "As in the first example, but expand a logical volume as the final step.  "
23701 "This is what you would typically use for Linux guests that use LVM:"
23702 msgstr ""
23703
23704 #. type: verbatim
23705 #: ../resize/virt-resize.pod:58
23706 #, no-wrap
23707 msgid ""
23708 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23709 "   olddisk newdisk\n"
23710 "\n"
23711 msgstr ""
23712
23713 #. type: =item
23714 #: ../resize/virt-resize.pod:61
23715 msgid "4."
23716 msgstr ""
23717
23718 #. type: textblock
23719 #: ../resize/virt-resize.pod:63
23720 msgid ""
23721 "As in the first example, but the output format will be qcow2 instead of a "
23722 "raw disk:"
23723 msgstr ""
23724
23725 #. type: verbatim
23726 #: ../resize/virt-resize.pod:66
23727 #, no-wrap
23728 msgid ""
23729 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23730 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: =head1
23735 #: ../resize/virt-resize.pod:71
23736 msgid "DETAILED USAGE"
23737 msgstr ""
23738
23739 #. type: =head2
23740 #: ../resize/virt-resize.pod:73
23741 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23742 msgstr ""
23743
23744 #. type: =item
23745 #: ../resize/virt-resize.pod:77
23746 msgid "1. Shut down the virtual machine"
23747 msgstr ""
23748
23749 #. type: =item
23750 #: ../resize/virt-resize.pod:79
23751 msgid "2. Locate input disk image"
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../resize/virt-resize.pod:81
23756 msgid ""
23757 "Locate the input disk image (ie. the file or device on the host containing "
23758 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23759 "dumpxml> like this to find the disk image name:"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../resize/virt-resize.pod:85
23764 #, no-wrap
23765 msgid ""
23766 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23767 " Found 1 nodes:\n"
23768 " -- NODE --\n"
23769 " <source dev=\"/dev/vg/lv_guest\" />\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: =item
23774 #: ../resize/virt-resize.pod:90
23775 msgid "3. Look at current sizing"
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../resize/virt-resize.pod:92
23780 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23781 msgstr ""
23782
23783 #. type: verbatim
23784 #: ../resize/virt-resize.pod:95
23785 #, no-wrap
23786 msgid ""
23787 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23788 " Name       Type       Size  Parent\n"
23789 " /dev/sda1  partition  101M  /dev/sda\n"
23790 " /dev/sda2  partition  7.9G  /dev/sda\n"
23791 " /dev/sda   device     8.0G  -\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../resize/virt-resize.pod:101
23797 msgid ""
23798 "(This example is a virtual machine with an 8 GB disk which we would like to "
23799 "expand up to 10 GB)."
23800 msgstr ""
23801
23802 #. type: =item
23803 #: ../resize/virt-resize.pod:104
23804 msgid "4. Create output disk"
23805 msgstr ""
23806
23807 #. type: textblock
23808 #: ../resize/virt-resize.pod:106
23809 msgid ""
23810 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23811 "to store the resized output disk."
23812 msgstr ""
23813
23814 #. type: textblock
23815 #: ../resize/virt-resize.pod:109
23816 msgid "To store the resized disk image in a file, create a file of a suitable size:"
23817 msgstr ""
23818
23819 #. type: verbatim
23820 #: ../resize/virt-resize.pod:112
23821 #, no-wrap
23822 msgid ""
23823 " # rm -f outdisk\n"
23824 " # truncate -s 10G outdisk\n"
23825 "\n"
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../resize/virt-resize.pod:115
23830 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../resize/virt-resize.pod:117
23835 #, no-wrap
23836 msgid ""
23837 " # lvcreate -L 10G -n lv_name vg_name\n"
23838 "\n"
23839 msgstr ""
23840
23841 #. type: textblock
23842 #: ../resize/virt-resize.pod:119
23843 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23844 msgstr ""
23845
23846 #. type: verbatim
23847 #: ../resize/virt-resize.pod:121
23848 #, no-wrap
23849 msgid ""
23850 " # virsh pool-list\n"
23851 " # virsh vol-create-as poolname newvol 10G\n"
23852 "\n"
23853 msgstr ""
23854
23855 #. type: =item
23856 #: ../resize/virt-resize.pod:124
23857 msgid "5. Resize"
23858 msgstr ""
23859
23860 #. type: textblock
23861 #: ../resize/virt-resize.pod:126
23862 msgid ""
23863 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23864 "file) and the output disk.  The output disk is the one created in the "
23865 "previous step."
23866 msgstr ""
23867
23868 #. type: verbatim
23869 #: ../resize/virt-resize.pod:130
23870 #, no-wrap
23871 msgid ""
23872 " # virt-resize indisk outdisk\n"
23873 "\n"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:132
23878 msgid ""
23879 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23880 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23881 "larger, then an extra, empty partition is created at the end of the disk "
23882 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23883 "error."
23884 msgstr ""
23885
23886 #. type: textblock
23887 #: ../resize/virt-resize.pod:138
23888 msgid ""
23889 "More realistically you'd want to expand existing partitions in the disk "
23890 "image by passing extra options (for the full list see the L</OPTIONS> "
23891 "section below)."
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../resize/virt-resize.pod:142
23896 msgid ""
23897 "L</--expand> is the most useful option.  It expands the named partition "
23898 "within the disk to fill any extra space:"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../resize/virt-resize.pod:145
23903 #, no-wrap
23904 msgid ""
23905 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:147
23911 msgid ""
23912 "(In this case, an extra partition is I<not> created at the end of the disk, "
23913 "because there will be no unused space)."
23914 msgstr ""
23915
23916 #. type: textblock
23917 #: ../resize/virt-resize.pod:150
23918 msgid ""
23919 "L</--resize> is the other commonly used option.  The following would "
23920 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23921 "rest of the available space:"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../resize/virt-resize.pod:154
23926 #, no-wrap
23927 msgid ""
23928 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23929 "     indisk outdisk\n"
23930 "\n"
23931 msgstr ""
23932
23933 #. type: textblock
23934 #: ../resize/virt-resize.pod:157
23935 msgid ""
23936 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23937 "if virt-resize knows how, it will resize the contents, the equivalent of "
23938 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23939 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23940 "filesystems, so you would have to online resize them after booting the "
23941 "guest."
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../resize/virt-resize.pod:164
23946 msgid "Other options are covered below."
23947 msgstr ""
23948
23949 #. type: =item
23950 #: ../resize/virt-resize.pod:166
23951 msgid "6. Test"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:168
23956 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../resize/virt-resize.pod:170
23961 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23962 msgstr ""
23963
23964 #. type: verbatim
23965 #: ../resize/virt-resize.pod:172
23966 #, no-wrap
23967 msgid ""
23968 " # virsh edit guestname\n"
23969 "\n"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../resize/virt-resize.pod:174
23974 msgid ""
23975 "Change E<lt>source ...E<gt>, see "
23976 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
23977 msgstr ""
23978
23979 #. type: textblock
23980 #: ../resize/virt-resize.pod:177
23981 msgid "Then start up the domain with the new, resized disk:"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../resize/virt-resize.pod:179
23986 #, no-wrap
23987 msgid ""
23988 " # virsh start guestname\n"
23989 "\n"
23990 msgstr ""
23991
23992 #. type: textblock
23993 #: ../resize/virt-resize.pod:181
23994 msgid ""
23995 "and check that it still works.  See also the L</NOTES> section below for "
23996 "additional information."
23997 msgstr ""
23998
23999 #. type: =item
24000 #: ../resize/virt-resize.pod:184
24001 msgid "7. Resize LVs etc inside the guest"
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../resize/virt-resize.pod:186
24006 msgid "(This can also be done offline using L<guestfish(1)>)"
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../resize/virt-resize.pod:188
24011 msgid ""
24012 "Once the guest has booted you should see the new space available, at least "
24013 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24014 "may need to resize LVs inside PVs, and also resize filesystem types that "
24015 "virt-resize does not know how to expand."
24016 msgstr ""
24017
24018 #. type: =head2
24019 #: ../resize/virt-resize.pod:195
24020 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24021 msgstr ""
24022
24023 #. type: textblock
24024 #: ../resize/virt-resize.pod:197
24025 msgid ""
24026 "Shrinking is somewhat more complex than expanding, and only an overview is "
24027 "given here."
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../resize/virt-resize.pod:200
24032 msgid ""
24033 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24034 "filesystems).  The user has to shrink content before passing the disk image "
24035 "to virt-resize, and virt-resize will check that the content has been shrunk "
24036 "properly."
24037 msgstr ""
24038
24039 #. type: textblock
24040 #: ../resize/virt-resize.pod:205
24041 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24042 msgstr ""
24043
24044 #. type: textblock
24045 #: ../resize/virt-resize.pod:207
24046 msgid ""
24047 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24048 "steps 3 and 4 above to allocate a new disk image."
24049 msgstr ""
24050
24051 #. type: textblock
24052 #: ../resize/virt-resize.pod:210
24053 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24054 msgstr ""
24055
24056 #. type: =head2
24057 #: ../resize/virt-resize.pod:213
24058 msgid "IGNORING OR DELETING PARTITIONS"
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../resize/virt-resize.pod:215
24063 msgid ""
24064 "virt-resize also gives a convenient way to ignore or delete partitions when "
24065 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24066 "up the copy where you don't care about the existing contents of a "
24067 "partition.  Deleting a partition removes it completely, but note that it "
24068 "also renumbers any partitions after the one which is deleted, which can "
24069 "leave some guests unbootable."
24070 msgstr ""
24071
24072 #. type: =head2
24073 #: ../resize/virt-resize.pod:222
24074 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../resize/virt-resize.pod:224
24079 msgid ""
24080 "If the input disk is in qcow2 format, then you may prefer that the output is "
24081 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24082 "the fly.  The output format is simply determined by the format of the empty "
24083 "output container that you provide.  Thus to create qcow2 output, use:"
24084 msgstr ""
24085
24086 #. type: verbatim
24087 #: ../resize/virt-resize.pod:230
24088 #, no-wrap
24089 msgid ""
24090 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24091 "\n"
24092 msgstr ""
24093
24094 #. type: textblock
24095 #: ../resize/virt-resize.pod:232
24096 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../resize/virt-resize.pod:234
24101 msgid "Similarly, to get non-sparse raw output use:"
24102 msgstr ""
24103
24104 #. type: verbatim
24105 #: ../resize/virt-resize.pod:236
24106 #, no-wrap
24107 msgid ""
24108 " fallocate -l size outdisk\n"
24109 "\n"
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../resize/virt-resize.pod:238
24114 msgid ""
24115 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
24116 "if=/dev/zero of=outdisk bs=1M count=..>)"
24117 msgstr ""
24118
24119 #. type: =head2
24120 #: ../resize/virt-resize.pod:241
24121 msgid "LOGICAL PARTITIONS"
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../resize/virt-resize.pod:243
24126 msgid ""
24127 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24128 "tables) cannot be resized."
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../resize/virt-resize.pod:246
24133 msgid ""
24134 "To understand what is going on, firstly one of the four partitions "
24135 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
24136 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
24137 "partition type."
24138 msgstr ""
24139
24140 #. type: textblock
24141 #: ../resize/virt-resize.pod:251
24142 msgid "Logical partitions live inside the extended partition."
24143 msgstr ""
24144
24145 #. type: textblock
24146 #: ../resize/virt-resize.pod:253
24147 msgid ""
24148 "The extended partition can be expanded, but not shrunk (unless you force it, "
24149 "which is not advisable).  When the extended partition is copied across, all "
24150 "the logical partitions contained inside are copied over implicitly.  "
24151 "Virt-resize does not look inside the extended partition, so it copies the "
24152 "logical partitions blindly."
24153 msgstr ""
24154
24155 #. type: textblock
24156 #: ../resize/virt-resize.pod:259
24157 msgid ""
24158 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24159 "line.  Doing so will give an error."
24160 msgstr ""
24161
24162 #. type: textblock
24163 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24164 msgid "Display help."
24165 msgstr ""
24166
24167 #. type: =item
24168 #: ../resize/virt-resize.pod:270
24169 msgid "B<--align-first auto>"
24170 msgstr ""
24171
24172 #. type: =item
24173 #: ../resize/virt-resize.pod:272
24174 msgid "B<--align-first never>"
24175 msgstr ""
24176
24177 #. type: =item
24178 #: ../resize/virt-resize.pod:274
24179 msgid "B<--align-first always>"
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../resize/virt-resize.pod:276
24184 msgid ""
24185 "Align the first partition for improved performance (see also the "
24186 "I<--alignment> option)."
24187 msgstr ""
24188
24189 #. type: textblock
24190 #: ../resize/virt-resize.pod:279
24191 msgid ""
24192 "The default is I<--align-first auto> which only aligns the first partition "
24193 "if it is safe to do so.  That is, only when we know how to fix the "
24194 "bootloader automatically, and at the moment that can only be done for "
24195 "Windows guests."
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../resize/virt-resize.pod:284
24200 msgid ""
24201 "I<--align-first never> means we never move the first partition.  This is the "
24202 "safest option.  Try this if the guest does not boot after resizing."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:288
24207 msgid ""
24208 "I<--align-first always> means we always align the first partition (if it "
24209 "needs to be aligned).  For some guests this will break the bootloader, "
24210 "making the guest unbootable."
24211 msgstr ""
24212
24213 #. type: =item
24214 #: ../resize/virt-resize.pod:292
24215 msgid "B<--alignment N>"
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../resize/virt-resize.pod:294
24220 msgid ""
24221 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24222 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24223 msgstr ""
24224
24225 #. type: textblock
24226 #: ../resize/virt-resize.pod:298
24227 msgid ""
24228 "Assuming 512 byte sector size inside the guest, here are some suitable "
24229 "values for this:"
24230 msgstr ""
24231
24232 #. type: =item
24233 #: ../resize/virt-resize.pod:303
24234 msgid "I<--alignment 1> (512 bytes)"
24235 msgstr ""
24236
24237 #. type: textblock
24238 #: ../resize/virt-resize.pod:305
24239 msgid ""
24240 "The partitions would be packed together as closely as possible, but would be "
24241 "completely unaligned.  In some cases this can cause very poor performance.  "
24242 "See L<virt-alignment-scan(1)> for further details."
24243 msgstr ""
24244
24245 #. type: =item
24246 #: ../resize/virt-resize.pod:309
24247 msgid "I<--alignment 8> (4K)"
24248 msgstr ""
24249
24250 #. type: textblock
24251 #: ../resize/virt-resize.pod:311
24252 msgid ""
24253 "This would be the minimum acceptable alignment for reasonable performance on "
24254 "modern hosts."
24255 msgstr ""
24256
24257 #. type: =item
24258 #: ../resize/virt-resize.pod:314
24259 msgid "I<--alignment 128> (64K)"
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../resize/virt-resize.pod:316
24264 msgid ""
24265 "This alignment provides good performance when the host is using high end "
24266 "network storage."
24267 msgstr ""
24268
24269 #. type: =item
24270 #: ../resize/virt-resize.pod:319
24271 msgid "I<--alignment 2048> (1M)"
24272 msgstr ""
24273
24274 #. type: textblock
24275 #: ../resize/virt-resize.pod:321
24276 msgid ""
24277 "This is the standard alignment used by all newly installed guests since "
24278 "around 2008."
24279 msgstr ""
24280
24281 #. type: =item
24282 #: ../resize/virt-resize.pod:326
24283 msgid "B<-d>"
24284 msgstr ""
24285
24286 #. type: =item
24287 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
24288 msgid "B<--debug>"
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24293 msgid "Enable debugging messages."
24294 msgstr ""
24295
24296 #. type: =item
24297 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
24298 msgid "B<--debug-gc>"
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:334
24303 msgid ""
24304 "Debug garbage collection and memory allocation.  This is only useful when "
24305 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24306 msgstr ""
24307
24308 #. type: =item
24309 #: ../resize/virt-resize.pod:338
24310 msgid "B<--delete part>"
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../resize/virt-resize.pod:340
24315 msgid ""
24316 "Delete the named partition.  It would be more accurate to describe this as "
24317 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24318 "the original disk image is left intact."
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../resize/virt-resize.pod:344
24323 msgid ""
24324 "Note that when you delete a partition, then anything contained in the "
24325 "partition is also deleted.  Furthermore, this causes any partitions that "
24326 "come after to be I<renumbered>, which can easily make your guest unbootable."
24327 msgstr ""
24328
24329 #. type: textblock
24330 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410 ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
24331 msgid "You can give this option multiple times."
24332 msgstr ""
24333
24334 #. type: =item
24335 #: ../resize/virt-resize.pod:351
24336 msgid "B<--expand part>"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../resize/virt-resize.pod:353
24341 msgid ""
24342 "Expand the named partition so it uses up all extra space (space left over "
24343 "after any other resize changes that you request have been done)."
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../resize/virt-resize.pod:356
24348 msgid ""
24349 "If virt-resize knows how, it will expand the direct content of the "
24350 "partition.  For example, if the partition is an LVM PV, it will expand the "
24351 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24352 "content it doesn't know about alone."
24353 msgstr ""
24354
24355 #. type: textblock
24356 #: ../resize/virt-resize.pod:361
24357 msgid "Currently virt-resize can resize:"
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../resize/virt-resize.pod:367
24362 msgid "ext2, ext3 and ext4 filesystems."
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../resize/virt-resize.pod:371
24367 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24368 msgstr ""
24369
24370 #. type: textblock
24371 #: ../resize/virt-resize.pod:373
24372 msgid ""
24373 "The filesystem must have been shut down consistently last time it was used.  "
24374 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24375 "consistency check, so at the first boot after resizing Windows will check "
24376 "the disk."
24377 msgstr ""
24378
24379 #. type: textblock
24380 #: ../resize/virt-resize.pod:380
24381 msgid ""
24382 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24383 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24384 "resize LVs as desired after boot."
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../resize/virt-resize.pod:386
24389 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
24394 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24395 msgstr ""
24396
24397 #. type: =item
24398 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24399 msgid "B<--format> raw"
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
24404 msgid ""
24405 "Specify the format of the input disk image.  If this flag is not given then "
24406 "it is auto-detected from the image itself."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../resize/virt-resize.pod:400
24411 msgid ""
24412 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24413 "AND NON-SPARSE RAW FORMATS>."
24414 msgstr ""
24415
24416 #. type: =item
24417 #: ../resize/virt-resize.pod:403
24418 msgid "B<--ignore part>"
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../resize/virt-resize.pod:405
24423 msgid ""
24424 "Ignore the named partition.  Effectively this means the partition is "
24425 "allocated on the destination disk, but the content is not copied across from "
24426 "the source disk.  The content of the partition will be blank (all zero "
24427 "bytes)."
24428 msgstr ""
24429
24430 #. type: =item
24431 #: ../resize/virt-resize.pod:412
24432 msgid "B<--LV-expand logvol>"
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../resize/virt-resize.pod:414
24437 msgid ""
24438 "This takes the logical volume and, as a final step, expands it to fill all "
24439 "the space available in its volume group.  A typical usage, assuming a Linux "
24440 "guest with a single PV C</dev/sda2> and a root device called "
24441 "C</dev/vg_guest/lv_root> would be:"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../resize/virt-resize.pod:419
24446 #, no-wrap
24447 msgid ""
24448 " virt-resize indisk outdisk \\\n"
24449 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24450 "\n"
24451 msgstr ""
24452
24453 #. type: textblock
24454 #: ../resize/virt-resize.pod:422
24455 msgid ""
24456 "This would first expand the partition (and PV), and then expand the root "
24457 "device to fill the extra space in the PV."
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../resize/virt-resize.pod:425
24462 msgid ""
24463 "The contents of the LV are also resized if virt-resize knows how to do "
24464 "that.  You can stop virt-resize from trying to expand the content by using "
24465 "the option I<--no-expand-content>."
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../resize/virt-resize.pod:429
24470 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24471 msgstr ""
24472
24473 #. type: textblock
24474 #: ../resize/virt-resize.pod:431
24475 msgid ""
24476 "You can give this option multiple times, I<but> it doesn't make sense to do "
24477 "this unless the logical volumes you specify are all in different volume "
24478 "groups."
24479 msgstr ""
24480
24481 #. type: =item
24482 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
24483 msgid "B<--machine-readable>"
24484 msgstr ""
24485
24486 #. type: textblock
24487 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
24488 msgid ""
24489 "This option is used to make the output more machine friendly when being "
24490 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24491 msgstr ""
24492
24493 #. type: =item
24494 #: ../resize/virt-resize.pod:443
24495 msgid "B<--dryrun>"
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../resize/virt-resize.pod:445
24500 msgid "Print a summary of what would be done, but don't do anything."
24501 msgstr ""
24502
24503 #. type: =item
24504 #: ../resize/virt-resize.pod:447
24505 msgid "B<--no-copy-boot-loader>"
24506 msgstr ""
24507
24508 #. type: textblock
24509 #: ../resize/virt-resize.pod:449
24510 msgid ""
24511 "By default, virt-resize copies over some sectors at the start of the disk "
24512 "(up to the beginning of the first partition).  Commonly these sectors "
24513 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24514 "in order for the guest to boot correctly."
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:454
24519 msgid ""
24520 "If you specify this flag, then this initial copy is not done.  You may need "
24521 "to reinstall the boot loader in this case."
24522 msgstr ""
24523
24524 #. type: =item
24525 #: ../resize/virt-resize.pod:457
24526 msgid "B<--no-extra-partition>"
24527 msgstr ""
24528
24529 #. type: textblock
24530 #: ../resize/virt-resize.pod:459
24531 msgid ""
24532 "By default, virt-resize creates an extra partition if there is any extra, "
24533 "unused space after all resizing has happened.  Use this option to prevent "
24534 "the extra partition from being created.  If you do this then the extra space "
24535 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24536 "tool in the guest."
24537 msgstr ""
24538
24539 #. type: textblock
24540 #: ../resize/virt-resize.pod:465
24541 msgid ""
24542 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24543 "will be created."
24544 msgstr ""
24545
24546 #. type: =item
24547 #: ../resize/virt-resize.pod:468
24548 msgid "B<--no-expand-content>"
24549 msgstr ""
24550
24551 #. type: textblock
24552 #: ../resize/virt-resize.pod:470
24553 msgid ""
24554 "By default, virt-resize will try to expand the direct contents of "
24555 "partitions, if it knows how (see I<--expand> option above)."
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../resize/virt-resize.pod:473
24560 msgid ""
24561 "If you give the I<--no-expand-content> option then virt-resize will not "
24562 "attempt this."
24563 msgstr ""
24564
24565 #. type: =item
24566 #: ../resize/virt-resize.pod:476
24567 msgid "B<--ntfsresize-force>"
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../resize/virt-resize.pod:478
24572 msgid ""
24573 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24574 "the NTFS disk is marked as needing a consistency check.  You have to use "
24575 "this option if you want to resize a Windows guest multiple times without "
24576 "booting into Windows between each resize."
24577 msgstr ""
24578
24579 #. type: =item
24580 #: ../resize/virt-resize.pod:484
24581 msgid "B<--output-format> raw"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:486
24586 msgid ""
24587 "Specify the format of the output disk image.  If this flag is not given then "
24588 "it is auto-detected from the image itself."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../resize/virt-resize.pod:492
24593 msgid ""
24594 "Note that this option I<does not create> the output format.  This option "
24595 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24596 "need to create the output disk with the right format.  See L</QCOW2 AND "
24597 "NON-SPARSE RAW FORMATS>."
24598 msgstr ""
24599
24600 #. type: textblock
24601 #: ../resize/virt-resize.pod:501
24602 msgid "Don't print the summary."
24603 msgstr ""
24604
24605 #. type: =item
24606 #: ../resize/virt-resize.pod:503
24607 msgid "B<--resize part=size>"
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../resize/virt-resize.pod:505
24612 msgid ""
24613 "Resize the named partition (expanding or shrinking it) so that it has the "
24614 "given size."
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../resize/virt-resize.pod:508
24619 msgid ""
24620 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24621 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24622 "size; or as a relative number or percentage.  For example:"
24623 msgstr ""
24624
24625 #. type: verbatim
24626 #: ../resize/virt-resize.pod:514
24627 #, no-wrap
24628 msgid ""
24629 " --resize /dev/sda2=10G\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../resize/virt-resize.pod:516
24635 #, no-wrap
24636 msgid ""
24637 " --resize /dev/sda4=90%\n"
24638 "\n"
24639 msgstr ""
24640
24641 #. type: verbatim
24642 #: ../resize/virt-resize.pod:518
24643 #, no-wrap
24644 msgid ""
24645 " --resize /dev/sda2=+1G\n"
24646 "\n"
24647 msgstr ""
24648
24649 #. type: verbatim
24650 #: ../resize/virt-resize.pod:520
24651 #, no-wrap
24652 msgid ""
24653 " --resize /dev/sda2=-200M\n"
24654 "\n"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../resize/virt-resize.pod:522
24659 #, no-wrap
24660 msgid ""
24661 " --resize /dev/sda1=+128K\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../resize/virt-resize.pod:524
24667 #, no-wrap
24668 msgid ""
24669 " --resize /dev/sda1=+10%\n"
24670 "\n"
24671 msgstr ""
24672
24673 #. type: verbatim
24674 #: ../resize/virt-resize.pod:526
24675 #, no-wrap
24676 msgid ""
24677 " --resize /dev/sda1=-10%\n"
24678 "\n"
24679 msgstr ""
24680
24681 #. type: textblock
24682 #: ../resize/virt-resize.pod:528
24683 msgid ""
24684 "You can increase the size of any partition.  Virt-resize will expand the "
24685 "direct content of the partition if it knows how (see I<--expand> below)."
24686 msgstr ""
24687
24688 #. type: textblock
24689 #: ../resize/virt-resize.pod:532
24690 msgid ""
24691 "You can only I<decrease> the size of partitions that contain filesystems or "
24692 "PVs which have already been shrunk.  Virt-resize will check this has been "
24693 "done before proceeding, or else will print an error (see also "
24694 "I<--resize-force>)."
24695 msgstr ""
24696
24697 #. type: =item
24698 #: ../resize/virt-resize.pod:539
24699 msgid "B<--resize-force part=size>"
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../resize/virt-resize.pod:541
24704 msgid ""
24705 "This is the same as I<--resize> except that it will let you decrease the "
24706 "size of any partition.  Generally this means you will lose any data which "
24707 "was at the end of the partition you shrink, but you may not care about that "
24708 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24709 "as a swap partition)."
24710 msgstr ""
24711
24712 #. type: textblock
24713 #: ../resize/virt-resize.pod:547
24714 msgid "See also the I<--ignore> option."
24715 msgstr ""
24716
24717 #. type: =item
24718 #: ../resize/virt-resize.pod:549
24719 msgid "B<--shrink part>"
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../resize/virt-resize.pod:551
24724 msgid ""
24725 "Shrink the named partition until the overall disk image fits in the "
24726 "destination.  The named partition B<must> contain a filesystem or PV which "
24727 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24728 "online tools).  Virt-resize will check this and give an error if it has not "
24729 "been done."
24730 msgstr ""
24731
24732 #. type: textblock
24733 #: ../resize/virt-resize.pod:557
24734 msgid ""
24735 "The amount by which the overall disk must be shrunk (after carrying out all "
24736 "other operations requested by the user) is called the \"deficit\".  For "
24737 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24738 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24739 "would give an error unless the user specified a partition to shrink and that "
24740 "partition had more than a gigabyte of free space."
24741 msgstr ""
24742
24743 #. type: =head1
24744 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
24745 msgid "MACHINE READABLE OUTPUT"
24746 msgstr ""
24747
24748 #. type: textblock
24749 #: ../resize/virt-resize.pod:577
24750 msgid ""
24751 "The I<--machine-readable> option can be used to make the output more machine "
24752 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24753 "etc."
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
24758 msgid "There are two ways to use this option."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../resize/virt-resize.pod:583
24763 msgid ""
24764 "Firstly use the option on its own to query the capabilities of the "
24765 "virt-resize binary.  Typical output looks like this:"
24766 msgstr ""
24767
24768 #. type: verbatim
24769 #: ../resize/virt-resize.pod:586
24770 #, no-wrap
24771 msgid ""
24772 " $ virt-resize --machine-readable\n"
24773 " virt-resize\n"
24774 " ntfsresize-force\n"
24775 " 32bitok\n"
24776 " ntfs\n"
24777 " btrfs\n"
24778 "\n"
24779 msgstr ""
24780
24781 #. type: textblock
24782 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
24783 msgid ""
24784 "A list of features is printed, one per line, and the program exits with "
24785 "status 0."
24786 msgstr ""
24787
24788 #. type: textblock
24789 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
24790 msgid ""
24791 "Secondly use the option in conjunction with other options to make the "
24792 "regular program output more machine friendly."
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
24797 msgid "At the moment this means:"
24798 msgstr ""
24799
24800 #. type: textblock
24801 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
24802 msgid ""
24803 "Progress bar messages can be parsed from stdout by looking for this regular "
24804 "expression:"
24805 msgstr ""
24806
24807 #. type: verbatim
24808 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
24809 #, no-wrap
24810 msgid ""
24811 " ^[0-9]+/[0-9]+$\n"
24812 "\n"
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
24817 msgid ""
24818 "The calling program should treat messages sent to stdout (except for "
24819 "progress bar messages) as status messages.  They can be logged and/or "
24820 "displayed to the user."
24821 msgstr ""
24822
24823 #. type: textblock
24824 #: ../resize/virt-resize.pod:618
24825 msgid ""
24826 "The calling program should treat messages sent to stderr as error messages.  "
24827 "In addition, virt-resize exits with a non-zero status code if there was a "
24828 "fatal error."
24829 msgstr ""
24830
24831 #. type: textblock
24832 #: ../resize/virt-resize.pod:624
24833 msgid ""
24834 "Versions of the program prior to 1.13.9 did not support the "
24835 "I<--machine-readable> option and will return an error."
24836 msgstr ""
24837
24838 #. type: =head2
24839 #: ../resize/virt-resize.pod:629
24840 msgid "\"Partition 1 does not end on cylinder boundary.\""
24841 msgstr ""
24842
24843 #. type: textblock
24844 #: ../resize/virt-resize.pod:631
24845 msgid ""
24846 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
24847 "I<--alignment> parameter).  Usually this means the partitions will not be "
24848 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24849 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24850 "drives.  Alignment of partitions to cylinders is not required by any modern "
24851 "operating system."
24852 msgstr ""
24853
24854 #. type: =head2
24855 #: ../resize/virt-resize.pod:638
24856 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24857 msgstr ""
24858
24859 #. type: textblock
24860 #: ../resize/virt-resize.pod:640
24861 msgid ""
24862 "In Windows Vista and later versions, Microsoft switched to using a separate "
24863 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24864 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24865 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24866 "the second partition (ie. C: drive)  should work."
24867 msgstr ""
24868
24869 #. type: textblock
24870 #: ../resize/virt-resize.pod:647
24871 msgid ""
24872 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24873 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24874 "it find errors) is nothing to worry about."
24875 msgstr ""
24876
24877 #. type: =head2
24878 #: ../resize/virt-resize.pod:651
24879 msgid "GUEST BOOT STUCK AT \"GRUB\""
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../resize/virt-resize.pod:653
24884 msgid ""
24885 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24886 "printing C<GRUB> on the console, try reinstalling grub."
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../resize/virt-resize.pod:656
24891 #, no-wrap
24892 msgid ""
24893 " guestfish -i -a newdisk\n"
24894 " ><fs> cat /boot/grub/device.map\n"
24895 " # check the contents of this file are sensible or\n"
24896 " # edit the file if necessary\n"
24897 " ><fs> grub-install / /dev/vda\n"
24898 " ><fs> exit\n"
24899 "\n"
24900 msgstr ""
24901
24902 #. type: textblock
24903 #: ../resize/virt-resize.pod:663
24904 msgid ""
24905 "For more flexible guest reconfiguration, including if you need to specify "
24906 "other parameters to grub-install, use L<virt-rescue(1)>."
24907 msgstr ""
24908
24909 #. type: =head1
24910 #: ../resize/virt-resize.pod:666
24911 msgid "ALTERNATIVE TOOLS"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../resize/virt-resize.pod:668
24916 msgid ""
24917 "There are several proprietary tools for resizing partitions.  We won't "
24918 "mention any here."
24919 msgstr ""
24920
24921 #. type: textblock
24922 #: ../resize/virt-resize.pod:671
24923 msgid ""
24924 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24925 "operations on disk images.  They can resize and move partitions, but I don't "
24926 "think they can do anything with the contents, and they certainly don't "
24927 "understand LVM."
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../resize/virt-resize.pod:676
24932 msgid ""
24933 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24934 "but at a much lower level.  You will probably end up hand-calculating sector "
24935 "offsets, which is something that virt-resize was designed to avoid.  If you "
24936 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24937 "I<--debug> flag."
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../resize/virt-resize.pod:696
24942 msgid ""
24943 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
24944 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
24945 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
24946 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
24947 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24948 msgstr ""
24949
24950 #. type: textblock
24951 #: ../ruby/examples/guestfs-ruby.pod:5
24952 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../ruby/examples/guestfs-ruby.pod:9
24957 #, no-wrap
24958 msgid ""
24959 " require 'guestfs'\n"
24960 " g = Guestfs::Guestfs.new()\n"
24961 " g.add_drive_opts(\"disk.img\",\n"
24962 "                  :readonly => 1, :format => \"raw\")\n"
24963 " g.launch()\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../ruby/examples/guestfs-ruby.pod:17
24969 msgid ""
24970 "This manual page documents how to call libguestfs from the Ruby programming "
24971 "language.  This page just documents the differences from the C API and gives "
24972 "some examples.  If you are not familiar with using libguestfs, you also need "
24973 "to read L<guestfs(3)>."
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../ruby/examples/guestfs-ruby.pod:24
24978 msgid ""
24979 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24980 "This has a single parameter which is the error message (a string)."
24981 msgstr ""
24982
24983 #. type: textblock
24984 #: ../ruby/examples/guestfs-ruby.pod:38
24985 msgid ""
24986 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
24987 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
24988 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../sparsify/virt-sparsify.pod:5
24993 msgid "virt-sparsify - Make a virtual machine disk sparse"
24994 msgstr ""
24995
24996 #. type: verbatim
24997 #: ../sparsify/virt-sparsify.pod:9
24998 #, no-wrap
24999 msgid ""
25000 " virt-sparsify [--options] indisk outdisk\n"
25001 "\n"
25002 msgstr ""
25003
25004 #. type: textblock
25005 #: ../sparsify/virt-sparsify.pod:13
25006 msgid ""
25007 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25008 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25009 "the disk image can be converted back to free space on the host."
25010 msgstr ""
25011
25012 #. type: textblock
25013 #: ../sparsify/virt-sparsify.pod:18
25014 msgid ""
25015 "Virt-sparsify can locate and sparsify free space in most filesystems "
25016 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25017 msgstr ""
25018
25019 #. type: textblock
25020 #: ../sparsify/virt-sparsify.pod:21
25021 msgid ""
25022 "Virt-sparsify can also convert between some disk formats, for example "
25023 "converting a raw disk image to a thin-provisioned qcow2 image."
25024 msgstr ""
25025
25026 #. type: textblock
25027 #: ../sparsify/virt-sparsify.pod:24
25028 msgid ""
25029 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25030 "machines.  If a virtual machine has more than one attached disk, you must "
25031 "sparsify each one separately."
25032 msgstr ""
25033
25034 #. type: =head2
25035 #: ../sparsify/virt-sparsify.pod:28
25036 msgid "IMPORTANT LIMITATIONS"
25037 msgstr ""
25038
25039 #. type: textblock
25040 #: ../sparsify/virt-sparsify.pod:34
25041 msgid ""
25042 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25043 "image to a destination image, leaving the source unchanged.  I<Check that "
25044 "the sparsification was successful before deleting the source image>."
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../sparsify/virt-sparsify.pod:41
25049 msgid "The virtual machine I<must be shut down> before using this tool."
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../sparsify/virt-sparsify.pod:45
25054 msgid ""
25055 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25056 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25057 "usually much less space is required."
25058 msgstr ""
25059
25060 #. type: textblock
25061 #: ../sparsify/virt-sparsify.pod:51
25062 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../sparsify/virt-sparsify.pod:56
25067 msgid "Virt-sparsify cannot handle encrypted disks."
25068 msgstr ""
25069
25070 #. type: textblock
25071 #: ../sparsify/virt-sparsify.pod:60
25072 msgid ""
25073 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25074 "this space is often used for critical items like bootloaders so it's not "
25075 "really unused."
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../sparsify/virt-sparsify.pod:66
25080 msgid ""
25081 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25082 "to do this unless we can be sure there is no hibernation data, so at the "
25083 "moment swap partitions are ignored."
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../sparsify/virt-sparsify.pod:72
25088 msgid ""
25089 "You may also want to read the manual pages for the associated tools "
25090 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
25091 msgstr ""
25092
25093 #. type: textblock
25094 #: ../sparsify/virt-sparsify.pod:77
25095 msgid "Typical usage is:"
25096 msgstr ""
25097
25098 #. type: verbatim
25099 #: ../sparsify/virt-sparsify.pod:79
25100 #, no-wrap
25101 msgid ""
25102 " virt-sparsify indisk outdisk\n"
25103 "\n"
25104 msgstr ""
25105
25106 #. type: textblock
25107 #: ../sparsify/virt-sparsify.pod:81
25108 msgid ""
25109 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25110 "is created, or overwritten if it already exists.  The format of the input "
25111 "disk is detected (eg. qcow2) and the same format is used for the output "
25112 "disk."
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../sparsify/virt-sparsify.pod:86
25117 msgid "To convert between formats, use the I<--convert> option:"
25118 msgstr ""
25119
25120 #. type: verbatim
25121 #: ../sparsify/virt-sparsify.pod:88
25122 #, no-wrap
25123 msgid ""
25124 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25125 "\n"
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../sparsify/virt-sparsify.pod:90
25130 msgid ""
25131 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25132 "can find within the source disk image.  You can get it to ignore (don't zero "
25133 "free space on) certain filesystems by doing:"
25134 msgstr ""
25135
25136 #. type: verbatim
25137 #: ../sparsify/virt-sparsify.pod:94
25138 #, no-wrap
25139 msgid ""
25140 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25141 "\n"
25142 msgstr ""
25143
25144 #. type: textblock
25145 #: ../sparsify/virt-sparsify.pod:96
25146 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25147 msgstr ""
25148
25149 #. type: =item
25150 #: ../sparsify/virt-sparsify.pod:107
25151 msgid "B<--compress>"
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../sparsify/virt-sparsify.pod:109
25156 msgid ""
25157 "Compress the output file.  This I<only> works if the output format is "
25158 "C<qcow2>."
25159 msgstr ""
25160
25161 #. type: =item
25162 #: ../sparsify/virt-sparsify.pod:112
25163 msgid "B<--convert> raw"
25164 msgstr ""
25165
25166 #. type: =item
25167 #: ../sparsify/virt-sparsify.pod:114
25168 msgid "B<--convert> qcow2"
25169 msgstr ""
25170
25171 #. type: =item
25172 #: ../sparsify/virt-sparsify.pod:116
25173 msgid "B<--convert> [other formats]"
25174 msgstr ""
25175
25176 #. type: textblock
25177 #: ../sparsify/virt-sparsify.pod:118
25178 msgid ""
25179 "Use C<output-format> as the format for the destination image.  If this is "
25180 "not specified, then the input format is used."
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../sparsify/virt-sparsify.pod:121
25185 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../sparsify/virt-sparsify.pod:123
25190 msgid ""
25191 "You can also use any format supported by the L<qemu-img(1)> program, "
25192 "eg. C<vmdk>, but support for other formats is reliant on qemu."
25193 msgstr ""
25194
25195 #. type: textblock
25196 #: ../sparsify/virt-sparsify.pod:126
25197 msgid ""
25198 "Specifying the I<--convert> option is usually a good idea, because then "
25199 "virt-sparsify doesn't need to try to guess the input format."
25200 msgstr ""
25201
25202 #. type: textblock
25203 #: ../sparsify/virt-sparsify.pod:129
25204 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../sparsify/virt-sparsify.pod:133
25209 msgid ""
25210 "Debug garbage collection and memory allocation.  This is only useful when "
25211 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25212 msgstr ""
25213
25214 #. type: =item
25215 #: ../sparsify/virt-sparsify.pod:139
25216 msgid "B<--format> qcow2"
25217 msgstr ""
25218
25219 #. type: =item
25220 #: ../sparsify/virt-sparsify.pod:147
25221 msgid "B<--ignore> filesystem"
25222 msgstr ""
25223
25224 #. type: =item
25225 #: ../sparsify/virt-sparsify.pod:149
25226 msgid "B<--ignore> volgroup"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../sparsify/virt-sparsify.pod:151
25231 msgid ""
25232 "Ignore the named filesystem.  Free space on the filesystem will not be "
25233 "zeroed, but existing blocks of zeroes will still be sparsified."
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../sparsify/virt-sparsify.pod:154
25238 msgid ""
25239 "In the second form, this ignores the named volume group.  Use the volume "
25240 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25241 msgstr ""
25242
25243 #. type: =item
25244 #: ../sparsify/virt-sparsify.pod:165
25245 msgid "B<-o> option[,option,...]"
25246 msgstr ""
25247
25248 #. type: textblock
25249 #: ../sparsify/virt-sparsify.pod:167
25250 msgid ""
25251 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25252 "format.  Options available depend on the output format (see I<--convert>) "
25253 "and the installed version of the qemu-img program."
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../sparsify/virt-sparsify.pod:171
25258 msgid ""
25259 "You should use I<-o> at most once.  To pass multiple options, separate them "
25260 "with commas, eg:"
25261 msgstr ""
25262
25263 #. type: verbatim
25264 #: ../sparsify/virt-sparsify.pod:174
25265 #, no-wrap
25266 msgid ""
25267 " virt-sparsify --convert qcow2 \\\n"
25268 "   -o cluster_size=512,preallocation=metadata ...\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../sparsify/virt-sparsify.pod:181
25274 msgid "This disables progress bars and other unnecessary output."
25275 msgstr ""
25276
25277 #. type: textblock
25278 #: ../sparsify/virt-sparsify.pod:203
25279 msgid ""
25280 "The I<--machine-readable> option can be used to make the output more machine "
25281 "friendly, which is useful when calling virt-sparsify from other programs, "
25282 "GUIs etc."
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../sparsify/virt-sparsify.pod:209
25287 msgid ""
25288 "Firstly use the option on its own to query the capabilities of the "
25289 "virt-sparsify binary.  Typical output looks like this:"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../sparsify/virt-sparsify.pod:212
25294 #, no-wrap
25295 msgid ""
25296 " $ virt-sparsify --machine-readable\n"
25297 " virt-sparsify\n"
25298 " ntfs\n"
25299 " btrfs\n"
25300 "\n"
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../sparsify/virt-sparsify.pod:242
25305 msgid ""
25306 "The calling program should treat messages sent to stderr as error messages.  "
25307 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25308 "fatal error."
25309 msgstr ""
25310
25311 #. type: textblock
25312 #: ../sparsify/virt-sparsify.pod:248
25313 msgid ""
25314 "All versions of virt-sparsify have supported the I<--machine-readable> "
25315 "option."
25316 msgstr ""
25317
25318 #. type: textblock
25319 #: ../sparsify/virt-sparsify.pod:262
25320 msgid ""
25321 "Location of the temporary directory used for the potentially large temporary "
25322 "overlay file."
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../sparsify/virt-sparsify.pod:265
25327 msgid ""
25328 "You should ensure there is enough free space in the worst case for a full "
25329 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25330 "to another directory that has enough space."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../sparsify/virt-sparsify.pod:269
25335 msgid "This defaults to C</tmp>."
25336 msgstr ""
25337
25338 #. type: textblock
25339 #: ../sparsify/virt-sparsify.pod:273
25340 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25341 msgstr ""
25342
25343 #. type: textblock
25344 #: ../sparsify/virt-sparsify.pod:277
25345 msgid ""
25346 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25347 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
25348 "L<qemu-img(1)>, L<http://libguestfs.org/>."
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:1
25353 msgid "guestfs_add_cdrom"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:3
25358 #, no-wrap
25359 msgid ""
25360 " int\n"
25361 " guestfs_add_cdrom (guestfs_h *g,\n"
25362 "                    const char *filename);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
25368 msgid ""
25369 "I<This function is deprecated.> In new code, use the "
25370 "L</guestfs_add_drive_opts> call instead."
25371 msgstr ""
25372
25373 #. type: textblock
25374 #: ../src/guestfs-actions.pod:24
25375 msgid ""
25376 "This call checks for the existence of C<filename>.  This stops you from "
25377 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25378 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25379 "instead."
25380 msgstr ""
25381
25382 #. type: textblock
25383 #: ../src/guestfs-actions.pod:31
25384 msgid ""
25385 "If you just want to add an ISO file (often you use this as an efficient way "
25386 "to transfer large files into the guest), then you should probably use "
25387 "C<guestfs_add_drive_ro> instead."
25388 msgstr ""
25389
25390 #. type: textblock
25391 #: ../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:773 ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918 ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138 ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974 ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070 ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668 ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722 ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220 ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479 ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910 ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955 ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710 ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923 ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046 ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129 ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283 ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516 ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960 ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014 ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247 ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315 ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400 ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476 ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573 ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
25392 msgid "This function returns 0 on success or -1 on error."
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659 ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153 ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757 ../src/guestfs-actions.pod:8402
25397 msgid "(Added in 0.3)"
25398 msgstr ""
25399
25400 #. type: =head2
25401 #: ../src/guestfs-actions.pod:41
25402 msgid "guestfs_add_domain"
25403 msgstr ""
25404
25405 #. type: verbatim
25406 #: ../src/guestfs-actions.pod:43
25407 #, no-wrap
25408 msgid ""
25409 " int\n"
25410 " guestfs_add_domain (guestfs_h *g,\n"
25411 "                     const char *dom,\n"
25412 "                     ...);\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383 ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:7799
25418 msgid ""
25419 "You may supply a list of optional arguments to this call.  Use zero or more "
25420 "of the following pairs of parameters, and terminate the list with C<-1> on "
25421 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25422 msgstr ""
25423
25424 #. type: verbatim
25425 #: ../src/guestfs-actions.pod:53
25426 #, no-wrap
25427 msgid ""
25428 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25429 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25430 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25431 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25432 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25433 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25434 "\n"
25435 msgstr ""
25436
25437 #. type: textblock
25438 #: ../src/guestfs-actions.pod:60
25439 msgid ""
25440 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25441 "It works by connecting to libvirt, requesting the domain and domain XML from "
25442 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25443 "one."
25444 msgstr ""
25445
25446 #. type: textblock
25447 #: ../src/guestfs-actions.pod:141
25448 msgid ""
25449 "The other optional parameters are passed directly through to "
25450 "C<guestfs_add_drive_opts>."
25451 msgstr ""
25452
25453 #. type: textblock
25454 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403 ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836 ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395 ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987 ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426 ../src/guestfs-actions.pod:8439
25455 msgid "On error this function returns -1."
25456 msgstr ""
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:146
25460 msgid "(Added in 1.7.4)"
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:148
25465 msgid "guestfs_add_domain_va"
25466 msgstr ""
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:150
25470 #, no-wrap
25471 msgid ""
25472 " int\n"
25473 " guestfs_add_domain_va (guestfs_h *g,\n"
25474 "                        const char *dom,\n"
25475 "                        va_list args);\n"
25476 "\n"
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:155
25481 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25482 msgstr ""
25483
25484 #. type: textblock
25485 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442 ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495 ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548 ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423 ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382 ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
25486 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25487 msgstr ""
25488
25489 #. type: =head2
25490 #: ../src/guestfs-actions.pod:159
25491 msgid "guestfs_add_domain_argv"
25492 msgstr ""
25493
25494 #. type: verbatim
25495 #: ../src/guestfs-actions.pod:161
25496 #, no-wrap
25497 msgid ""
25498 " int\n"
25499 " guestfs_add_domain_argv (guestfs_h *g,\n"
25500 "                          const char *dom,\n"
25501 "                          const struct guestfs_add_domain_argv *optargs);\n"
25502 "\n"
25503 msgstr ""
25504
25505 #. type: textblock
25506 #: ../src/guestfs-actions.pod:166
25507 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25508 msgstr ""
25509
25510 #. type: =head2
25511 #: ../src/guestfs-actions.pod:170
25512 msgid "guestfs_add_drive"
25513 msgstr ""
25514
25515 #. type: verbatim
25516 #: ../src/guestfs-actions.pod:172
25517 #, no-wrap
25518 msgid ""
25519 " int\n"
25520 " guestfs_add_drive (guestfs_h *g,\n"
25521 "                    const char *filename);\n"
25522 "\n"
25523 msgstr ""
25524
25525 #. type: textblock
25526 #: ../src/guestfs-actions.pod:176
25527 msgid ""
25528 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25529 "optional parameters, so the disk is added writable, with the format being "
25530 "detected automatically."
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:180
25535 msgid ""
25536 "Automatic detection of the format opens you up to a potential security hole "
25537 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25538 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25539 "you should think about replacing calls to this function with calls to "
25540 "C<guestfs_add_drive_opts>, and specifying the format."
25541 msgstr ""
25542
25543 #. type: =head2
25544 #: ../src/guestfs-actions.pod:191
25545 msgid "guestfs_add_drive_opts"
25546 msgstr ""
25547
25548 #. type: verbatim
25549 #: ../src/guestfs-actions.pod:193
25550 #, no-wrap
25551 msgid ""
25552 " int\n"
25553 " guestfs_add_drive_opts (guestfs_h *g,\n"
25554 "                         const char *filename,\n"
25555 "                         ...);\n"
25556 "\n"
25557 msgstr ""
25558
25559 #. type: verbatim
25560 #: ../src/guestfs-actions.pod:203
25561 #, no-wrap
25562 msgid ""
25563 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25564 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25565 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25566 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../src/guestfs-actions.pod:233
25572 msgid ""
25573 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25574 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25575 "Possible formats include C<raw> and C<qcow2>."
25576 msgstr ""
25577
25578 #. type: textblock
25579 #: ../src/guestfs-actions.pod:244
25580 msgid ""
25581 "This rarely-used option lets you emulate the behaviour of the deprecated "
25582 "C<guestfs_add_drive_with_if> call (q.v.)"
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:256
25587 msgid "(Added in 1.5.23)"
25588 msgstr ""
25589
25590 #. type: =head2
25591 #: ../src/guestfs-actions.pod:258
25592 msgid "guestfs_add_drive_opts_va"
25593 msgstr ""
25594
25595 #. type: verbatim
25596 #: ../src/guestfs-actions.pod:260
25597 #, no-wrap
25598 msgid ""
25599 " int\n"
25600 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25601 "                            const char *filename,\n"
25602 "                            va_list args);\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:265
25608 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25609 msgstr ""
25610
25611 #. type: =head2
25612 #: ../src/guestfs-actions.pod:269
25613 msgid "guestfs_add_drive_opts_argv"
25614 msgstr ""
25615
25616 #. type: verbatim
25617 #: ../src/guestfs-actions.pod:271
25618 #, no-wrap
25619 msgid ""
25620 " int\n"
25621 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25622 "                              const char *filename,\n"
25623 "                              const struct guestfs_add_drive_opts_argv "
25624 "*optargs);\n"
25625 "\n"
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../src/guestfs-actions.pod:276
25630 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25631 msgstr ""
25632
25633 #. type: =head2
25634 #: ../src/guestfs-actions.pod:280
25635 msgid "guestfs_add_drive_ro"
25636 msgstr ""
25637
25638 #. type: verbatim
25639 #: ../src/guestfs-actions.pod:282
25640 #, no-wrap
25641 msgid ""
25642 " int\n"
25643 " guestfs_add_drive_ro (guestfs_h *g,\n"
25644 "                       const char *filename);\n"
25645 "\n"
25646 msgstr ""
25647
25648 #. type: textblock
25649 #: ../src/guestfs-actions.pod:286
25650 msgid ""
25651 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25652 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25653 "disk is added read-only, with the format being detected automatically."
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../src/guestfs-actions.pod:293
25658 msgid "(Added in 1.0.38)"
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../src/guestfs-actions.pod:295
25663 msgid "guestfs_add_drive_ro_with_if"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../src/guestfs-actions.pod:297
25668 #, no-wrap
25669 msgid ""
25670 " int\n"
25671 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25672 "                               const char *filename,\n"
25673 "                               const char *iface);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../src/guestfs-actions.pod:309
25679 msgid ""
25680 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25681 "QEMU interface emulation to use at run time."
25682 msgstr ""
25683
25684 #. type: textblock
25685 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2920
25686 msgid "(Added in 1.0.84)"
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:316
25691 msgid "guestfs_add_drive_with_if"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:318
25696 #, no-wrap
25697 msgid ""
25698 " int\n"
25699 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25700 "                            const char *filename,\n"
25701 "                            const char *iface);\n"
25702 "\n"
25703 msgstr ""
25704
25705 #. type: textblock
25706 #: ../src/guestfs-actions.pod:330
25707 msgid ""
25708 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25709 "QEMU interface emulation to use at run time."
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../src/guestfs-actions.pod:337
25714 msgid "guestfs_aug_clear"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../src/guestfs-actions.pod:339
25719 #, no-wrap
25720 msgid ""
25721 " int\n"
25722 " guestfs_aug_clear (guestfs_h *g,\n"
25723 "                    const char *augpath);\n"
25724 "\n"
25725 msgstr ""
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
25729 msgid "(Added in 1.3.4)"
25730 msgstr ""
25731
25732 #. type: =head2
25733 #: ../src/guestfs-actions.pod:350
25734 msgid "guestfs_aug_close"
25735 msgstr ""
25736
25737 #. type: verbatim
25738 #: ../src/guestfs-actions.pod:352
25739 #, no-wrap
25740 msgid ""
25741 " int\n"
25742 " guestfs_aug_close (guestfs_h *g);\n"
25743 "\n"
25744 msgstr ""
25745
25746 #. type: textblock
25747 #: ../src/guestfs-actions.pod:355
25748 msgid ""
25749 "Close the current Augeas handle and free up any resources used by it.  After "
25750 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25751 "any other Augeas functions."
25752 msgstr ""
25753
25754 #. type: textblock
25755 #: ../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:6516
25756 msgid "(Added in 0.7)"
25757 msgstr ""
25758
25759 #. type: =head2
25760 #: ../src/guestfs-actions.pod:364
25761 msgid "guestfs_aug_defnode"
25762 msgstr ""
25763
25764 #. type: verbatim
25765 #: ../src/guestfs-actions.pod:366
25766 #, no-wrap
25767 msgid ""
25768 " struct guestfs_int_bool *\n"
25769 " guestfs_aug_defnode (guestfs_h *g,\n"
25770 "                      const char *name,\n"
25771 "                      const char *expr,\n"
25772 "                      const char *val);\n"
25773 "\n"
25774 msgstr ""
25775
25776 #. type: textblock
25777 #: ../src/guestfs-actions.pod:375
25778 msgid ""
25779 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25780 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25781 "containing that single node."
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:383
25786 msgid ""
25787 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25788 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25789 msgstr ""
25790
25791 #. type: =head2
25792 #: ../src/guestfs-actions.pod:389
25793 msgid "guestfs_aug_defvar"
25794 msgstr ""
25795
25796 #. type: verbatim
25797 #: ../src/guestfs-actions.pod:391
25798 #, no-wrap
25799 msgid ""
25800 " int\n"
25801 " guestfs_aug_defvar (guestfs_h *g,\n"
25802 "                     const char *name,\n"
25803 "                     const char *expr);\n"
25804 "\n"
25805 msgstr ""
25806
25807 #. type: =head2
25808 #: ../src/guestfs-actions.pod:407
25809 msgid "guestfs_aug_get"
25810 msgstr ""
25811
25812 #. type: verbatim
25813 #: ../src/guestfs-actions.pod:409
25814 #, no-wrap
25815 msgid ""
25816 " char *\n"
25817 " guestfs_aug_get (guestfs_h *g,\n"
25818 "                  const char *augpath);\n"
25819 "\n"
25820 msgstr ""
25821
25822 #. type: textblock
25823 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097 ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226 ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341 ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161 ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198 ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
25824 msgid ""
25825 "This function returns a string, or NULL on error.  I<The caller must free "
25826 "the returned string after use>."
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../src/guestfs-actions.pod:421
25831 msgid "guestfs_aug_init"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../src/guestfs-actions.pod:423
25836 #, no-wrap
25837 msgid ""
25838 " int\n"
25839 " guestfs_aug_init (guestfs_h *g,\n"
25840 "                   const char *root,\n"
25841 "                   int flags);\n"
25842 "\n"
25843 msgstr ""
25844
25845 #. type: textblock
25846 #: ../src/guestfs-actions.pod:432
25847 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../src/guestfs-actions.pod:457
25852 msgid ""
25853 "This option is only useful when debugging Augeas lenses.  Use of this option "
25854 "may require additional memory for the libguestfs appliance.  You may need to "
25855 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25856 "C<guestfs_set_memsize>."
25857 msgstr ""
25858
25859 #. type: textblock
25860 #: ../src/guestfs-actions.pod:472
25861 msgid "Do not load the tree in C<guestfs_aug_init>."
25862 msgstr ""
25863
25864 #. type: textblock
25865 #: ../src/guestfs-actions.pod:476
25866 msgid "To close the handle, you can call C<guestfs_aug_close>."
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:484
25871 msgid "guestfs_aug_insert"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:486
25876 #, no-wrap
25877 msgid ""
25878 " int\n"
25879 " guestfs_aug_insert (guestfs_h *g,\n"
25880 "                     const char *augpath,\n"
25881 "                     const char *label,\n"
25882 "                     int before);\n"
25883 "\n"
25884 msgstr ""
25885
25886 #. type: =head2
25887 #: ../src/guestfs-actions.pod:504
25888 msgid "guestfs_aug_load"
25889 msgstr ""
25890
25891 #. type: verbatim
25892 #: ../src/guestfs-actions.pod:506
25893 #, no-wrap
25894 msgid ""
25895 " int\n"
25896 " guestfs_aug_load (guestfs_h *g);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:518
25902 msgid "guestfs_aug_ls"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:520
25907 #, no-wrap
25908 msgid ""
25909 " char **\n"
25910 " guestfs_aug_ls (guestfs_h *g,\n"
25911 "                 const char *augpath);\n"
25912 "\n"
25913 msgstr ""
25914
25915 #. type: textblock
25916 #: ../src/guestfs-actions.pod:524
25917 msgid ""
25918 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25919 "sorting the resulting nodes into alphabetical order."
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909 ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778 ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266 ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341 ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386 ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265 ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332 ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545 ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655 ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
25924 msgid ""
25925 "This function returns a NULL-terminated array of strings (like "
25926 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
25927 "strings and the array after use>."
25928 msgstr ""
25929
25930 #. type: textblock
25931 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160 ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736 ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003 ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249 ../src/guestfs-actions.pod:8514
25932 msgid "(Added in 0.8)"
25933 msgstr ""
25934
25935 #. type: =head2
25936 #: ../src/guestfs-actions.pod:533
25937 msgid "guestfs_aug_match"
25938 msgstr ""
25939
25940 #. type: verbatim
25941 #: ../src/guestfs-actions.pod:535
25942 #, no-wrap
25943 msgid ""
25944 " char **\n"
25945 " guestfs_aug_match (guestfs_h *g,\n"
25946 "                    const char *augpath);\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: =head2
25951 #: ../src/guestfs-actions.pod:549
25952 msgid "guestfs_aug_mv"
25953 msgstr ""
25954
25955 #. type: verbatim
25956 #: ../src/guestfs-actions.pod:551
25957 #, no-wrap
25958 msgid ""
25959 " int\n"
25960 " guestfs_aug_mv (guestfs_h *g,\n"
25961 "                 const char *src,\n"
25962 "                 const char *dest);\n"
25963 "\n"
25964 msgstr ""
25965
25966 #. type: =head2
25967 #: ../src/guestfs-actions.pod:563
25968 msgid "guestfs_aug_rm"
25969 msgstr ""
25970
25971 #. type: verbatim
25972 #: ../src/guestfs-actions.pod:565
25973 #, no-wrap
25974 msgid ""
25975 " int\n"
25976 " guestfs_aug_rm (guestfs_h *g,\n"
25977 "                 const char *augpath);\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../src/guestfs-actions.pod:577
25983 msgid "guestfs_aug_save"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../src/guestfs-actions.pod:579
25988 #, no-wrap
25989 msgid ""
25990 " int\n"
25991 " guestfs_aug_save (guestfs_h *g);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:584
25997 msgid ""
25998 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25999 "are saved."
26000 msgstr ""
26001
26002 #. type: =head2
26003 #: ../src/guestfs-actions.pod:591
26004 msgid "guestfs_aug_set"
26005 msgstr ""
26006
26007 #. type: verbatim
26008 #: ../src/guestfs-actions.pod:593
26009 #, no-wrap
26010 msgid ""
26011 " int\n"
26012 " guestfs_aug_set (guestfs_h *g,\n"
26013 "                  const char *augpath,\n"
26014 "                  const char *val);\n"
26015 "\n"
26016 msgstr ""
26017
26018 #. type: textblock
26019 #: ../src/guestfs-actions.pod:600
26020 msgid ""
26021 "In the Augeas API, it is possible to clear a node by setting the value to "
26022 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26023 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:609
26028 msgid "guestfs_available"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:611
26033 #, no-wrap
26034 msgid ""
26035 " int\n"
26036 " guestfs_available (guestfs_h *g,\n"
26037 "                    char *const *groups);\n"
26038 "\n"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../src/guestfs-actions.pod:619
26043 msgid ""
26044 "The libguestfs groups, and the functions that those groups correspond to, "
26045 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26046 "runtime by calling C<guestfs_available_all_groups>."
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../src/guestfs-actions.pod:643
26051 msgid "You must call C<guestfs_launch> before calling this function."
26052 msgstr ""
26053
26054 #. type: textblock
26055 #: ../src/guestfs-actions.pod:665
26056 msgid ""
26057 "This call was added in version C<1.0.80>.  In previous versions of "
26058 "libguestfs all you could do would be to speculatively execute a command to "
26059 "find out if the daemon implemented it.  See also C<guestfs_version>."
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
26064 msgid "(Added in 1.0.80)"
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../src/guestfs-actions.pod:676
26069 msgid "guestfs_available_all_groups"
26070 msgstr ""
26071
26072 #. type: verbatim
26073 #: ../src/guestfs-actions.pod:678
26074 #, no-wrap
26075 msgid ""
26076 " char **\n"
26077 " guestfs_available_all_groups (guestfs_h *g);\n"
26078 "\n"
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:681
26083 msgid ""
26084 "This command returns a list of all optional groups that this daemon knows "
26085 "about.  Note this returns both supported and unsupported groups.  To find "
26086 "out which ones the daemon can actually support you have to call "
26087 "C<guestfs_available> on each member of the returned list."
26088 msgstr ""
26089
26090 #. type: textblock
26091 #: ../src/guestfs-actions.pod:687
26092 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:693
26097 msgid "(Added in 1.3.15)"
26098 msgstr ""
26099
26100 #. type: =head2
26101 #: ../src/guestfs-actions.pod:695
26102 msgid "guestfs_base64_in"
26103 msgstr ""
26104
26105 #. type: verbatim
26106 #: ../src/guestfs-actions.pod:697
26107 #, no-wrap
26108 msgid ""
26109 " int\n"
26110 " guestfs_base64_in (guestfs_h *g,\n"
26111 "                    const char *base64file,\n"
26112 "                    const char *filename);\n"
26113 "\n"
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26118 msgid "(Added in 1.3.5)"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:709
26123 msgid "guestfs_base64_out"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:711
26128 #, no-wrap
26129 msgid ""
26130 " int\n"
26131 " guestfs_base64_out (guestfs_h *g,\n"
26132 "                     const char *filename,\n"
26133 "                     const char *base64file);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: =head2
26138 #: ../src/guestfs-actions.pod:723
26139 msgid "guestfs_blkid"
26140 msgstr ""
26141
26142 #. type: verbatim
26143 #: ../src/guestfs-actions.pod:725
26144 #, no-wrap
26145 msgid ""
26146 " char **\n"
26147 " guestfs_blkid (guestfs_h *g,\n"
26148 "                const char *device);\n"
26149 "\n"
26150 msgstr ""
26151
26152 #. type: textblock
26153 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:7928
26154 msgid ""
26155 "This function returns a NULL-terminated array of strings, or NULL if there "
26156 "was an error.  The array of strings will always have length C<2n+1>, where "
26157 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26158 "caller must free the strings and the array after use>."
26159 msgstr ""
26160
26161 #. type: =head2
26162 #: ../src/guestfs-actions.pod:762
26163 msgid "guestfs_blockdev_flushbufs"
26164 msgstr ""
26165
26166 #. type: verbatim
26167 #: ../src/guestfs-actions.pod:764
26168 #, no-wrap
26169 msgid ""
26170 " int\n"
26171 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26172 "                             const char *device);\n"
26173 "\n"
26174 msgstr ""
26175
26176 #. type: textblock
26177 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823 ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892 ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
26178 msgid "(Added in 0.9.3)"
26179 msgstr ""
26180
26181 #. type: =head2
26182 #: ../src/guestfs-actions.pod:777
26183 msgid "guestfs_blockdev_getbsz"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../src/guestfs-actions.pod:779
26188 #, no-wrap
26189 msgid ""
26190 " int\n"
26191 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26192 "                          const char *device);\n"
26193 "\n"
26194 msgstr ""
26195
26196 #. type: =head2
26197 #: ../src/guestfs-actions.pod:794
26198 msgid "guestfs_blockdev_getro"
26199 msgstr ""
26200
26201 #. type: verbatim
26202 #: ../src/guestfs-actions.pod:796
26203 #, no-wrap
26204 msgid ""
26205 " int\n"
26206 " guestfs_blockdev_getro (guestfs_h *g,\n"
26207 "                         const char *device);\n"
26208 "\n"
26209 msgstr ""
26210
26211 #. type: textblock
26212 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434 ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093 ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:5989
26213 msgid "This function returns a C truth value on success or -1 on error."
26214 msgstr ""
26215
26216 #. type: =head2
26217 #: ../src/guestfs-actions.pod:809
26218 msgid "guestfs_blockdev_getsize64"
26219 msgstr ""
26220
26221 #. type: verbatim
26222 #: ../src/guestfs-actions.pod:811
26223 #, no-wrap
26224 msgid ""
26225 " int64_t\n"
26226 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26227 "                             const char *device);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: textblock
26232 #: ../src/guestfs-actions.pod:817
26233 msgid "See also C<guestfs_blockdev_getsz>."
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:825
26238 msgid "guestfs_blockdev_getss"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:827
26243 #, no-wrap
26244 msgid ""
26245 " int\n"
26246 " guestfs_blockdev_getss (guestfs_h *g,\n"
26247 "                         const char *device);\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:834
26253 msgid ""
26254 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26255 "that)."
26256 msgstr ""
26257
26258 #. type: =head2
26259 #: ../src/guestfs-actions.pod:843
26260 msgid "guestfs_blockdev_getsz"
26261 msgstr ""
26262
26263 #. type: verbatim
26264 #: ../src/guestfs-actions.pod:845
26265 #, no-wrap
26266 msgid ""
26267 " int64_t\n"
26268 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26269 "                         const char *device);\n"
26270 "\n"
26271 msgstr ""
26272
26273 #. type: textblock
26274 #: ../src/guestfs-actions.pod:852
26275 msgid ""
26276 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26277 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../src/guestfs-actions.pod:862
26282 msgid "guestfs_blockdev_rereadpt"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:864
26287 #, no-wrap
26288 msgid ""
26289 " int\n"
26290 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26291 "                            const char *device);\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: =head2
26296 #: ../src/guestfs-actions.pod:876
26297 msgid "guestfs_blockdev_setbsz"
26298 msgstr ""
26299
26300 #. type: verbatim
26301 #: ../src/guestfs-actions.pod:878
26302 #, no-wrap
26303 msgid ""
26304 " int\n"
26305 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26306 "                          const char *device,\n"
26307 "                          int blocksize);\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: =head2
26312 #: ../src/guestfs-actions.pod:894
26313 msgid "guestfs_blockdev_setro"
26314 msgstr ""
26315
26316 #. type: verbatim
26317 #: ../src/guestfs-actions.pod:896
26318 #, no-wrap
26319 msgid ""
26320 " int\n"
26321 " guestfs_blockdev_setro (guestfs_h *g,\n"
26322 "                         const char *device);\n"
26323 "\n"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../src/guestfs-actions.pod:908
26328 msgid "guestfs_blockdev_setrw"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../src/guestfs-actions.pod:910
26333 #, no-wrap
26334 msgid ""
26335 " int\n"
26336 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26337 "                         const char *device);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: =head2
26342 #: ../src/guestfs-actions.pod:922
26343 msgid "guestfs_btrfs_filesystem_resize"
26344 msgstr ""
26345
26346 #. type: verbatim
26347 #: ../src/guestfs-actions.pod:924
26348 #, no-wrap
26349 msgid ""
26350 " int\n"
26351 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26352 "                                  const char *mountpoint,\n"
26353 "                                  ...);\n"
26354 "\n"
26355 msgstr ""
26356
26357 #. type: verbatim
26358 #: ../src/guestfs-actions.pod:934
26359 #, no-wrap
26360 msgid ""
26361 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: textblock
26366 #: ../src/guestfs-actions.pod:957
26367 msgid "(Added in 1.11.17)"
26368 msgstr ""
26369
26370 #. type: =head2
26371 #: ../src/guestfs-actions.pod:959
26372 msgid "guestfs_btrfs_filesystem_resize_va"
26373 msgstr ""
26374
26375 #. type: verbatim
26376 #: ../src/guestfs-actions.pod:961
26377 #, no-wrap
26378 msgid ""
26379 " int\n"
26380 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26381 "                                     const char *mountpoint,\n"
26382 "                                     va_list args);\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: textblock
26387 #: ../src/guestfs-actions.pod:966
26388 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26389 msgstr ""
26390
26391 #. type: =head2
26392 #: ../src/guestfs-actions.pod:970
26393 msgid "guestfs_btrfs_filesystem_resize_argv"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:972
26398 #, no-wrap
26399 msgid ""
26400 " int\n"
26401 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26402 "                                       const char *mountpoint,\n"
26403 "                                       const struct "
26404 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26405 "\n"
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:977
26410 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26411 msgstr ""
26412
26413 #. type: =head2
26414 #: ../src/guestfs-actions.pod:981
26415 msgid "guestfs_case_sensitive_path"
26416 msgstr ""
26417
26418 #. type: verbatim
26419 #: ../src/guestfs-actions.pod:983
26420 #, no-wrap
26421 msgid ""
26422 " char *\n"
26423 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26424 "                              const char *path);\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:1009
26430 msgid ""
26431 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
26432 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26433 "how the directories were originally created under Windows)."
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:1017
26438 msgid "See also C<guestfs_realpath>."
26439 msgstr ""
26440
26441 #. type: textblock
26442 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
26443 msgid "(Added in 1.0.75)"
26444 msgstr ""
26445
26446 #. type: =head2
26447 #: ../src/guestfs-actions.pod:1024
26448 msgid "guestfs_cat"
26449 msgstr ""
26450
26451 #. type: verbatim
26452 #: ../src/guestfs-actions.pod:1026
26453 #, no-wrap
26454 msgid ""
26455 " char *\n"
26456 " guestfs_cat (guestfs_h *g,\n"
26457 "              const char *path);\n"
26458 "\n"
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../src/guestfs-actions.pod:1032
26463 msgid ""
26464 "Note that this function cannot correctly handle binary files (specifically, "
26465 "files containing C<\\0> character which is treated as end of string).  For "
26466 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26467 "functions which have a more complex interface."
26468 msgstr ""
26469
26470 #. type: textblock
26471 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250 ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336 ../src/guestfs-actions.pod:8350
26472 msgid "(Added in 0.4)"
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../src/guestfs-actions.pod:1045
26477 msgid "guestfs_checksum"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../src/guestfs-actions.pod:1047
26482 #, no-wrap
26483 msgid ""
26484 " char *\n"
26485 " guestfs_checksum (guestfs_h *g,\n"
26486 "                   const char *csumtype,\n"
26487 "                   const char *path);\n"
26488 "\n"
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:1093
26493 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26494 msgstr ""
26495
26496 #. type: textblock
26497 #: ../src/guestfs-actions.pod:1095
26498 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26499 msgstr ""
26500
26501 #. type: textblock
26502 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
26503 msgid "(Added in 1.0.2)"
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:1102
26508 msgid "guestfs_checksum_device"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:1104
26513 #, no-wrap
26514 msgid ""
26515 " char *\n"
26516 " guestfs_checksum_device (guestfs_h *g,\n"
26517 "                          const char *csumtype,\n"
26518 "                          const char *device);\n"
26519 "\n"
26520 msgstr ""
26521
26522 #. type: textblock
26523 #: ../src/guestfs-actions.pod:1109
26524 msgid ""
26525 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26526 "device named C<device>.  For the types of checksums supported see the "
26527 "C<guestfs_checksum> command."
26528 msgstr ""
26529
26530 #. type: textblock
26531 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8362
26532 msgid "(Added in 1.3.2)"
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../src/guestfs-actions.pod:1118
26537 msgid "guestfs_checksums_out"
26538 msgstr ""
26539
26540 #. type: verbatim
26541 #: ../src/guestfs-actions.pod:1120
26542 #, no-wrap
26543 msgid ""
26544 " int\n"
26545 " guestfs_checksums_out (guestfs_h *g,\n"
26546 "                        const char *csumtype,\n"
26547 "                        const char *directory,\n"
26548 "                        const char *sumsfile);\n"
26549 "\n"
26550 msgstr ""
26551
26552 #. type: textblock
26553 #: ../src/guestfs-actions.pod:1140
26554 msgid "(Added in 1.3.7)"
26555 msgstr ""
26556
26557 #. type: =head2
26558 #: ../src/guestfs-actions.pod:1142
26559 msgid "guestfs_chmod"
26560 msgstr ""
26561
26562 #. type: verbatim
26563 #: ../src/guestfs-actions.pod:1144
26564 #, no-wrap
26565 msgid ""
26566 " int\n"
26567 " guestfs_chmod (guestfs_h *g,\n"
26568 "                int mode,\n"
26569 "                const char *path);\n"
26570 "\n"
26571 msgstr ""
26572
26573 #. type: =head2
26574 #: ../src/guestfs-actions.pod:1162
26575 msgid "guestfs_chown"
26576 msgstr ""
26577
26578 #. type: verbatim
26579 #: ../src/guestfs-actions.pod:1164
26580 #, no-wrap
26581 msgid ""
26582 " int\n"
26583 " guestfs_chown (guestfs_h *g,\n"
26584 "                int owner,\n"
26585 "                int group,\n"
26586 "                const char *path);\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:1180
26592 msgid "guestfs_command"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:1182
26597 #, no-wrap
26598 msgid ""
26599 " char *\n"
26600 " guestfs_command (guestfs_h *g,\n"
26601 "                  char *const *arguments);\n"
26602 "\n"
26603 msgstr ""
26604
26605 #. type: textblock
26606 #: ../src/guestfs-actions.pod:1191
26607 msgid ""
26608 "The single parameter is an argv-style list of arguments.  The first element "
26609 "is the name of the program to run.  Subsequent elements are parameters.  The "
26610 "list must be non-empty (ie. must contain a program name).  Note that the "
26611 "command runs directly, and is I<not> invoked via the shell (see "
26612 "C<guestfs_sh>)."
26613 msgstr ""
26614
26615 #. type: textblock
26616 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:2066
26617 msgid "(Added in 0.9.1)"
26618 msgstr ""
26619
26620 #. type: =head2
26621 #: ../src/guestfs-actions.pod:1224
26622 msgid "guestfs_command_lines"
26623 msgstr ""
26624
26625 #. type: verbatim
26626 #: ../src/guestfs-actions.pod:1226
26627 #, no-wrap
26628 msgid ""
26629 " char **\n"
26630 " guestfs_command_lines (guestfs_h *g,\n"
26631 "                        char *const *arguments);\n"
26632 "\n"
26633 msgstr ""
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:1230
26637 msgid ""
26638 "This is the same as C<guestfs_command>, but splits the result into a list of "
26639 "lines."
26640 msgstr ""
26641
26642 #. type: textblock
26643 #: ../src/guestfs-actions.pod:1233
26644 msgid "See also: C<guestfs_sh_lines>"
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../src/guestfs-actions.pod:1244
26649 msgid "guestfs_compress_device_out"
26650 msgstr ""
26651
26652 #. type: verbatim
26653 #: ../src/guestfs-actions.pod:1246
26654 #, no-wrap
26655 msgid ""
26656 " int\n"
26657 " guestfs_compress_device_out (guestfs_h *g,\n"
26658 "                              const char *ctype,\n"
26659 "                              const char *device,\n"
26660 "                              const char *zdevice,\n"
26661 "                              ...);\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: verbatim
26666 #: ../src/guestfs-actions.pod:1258
26667 #, no-wrap
26668 msgid ""
26669 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: textblock
26674 #: ../src/guestfs-actions.pod:1263
26675 msgid ""
26676 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26677 "C<guestfs_compress_out>."
26678 msgstr ""
26679
26680 #. type: textblock
26681 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
26682 msgid "(Added in 1.13.15)"
26683 msgstr ""
26684
26685 #. type: =head2
26686 #: ../src/guestfs-actions.pod:1270
26687 msgid "guestfs_compress_device_out_va"
26688 msgstr ""
26689
26690 #. type: verbatim
26691 #: ../src/guestfs-actions.pod:1272
26692 #, no-wrap
26693 msgid ""
26694 " int\n"
26695 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26696 "                                 const char *ctype,\n"
26697 "                                 const char *device,\n"
26698 "                                 const char *zdevice,\n"
26699 "                                 va_list args);\n"
26700 "\n"
26701 msgstr ""
26702
26703 #. type: textblock
26704 #: ../src/guestfs-actions.pod:1279
26705 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:1283
26710 msgid "guestfs_compress_device_out_argv"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:1285
26715 #, no-wrap
26716 msgid ""
26717 " int\n"
26718 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26719 "                                   const char *ctype,\n"
26720 "                                   const char *device,\n"
26721 "                                   const char *zdevice,\n"
26722 "                                   const struct "
26723 "guestfs_compress_device_out_argv *optargs);\n"
26724 "\n"
26725 msgstr ""
26726
26727 #. type: textblock
26728 #: ../src/guestfs-actions.pod:1292
26729 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26730 msgstr ""
26731
26732 #. type: =head2
26733 #: ../src/guestfs-actions.pod:1296
26734 msgid "guestfs_compress_out"
26735 msgstr ""
26736
26737 #. type: verbatim
26738 #: ../src/guestfs-actions.pod:1298
26739 #, no-wrap
26740 msgid ""
26741 " int\n"
26742 " guestfs_compress_out (guestfs_h *g,\n"
26743 "                       const char *ctype,\n"
26744 "                       const char *file,\n"
26745 "                       const char *zfile,\n"
26746 "                       ...);\n"
26747 "\n"
26748 msgstr ""
26749
26750 #. type: verbatim
26751 #: ../src/guestfs-actions.pod:1310
26752 #, no-wrap
26753 msgid ""
26754 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26755 "\n"
26756 msgstr ""
26757
26758 #. type: =head2
26759 #: ../src/guestfs-actions.pod:1329
26760 msgid "guestfs_compress_out_va"
26761 msgstr ""
26762
26763 #. type: verbatim
26764 #: ../src/guestfs-actions.pod:1331
26765 #, no-wrap
26766 msgid ""
26767 " int\n"
26768 " guestfs_compress_out_va (guestfs_h *g,\n"
26769 "                          const char *ctype,\n"
26770 "                          const char *file,\n"
26771 "                          const char *zfile,\n"
26772 "                          va_list args);\n"
26773 "\n"
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../src/guestfs-actions.pod:1338
26778 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:1342
26783 msgid "guestfs_compress_out_argv"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:1344
26788 #, no-wrap
26789 msgid ""
26790 " int\n"
26791 " guestfs_compress_out_argv (guestfs_h *g,\n"
26792 "                            const char *ctype,\n"
26793 "                            const char *file,\n"
26794 "                            const char *zfile,\n"
26795 "                            const struct guestfs_compress_out_argv "
26796 "*optargs);\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:1351
26802 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:1355
26807 msgid "guestfs_config"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:1357
26812 #, no-wrap
26813 msgid ""
26814 " int\n"
26815 " guestfs_config (guestfs_h *g,\n"
26816 "                 const char *qemuparam,\n"
26817 "                 const char *qemuvalue);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../src/guestfs-actions.pod:1375
26823 msgid "guestfs_copy_device_to_device"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:1377
26828 #, no-wrap
26829 msgid ""
26830 " int\n"
26831 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26832 "                                const char *src,\n"
26833 "                                const char *dest,\n"
26834 "                                ...);\n"
26835 "\n"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:1388
26840 #, no-wrap
26841 msgid ""
26842 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26843 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26844 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26845 "\n"
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../src/guestfs-actions.pod:1392
26850 msgid ""
26851 "The four calls C<guestfs_copy_device_to_device>, "
26852 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26853 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26854 "destination (device|file)."
26855 msgstr ""
26856
26857 #. type: textblock
26858 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034 ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575 ../src/guestfs-actions.pod:8598
26859 msgid ""
26860 "This long-running command can generate progress notification messages so "
26861 "that the caller can display a progress bar or indicator.  To receive these "
26862 "messages, the caller must register a progress event callback.  See "
26863 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
26864 msgstr ""
26865
26866 #. type: textblock
26867 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:6247
26868 msgid "(Added in 1.13.25)"
26869 msgstr ""
26870
26871 #. type: =head2
26872 #: ../src/guestfs-actions.pod:1420
26873 msgid "guestfs_copy_device_to_device_va"
26874 msgstr ""
26875
26876 #. type: verbatim
26877 #: ../src/guestfs-actions.pod:1422
26878 #, no-wrap
26879 msgid ""
26880 " int\n"
26881 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26882 "                                   const char *src,\n"
26883 "                                   const char *dest,\n"
26884 "                                   va_list args);\n"
26885 "\n"
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:1428
26890 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26891 msgstr ""
26892
26893 #. type: =head2
26894 #: ../src/guestfs-actions.pod:1432
26895 msgid "guestfs_copy_device_to_device_argv"
26896 msgstr ""
26897
26898 #. type: verbatim
26899 #: ../src/guestfs-actions.pod:1434
26900 #, no-wrap
26901 msgid ""
26902 " int\n"
26903 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26904 "                                     const char *src,\n"
26905 "                                     const char *dest,\n"
26906 "                                     const struct "
26907 "guestfs_copy_device_to_device_argv *optargs);\n"
26908 "\n"
26909 msgstr ""
26910
26911 #. type: textblock
26912 #: ../src/guestfs-actions.pod:1440
26913 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26914 msgstr ""
26915
26916 #. type: =head2
26917 #: ../src/guestfs-actions.pod:1444
26918 msgid "guestfs_copy_device_to_file"
26919 msgstr ""
26920
26921 #. type: verbatim
26922 #: ../src/guestfs-actions.pod:1446
26923 #, no-wrap
26924 msgid ""
26925 " int\n"
26926 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26927 "                              const char *src,\n"
26928 "                              const char *dest,\n"
26929 "                              ...);\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: verbatim
26934 #: ../src/guestfs-actions.pod:1457
26935 #, no-wrap
26936 msgid ""
26937 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26938 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26939 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26940 "\n"
26941 msgstr ""
26942
26943 #. type: textblock
26944 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1567
26945 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
26946 msgstr ""
26947
26948 #. type: =head2
26949 #: ../src/guestfs-actions.pod:1473
26950 msgid "guestfs_copy_device_to_file_va"
26951 msgstr ""
26952
26953 #. type: verbatim
26954 #: ../src/guestfs-actions.pod:1475
26955 #, no-wrap
26956 msgid ""
26957 " int\n"
26958 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26959 "                                 const char *src,\n"
26960 "                                 const char *dest,\n"
26961 "                                 va_list args);\n"
26962 "\n"
26963 msgstr ""
26964
26965 #. type: textblock
26966 #: ../src/guestfs-actions.pod:1481
26967 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26968 msgstr ""
26969
26970 #. type: =head2
26971 #: ../src/guestfs-actions.pod:1485
26972 msgid "guestfs_copy_device_to_file_argv"
26973 msgstr ""
26974
26975 #. type: verbatim
26976 #: ../src/guestfs-actions.pod:1487
26977 #, no-wrap
26978 msgid ""
26979 " int\n"
26980 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26981 "                                   const char *src,\n"
26982 "                                   const char *dest,\n"
26983 "                                   const struct "
26984 "guestfs_copy_device_to_file_argv *optargs);\n"
26985 "\n"
26986 msgstr ""
26987
26988 #. type: textblock
26989 #: ../src/guestfs-actions.pod:1493
26990 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26991 msgstr ""
26992
26993 #. type: =head2
26994 #: ../src/guestfs-actions.pod:1497
26995 msgid "guestfs_copy_file_to_device"
26996 msgstr ""
26997
26998 #. type: verbatim
26999 #: ../src/guestfs-actions.pod:1499
27000 #, no-wrap
27001 msgid ""
27002 " int\n"
27003 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27004 "                              const char *src,\n"
27005 "                              const char *dest,\n"
27006 "                              ...);\n"
27007 "\n"
27008 msgstr ""
27009
27010 #. type: verbatim
27011 #: ../src/guestfs-actions.pod:1510
27012 #, no-wrap
27013 msgid ""
27014 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27015 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27016 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27017 "\n"
27018 msgstr ""
27019
27020 #. type: =head2
27021 #: ../src/guestfs-actions.pod:1526
27022 msgid "guestfs_copy_file_to_device_va"
27023 msgstr ""
27024
27025 #. type: verbatim
27026 #: ../src/guestfs-actions.pod:1528
27027 #, no-wrap
27028 msgid ""
27029 " int\n"
27030 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27031 "                                 const char *src,\n"
27032 "                                 const char *dest,\n"
27033 "                                 va_list args);\n"
27034 "\n"
27035 msgstr ""
27036
27037 #. type: textblock
27038 #: ../src/guestfs-actions.pod:1534
27039 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27040 msgstr ""
27041
27042 #. type: =head2
27043 #: ../src/guestfs-actions.pod:1538
27044 msgid "guestfs_copy_file_to_device_argv"
27045 msgstr ""
27046
27047 #. type: verbatim
27048 #: ../src/guestfs-actions.pod:1540
27049 #, no-wrap
27050 msgid ""
27051 " int\n"
27052 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27053 "                                   const char *src,\n"
27054 "                                   const char *dest,\n"
27055 "                                   const struct "
27056 "guestfs_copy_file_to_device_argv *optargs);\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: textblock
27061 #: ../src/guestfs-actions.pod:1546
27062 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27063 msgstr ""
27064
27065 #. type: =head2
27066 #: ../src/guestfs-actions.pod:1550
27067 msgid "guestfs_copy_file_to_file"
27068 msgstr ""
27069
27070 #. type: verbatim
27071 #: ../src/guestfs-actions.pod:1552
27072 #, no-wrap
27073 msgid ""
27074 " int\n"
27075 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27076 "                            const char *src,\n"
27077 "                            const char *dest,\n"
27078 "                            ...);\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:1563
27084 #, no-wrap
27085 msgid ""
27086 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27087 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27088 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27089 "\n"
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:1570
27094 msgid ""
27095 "This is B<not> the function you want for copying files.  This is for copying "
27096 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27097 "C<guestfs_mv> for general file copying and moving functions."
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../src/guestfs-actions.pod:1584
27102 msgid "guestfs_copy_file_to_file_va"
27103 msgstr ""
27104
27105 #. type: verbatim
27106 #: ../src/guestfs-actions.pod:1586
27107 #, no-wrap
27108 msgid ""
27109 " int\n"
27110 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27111 "                               const char *src,\n"
27112 "                               const char *dest,\n"
27113 "                               va_list args);\n"
27114 "\n"
27115 msgstr ""
27116
27117 #. type: textblock
27118 #: ../src/guestfs-actions.pod:1592
27119 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:1596
27124 msgid "guestfs_copy_file_to_file_argv"
27125 msgstr ""
27126
27127 #. type: verbatim
27128 #: ../src/guestfs-actions.pod:1598
27129 #, no-wrap
27130 msgid ""
27131 " int\n"
27132 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27133 "                                 const char *src,\n"
27134 "                                 const char *dest,\n"
27135 "                                 const struct guestfs_copy_file_to_file_argv "
27136 "*optargs);\n"
27137 "\n"
27138 msgstr ""
27139
27140 #. type: textblock
27141 #: ../src/guestfs-actions.pod:1604
27142 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27143 msgstr ""
27144
27145 #. type: =head2
27146 #: ../src/guestfs-actions.pod:1608
27147 msgid "guestfs_copy_size"
27148 msgstr ""
27149
27150 #. type: verbatim
27151 #: ../src/guestfs-actions.pod:1610
27152 #, no-wrap
27153 msgid ""
27154 " int\n"
27155 " guestfs_copy_size (guestfs_h *g,\n"
27156 "                    const char *src,\n"
27157 "                    const char *dest,\n"
27158 "                    int64_t size);\n"
27159 "\n"
27160 msgstr ""
27161
27162 #. type: textblock
27163 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
27164 msgid ""
27165 "I<This function is deprecated.> In new code, use the "
27166 "L</guestfs_copy_device_to_device> call instead."
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
27171 msgid "(Added in 1.0.87)"
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../src/guestfs-actions.pod:1638
27176 msgid "guestfs_cp"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../src/guestfs-actions.pod:1640
27181 #, no-wrap
27182 msgid ""
27183 " int\n"
27184 " guestfs_cp (guestfs_h *g,\n"
27185 "             const char *src,\n"
27186 "             const char *dest);\n"
27187 "\n"
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818 ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:6261
27192 msgid "(Added in 1.0.18)"
27193 msgstr ""
27194
27195 #. type: =head2
27196 #: ../src/guestfs-actions.pod:1652
27197 msgid "guestfs_cp_a"
27198 msgstr ""
27199
27200 #. type: verbatim
27201 #: ../src/guestfs-actions.pod:1654
27202 #, no-wrap
27203 msgid ""
27204 " int\n"
27205 " guestfs_cp_a (guestfs_h *g,\n"
27206 "               const char *src,\n"
27207 "               const char *dest);\n"
27208 "\n"
27209 msgstr ""
27210
27211 #. type: =head2
27212 #: ../src/guestfs-actions.pod:1666
27213 msgid "guestfs_dd"
27214 msgstr ""
27215
27216 #. type: verbatim
27217 #: ../src/guestfs-actions.pod:1668
27218 #, no-wrap
27219 msgid ""
27220 " int\n"
27221 " guestfs_dd (guestfs_h *g,\n"
27222 "             const char *src,\n"
27223 "             const char *dest);\n"
27224 "\n"
27225 msgstr ""
27226
27227 #. type: textblock
27228 #: ../src/guestfs-actions.pod:1685
27229 msgid ""
27230 "If the destination is a device, it must be as large or larger than the "
27231 "source file or device, otherwise the copy will fail.  This command cannot do "
27232 "partial copies (see C<guestfs_copy_device_to_device>)."
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:1694
27237 msgid "guestfs_df"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:1696
27242 #, no-wrap
27243 msgid ""
27244 " char *\n"
27245 " guestfs_df (guestfs_h *g);\n"
27246 "\n"
27247 msgstr ""
27248
27249 #. type: textblock
27250 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
27251 msgid ""
27252 "This command is mostly useful for interactive sessions.  It is I<not> "
27253 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27254 "from programs."
27255 msgstr ""
27256
27257 #. type: textblock
27258 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725 ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850 ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428 ../src/guestfs-actions.pod:8441
27259 msgid "(Added in 1.0.54)"
27260 msgstr ""
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:1710
27264 msgid "guestfs_df_h"
27265 msgstr ""
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:1712
27269 #, no-wrap
27270 msgid ""
27271 " char *\n"
27272 " guestfs_df_h (guestfs_h *g);\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../src/guestfs-actions.pod:1727
27278 msgid "guestfs_dmesg"
27279 msgstr ""
27280
27281 #. type: verbatim
27282 #: ../src/guestfs-actions.pod:1729
27283 #, no-wrap
27284 msgid ""
27285 " char *\n"
27286 " guestfs_dmesg (guestfs_h *g);\n"
27287 "\n"
27288 msgstr ""
27289
27290 #. type: textblock
27291 #: ../src/guestfs-actions.pod:1736
27292 msgid ""
27293 "Another way to get the same information is to enable verbose messages with "
27294 "C<guestfs_set_verbose> or by setting the environment variable "
27295 "C<LIBGUESTFS_DEBUG=1> before running the program."
27296 msgstr ""
27297
27298 #. type: =head2
27299 #: ../src/guestfs-actions.pod:1746
27300 msgid "guestfs_download"
27301 msgstr ""
27302
27303 #. type: verbatim
27304 #: ../src/guestfs-actions.pod:1748
27305 #, no-wrap
27306 msgid ""
27307 " int\n"
27308 " guestfs_download (guestfs_h *g,\n"
27309 "                   const char *remotefilename,\n"
27310 "                   const char *filename);\n"
27311 "\n"
27312 msgstr ""
27313
27314 #. type: textblock
27315 #: ../src/guestfs-actions.pod:1758
27316 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27317 msgstr ""
27318
27319 #. type: =head2
27320 #: ../src/guestfs-actions.pod:1769
27321 msgid "guestfs_download_offset"
27322 msgstr ""
27323
27324 #. type: verbatim
27325 #: ../src/guestfs-actions.pod:1771
27326 #, no-wrap
27327 msgid ""
27328 " int\n"
27329 " guestfs_download_offset (guestfs_h *g,\n"
27330 "                          const char *remotefilename,\n"
27331 "                          const char *filename,\n"
27332 "                          int64_t offset,\n"
27333 "                          int64_t size);\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:1784
27339 msgid ""
27340 "Note that there is no limit on the amount of data that can be downloaded "
27341 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27342 "full amount unless an error occurs."
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:1789
27347 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27348 msgstr ""
27349
27350 #. type: textblock
27351 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
27352 msgid "(Added in 1.5.17)"
27353 msgstr ""
27354
27355 #. type: =head2
27356 #: ../src/guestfs-actions.pod:1800
27357 msgid "guestfs_drop_caches"
27358 msgstr ""
27359
27360 #. type: verbatim
27361 #: ../src/guestfs-actions.pod:1802
27362 #, no-wrap
27363 msgid ""
27364 " int\n"
27365 " guestfs_drop_caches (guestfs_h *g,\n"
27366 "                      int whattodrop);\n"
27367 "\n"
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:1820
27372 msgid "guestfs_du"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:1822
27377 #, no-wrap
27378 msgid ""
27379 " int64_t\n"
27380 " guestfs_du (guestfs_h *g,\n"
27381 "             const char *path);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: =head2
27386 #: ../src/guestfs-actions.pod:1845
27387 msgid "guestfs_e2fsck_f"
27388 msgstr ""
27389
27390 #. type: verbatim
27391 #: ../src/guestfs-actions.pod:1847
27392 #, no-wrap
27393 msgid ""
27394 " int\n"
27395 " guestfs_e2fsck_f (guestfs_h *g,\n"
27396 "                   const char *device);\n"
27397 "\n"
27398 msgstr ""
27399
27400 #. type: textblock
27401 #: ../src/guestfs-actions.pod:1855
27402 msgid ""
27403 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27404 "Normally you should use C<guestfs_fsck>."
27405 msgstr ""
27406
27407 #. type: textblock
27408 #: ../src/guestfs-actions.pod:1860
27409 msgid "(Added in 1.0.29)"
27410 msgstr ""
27411
27412 #. type: =head2
27413 #: ../src/guestfs-actions.pod:1862
27414 msgid "guestfs_echo_daemon"
27415 msgstr ""
27416
27417 #. type: verbatim
27418 #: ../src/guestfs-actions.pod:1864
27419 #, no-wrap
27420 msgid ""
27421 " char *\n"
27422 " guestfs_echo_daemon (guestfs_h *g,\n"
27423 "                      char *const *words);\n"
27424 "\n"
27425 msgstr ""
27426
27427 #. type: textblock
27428 #: ../src/guestfs-actions.pod:1873
27429 msgid "See also C<guestfs_ping_daemon>."
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:7131
27434 msgid "(Added in 1.0.69)"
27435 msgstr ""
27436
27437 #. type: =head2
27438 #: ../src/guestfs-actions.pod:1880
27439 msgid "guestfs_egrep"
27440 msgstr ""
27441
27442 #. type: verbatim
27443 #: ../src/guestfs-actions.pod:1882
27444 #, no-wrap
27445 msgid ""
27446 " char **\n"
27447 " guestfs_egrep (guestfs_h *g,\n"
27448 "                const char *regex,\n"
27449 "                const char *path);\n"
27450 "\n"
27451 msgstr ""
27452
27453 #. type: textblock
27454 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766 ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963 ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059 ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552 ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
27455 msgid "(Added in 1.0.66)"
27456 msgstr ""
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:1899
27460 msgid "guestfs_egrepi"
27461 msgstr ""
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:1901
27465 #, no-wrap
27466 msgid ""
27467 " char **\n"
27468 " guestfs_egrepi (guestfs_h *g,\n"
27469 "                 const char *regex,\n"
27470 "                 const char *path);\n"
27471 "\n"
27472 msgstr ""
27473
27474 #. type: =head2
27475 #: ../src/guestfs-actions.pod:1918
27476 msgid "guestfs_equal"
27477 msgstr ""
27478
27479 #. type: verbatim
27480 #: ../src/guestfs-actions.pod:1920
27481 #, no-wrap
27482 msgid ""
27483 " int\n"
27484 " guestfs_equal (guestfs_h *g,\n"
27485 "                const char *file1,\n"
27486 "                const char *file2);\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../src/guestfs-actions.pod:1934
27492 msgid "guestfs_exists"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../src/guestfs-actions.pod:1936
27497 #, no-wrap
27498 msgid ""
27499 " int\n"
27500 " guestfs_exists (guestfs_h *g,\n"
27501 "                 const char *path);\n"
27502 "\n"
27503 msgstr ""
27504
27505 #. type: textblock
27506 #: ../src/guestfs-actions.pod:1943
27507 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27508 msgstr ""
27509
27510 #. type: =head2
27511 #: ../src/guestfs-actions.pod:1949
27512 msgid "guestfs_fallocate"
27513 msgstr ""
27514
27515 #. type: verbatim
27516 #: ../src/guestfs-actions.pod:1951
27517 #, no-wrap
27518 msgid ""
27519 " int\n"
27520 " guestfs_fallocate (guestfs_h *g,\n"
27521 "                    const char *path,\n"
27522 "                    int len);\n"
27523 "\n"
27524 msgstr ""
27525
27526 #. type: textblock
27527 #: ../src/guestfs-actions.pod:1956
27528 msgid ""
27529 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27530 "call instead."
27531 msgstr ""
27532
27533 #. type: =head2
27534 #: ../src/guestfs-actions.pod:1975
27535 msgid "guestfs_fallocate64"
27536 msgstr ""
27537
27538 #. type: verbatim
27539 #: ../src/guestfs-actions.pod:1977
27540 #, no-wrap
27541 msgid ""
27542 " int\n"
27543 " guestfs_fallocate64 (guestfs_h *g,\n"
27544 "                      const char *path,\n"
27545 "                      int64_t len);\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: textblock
27550 #: ../src/guestfs-actions.pod:1986
27551 msgid ""
27552 "Note that this call allocates disk blocks for the file.  To create a sparse "
27553 "file use C<guestfs_truncate_size> instead."
27554 msgstr ""
27555
27556 #. type: textblock
27557 #: ../src/guestfs-actions.pod:1989
27558 msgid ""
27559 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27560 "oversight it only allowed 30 bit lengths to be specified, effectively "
27561 "limiting the maximum size of files created through that call to 1GB."
27562 msgstr ""
27563
27564 #. type: textblock
27565 #: ../src/guestfs-actions.pod:2000
27566 msgid "(Added in 1.3.17)"
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../src/guestfs-actions.pod:2002
27571 msgid "guestfs_fgrep"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../src/guestfs-actions.pod:2004
27576 #, no-wrap
27577 msgid ""
27578 " char **\n"
27579 " guestfs_fgrep (guestfs_h *g,\n"
27580 "                const char *pattern,\n"
27581 "                const char *path);\n"
27582 "\n"
27583 msgstr ""
27584
27585 #. type: =head2
27586 #: ../src/guestfs-actions.pod:2021
27587 msgid "guestfs_fgrepi"
27588 msgstr ""
27589
27590 #. type: verbatim
27591 #: ../src/guestfs-actions.pod:2023
27592 #, no-wrap
27593 msgid ""
27594 " char **\n"
27595 " guestfs_fgrepi (guestfs_h *g,\n"
27596 "                 const char *pattern,\n"
27597 "                 const char *path);\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:2040
27603 msgid "guestfs_file"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:2042
27608 #, no-wrap
27609 msgid ""
27610 " char *\n"
27611 " guestfs_file (guestfs_h *g,\n"
27612 "               const char *path);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:2060
27618 msgid ""
27619 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27620 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27621 msgstr ""
27622
27623 #. type: =head2
27624 #: ../src/guestfs-actions.pod:2068
27625 msgid "guestfs_file_architecture"
27626 msgstr ""
27627
27628 #. type: verbatim
27629 #: ../src/guestfs-actions.pod:2070
27630 #, no-wrap
27631 msgid ""
27632 " char *\n"
27633 " guestfs_file_architecture (guestfs_h *g,\n"
27634 "                            const char *filename);\n"
27635 "\n"
27636 msgstr ""
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919 ../src/guestfs-actions.pod:4051
27640 msgid "(Added in 1.5.3)"
27641 msgstr ""
27642
27643 #. type: =head2
27644 #: ../src/guestfs-actions.pod:2180
27645 msgid "guestfs_filesize"
27646 msgstr ""
27647
27648 #. type: verbatim
27649 #: ../src/guestfs-actions.pod:2182
27650 #, no-wrap
27651 msgid ""
27652 " int64_t\n"
27653 " guestfs_filesize (guestfs_h *g,\n"
27654 "                   const char *file);\n"
27655 "\n"
27656 msgstr ""
27657
27658 #. type: textblock
27659 #: ../src/guestfs-actions.pod:2188
27660 msgid ""
27661 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27662 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27663 "devices, use C<guestfs_blockdev_getsize64>."
27664 msgstr ""
27665
27666 #. type: textblock
27667 #: ../src/guestfs-actions.pod:2194
27668 msgid "(Added in 1.0.82)"
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:2196
27673 msgid "guestfs_fill"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:2198
27678 #, no-wrap
27679 msgid ""
27680 " int\n"
27681 " guestfs_fill (guestfs_h *g,\n"
27682 "               int c,\n"
27683 "               int len,\n"
27684 "               const char *path);\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: textblock
27689 #: ../src/guestfs-actions.pod:2208
27690 msgid ""
27691 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27692 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27693 "bytes use C<guestfs_fill_pattern>."
27694 msgstr ""
27695
27696 #. type: textblock
27697 #: ../src/guestfs-actions.pod:2220
27698 msgid "(Added in 1.0.79)"
27699 msgstr ""
27700
27701 #. type: =head2
27702 #: ../src/guestfs-actions.pod:2222
27703 msgid "guestfs_fill_pattern"
27704 msgstr ""
27705
27706 #. type: verbatim
27707 #: ../src/guestfs-actions.pod:2224
27708 #, no-wrap
27709 msgid ""
27710 " int\n"
27711 " guestfs_fill_pattern (guestfs_h *g,\n"
27712 "                       const char *pattern,\n"
27713 "                       int len,\n"
27714 "                       const char *path);\n"
27715 "\n"
27716 msgstr ""
27717
27718 #. type: textblock
27719 #: ../src/guestfs-actions.pod:2230
27720 msgid ""
27721 "This function is like C<guestfs_fill> except that it creates a new file of "
27722 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27723 "pattern is truncated if necessary to ensure the length of the file is "
27724 "exactly C<len> bytes."
27725 msgstr ""
27726
27727 #. type: textblock
27728 #: ../src/guestfs-actions.pod:2242
27729 msgid "(Added in 1.3.12)"
27730 msgstr ""
27731
27732 #. type: =head2
27733 #: ../src/guestfs-actions.pod:2244
27734 msgid "guestfs_find"
27735 msgstr ""
27736
27737 #. type: verbatim
27738 #: ../src/guestfs-actions.pod:2246
27739 #, no-wrap
27740 msgid ""
27741 " char **\n"
27742 " guestfs_find (guestfs_h *g,\n"
27743 "               const char *directory);\n"
27744 "\n"
27745 msgstr ""
27746
27747 #. type: textblock
27748 #: ../src/guestfs-actions.pod:2262
27749 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27750 msgstr ""
27751
27752 #. type: textblock
27753 #: ../src/guestfs-actions.pod:2275
27754 msgid "See also C<guestfs_find0>."
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813 ../src/guestfs-actions.pod:6679
27759 msgid "(Added in 1.0.27)"
27760 msgstr ""
27761
27762 #. type: =head2
27763 #: ../src/guestfs-actions.pod:2286
27764 msgid "guestfs_find0"
27765 msgstr ""
27766
27767 #. type: verbatim
27768 #: ../src/guestfs-actions.pod:2288
27769 #, no-wrap
27770 msgid ""
27771 " int\n"
27772 " guestfs_find0 (guestfs_h *g,\n"
27773 "                const char *directory,\n"
27774 "                const char *files);\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: textblock
27779 #: ../src/guestfs-actions.pod:2297
27780 msgid ""
27781 "This command works the same way as C<guestfs_find> with the following "
27782 "exceptions:"
27783 msgstr ""
27784
27785 #. type: textblock
27786 #: ../src/guestfs-actions.pod:2324
27787 msgid "(Added in 1.0.74)"
27788 msgstr ""
27789
27790 #. type: =head2
27791 #: ../src/guestfs-actions.pod:2326
27792 msgid "guestfs_findfs_label"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../src/guestfs-actions.pod:2328
27797 #, no-wrap
27798 msgid ""
27799 " char *\n"
27800 " guestfs_findfs_label (guestfs_h *g,\n"
27801 "                       const char *label);\n"
27802 "\n"
27803 msgstr ""
27804
27805 #. type: textblock
27806 #: ../src/guestfs-actions.pod:2336
27807 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:2343
27812 msgid "guestfs_findfs_uuid"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:2345
27817 #, no-wrap
27818 msgid ""
27819 " char *\n"
27820 " guestfs_findfs_uuid (guestfs_h *g,\n"
27821 "                      const char *uuid);\n"
27822 "\n"
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:2353
27827 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:2360
27832 msgid "guestfs_fsck"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:2362
27837 #, no-wrap
27838 msgid ""
27839 " int\n"
27840 " guestfs_fsck (guestfs_h *g,\n"
27841 "               const char *fstype,\n"
27842 "               const char *device);\n"
27843 "\n"
27844 msgstr ""
27845
27846 #. type: textblock
27847 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
27848 msgid "(Added in 1.0.16)"
27849 msgstr ""
27850
27851 #. type: =head2
27852 #: ../src/guestfs-actions.pod:2399
27853 msgid "guestfs_get_append"
27854 msgstr ""
27855
27856 #. type: verbatim
27857 #: ../src/guestfs-actions.pod:2401
27858 #, no-wrap
27859 msgid ""
27860 " const char *\n"
27861 " guestfs_get_append (guestfs_h *g);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:2409
27867 msgid ""
27868 "This function returns a string which may be NULL.  There is no way to return "
27869 "an error from this function.  The string is owned by the guest handle and "
27870 "must I<not> be freed."
27871 msgstr ""
27872
27873 #. type: textblock
27874 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285 ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320 ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
27875 msgid "(Added in 1.0.26)"
27876 msgstr ""
27877
27878 #. type: =head2
27879 #: ../src/guestfs-actions.pod:2415
27880 msgid "guestfs_get_attach_method"
27881 msgstr ""
27882
27883 #. type: verbatim
27884 #: ../src/guestfs-actions.pod:2417
27885 #, no-wrap
27886 msgid ""
27887 " char *\n"
27888 " guestfs_get_attach_method (guestfs_h *g);\n"
27889 "\n"
27890 msgstr ""
27891
27892 #. type: textblock
27893 #: ../src/guestfs-actions.pod:2420
27894 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
27899 msgid "(Added in 1.9.8)"
27900 msgstr ""
27901
27902 #. type: =head2
27903 #: ../src/guestfs-actions.pod:2427
27904 msgid "guestfs_get_autosync"
27905 msgstr ""
27906
27907 #. type: verbatim
27908 #: ../src/guestfs-actions.pod:2429
27909 #, no-wrap
27910 msgid ""
27911 " int\n"
27912 " guestfs_get_autosync (guestfs_h *g);\n"
27913 "\n"
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:2438
27918 msgid "guestfs_get_direct"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:2440
27923 #, no-wrap
27924 msgid ""
27925 " int\n"
27926 " guestfs_get_direct (guestfs_h *g);\n"
27927 "\n"
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
27932 msgid "(Added in 1.0.72)"
27933 msgstr ""
27934
27935 #. type: =head2
27936 #: ../src/guestfs-actions.pod:2449
27937 msgid "guestfs_get_e2label"
27938 msgstr ""
27939
27940 #. type: verbatim
27941 #: ../src/guestfs-actions.pod:2451
27942 #, no-wrap
27943 msgid ""
27944 " char *\n"
27945 " guestfs_get_e2label (guestfs_h *g,\n"
27946 "                      const char *device);\n"
27947 "\n"
27948 msgstr ""
27949
27950 #. type: textblock
27951 #: ../src/guestfs-actions.pod:2455
27952 msgid ""
27953 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27954 "call instead."
27955 msgstr ""
27956
27957 #. type: textblock
27958 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489 ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
27959 msgid "(Added in 1.0.15)"
27960 msgstr ""
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:2470
27964 msgid "guestfs_get_e2uuid"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:2472
27969 #, no-wrap
27970 msgid ""
27971 " char *\n"
27972 " guestfs_get_e2uuid (guestfs_h *g,\n"
27973 "                     const char *device);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:2476
27979 msgid ""
27980 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27981 "call instead."
27982 msgstr ""
27983
27984 #. type: =head2
27985 #: ../src/guestfs-actions.pod:2491
27986 msgid "guestfs_get_memsize"
27987 msgstr ""
27988
27989 #. type: verbatim
27990 #: ../src/guestfs-actions.pod:2493
27991 #, no-wrap
27992 msgid ""
27993 " int\n"
27994 " guestfs_get_memsize (guestfs_h *g);\n"
27995 "\n"
27996 msgstr ""
27997
27998 #. type: textblock
27999 #: ../src/guestfs-actions.pod:2499
28000 msgid ""
28001 "If C<guestfs_set_memsize> was not called on this handle, and if "
28002 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28003 "value for memsize."
28004 msgstr ""
28005
28006 #. type: textblock
28007 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542 ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
28008 msgid "(Added in 1.0.55)"
28009 msgstr ""
28010
28011 #. type: =head2
28012 #: ../src/guestfs-actions.pod:2510
28013 msgid "guestfs_get_network"
28014 msgstr ""
28015
28016 #. type: verbatim
28017 #: ../src/guestfs-actions.pod:2512
28018 #, no-wrap
28019 msgid ""
28020 " int\n"
28021 " guestfs_get_network (guestfs_h *g);\n"
28022 "\n"
28023 msgstr ""
28024
28025 #. type: textblock
28026 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
28027 msgid "(Added in 1.5.4)"
28028 msgstr ""
28029
28030 #. type: =head2
28031 #: ../src/guestfs-actions.pod:2521
28032 msgid "guestfs_get_path"
28033 msgstr ""
28034
28035 #. type: verbatim
28036 #: ../src/guestfs-actions.pod:2523
28037 #, no-wrap
28038 msgid ""
28039 " const char *\n"
28040 " guestfs_get_path (guestfs_h *g);\n"
28041 "\n"
28042 msgstr ""
28043
28044 #. type: textblock
28045 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
28046 msgid ""
28047 "This function returns a string, or NULL on error.  The string is owned by "
28048 "the guest handle and must I<not> be freed."
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:2536
28053 msgid "guestfs_get_pgroup"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:2538
28058 #, no-wrap
28059 msgid ""
28060 " int\n"
28061 " guestfs_get_pgroup (guestfs_h *g);\n"
28062 "\n"
28063 msgstr ""
28064
28065 #. type: textblock
28066 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:8481
28067 msgid "(Added in 1.11.18)"
28068 msgstr ""
28069
28070 #. type: =head2
28071 #: ../src/guestfs-actions.pod:2547
28072 msgid "guestfs_get_pid"
28073 msgstr ""
28074
28075 #. type: verbatim
28076 #: ../src/guestfs-actions.pod:2549
28077 #, no-wrap
28078 msgid ""
28079 " int\n"
28080 " guestfs_get_pid (guestfs_h *g);\n"
28081 "\n"
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:2559
28086 msgid "(Added in 1.0.56)"
28087 msgstr ""
28088
28089 #. type: =head2
28090 #: ../src/guestfs-actions.pod:2561
28091 msgid "guestfs_get_qemu"
28092 msgstr ""
28093
28094 #. type: verbatim
28095 #: ../src/guestfs-actions.pod:2563
28096 #, no-wrap
28097 msgid ""
28098 " const char *\n"
28099 " guestfs_get_qemu (guestfs_h *g);\n"
28100 "\n"
28101 msgstr ""
28102
28103 #. type: textblock
28104 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
28105 msgid "(Added in 1.0.6)"
28106 msgstr ""
28107
28108 #. type: =head2
28109 #: ../src/guestfs-actions.pod:2576
28110 msgid "guestfs_get_recovery_proc"
28111 msgstr ""
28112
28113 #. type: verbatim
28114 #: ../src/guestfs-actions.pod:2578
28115 #, no-wrap
28116 msgid ""
28117 " int\n"
28118 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28119 "\n"
28120 msgstr ""
28121
28122 #. type: textblock
28123 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072 ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790 ../src/guestfs-actions.pod:8104
28124 msgid "(Added in 1.0.77)"
28125 msgstr ""
28126
28127 #. type: =head2
28128 #: ../src/guestfs-actions.pod:2587
28129 msgid "guestfs_get_selinux"
28130 msgstr ""
28131
28132 #. type: verbatim
28133 #: ../src/guestfs-actions.pod:2589
28134 #, no-wrap
28135 msgid ""
28136 " int\n"
28137 " guestfs_get_selinux (guestfs_h *g);\n"
28138 "\n"
28139 msgstr ""
28140
28141 #. type: textblock
28142 #: ../src/guestfs-actions.pod:2592
28143 msgid ""
28144 "This returns the current setting of the selinux flag which is passed to the "
28145 "appliance at boot time.  See C<guestfs_set_selinux>."
28146 msgstr ""
28147
28148 #. type: textblock
28149 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
28150 msgid "(Added in 1.0.67)"
28151 msgstr ""
28152
28153 #. type: =head2
28154 #: ../src/guestfs-actions.pod:2602
28155 msgid "guestfs_get_smp"
28156 msgstr ""
28157
28158 #. type: verbatim
28159 #: ../src/guestfs-actions.pod:2604
28160 #, no-wrap
28161 msgid ""
28162 " int\n"
28163 " guestfs_get_smp (guestfs_h *g);\n"
28164 "\n"
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:2613
28169 msgid "guestfs_get_state"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:2615
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_get_state (guestfs_h *g);\n"
28178 "\n"
28179 msgstr ""
28180
28181 #. type: =head2
28182 #: ../src/guestfs-actions.pod:2627
28183 msgid "guestfs_get_trace"
28184 msgstr ""
28185
28186 #. type: verbatim
28187 #: ../src/guestfs-actions.pod:2629
28188 #, no-wrap
28189 msgid ""
28190 " int\n"
28191 " guestfs_get_trace (guestfs_h *g);\n"
28192 "\n"
28193 msgstr ""
28194
28195 #. type: =head2
28196 #: ../src/guestfs-actions.pod:2638
28197 msgid "guestfs_get_umask"
28198 msgstr ""
28199
28200 #. type: verbatim
28201 #: ../src/guestfs-actions.pod:2640
28202 #, no-wrap
28203 msgid ""
28204 " int\n"
28205 " guestfs_get_umask (guestfs_h *g);\n"
28206 "\n"
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../src/guestfs-actions.pod:2643
28211 msgid ""
28212 "Return the current umask.  By default the umask is C<022> unless it has been "
28213 "set by calling C<guestfs_umask>."
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:2650
28218 msgid "guestfs_get_verbose"
28219 msgstr ""
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:2652
28223 #, no-wrap
28224 msgid ""
28225 " int\n"
28226 " guestfs_get_verbose (guestfs_h *g);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:2661
28232 msgid "guestfs_getcon"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:2663
28237 #, no-wrap
28238 msgid ""
28239 " char *\n"
28240 " guestfs_getcon (guestfs_h *g);\n"
28241 "\n"
28242 msgstr ""
28243
28244 #. type: textblock
28245 #: ../src/guestfs-actions.pod:2668
28246 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:2676
28251 msgid "guestfs_getxattr"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:2678
28256 #, no-wrap
28257 msgid ""
28258 " char *\n"
28259 " guestfs_getxattr (guestfs_h *g,\n"
28260 "                   const char *path,\n"
28261 "                   const char *name,\n"
28262 "                   size_t *size_r);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: textblock
28267 #: ../src/guestfs-actions.pod:2684
28268 msgid ""
28269 "Get a single extended attribute from file C<path> named C<name>.  This call "
28270 "follows symlinks.  If you want to lookup an extended attribute for the "
28271 "symlink itself, use C<guestfs_lgetxattr>."
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
28276 msgid ""
28277 "Normally it is better to get all extended attributes from a file in one go "
28278 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28279 "implementations are buggy and do not provide a way to list out attributes.  "
28280 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28281 "extended attributes you want in advance and call this function."
28282 msgstr ""
28283
28284 #. type: textblock
28285 #: ../src/guestfs-actions.pod:2698
28286 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28287 msgstr ""
28288
28289 #. type: textblock
28290 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6487
28291 msgid ""
28292 "This function returns a buffer, or NULL on error.  The size of the returned "
28293 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28294 "after use>."
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
28299 msgid "(Added in 1.7.24)"
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:2706
28304 msgid "guestfs_getxattrs"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:2708
28309 #, no-wrap
28310 msgid ""
28311 " struct guestfs_xattr_list *\n"
28312 " guestfs_getxattrs (guestfs_h *g,\n"
28313 "                    const char *path);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:2718
28319 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28320 msgstr ""
28321
28322 #. type: textblock
28323 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4907
28324 msgid ""
28325 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28326 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28327 msgstr ""
28328
28329 #. type: textblock
28330 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184 ../src/guestfs-actions.pod:8689
28331 msgid "(Added in 1.0.59)"
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:2726
28336 msgid "guestfs_glob_expand"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:2728
28341 #, no-wrap
28342 msgid ""
28343 " char **\n"
28344 " guestfs_glob_expand (guestfs_h *g,\n"
28345 "                      const char *pattern);\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: textblock
28350 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7385
28351 msgid "(Added in 1.0.50)"
28352 msgstr ""
28353
28354 #. type: =head2
28355 #: ../src/guestfs-actions.pod:2749
28356 msgid "guestfs_grep"
28357 msgstr ""
28358
28359 #. type: verbatim
28360 #: ../src/guestfs-actions.pod:2751
28361 #, no-wrap
28362 msgid ""
28363 " char **\n"
28364 " guestfs_grep (guestfs_h *g,\n"
28365 "               const char *regex,\n"
28366 "               const char *path);\n"
28367 "\n"
28368 msgstr ""
28369
28370 #. type: =head2
28371 #: ../src/guestfs-actions.pod:2768
28372 msgid "guestfs_grepi"
28373 msgstr ""
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:2770
28377 #, no-wrap
28378 msgid ""
28379 " char **\n"
28380 " guestfs_grepi (guestfs_h *g,\n"
28381 "                const char *regex,\n"
28382 "                const char *path);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: =head2
28387 #: ../src/guestfs-actions.pod:2787
28388 msgid "guestfs_grub_install"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../src/guestfs-actions.pod:2789
28393 #, no-wrap
28394 msgid ""
28395 " int\n"
28396 " guestfs_grub_install (guestfs_h *g,\n"
28397 "                       const char *root,\n"
28398 "                       const char *device);\n"
28399 "\n"
28400 msgstr ""
28401
28402 #. type: textblock
28403 #: ../src/guestfs-actions.pod:2832
28404 msgid "(Added in 1.0.17)"
28405 msgstr ""
28406
28407 #. type: =head2
28408 #: ../src/guestfs-actions.pod:2834
28409 msgid "guestfs_head"
28410 msgstr ""
28411
28412 #. type: verbatim
28413 #: ../src/guestfs-actions.pod:2836
28414 #, no-wrap
28415 msgid ""
28416 " char **\n"
28417 " guestfs_head (guestfs_h *g,\n"
28418 "               const char *path);\n"
28419 "\n"
28420 msgstr ""
28421
28422 #. type: =head2
28423 #: ../src/guestfs-actions.pod:2852
28424 msgid "guestfs_head_n"
28425 msgstr ""
28426
28427 #. type: verbatim
28428 #: ../src/guestfs-actions.pod:2854
28429 #, no-wrap
28430 msgid ""
28431 " char **\n"
28432 " guestfs_head_n (guestfs_h *g,\n"
28433 "                 int nrlines,\n"
28434 "                 const char *path);\n"
28435 "\n"
28436 msgstr ""
28437
28438 #. type: =head2
28439 #: ../src/guestfs-actions.pod:2876
28440 msgid "guestfs_hexdump"
28441 msgstr ""
28442
28443 #. type: verbatim
28444 #: ../src/guestfs-actions.pod:2878
28445 #, no-wrap
28446 msgid ""
28447 " char *\n"
28448 " guestfs_hexdump (guestfs_h *g,\n"
28449 "                  const char *path);\n"
28450 "\n"
28451 msgstr ""
28452
28453 #. type: textblock
28454 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449 ../src/guestfs-actions.pod:7504
28455 msgid "(Added in 1.0.22)"
28456 msgstr ""
28457
28458 #. type: =head2
28459 #: ../src/guestfs-actions.pod:2893
28460 msgid "guestfs_initrd_cat"
28461 msgstr ""
28462
28463 #. type: verbatim
28464 #: ../src/guestfs-actions.pod:2895
28465 #, no-wrap
28466 msgid ""
28467 " char *\n"
28468 " guestfs_initrd_cat (guestfs_h *g,\n"
28469 "                     const char *initrdpath,\n"
28470 "                     const char *filename,\n"
28471 "                     size_t *size_r);\n"
28472 "\n"
28473 msgstr ""
28474
28475 #. type: textblock
28476 #: ../src/guestfs-actions.pod:2911
28477 msgid "See also C<guestfs_initrd_list>."
28478 msgstr ""
28479
28480 #. type: =head2
28481 #: ../src/guestfs-actions.pod:2922
28482 msgid "guestfs_initrd_list"
28483 msgstr ""
28484
28485 #. type: verbatim
28486 #: ../src/guestfs-actions.pod:2924
28487 #, no-wrap
28488 msgid ""
28489 " char **\n"
28490 " guestfs_initrd_list (guestfs_h *g,\n"
28491 "                      const char *path);\n"
28492 "\n"
28493 msgstr ""
28494
28495 #. type: =head2
28496 #: ../src/guestfs-actions.pod:2944
28497 msgid "guestfs_inotify_add_watch"
28498 msgstr ""
28499
28500 #. type: verbatim
28501 #: ../src/guestfs-actions.pod:2946
28502 #, no-wrap
28503 msgid ""
28504 " int64_t\n"
28505 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28506 "                            const char *path,\n"
28507 "                            int mask);\n"
28508 "\n"
28509 msgstr ""
28510
28511 #. type: =head2
28512 #: ../src/guestfs-actions.pod:2965
28513 msgid "guestfs_inotify_close"
28514 msgstr ""
28515
28516 #. type: verbatim
28517 #: ../src/guestfs-actions.pod:2967
28518 #, no-wrap
28519 msgid ""
28520 " int\n"
28521 " guestfs_inotify_close (guestfs_h *g);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: =head2
28526 #: ../src/guestfs-actions.pod:2978
28527 msgid "guestfs_inotify_files"
28528 msgstr ""
28529
28530 #. type: verbatim
28531 #: ../src/guestfs-actions.pod:2980
28532 #, no-wrap
28533 msgid ""
28534 " char **\n"
28535 " guestfs_inotify_files (guestfs_h *g);\n"
28536 "\n"
28537 msgstr ""
28538
28539 #. type: textblock
28540 #: ../src/guestfs-actions.pod:2983
28541 msgid ""
28542 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28543 "returns a list of pathnames of objects that were touched.  The returned "
28544 "pathnames are sorted and deduplicated."
28545 msgstr ""
28546
28547 #. type: =head2
28548 #: ../src/guestfs-actions.pod:2993
28549 msgid "guestfs_inotify_init"
28550 msgstr ""
28551
28552 #. type: verbatim
28553 #: ../src/guestfs-actions.pod:2995
28554 #, no-wrap
28555 msgid ""
28556 " int\n"
28557 " guestfs_inotify_init (guestfs_h *g,\n"
28558 "                       int maxevents);\n"
28559 "\n"
28560 msgstr ""
28561
28562 #. type: textblock
28563 #: ../src/guestfs-actions.pod:3003
28564 msgid ""
28565 "C<maxevents> is the maximum number of events which will be queued up between "
28566 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28567 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28568 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28569 "throws away events, but records the fact that it threw them away by setting "
28570 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28571 "C<guestfs_inotify_read>)."
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../src/guestfs-actions.pod:3013
28576 msgid ""
28577 "Before any events are generated, you have to add some watches to the "
28578 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28579 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28580 msgstr ""
28581
28582 #. type: textblock
28583 #: ../src/guestfs-actions.pod:3019
28584 msgid ""
28585 "Queued up events should be read periodically by calling "
28586 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28587 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28588 "often enough then you risk the internal queue overflowing."
28589 msgstr ""
28590
28591 #. type: textblock
28592 #: ../src/guestfs-actions.pod:3026
28593 msgid ""
28594 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28595 "This also removes any watches automatically."
28596 msgstr ""
28597
28598 #. type: =head2
28599 #: ../src/guestfs-actions.pod:3039
28600 msgid "guestfs_inotify_read"
28601 msgstr ""
28602
28603 #. type: verbatim
28604 #: ../src/guestfs-actions.pod:3041
28605 #, no-wrap
28606 msgid ""
28607 " struct guestfs_inotify_event_list *\n"
28608 " guestfs_inotify_read (guestfs_h *g);\n"
28609 "\n"
28610 msgstr ""
28611
28612 #. type: textblock
28613 #: ../src/guestfs-actions.pod:3055
28614 msgid ""
28615 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28616 "there was an error.  I<The caller must call "
28617 "C<guestfs_free_inotify_event_list> after use>."
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:3061
28622 msgid "guestfs_inotify_rm_watch"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:3063
28627 #, no-wrap
28628 msgid ""
28629 " int\n"
28630 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28631 "                           int wd);\n"
28632 "\n"
28633 msgstr ""
28634
28635 #. type: textblock
28636 #: ../src/guestfs-actions.pod:3067
28637 msgid ""
28638 "Remove a previously defined inotify watch.  See "
28639 "C<guestfs_inotify_add_watch>."
28640 msgstr ""
28641
28642 #. type: =head2
28643 #: ../src/guestfs-actions.pod:3074
28644 msgid "guestfs_inspect_get_arch"
28645 msgstr ""
28646
28647 #. type: verbatim
28648 #: ../src/guestfs-actions.pod:3076
28649 #, no-wrap
28650 msgid ""
28651 " char *\n"
28652 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28653 "                           const char *root);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:3080
28659 msgid ""
28660 "This returns the architecture of the inspected operating system.  The "
28661 "possible return values are listed under C<guestfs_file_architecture>."
28662 msgstr ""
28663
28664 #. type: =head2
28665 #: ../src/guestfs-actions.pod:3094
28666 msgid "guestfs_inspect_get_distro"
28667 msgstr ""
28668
28669 #. type: verbatim
28670 #: ../src/guestfs-actions.pod:3096
28671 #, no-wrap
28672 msgid ""
28673 " char *\n"
28674 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28675 "                             const char *root);\n"
28676 "\n"
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:3196
28681 msgid "guestfs_inspect_get_drive_mappings"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:3198
28686 #, no-wrap
28687 msgid ""
28688 " char **\n"
28689 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28690 "                                     const char *root);\n"
28691 "\n"
28692 msgstr ""
28693
28694 #. type: textblock
28695 #: ../src/guestfs-actions.pod:3227
28696 msgid ""
28697 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28698 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28699 msgstr ""
28700
28701 #. type: textblock
28702 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
28703 msgid "(Added in 1.9.17)"
28704 msgstr ""
28705
28706 #. type: =head2
28707 #: ../src/guestfs-actions.pod:3239
28708 msgid "guestfs_inspect_get_filesystems"
28709 msgstr ""
28710
28711 #. type: verbatim
28712 #: ../src/guestfs-actions.pod:3241
28713 #, no-wrap
28714 msgid ""
28715 " char **\n"
28716 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28717 "                                  const char *root);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:3253
28723 msgid ""
28724 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28725 "C<guestfs_inspect_get_mountpoints>."
28726 msgstr ""
28727
28728 #. type: =head2
28729 #: ../src/guestfs-actions.pod:3262
28730 msgid "guestfs_inspect_get_format"
28731 msgstr ""
28732
28733 #. type: verbatim
28734 #: ../src/guestfs-actions.pod:3264
28735 #, no-wrap
28736 msgid ""
28737 " char *\n"
28738 " guestfs_inspect_get_format (guestfs_h *g,\n"
28739 "                             const char *root);\n"
28740 "\n"
28741 msgstr ""
28742
28743 #. type: textblock
28744 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:6698
28745 msgid "(Added in 1.9.4)"
28746 msgstr ""
28747
28748 #. type: =head2
28749 #: ../src/guestfs-actions.pod:3300
28750 msgid "guestfs_inspect_get_hostname"
28751 msgstr ""
28752
28753 #. type: verbatim
28754 #: ../src/guestfs-actions.pod:3302
28755 #, no-wrap
28756 msgid ""
28757 " char *\n"
28758 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28759 "                               const char *root);\n"
28760 "\n"
28761 msgstr ""
28762
28763 #. type: textblock
28764 #: ../src/guestfs-actions.pod:3317
28765 msgid "(Added in 1.7.9)"
28766 msgstr ""
28767
28768 #. type: =head2
28769 #: ../src/guestfs-actions.pod:3319
28770 msgid "guestfs_inspect_get_icon"
28771 msgstr ""
28772
28773 #. type: verbatim
28774 #: ../src/guestfs-actions.pod:3321
28775 #, no-wrap
28776 msgid ""
28777 " char *\n"
28778 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28779 "                           const char *root,\n"
28780 "                           size_t *size_r,\n"
28781 "                           ...);\n"
28782 "\n"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:3332
28787 #, no-wrap
28788 msgid ""
28789 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28790 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28791 "\n"
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233 ../src/guestfs-actions.pod:5630
28796 msgid "(Added in 1.11.12)"
28797 msgstr ""
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:3401
28801 msgid "guestfs_inspect_get_icon_va"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:3403
28806 #, no-wrap
28807 msgid ""
28808 " char *\n"
28809 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28810 "                              const char *root,\n"
28811 "                              size_t *size_r,\n"
28812 "                              va_list args);\n"
28813 "\n"
28814 msgstr ""
28815
28816 #. type: textblock
28817 #: ../src/guestfs-actions.pod:3409
28818 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28819 msgstr ""
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:3413
28823 msgid "guestfs_inspect_get_icon_argv"
28824 msgstr ""
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:3415
28828 #, no-wrap
28829 msgid ""
28830 " char *\n"
28831 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28832 "                                const char *root,\n"
28833 "                                size_t *size_r,\n"
28834 "                                const struct guestfs_inspect_get_icon_argv "
28835 "*optargs);\n"
28836 "\n"
28837 msgstr ""
28838
28839 #. type: textblock
28840 #: ../src/guestfs-actions.pod:3421
28841 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28842 msgstr ""
28843
28844 #. type: =head2
28845 #: ../src/guestfs-actions.pod:3425
28846 msgid "guestfs_inspect_get_major_version"
28847 msgstr ""
28848
28849 #. type: verbatim
28850 #: ../src/guestfs-actions.pod:3427
28851 #, no-wrap
28852 msgid ""
28853 " int\n"
28854 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28855 "                                    const char *root);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:3449
28861 msgid "guestfs_inspect_get_minor_version"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:3451
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28870 "                                    const char *root);\n"
28871 "\n"
28872 msgstr ""
28873
28874 #. type: textblock
28875 #: ../src/guestfs-actions.pod:3460
28876 msgid ""
28877 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28878 "C<guestfs_inspect_get_major_version>."
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:3467
28883 msgid "guestfs_inspect_get_mountpoints"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:3469
28888 #, no-wrap
28889 msgid ""
28890 " char **\n"
28891 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28892 "                                  const char *root);\n"
28893 "\n"
28894 msgstr ""
28895
28896 #. type: textblock
28897 #: ../src/guestfs-actions.pod:3490
28898 msgid ""
28899 "For operating systems like Windows which still use drive letters, this call "
28900 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28901 "information about the mapping of drive letters to partitions, see "
28902 "C<guestfs_inspect_get_drive_mappings>."
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:3496
28907 msgid ""
28908 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28909 "C<guestfs_inspect_get_filesystems>."
28910 msgstr ""
28911
28912 #. type: =head2
28913 #: ../src/guestfs-actions.pod:3507
28914 msgid "guestfs_inspect_get_package_format"
28915 msgstr ""
28916
28917 #. type: verbatim
28918 #: ../src/guestfs-actions.pod:3509
28919 #, no-wrap
28920 msgid ""
28921 " char *\n"
28922 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28923 "                                     const char *root);\n"
28924 "\n"
28925 msgstr ""
28926
28927 #. type: textblock
28928 #: ../src/guestfs-actions.pod:3513
28929 msgid ""
28930 "This function and C<guestfs_inspect_get_package_management> return the "
28931 "package format and package management tool used by the inspected operating "
28932 "system.  For example for Fedora these functions would return C<rpm> (package "
28933 "format) and C<yum> (package management)."
28934 msgstr ""
28935
28936 #. type: textblock
28937 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
28938 msgid "(Added in 1.7.5)"
28939 msgstr ""
28940
28941 #. type: =head2
28942 #: ../src/guestfs-actions.pod:3534
28943 msgid "guestfs_inspect_get_package_management"
28944 msgstr ""
28945
28946 #. type: verbatim
28947 #: ../src/guestfs-actions.pod:3536
28948 #, no-wrap
28949 msgid ""
28950 " char *\n"
28951 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28952 "                                         const char *root);\n"
28953 "\n"
28954 msgstr ""
28955
28956 #. type: textblock
28957 #: ../src/guestfs-actions.pod:3540
28958 msgid ""
28959 "C<guestfs_inspect_get_package_format> and this function return the package "
28960 "format and package management tool used by the inspected operating system.  "
28961 "For example for Fedora these functions would return C<rpm> (package format) "
28962 "and C<yum> (package management)."
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:3562
28967 msgid "guestfs_inspect_get_product_name"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:3564
28972 #, no-wrap
28973 msgid ""
28974 " char *\n"
28975 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28976 "                                   const char *root);\n"
28977 "\n"
28978 msgstr ""
28979
28980 #. type: =head2
28981 #: ../src/guestfs-actions.pod:3583
28982 msgid "guestfs_inspect_get_product_variant"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../src/guestfs-actions.pod:3585
28987 #, no-wrap
28988 msgid ""
28989 " char *\n"
28990 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28991 "                                      const char *root);\n"
28992 "\n"
28993 msgstr ""
28994
28995 #. type: textblock
28996 #: ../src/guestfs-actions.pod:3608
28997 msgid ""
28998 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28999 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29000 msgstr ""
29001
29002 #. type: textblock
29003 #: ../src/guestfs-actions.pod:3615
29004 msgid "(Added in 1.9.13)"
29005 msgstr ""
29006
29007 #. type: =head2
29008 #: ../src/guestfs-actions.pod:3617
29009 msgid "guestfs_inspect_get_roots"
29010 msgstr ""
29011
29012 #. type: verbatim
29013 #: ../src/guestfs-actions.pod:3619
29014 #, no-wrap
29015 msgid ""
29016 " char **\n"
29017 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../src/guestfs-actions.pod:3622
29023 msgid ""
29024 "This function is a convenient way to get the list of root devices, as "
29025 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29026 "the whole inspection process."
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../src/guestfs-actions.pod:3626
29031 msgid ""
29032 "This returns an empty list if either no root devices were found or the "
29033 "caller has not called C<guestfs_inspect_os>."
29034 msgstr ""
29035
29036 #. type: textblock
29037 #: ../src/guestfs-actions.pod:3635
29038 msgid "(Added in 1.7.3)"
29039 msgstr ""
29040
29041 #. type: =head2
29042 #: ../src/guestfs-actions.pod:3637
29043 msgid "guestfs_inspect_get_type"
29044 msgstr ""
29045
29046 #. type: verbatim
29047 #: ../src/guestfs-actions.pod:3639
29048 #, no-wrap
29049 msgid ""
29050 " char *\n"
29051 " guestfs_inspect_get_type (guestfs_h *g,\n"
29052 "                           const char *root);\n"
29053 "\n"
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:3684
29058 msgid "guestfs_inspect_get_windows_current_control_set"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:3686
29063 #, no-wrap
29064 msgid ""
29065 " char *\n"
29066 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29067 "                                                  const char *root);\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: =head2
29072 #: ../src/guestfs-actions.pod:3704
29073 msgid "guestfs_inspect_get_windows_systemroot"
29074 msgstr ""
29075
29076 #. type: verbatim
29077 #: ../src/guestfs-actions.pod:3706
29078 #, no-wrap
29079 msgid ""
29080 " char *\n"
29081 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29082 "                                         const char *root);\n"
29083 "\n"
29084 msgstr ""
29085
29086 #. type: textblock
29087 #: ../src/guestfs-actions.pod:3722
29088 msgid "(Added in 1.5.25)"
29089 msgstr ""
29090
29091 #. type: =head2
29092 #: ../src/guestfs-actions.pod:3724
29093 msgid "guestfs_inspect_is_live"
29094 msgstr ""
29095
29096 #. type: verbatim
29097 #: ../src/guestfs-actions.pod:3726
29098 #, no-wrap
29099 msgid ""
29100 " int\n"
29101 " guestfs_inspect_is_live (guestfs_h *g,\n"
29102 "                          const char *root);\n"
29103 "\n"
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../src/guestfs-actions.pod:3730
29108 msgid ""
29109 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29110 "disk), then this returns true if a live image was detected on the disk."
29111 msgstr ""
29112
29113 #. type: =head2
29114 #: ../src/guestfs-actions.pod:3740
29115 msgid "guestfs_inspect_is_multipart"
29116 msgstr ""
29117
29118 #. type: verbatim
29119 #: ../src/guestfs-actions.pod:3742
29120 #, no-wrap
29121 msgid ""
29122 " int\n"
29123 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29124 "                               const char *root);\n"
29125 "\n"
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../src/guestfs-actions.pod:3746
29130 msgid ""
29131 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29132 "disk), then this returns true if the disk is part of a set."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:3756
29137 msgid "guestfs_inspect_is_netinst"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:3758
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29146 "                             const char *root);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:3762
29152 msgid ""
29153 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29154 "disk), then this returns true if the disk is a network installer, ie. not a "
29155 "self-contained install CD but one which is likely to require network access "
29156 "to complete the install."
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:3774
29161 msgid "guestfs_inspect_list_applications"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:3776
29166 #, no-wrap
29167 msgid ""
29168 " struct guestfs_application_list *\n"
29169 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29170 "                                    const char *root);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:3782
29176 msgid ""
29177 "I<Note:> This call works differently from other parts of the inspection "
29178 "API.  You have to call C<guestfs_inspect_os>, then "
29179 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29180 "this.  Listing applications is a significantly more difficult operation "
29181 "which requires access to the full filesystem.  Also note that unlike the "
29182 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29183 "the libguestfs handle, this call actually reads parts of the mounted "
29184 "filesystems during the call."
29185 msgstr ""
29186
29187 #. type: textblock
29188 #: ../src/guestfs-actions.pod:3872
29189 msgid ""
29190 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29191 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29192 "after use>."
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:3876
29197 msgid "(Added in 1.7.8)"
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:3878
29202 msgid "guestfs_inspect_os"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:3880
29207 #, no-wrap
29208 msgid ""
29209 " char **\n"
29210 " guestfs_inspect_os (guestfs_h *g);\n"
29211 "\n"
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../src/guestfs-actions.pod:3896
29216 msgid ""
29217 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29218 "functions in order to query further information about each operating system, "
29219 "such as the name and version."
29220 msgstr ""
29221
29222 #. type: textblock
29223 #: ../src/guestfs-actions.pod:3901
29224 msgid ""
29225 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29226 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29227 "the contents.  This should be called with no disks currently mounted.  The "
29228 "function may also use Augeas, so any existing Augeas handle will be closed."
29229 msgstr ""
29230
29231 #. type: textblock
29232 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4339
29233 msgid "See also C<guestfs_list_filesystems>."
29234 msgstr ""
29235
29236 #. type: =head2
29237 #: ../src/guestfs-actions.pod:3921
29238 msgid "guestfs_is_blockdev"
29239 msgstr ""
29240
29241 #. type: verbatim
29242 #: ../src/guestfs-actions.pod:3923
29243 #, no-wrap
29244 msgid ""
29245 " int\n"
29246 " guestfs_is_blockdev (guestfs_h *g,\n"
29247 "                      const char *path);\n"
29248 "\n"
29249 msgstr ""
29250
29251 #. type: textblock
29252 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959 ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4091
29253 msgid "See also C<guestfs_stat>."
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
29258 msgid "(Added in 1.5.10)"
29259 msgstr ""
29260
29261 #. type: =head2
29262 #: ../src/guestfs-actions.pod:3936
29263 msgid "guestfs_is_busy"
29264 msgstr ""
29265
29266 #. type: verbatim
29267 #: ../src/guestfs-actions.pod:3938
29268 #, no-wrap
29269 msgid ""
29270 " int\n"
29271 " guestfs_is_busy (guestfs_h *g);\n"
29272 "\n"
29273 msgstr ""
29274
29275 #. type: =head2
29276 #: ../src/guestfs-actions.pod:3950
29277 msgid "guestfs_is_chardev"
29278 msgstr ""
29279
29280 #. type: verbatim
29281 #: ../src/guestfs-actions.pod:3952
29282 #, no-wrap
29283 msgid ""
29284 " int\n"
29285 " guestfs_is_chardev (guestfs_h *g,\n"
29286 "                     const char *path);\n"
29287 "\n"
29288 msgstr ""
29289
29290 #. type: =head2
29291 #: ../src/guestfs-actions.pod:3965
29292 msgid "guestfs_is_config"
29293 msgstr ""
29294
29295 #. type: verbatim
29296 #: ../src/guestfs-actions.pod:3967
29297 #, no-wrap
29298 msgid ""
29299 " int\n"
29300 " guestfs_is_config (guestfs_h *g);\n"
29301 "\n"
29302 msgstr ""
29303
29304 #. type: =head2
29305 #: ../src/guestfs-actions.pod:3979
29306 msgid "guestfs_is_dir"
29307 msgstr ""
29308
29309 #. type: verbatim
29310 #: ../src/guestfs-actions.pod:3981
29311 #, no-wrap
29312 msgid ""
29313 " int\n"
29314 " guestfs_is_dir (guestfs_h *g,\n"
29315 "                 const char *path);\n"
29316 "\n"
29317 msgstr ""
29318
29319 #. type: =head2
29320 #: ../src/guestfs-actions.pod:3995
29321 msgid "guestfs_is_fifo"
29322 msgstr ""
29323
29324 #. type: verbatim
29325 #: ../src/guestfs-actions.pod:3997
29326 #, no-wrap
29327 msgid ""
29328 " int\n"
29329 " guestfs_is_fifo (guestfs_h *g,\n"
29330 "                  const char *path);\n"
29331 "\n"
29332 msgstr ""
29333
29334 #. type: =head2
29335 #: ../src/guestfs-actions.pod:4010
29336 msgid "guestfs_is_file"
29337 msgstr ""
29338
29339 #. type: verbatim
29340 #: ../src/guestfs-actions.pod:4012
29341 #, no-wrap
29342 msgid ""
29343 " int\n"
29344 " guestfs_is_file (guestfs_h *g,\n"
29345 "                  const char *path);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:4026
29351 msgid "guestfs_is_launching"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:4028
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_is_launching (guestfs_h *g);\n"
29360 "\n"
29361 msgstr ""
29362
29363 #. type: =head2
29364 #: ../src/guestfs-actions.pod:4040
29365 msgid "guestfs_is_lv"
29366 msgstr ""
29367
29368 #. type: verbatim
29369 #: ../src/guestfs-actions.pod:4042
29370 #, no-wrap
29371 msgid ""
29372 " int\n"
29373 " guestfs_is_lv (guestfs_h *g,\n"
29374 "                const char *device);\n"
29375 "\n"
29376 msgstr ""
29377
29378 #. type: =head2
29379 #: ../src/guestfs-actions.pod:4053
29380 msgid "guestfs_is_ready"
29381 msgstr ""
29382
29383 #. type: verbatim
29384 #: ../src/guestfs-actions.pod:4055
29385 #, no-wrap
29386 msgid ""
29387 " int\n"
29388 " guestfs_is_ready (guestfs_h *g);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: =head2
29393 #: ../src/guestfs-actions.pod:4067
29394 msgid "guestfs_is_socket"
29395 msgstr ""
29396
29397 #. type: verbatim
29398 #: ../src/guestfs-actions.pod:4069
29399 #, no-wrap
29400 msgid ""
29401 " int\n"
29402 " guestfs_is_socket (guestfs_h *g,\n"
29403 "                    const char *path);\n"
29404 "\n"
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:4082
29409 msgid "guestfs_is_symlink"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:4084
29414 #, no-wrap
29415 msgid ""
29416 " int\n"
29417 " guestfs_is_symlink (guestfs_h *g,\n"
29418 "                     const char *path);\n"
29419 "\n"
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:4097
29424 msgid "guestfs_is_zero"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:4099
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_is_zero (guestfs_h *g,\n"
29433 "                  const char *path);\n"
29434 "\n"
29435 msgstr ""
29436
29437 #. type: textblock
29438 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
29439 msgid "(Added in 1.11.8)"
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:4110
29444 msgid "guestfs_is_zero_device"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:4112
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_is_zero_device (guestfs_h *g,\n"
29453 "                         const char *device);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-actions.pod:4124
29459 msgid "guestfs_kill_subprocess"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-actions.pod:4126
29464 #, no-wrap
29465 msgid ""
29466 " int\n"
29467 " guestfs_kill_subprocess (guestfs_h *g);\n"
29468 "\n"
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:4135
29473 msgid "guestfs_launch"
29474 msgstr ""
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:4137
29478 #, no-wrap
29479 msgid ""
29480 " int\n"
29481 " guestfs_launch (guestfs_h *g);\n"
29482 "\n"
29483 msgstr ""
29484
29485 #. type: =head2
29486 #: ../src/guestfs-actions.pod:4155
29487 msgid "guestfs_lchown"
29488 msgstr ""
29489
29490 #. type: verbatim
29491 #: ../src/guestfs-actions.pod:4157
29492 #, no-wrap
29493 msgid ""
29494 " int\n"
29495 " guestfs_lchown (guestfs_h *g,\n"
29496 "                 int owner,\n"
29497 "                 int group,\n"
29498 "                 const char *path);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: textblock
29503 #: ../src/guestfs-actions.pod:4163
29504 msgid ""
29505 "Change the file owner to C<owner> and group to C<group>.  This is like "
29506 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29507 "changed, not the target."
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:4175
29512 msgid "guestfs_lgetxattr"
29513 msgstr ""
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:4177
29517 #, no-wrap
29518 msgid ""
29519 " char *\n"
29520 " guestfs_lgetxattr (guestfs_h *g,\n"
29521 "                    const char *path,\n"
29522 "                    const char *name,\n"
29523 "                    size_t *size_r);\n"
29524 "\n"
29525 msgstr ""
29526
29527 #. type: textblock
29528 #: ../src/guestfs-actions.pod:4197
29529 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29530 msgstr ""
29531
29532 #. type: =head2
29533 #: ../src/guestfs-actions.pod:4205
29534 msgid "guestfs_lgetxattrs"
29535 msgstr ""
29536
29537 #. type: verbatim
29538 #: ../src/guestfs-actions.pod:4207
29539 #, no-wrap
29540 msgid ""
29541 " struct guestfs_xattr_list *\n"
29542 " guestfs_lgetxattrs (guestfs_h *g,\n"
29543 "                     const char *path);\n"
29544 "\n"
29545 msgstr ""
29546
29547 #. type: textblock
29548 #: ../src/guestfs-actions.pod:4211
29549 msgid ""
29550 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29551 "then it returns the extended attributes of the link itself."
29552 msgstr ""
29553
29554 #. type: =head2
29555 #: ../src/guestfs-actions.pod:4221
29556 msgid "guestfs_list_9p"
29557 msgstr ""
29558
29559 #. type: verbatim
29560 #: ../src/guestfs-actions.pod:4223
29561 #, no-wrap
29562 msgid ""
29563 " char **\n"
29564 " guestfs_list_9p (guestfs_h *g);\n"
29565 "\n"
29566 msgstr ""
29567
29568 #. type: =head2
29569 #: ../src/guestfs-actions.pod:4235
29570 msgid "guestfs_list_devices"
29571 msgstr ""
29572
29573 #. type: verbatim
29574 #: ../src/guestfs-actions.pod:4237
29575 #, no-wrap
29576 msgid ""
29577 " char **\n"
29578 " guestfs_list_devices (guestfs_h *g);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../src/guestfs-actions.pod:4252
29584 msgid "guestfs_list_dm_devices"
29585 msgstr ""
29586
29587 #. type: verbatim
29588 #: ../src/guestfs-actions.pod:4254
29589 #, no-wrap
29590 msgid ""
29591 " char **\n"
29592 " guestfs_list_dm_devices (guestfs_h *g);\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:4259
29598 msgid ""
29599 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29600 "previous call to C<guestfs_luks_open>."
29601 msgstr ""
29602
29603 #. type: textblock
29604 #: ../src/guestfs-actions.pod:4262
29605 msgid ""
29606 "Device mapper devices which correspond to logical volumes are I<not> "
29607 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29608 "volumes."
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
29613 msgid "(Added in 1.11.15)"
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:4272
29618 msgid "guestfs_list_filesystems"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:4274
29623 #, no-wrap
29624 msgid ""
29625 " char **\n"
29626 " guestfs_list_filesystems (guestfs_h *g);\n"
29627 "\n"
29628 msgstr ""
29629
29630 #. type: textblock
29631 #: ../src/guestfs-actions.pod:4294
29632 msgid ""
29633 "This command runs other libguestfs commands, which might include "
29634 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29635 "soon after launch and only when nothing is mounted."
29636 msgstr ""
29637
29638 #. type: textblock
29639 #: ../src/guestfs-actions.pod:4298
29640 msgid ""
29641 "Not all of the filesystems returned will be mountable.  In particular, swap "
29642 "partitions are returned in the list.  Also this command does not check that "
29643 "each filesystem found is valid and mountable, and some filesystems might be "
29644 "mountable but require special options.  Filesystems may not all belong to a "
29645 "single logical operating system (use C<guestfs_inspect_os> to look for "
29646 "OSes)."
29647 msgstr ""
29648
29649 #. type: textblock
29650 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
29651 msgid "(Added in 1.5.15)"
29652 msgstr ""
29653
29654 #. type: =head2
29655 #: ../src/guestfs-actions.pod:4314
29656 msgid "guestfs_list_md_devices"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:4316
29661 #, no-wrap
29662 msgid ""
29663 " char **\n"
29664 " guestfs_list_md_devices (guestfs_h *g);\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: textblock
29669 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
29670 msgid "(Added in 1.15.4)"
29671 msgstr ""
29672
29673 #. type: =head2
29674 #: ../src/guestfs-actions.pod:4327
29675 msgid "guestfs_list_partitions"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-actions.pod:4329
29680 #, no-wrap
29681 msgid ""
29682 " char **\n"
29683 " guestfs_list_partitions (guestfs_h *g);\n"
29684 "\n"
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:4336
29689 msgid ""
29690 "This does not return logical volumes.  For that you will need to call "
29691 "C<guestfs_lvs>."
29692 msgstr ""
29693
29694 #. type: =head2
29695 #: ../src/guestfs-actions.pod:4347
29696 msgid "guestfs_ll"
29697 msgstr ""
29698
29699 #. type: verbatim
29700 #: ../src/guestfs-actions.pod:4349
29701 #, no-wrap
29702 msgid ""
29703 " char *\n"
29704 " guestfs_ll (guestfs_h *g,\n"
29705 "             const char *directory);\n"
29706 "\n"
29707 msgstr ""
29708
29709 #. type: =head2
29710 #: ../src/guestfs-actions.pod:4364
29711 msgid "guestfs_ln"
29712 msgstr ""
29713
29714 #. type: verbatim
29715 #: ../src/guestfs-actions.pod:4366
29716 #, no-wrap
29717 msgid ""
29718 " int\n"
29719 " guestfs_ln (guestfs_h *g,\n"
29720 "             const char *target,\n"
29721 "             const char *linkname);\n"
29722 "\n"
29723 msgstr ""
29724
29725 #. type: =head2
29726 #: ../src/guestfs-actions.pod:4377
29727 msgid "guestfs_ln_f"
29728 msgstr ""
29729
29730 #. type: verbatim
29731 #: ../src/guestfs-actions.pod:4379
29732 #, no-wrap
29733 msgid ""
29734 " int\n"
29735 " guestfs_ln_f (guestfs_h *g,\n"
29736 "               const char *target,\n"
29737 "               const char *linkname);\n"
29738 "\n"
29739 msgstr ""
29740
29741 #. type: =head2
29742 #: ../src/guestfs-actions.pod:4391
29743 msgid "guestfs_ln_s"
29744 msgstr ""
29745
29746 #. type: verbatim
29747 #: ../src/guestfs-actions.pod:4393
29748 #, no-wrap
29749 msgid ""
29750 " int\n"
29751 " guestfs_ln_s (guestfs_h *g,\n"
29752 "               const char *target,\n"
29753 "               const char *linkname);\n"
29754 "\n"
29755 msgstr ""
29756
29757 #. type: =head2
29758 #: ../src/guestfs-actions.pod:4404
29759 msgid "guestfs_ln_sf"
29760 msgstr ""
29761
29762 #. type: verbatim
29763 #: ../src/guestfs-actions.pod:4406
29764 #, no-wrap
29765 msgid ""
29766 " int\n"
29767 " guestfs_ln_sf (guestfs_h *g,\n"
29768 "                const char *target,\n"
29769 "                const char *linkname);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: =head2
29774 #: ../src/guestfs-actions.pod:4418
29775 msgid "guestfs_lremovexattr"
29776 msgstr ""
29777
29778 #. type: verbatim
29779 #: ../src/guestfs-actions.pod:4420
29780 #, no-wrap
29781 msgid ""
29782 " int\n"
29783 " guestfs_lremovexattr (guestfs_h *g,\n"
29784 "                       const char *xattr,\n"
29785 "                       const char *path);\n"
29786 "\n"
29787 msgstr ""
29788
29789 #. type: textblock
29790 #: ../src/guestfs-actions.pod:4425
29791 msgid ""
29792 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29793 "link, then it removes an extended attribute of the link itself."
29794 msgstr ""
29795
29796 #. type: =head2
29797 #: ../src/guestfs-actions.pod:4433
29798 msgid "guestfs_ls"
29799 msgstr ""
29800
29801 #. type: verbatim
29802 #: ../src/guestfs-actions.pod:4435
29803 #, no-wrap
29804 msgid ""
29805 " char **\n"
29806 " guestfs_ls (guestfs_h *g,\n"
29807 "             const char *directory);\n"
29808 "\n"
29809 msgstr ""
29810
29811 #. type: textblock
29812 #: ../src/guestfs-actions.pod:4443
29813 msgid ""
29814 "This command is mostly useful for interactive sessions.  Programs should "
29815 "probably use C<guestfs_readdir> instead."
29816 msgstr ""
29817
29818 #. type: =head2
29819 #: ../src/guestfs-actions.pod:4452
29820 msgid "guestfs_lsetxattr"
29821 msgstr ""
29822
29823 #. type: verbatim
29824 #: ../src/guestfs-actions.pod:4454
29825 #, no-wrap
29826 msgid ""
29827 " int\n"
29828 " guestfs_lsetxattr (guestfs_h *g,\n"
29829 "                    const char *xattr,\n"
29830 "                    const char *val,\n"
29831 "                    int vallen,\n"
29832 "                    const char *path);\n"
29833 "\n"
29834 msgstr ""
29835
29836 #. type: textblock
29837 #: ../src/guestfs-actions.pod:4461
29838 msgid ""
29839 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29840 "then it sets an extended attribute of the link itself."
29841 msgstr ""
29842
29843 #. type: =head2
29844 #: ../src/guestfs-actions.pod:4469
29845 msgid "guestfs_lstat"
29846 msgstr ""
29847
29848 #. type: verbatim
29849 #: ../src/guestfs-actions.pod:4471
29850 #, no-wrap
29851 msgid ""
29852 " struct guestfs_stat *\n"
29853 " guestfs_lstat (guestfs_h *g,\n"
29854 "                const char *path);\n"
29855 "\n"
29856 msgstr ""
29857
29858 #. type: textblock
29859 #: ../src/guestfs-actions.pod:4477
29860 msgid ""
29861 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29862 "link, then the link is stat-ed, not the file it refers to."
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
29867 msgid ""
29868 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29869 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29870 msgstr ""
29871
29872 #. type: textblock
29873 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
29874 msgid "(Added in 0.9.2)"
29875 msgstr ""
29876
29877 #. type: =head2
29878 #: ../src/guestfs-actions.pod:4489
29879 msgid "guestfs_lstatlist"
29880 msgstr ""
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-actions.pod:4491
29884 #, no-wrap
29885 msgid ""
29886 " struct guestfs_stat_list *\n"
29887 " guestfs_lstatlist (guestfs_h *g,\n"
29888 "                    const char *path,\n"
29889 "                    char *const *names);\n"
29890 "\n"
29891 msgstr ""
29892
29893 #. type: textblock
29894 #: ../src/guestfs-actions.pod:4496
29895 msgid ""
29896 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29897 "files, where all files are in the directory C<path>.  C<names> is the list "
29898 "of files from this directory."
29899 msgstr ""
29900
29901 #. type: textblock
29902 #: ../src/guestfs-actions.pod:4505
29903 msgid ""
29904 "This call is intended for programs that want to efficiently list a directory "
29905 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29906 "for a similarly efficient call for getting extended attributes.  Very long "
29907 "directory listings might cause the protocol message size to be exceeded, "
29908 "causing this call to fail.  The caller must split up such requests into "
29909 "smaller groups of names."
29910 msgstr ""
29911
29912 #. type: textblock
29913 #: ../src/guestfs-actions.pod:4513
29914 msgid ""
29915 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29916 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29917 msgstr ""
29918
29919 #. type: =head2
29920 #: ../src/guestfs-actions.pod:4519
29921 msgid "guestfs_luks_add_key"
29922 msgstr ""
29923
29924 #. type: verbatim
29925 #: ../src/guestfs-actions.pod:4521
29926 #, no-wrap
29927 msgid ""
29928 " int\n"
29929 " guestfs_luks_add_key (guestfs_h *g,\n"
29930 "                       const char *device,\n"
29931 "                       const char *key,\n"
29932 "                       const char *newkey,\n"
29933 "                       int keyslot);\n"
29934 "\n"
29935 msgstr ""
29936
29937 #. type: textblock
29938 #: ../src/guestfs-actions.pod:4533
29939 msgid ""
29940 "Note that if C<keyslot> already contains a key, then this command will "
29941 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29942 msgstr ""
29943
29944 #. type: textblock
29945 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
29946 msgid ""
29947 "This function takes a key or passphrase parameter which could contain "
29948 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29949 "information."
29950 msgstr ""
29951
29952 #. type: textblock
29953 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
29954 msgid "(Added in 1.5.2)"
29955 msgstr ""
29956
29957 #. type: =head2
29958 #: ../src/guestfs-actions.pod:4545
29959 msgid "guestfs_luks_close"
29960 msgstr ""
29961
29962 #. type: verbatim
29963 #: ../src/guestfs-actions.pod:4547
29964 #, no-wrap
29965 msgid ""
29966 " int\n"
29967 " guestfs_luks_close (guestfs_h *g,\n"
29968 "                     const char *device);\n"
29969 "\n"
29970 msgstr ""
29971
29972 #. type: textblock
29973 #: ../src/guestfs-actions.pod:4551
29974 msgid ""
29975 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29976 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29977 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29978 "underlying block device."
29979 msgstr ""
29980
29981 #. type: textblock
29982 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4769
29983 msgid "(Added in 1.5.1)"
29984 msgstr ""
29985
29986 #. type: =head2
29987 #: ../src/guestfs-actions.pod:4561
29988 msgid "guestfs_luks_format"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../src/guestfs-actions.pod:4563
29993 #, no-wrap
29994 msgid ""
29995 " int\n"
29996 " guestfs_luks_format (guestfs_h *g,\n"
29997 "                      const char *device,\n"
29998 "                      const char *key,\n"
29999 "                      int keyslot);\n"
30000 "\n"
30001 msgstr ""
30002
30003 #. type: =head2
30004 #: ../src/guestfs-actions.pod:4582
30005 msgid "guestfs_luks_format_cipher"
30006 msgstr ""
30007
30008 #. type: verbatim
30009 #: ../src/guestfs-actions.pod:4584
30010 #, no-wrap
30011 msgid ""
30012 " int\n"
30013 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30014 "                             const char *device,\n"
30015 "                             const char *key,\n"
30016 "                             int keyslot,\n"
30017 "                             const char *cipher);\n"
30018 "\n"
30019 msgstr ""
30020
30021 #. type: textblock
30022 #: ../src/guestfs-actions.pod:4591
30023 msgid ""
30024 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30025 "set the C<cipher> used."
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:4602
30030 msgid "guestfs_luks_kill_slot"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:4604
30035 #, no-wrap
30036 msgid ""
30037 " int\n"
30038 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30039 "                         const char *device,\n"
30040 "                         const char *key,\n"
30041 "                         int keyslot);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: =head2
30046 #: ../src/guestfs-actions.pod:4622
30047 msgid "guestfs_luks_open"
30048 msgstr ""
30049
30050 #. type: verbatim
30051 #: ../src/guestfs-actions.pod:4624
30052 #, no-wrap
30053 msgid ""
30054 " int\n"
30055 " guestfs_luks_open (guestfs_h *g,\n"
30056 "                    const char *device,\n"
30057 "                    const char *key,\n"
30058 "                    const char *mapname);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs-actions.pod:4642
30064 msgid ""
30065 "If this block device contains LVM volume groups, then calling "
30066 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30067 "visible."
30068 msgstr ""
30069
30070 #. type: textblock
30071 #: ../src/guestfs-actions.pod:4646
30072 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30073 msgstr ""
30074
30075 #. type: =head2
30076 #: ../src/guestfs-actions.pod:4657
30077 msgid "guestfs_luks_open_ro"
30078 msgstr ""
30079
30080 #. type: verbatim
30081 #: ../src/guestfs-actions.pod:4659
30082 #, no-wrap
30083 msgid ""
30084 " int\n"
30085 " guestfs_luks_open_ro (guestfs_h *g,\n"
30086 "                       const char *device,\n"
30087 "                       const char *key,\n"
30088 "                       const char *mapname);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: textblock
30093 #: ../src/guestfs-actions.pod:4665
30094 msgid ""
30095 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30096 "created."
30097 msgstr ""
30098
30099 #. type: =head2
30100 #: ../src/guestfs-actions.pod:4676
30101 msgid "guestfs_lvcreate"
30102 msgstr ""
30103
30104 #. type: verbatim
30105 #: ../src/guestfs-actions.pod:4678
30106 #, no-wrap
30107 msgid ""
30108 " int\n"
30109 " guestfs_lvcreate (guestfs_h *g,\n"
30110 "                   const char *logvol,\n"
30111 "                   const char *volgroup,\n"
30112 "                   int mbytes);\n"
30113 "\n"
30114 msgstr ""
30115
30116 #. type: =head2
30117 #: ../src/guestfs-actions.pod:4691
30118 msgid "guestfs_lvm_canonical_lv_name"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../src/guestfs-actions.pod:4693
30123 #, no-wrap
30124 msgid ""
30125 " char *\n"
30126 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30127 "                                const char *lvname);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: textblock
30132 #: ../src/guestfs-actions.pod:4704
30133 msgid "See also C<guestfs_is_lv>."
30134 msgstr ""
30135
30136 #. type: textblock
30137 #: ../src/guestfs-actions.pod:4709
30138 msgid "(Added in 1.5.24)"
30139 msgstr ""
30140
30141 #. type: =head2
30142 #: ../src/guestfs-actions.pod:4711
30143 msgid "guestfs_lvm_clear_filter"
30144 msgstr ""
30145
30146 #. type: verbatim
30147 #: ../src/guestfs-actions.pod:4713
30148 #, no-wrap
30149 msgid ""
30150 " int\n"
30151 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30152 "\n"
30153 msgstr ""
30154
30155 #. type: textblock
30156 #: ../src/guestfs-actions.pod:4716
30157 msgid ""
30158 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30159 "see every block device."
30160 msgstr ""
30161
30162 #. type: =head2
30163 #: ../src/guestfs-actions.pod:4726
30164 msgid "guestfs_lvm_remove_all"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../src/guestfs-actions.pod:4728
30169 #, no-wrap
30170 msgid ""
30171 " int\n"
30172 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30173 "\n"
30174 msgstr ""
30175
30176 #. type: =head2
30177 #: ../src/guestfs-actions.pod:4738
30178 msgid "guestfs_lvm_set_filter"
30179 msgstr ""
30180
30181 #. type: verbatim
30182 #: ../src/guestfs-actions.pod:4740
30183 #, no-wrap
30184 msgid ""
30185 " int\n"
30186 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30187 "                         char *const *devices);\n"
30188 "\n"
30189 msgstr ""
30190
30191 #. type: =head2
30192 #: ../src/guestfs-actions.pod:4771
30193 msgid "guestfs_lvremove"
30194 msgstr ""
30195
30196 #. type: verbatim
30197 #: ../src/guestfs-actions.pod:4773
30198 #, no-wrap
30199 msgid ""
30200 " int\n"
30201 " guestfs_lvremove (guestfs_h *g,\n"
30202 "                   const char *device);\n"
30203 "\n"
30204 msgstr ""
30205
30206 #. type: textblock
30207 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:8304
30208 msgid "(Added in 1.0.13)"
30209 msgstr ""
30210
30211 #. type: =head2
30212 #: ../src/guestfs-actions.pod:4787
30213 msgid "guestfs_lvrename"
30214 msgstr ""
30215
30216 #. type: verbatim
30217 #: ../src/guestfs-actions.pod:4789
30218 #, no-wrap
30219 msgid ""
30220 " int\n"
30221 " guestfs_lvrename (guestfs_h *g,\n"
30222 "                   const char *logvol,\n"
30223 "                   const char *newlogvol);\n"
30224 "\n"
30225 msgstr ""
30226
30227 #. type: textblock
30228 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
30229 msgid "(Added in 1.0.83)"
30230 msgstr ""
30231
30232 #. type: =head2
30233 #: ../src/guestfs-actions.pod:4800
30234 msgid "guestfs_lvresize"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-actions.pod:4802
30239 #, no-wrap
30240 msgid ""
30241 " int\n"
30242 " guestfs_lvresize (guestfs_h *g,\n"
30243 "                   const char *device,\n"
30244 "                   int mbytes);\n"
30245 "\n"
30246 msgstr ""
30247
30248 #. type: =head2
30249 #: ../src/guestfs-actions.pod:4815
30250 msgid "guestfs_lvresize_free"
30251 msgstr ""
30252
30253 #. type: verbatim
30254 #: ../src/guestfs-actions.pod:4817
30255 #, no-wrap
30256 msgid ""
30257 " int\n"
30258 " guestfs_lvresize_free (guestfs_h *g,\n"
30259 "                        const char *lv,\n"
30260 "                        int percent);\n"
30261 "\n"
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../src/guestfs-actions.pod:4830
30266 msgid "(Added in 1.3.3)"
30267 msgstr ""
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:4832
30271 msgid "guestfs_lvs"
30272 msgstr ""
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:4834
30276 #, no-wrap
30277 msgid ""
30278 " char **\n"
30279 " guestfs_lvs (guestfs_h *g);\n"
30280 "\n"
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-actions.pod:4843
30285 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30286 msgstr ""
30287
30288 #. type: =head2
30289 #: ../src/guestfs-actions.pod:4851
30290 msgid "guestfs_lvs_full"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs-actions.pod:4853
30295 #, no-wrap
30296 msgid ""
30297 " struct guestfs_lvm_lv_list *\n"
30298 " guestfs_lvs_full (guestfs_h *g);\n"
30299 "\n"
30300 msgstr ""
30301
30302 #. type: textblock
30303 #: ../src/guestfs-actions.pod:4859
30304 msgid ""
30305 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30306 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
30307 "use>."
30308 msgstr ""
30309
30310 #. type: =head2
30311 #: ../src/guestfs-actions.pod:4865
30312 msgid "guestfs_lvuuid"
30313 msgstr ""
30314
30315 #. type: verbatim
30316 #: ../src/guestfs-actions.pod:4867
30317 #, no-wrap
30318 msgid ""
30319 " char *\n"
30320 " guestfs_lvuuid (guestfs_h *g,\n"
30321 "                 const char *device);\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: =head2
30326 #: ../src/guestfs-actions.pod:4878
30327 msgid "guestfs_lxattrlist"
30328 msgstr ""
30329
30330 #. type: verbatim
30331 #: ../src/guestfs-actions.pod:4880
30332 #, no-wrap
30333 msgid ""
30334 " struct guestfs_xattr_list *\n"
30335 " guestfs_lxattrlist (guestfs_h *g,\n"
30336 "                     const char *path,\n"
30337 "                     char *const *names);\n"
30338 "\n"
30339 msgstr ""
30340
30341 #. type: textblock
30342 #: ../src/guestfs-actions.pod:4899
30343 msgid ""
30344 "This call is intended for programs that want to efficiently list a directory "
30345 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30346 "a similarly efficient call for getting standard stats.  Very long directory "
30347 "listings might cause the protocol message size to be exceeded, causing this "
30348 "call to fail.  The caller must split up such requests into smaller groups of "
30349 "names."
30350 msgstr ""
30351
30352 #. type: =head2
30353 #: ../src/guestfs-actions.pod:4913
30354 msgid "guestfs_md_create"
30355 msgstr ""
30356
30357 #. type: verbatim
30358 #: ../src/guestfs-actions.pod:4915
30359 #, no-wrap
30360 msgid ""
30361 " int\n"
30362 " guestfs_md_create (guestfs_h *g,\n"
30363 "                    const char *name,\n"
30364 "                    char *const *devices,\n"
30365 "                    ...);\n"
30366 "\n"
30367 msgstr ""
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-actions.pod:4926
30371 #, no-wrap
30372 msgid ""
30373 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30374 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
30375 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
30376 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
30377 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
30378 "\n"
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:4988
30383 msgid "guestfs_md_create_va"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:4990
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_md_create_va (guestfs_h *g,\n"
30392 "                       const char *name,\n"
30393 "                       char *const *devices,\n"
30394 "                       va_list args);\n"
30395 "\n"
30396 msgstr ""
30397
30398 #. type: textblock
30399 #: ../src/guestfs-actions.pod:4996
30400 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
30401 msgstr ""
30402
30403 #. type: =head2
30404 #: ../src/guestfs-actions.pod:5000
30405 msgid "guestfs_md_create_argv"
30406 msgstr ""
30407
30408 #. type: verbatim
30409 #: ../src/guestfs-actions.pod:5002
30410 #, no-wrap
30411 msgid ""
30412 " int\n"
30413 " guestfs_md_create_argv (guestfs_h *g,\n"
30414 "                         const char *name,\n"
30415 "                         char *const *devices,\n"
30416 "                         const struct guestfs_md_create_argv *optargs);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../src/guestfs-actions.pod:5008
30422 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
30423 msgstr ""
30424
30425 #. type: =head2
30426 #: ../src/guestfs-actions.pod:5012
30427 msgid "guestfs_md_detail"
30428 msgstr ""
30429
30430 #. type: verbatim
30431 #: ../src/guestfs-actions.pod:5014
30432 #, no-wrap
30433 msgid ""
30434 " char **\n"
30435 " guestfs_md_detail (guestfs_h *g,\n"
30436 "                    const char *md);\n"
30437 "\n"
30438 msgstr ""
30439
30440 #. type: =head2
30441 #: ../src/guestfs-actions.pod:5051
30442 msgid "guestfs_md_stop"
30443 msgstr ""
30444
30445 #. type: verbatim
30446 #: ../src/guestfs-actions.pod:5053
30447 #, no-wrap
30448 msgid ""
30449 " int\n"
30450 " guestfs_md_stop (guestfs_h *g,\n"
30451 "                  const char *md);\n"
30452 "\n"
30453 msgstr ""
30454
30455 #. type: =head2
30456 #: ../src/guestfs-actions.pod:5062
30457 msgid "guestfs_mkdir"
30458 msgstr ""
30459
30460 #. type: verbatim
30461 #: ../src/guestfs-actions.pod:5064
30462 #, no-wrap
30463 msgid ""
30464 " int\n"
30465 " guestfs_mkdir (guestfs_h *g,\n"
30466 "                const char *path);\n"
30467 "\n"
30468 msgstr ""
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:5074
30472 msgid "guestfs_mkdir_mode"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:5076
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_mkdir_mode (guestfs_h *g,\n"
30481 "                     const char *path,\n"
30482 "                     int mode);\n"
30483 "\n"
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:5088
30488 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30489 msgstr ""
30490
30491 #. type: =head2
30492 #: ../src/guestfs-actions.pod:5094
30493 msgid "guestfs_mkdir_p"
30494 msgstr ""
30495
30496 #. type: verbatim
30497 #: ../src/guestfs-actions.pod:5096
30498 #, no-wrap
30499 msgid ""
30500 " int\n"
30501 " guestfs_mkdir_p (guestfs_h *g,\n"
30502 "                  const char *path);\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: =head2
30507 #: ../src/guestfs-actions.pod:5107
30508 msgid "guestfs_mkdtemp"
30509 msgstr ""
30510
30511 #. type: verbatim
30512 #: ../src/guestfs-actions.pod:5109
30513 #, no-wrap
30514 msgid ""
30515 " char *\n"
30516 " guestfs_mkdtemp (guestfs_h *g,\n"
30517 "                  const char *template);\n"
30518 "\n"
30519 msgstr ""
30520
30521 #. type: =head2
30522 #: ../src/guestfs-actions.pod:5137
30523 msgid "guestfs_mke2fs_J"
30524 msgstr ""
30525
30526 #. type: verbatim
30527 #: ../src/guestfs-actions.pod:5139
30528 #, no-wrap
30529 msgid ""
30530 " int\n"
30531 " guestfs_mke2fs_J (guestfs_h *g,\n"
30532 "                   const char *fstype,\n"
30533 "                   int blocksize,\n"
30534 "                   const char *device,\n"
30535 "                   const char *journal);\n"
30536 "\n"
30537 msgstr ""
30538
30539 #. type: textblock
30540 #: ../src/guestfs-actions.pod:5152
30541 msgid "See also C<guestfs_mke2journal>."
30542 msgstr ""
30543
30544 #. type: textblock
30545 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
30546 msgid "(Added in 1.0.68)"
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:5158
30551 msgid "guestfs_mke2fs_JL"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:5160
30556 #, no-wrap
30557 msgid ""
30558 " int\n"
30559 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30560 "                    const char *fstype,\n"
30561 "                    int blocksize,\n"
30562 "                    const char *device,\n"
30563 "                    const char *label);\n"
30564 "\n"
30565 msgstr ""
30566
30567 #. type: textblock
30568 #: ../src/guestfs-actions.pod:5170
30569 msgid "See also C<guestfs_mke2journal_L>."
30570 msgstr ""
30571
30572 #. type: =head2
30573 #: ../src/guestfs-actions.pod:5176
30574 msgid "guestfs_mke2fs_JU"
30575 msgstr ""
30576
30577 #. type: verbatim
30578 #: ../src/guestfs-actions.pod:5178
30579 #, no-wrap
30580 msgid ""
30581 " int\n"
30582 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30583 "                    const char *fstype,\n"
30584 "                    int blocksize,\n"
30585 "                    const char *device,\n"
30586 "                    const char *uuid);\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: textblock
30591 #: ../src/guestfs-actions.pod:5188
30592 msgid "See also C<guestfs_mke2journal_U>."
30593 msgstr ""
30594
30595 #. type: =head2
30596 #: ../src/guestfs-actions.pod:5194
30597 msgid "guestfs_mke2journal"
30598 msgstr ""
30599
30600 #. type: verbatim
30601 #: ../src/guestfs-actions.pod:5196
30602 #, no-wrap
30603 msgid ""
30604 " int\n"
30605 " guestfs_mke2journal (guestfs_h *g,\n"
30606 "                      int blocksize,\n"
30607 "                      const char *device);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: =head2
30612 #: ../src/guestfs-actions.pod:5210
30613 msgid "guestfs_mke2journal_L"
30614 msgstr ""
30615
30616 #. type: verbatim
30617 #: ../src/guestfs-actions.pod:5212
30618 #, no-wrap
30619 msgid ""
30620 " int\n"
30621 " guestfs_mke2journal_L (guestfs_h *g,\n"
30622 "                        int blocksize,\n"
30623 "                        const char *label,\n"
30624 "                        const char *device);\n"
30625 "\n"
30626 msgstr ""
30627
30628 #. type: =head2
30629 #: ../src/guestfs-actions.pod:5224
30630 msgid "guestfs_mke2journal_U"
30631 msgstr ""
30632
30633 #. type: verbatim
30634 #: ../src/guestfs-actions.pod:5226
30635 #, no-wrap
30636 msgid ""
30637 " int\n"
30638 " guestfs_mke2journal_U (guestfs_h *g,\n"
30639 "                        int blocksize,\n"
30640 "                        const char *uuid,\n"
30641 "                        const char *device);\n"
30642 "\n"
30643 msgstr ""
30644
30645 #. type: =head2
30646 #: ../src/guestfs-actions.pod:5238
30647 msgid "guestfs_mkfifo"
30648 msgstr ""
30649
30650 #. type: verbatim
30651 #: ../src/guestfs-actions.pod:5240
30652 #, no-wrap
30653 msgid ""
30654 " int\n"
30655 " guestfs_mkfifo (guestfs_h *g,\n"
30656 "                 int mode,\n"
30657 "                 const char *path);\n"
30658 "\n"
30659 msgstr ""
30660
30661 #. type: textblock
30662 #: ../src/guestfs-actions.pod:5245
30663 msgid ""
30664 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30665 "is just a convenient wrapper around C<guestfs_mknod>."
30666 msgstr ""
30667
30668 #. type: =head2
30669 #: ../src/guestfs-actions.pod:5255
30670 msgid "guestfs_mkfs"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs-actions.pod:5257
30675 #, no-wrap
30676 msgid ""
30677 " int\n"
30678 " guestfs_mkfs (guestfs_h *g,\n"
30679 "               const char *fstype,\n"
30680 "               const char *device);\n"
30681 "\n"
30682 msgstr ""
30683
30684 #. type: =head2
30685 #: ../src/guestfs-actions.pod:5270
30686 msgid "guestfs_mkfs_b"
30687 msgstr ""
30688
30689 #. type: verbatim
30690 #: ../src/guestfs-actions.pod:5272
30691 #, no-wrap
30692 msgid ""
30693 " int\n"
30694 " guestfs_mkfs_b (guestfs_h *g,\n"
30695 "                 const char *fstype,\n"
30696 "                 int blocksize,\n"
30697 "                 const char *device);\n"
30698 "\n"
30699 msgstr ""
30700
30701 #. type: textblock
30702 #: ../src/guestfs-actions.pod:5278
30703 msgid ""
30704 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30705 "call instead."
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs-actions.pod:5285
30710 msgid ""
30711 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30712 "block size of the resulting filesystem.  Supported block sizes depend on the "
30713 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30714 msgstr ""
30715
30716 #. type: =head2
30717 #: ../src/guestfs-actions.pod:5297
30718 msgid "guestfs_mkfs_opts"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-actions.pod:5299
30723 #, no-wrap
30724 msgid ""
30725 " int\n"
30726 " guestfs_mkfs_opts (guestfs_h *g,\n"
30727 "                    const char *fstype,\n"
30728 "                    const char *device,\n"
30729 "                    ...);\n"
30730 "\n"
30731 msgstr ""
30732
30733 #. type: verbatim
30734 #: ../src/guestfs-actions.pod:5310
30735 #, no-wrap
30736 msgid ""
30737 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30738 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30739 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30740 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: textblock
30745 #: ../src/guestfs-actions.pod:5358
30746 msgid "(Added in 1.7.19)"
30747 msgstr ""
30748
30749 #. type: =head2
30750 #: ../src/guestfs-actions.pod:5360
30751 msgid "guestfs_mkfs_opts_va"
30752 msgstr ""
30753
30754 #. type: verbatim
30755 #: ../src/guestfs-actions.pod:5362
30756 #, no-wrap
30757 msgid ""
30758 " int\n"
30759 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30760 "                       const char *fstype,\n"
30761 "                       const char *device,\n"
30762 "                       va_list args);\n"
30763 "\n"
30764 msgstr ""
30765
30766 #. type: textblock
30767 #: ../src/guestfs-actions.pod:5368
30768 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30769 msgstr ""
30770
30771 #. type: =head2
30772 #: ../src/guestfs-actions.pod:5372
30773 msgid "guestfs_mkfs_opts_argv"
30774 msgstr ""
30775
30776 #. type: verbatim
30777 #: ../src/guestfs-actions.pod:5374
30778 #, no-wrap
30779 msgid ""
30780 " int\n"
30781 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30782 "                         const char *fstype,\n"
30783 "                         const char *device,\n"
30784 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30785 "\n"
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs-actions.pod:5380
30790 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30791 msgstr ""
30792
30793 #. type: =head2
30794 #: ../src/guestfs-actions.pod:5384
30795 msgid "guestfs_mkmountpoint"
30796 msgstr ""
30797
30798 #. type: verbatim
30799 #: ../src/guestfs-actions.pod:5386
30800 #, no-wrap
30801 msgid ""
30802 " int\n"
30803 " guestfs_mkmountpoint (guestfs_h *g,\n"
30804 "                       const char *exemptpath);\n"
30805 "\n"
30806 msgstr ""
30807
30808 #. type: textblock
30809 #: ../src/guestfs-actions.pod:5390
30810 msgid ""
30811 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30812 "that can be used to create extra mountpoints before mounting the first "
30813 "filesystem."
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs-actions.pod:5414
30818 msgid ""
30819 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30820 "may get unexpected errors if you try to mix these calls.  It is safest to "
30821 "manually unmount filesystems and remove mountpoints after use."
30822 msgstr ""
30823
30824 #. type: textblock
30825 #: ../src/guestfs-actions.pod:5418
30826 msgid ""
30827 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30828 "first, so for this to work for manual mountpoints, you must ensure that the "
30829 "innermost mountpoints have the longest pathnames, as in the example code "
30830 "above."
30831 msgstr ""
30832
30833 #. type: textblock
30834 #: ../src/guestfs-actions.pod:5425
30835 msgid ""
30836 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30837 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30838 "can also trigger these issues."
30839 msgstr ""
30840
30841 #. type: textblock
30842 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:6764
30843 msgid "(Added in 1.0.62)"
30844 msgstr ""
30845
30846 #. type: =head2
30847 #: ../src/guestfs-actions.pod:5433
30848 msgid "guestfs_mknod"
30849 msgstr ""
30850
30851 #. type: verbatim
30852 #: ../src/guestfs-actions.pod:5435
30853 #, no-wrap
30854 msgid ""
30855 " int\n"
30856 " guestfs_mknod (guestfs_h *g,\n"
30857 "                int mode,\n"
30858 "                int devmajor,\n"
30859 "                int devminor,\n"
30860 "                const char *path);\n"
30861 "\n"
30862 msgstr ""
30863
30864 #. type: textblock
30865 #: ../src/guestfs-actions.pod:5450
30866 msgid ""
30867 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30868 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30869 "regular file).  These constants are available in the standard Linux header "
30870 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30871 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30872 "the appropriate constant for you."
30873 msgstr ""
30874
30875 #. type: =head2
30876 #: ../src/guestfs-actions.pod:5464
30877 msgid "guestfs_mknod_b"
30878 msgstr ""
30879
30880 #. type: verbatim
30881 #: ../src/guestfs-actions.pod:5466
30882 #, no-wrap
30883 msgid ""
30884 " int\n"
30885 " guestfs_mknod_b (guestfs_h *g,\n"
30886 "                  int mode,\n"
30887 "                  int devmajor,\n"
30888 "                  int devminor,\n"
30889 "                  const char *path);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: textblock
30894 #: ../src/guestfs-actions.pod:5473
30895 msgid ""
30896 "This call creates a block device node called C<path> with mode C<mode> and "
30897 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30898 "wrapper around C<guestfs_mknod>."
30899 msgstr ""
30900
30901 #. type: =head2
30902 #: ../src/guestfs-actions.pod:5483
30903 msgid "guestfs_mknod_c"
30904 msgstr ""
30905
30906 #. type: verbatim
30907 #: ../src/guestfs-actions.pod:5485
30908 #, no-wrap
30909 msgid ""
30910 " int\n"
30911 " guestfs_mknod_c (guestfs_h *g,\n"
30912 "                  int mode,\n"
30913 "                  int devmajor,\n"
30914 "                  int devminor,\n"
30915 "                  const char *path);\n"
30916 "\n"
30917 msgstr ""
30918
30919 #. type: textblock
30920 #: ../src/guestfs-actions.pod:5492
30921 msgid ""
30922 "This call creates a char device node called C<path> with mode C<mode> and "
30923 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30924 "wrapper around C<guestfs_mknod>."
30925 msgstr ""
30926
30927 #. type: =head2
30928 #: ../src/guestfs-actions.pod:5502
30929 msgid "guestfs_mkswap"
30930 msgstr ""
30931
30932 #. type: verbatim
30933 #: ../src/guestfs-actions.pod:5504
30934 #, no-wrap
30935 msgid ""
30936 " int\n"
30937 " guestfs_mkswap (guestfs_h *g,\n"
30938 "                 const char *device);\n"
30939 "\n"
30940 msgstr ""
30941
30942 #. type: =head2
30943 #: ../src/guestfs-actions.pod:5514
30944 msgid "guestfs_mkswap_L"
30945 msgstr ""
30946
30947 #. type: verbatim
30948 #: ../src/guestfs-actions.pod:5516
30949 #, no-wrap
30950 msgid ""
30951 " int\n"
30952 " guestfs_mkswap_L (guestfs_h *g,\n"
30953 "                   const char *label,\n"
30954 "                   const char *device);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:5531
30960 msgid "guestfs_mkswap_U"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:5533
30965 #, no-wrap
30966 msgid ""
30967 " int\n"
30968 " guestfs_mkswap_U (guestfs_h *g,\n"
30969 "                   const char *uuid,\n"
30970 "                   const char *device);\n"
30971 "\n"
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:5544
30976 msgid "guestfs_mkswap_file"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:5546
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_mkswap_file (guestfs_h *g,\n"
30985 "                      const char *path);\n"
30986 "\n"
30987 msgstr ""
30988
30989 #. type: textblock
30990 #: ../src/guestfs-actions.pod:5552
30991 msgid ""
30992 "This command just writes a swap file signature to an existing file.  To "
30993 "create the file itself, use something like C<guestfs_fallocate>."
30994 msgstr ""
30995
30996 #. type: =head2
30997 #: ../src/guestfs-actions.pod:5559
30998 msgid "guestfs_modprobe"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs-actions.pod:5561
31003 #, no-wrap
31004 msgid ""
31005 " int\n"
31006 " guestfs_modprobe (guestfs_h *g,\n"
31007 "                   const char *modulename);\n"
31008 "\n"
31009 msgstr ""
31010
31011 #. type: =head2
31012 #: ../src/guestfs-actions.pod:5574
31013 msgid "guestfs_mount"
31014 msgstr ""
31015
31016 #. type: verbatim
31017 #: ../src/guestfs-actions.pod:5576
31018 #, no-wrap
31019 msgid ""
31020 " int\n"
31021 " guestfs_mount (guestfs_h *g,\n"
31022 "                const char *device,\n"
31023 "                const char *mountpoint);\n"
31024 "\n"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs-actions.pod:5595
31029 msgid ""
31030 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31031 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31032 "problems for users.  If your program might need to work with older versions "
31033 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31034 "for the first parameter if you don't want any options)."
31035 msgstr ""
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:5606
31039 msgid "guestfs_mount_9p"
31040 msgstr ""
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:5608
31044 #, no-wrap
31045 msgid ""
31046 " int\n"
31047 " guestfs_mount_9p (guestfs_h *g,\n"
31048 "                   const char *mounttag,\n"
31049 "                   const char *mountpoint,\n"
31050 "                   ...);\n"
31051 "\n"
31052 msgstr ""
31053
31054 #. type: verbatim
31055 #: ../src/guestfs-actions.pod:5619
31056 #, no-wrap
31057 msgid ""
31058 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31059 "\n"
31060 msgstr ""
31061
31062 #. type: =head2
31063 #: ../src/guestfs-actions.pod:5632
31064 msgid "guestfs_mount_9p_va"
31065 msgstr ""
31066
31067 #. type: verbatim
31068 #: ../src/guestfs-actions.pod:5634
31069 #, no-wrap
31070 msgid ""
31071 " int\n"
31072 " guestfs_mount_9p_va (guestfs_h *g,\n"
31073 "                      const char *mounttag,\n"
31074 "                      const char *mountpoint,\n"
31075 "                      va_list args);\n"
31076 "\n"
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs-actions.pod:5640
31081 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31082 msgstr ""
31083
31084 #. type: =head2
31085 #: ../src/guestfs-actions.pod:5644
31086 msgid "guestfs_mount_9p_argv"
31087 msgstr ""
31088
31089 #. type: verbatim
31090 #: ../src/guestfs-actions.pod:5646
31091 #, no-wrap
31092 msgid ""
31093 " int\n"
31094 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31095 "                        const char *mounttag,\n"
31096 "                        const char *mountpoint,\n"
31097 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31098 "\n"
31099 msgstr ""
31100
31101 #. type: textblock
31102 #: ../src/guestfs-actions.pod:5652
31103 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31104 msgstr ""
31105
31106 #. type: =head2
31107 #: ../src/guestfs-actions.pod:5656
31108 msgid "guestfs_mount_loop"
31109 msgstr ""
31110
31111 #. type: verbatim
31112 #: ../src/guestfs-actions.pod:5658
31113 #, no-wrap
31114 msgid ""
31115 " int\n"
31116 " guestfs_mount_loop (guestfs_h *g,\n"
31117 "                     const char *file,\n"
31118 "                     const char *mountpoint);\n"
31119 "\n"
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:5671
31124 msgid "guestfs_mount_options"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:5673
31129 #, no-wrap
31130 msgid ""
31131 " int\n"
31132 " guestfs_mount_options (guestfs_h *g,\n"
31133 "                        const char *options,\n"
31134 "                        const char *device,\n"
31135 "                        const char *mountpoint);\n"
31136 "\n"
31137 msgstr ""
31138
31139 #. type: textblock
31140 #: ../src/guestfs-actions.pod:5679
31141 msgid ""
31142 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31143 "the mount options as for the L<mount(8)> I<-o> flag."
31144 msgstr ""
31145
31146 #. type: textblock
31147 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703 ../src/guestfs-actions.pod:5720
31148 msgid "(Added in 1.0.10)"
31149 msgstr ""
31150
31151 #. type: =head2
31152 #: ../src/guestfs-actions.pod:5691
31153 msgid "guestfs_mount_ro"
31154 msgstr ""
31155
31156 #. type: verbatim
31157 #: ../src/guestfs-actions.pod:5693
31158 #, no-wrap
31159 msgid ""
31160 " int\n"
31161 " guestfs_mount_ro (guestfs_h *g,\n"
31162 "                   const char *device,\n"
31163 "                   const char *mountpoint);\n"
31164 "\n"
31165 msgstr ""
31166
31167 #. type: textblock
31168 #: ../src/guestfs-actions.pod:5698
31169 msgid ""
31170 "This is the same as the C<guestfs_mount> command, but it mounts the "
31171 "filesystem with the read-only (I<-o ro>) flag."
31172 msgstr ""
31173
31174 #. type: =head2
31175 #: ../src/guestfs-actions.pod:5705
31176 msgid "guestfs_mount_vfs"
31177 msgstr ""
31178
31179 #. type: verbatim
31180 #: ../src/guestfs-actions.pod:5707
31181 #, no-wrap
31182 msgid ""
31183 " int\n"
31184 " guestfs_mount_vfs (guestfs_h *g,\n"
31185 "                    const char *options,\n"
31186 "                    const char *vfstype,\n"
31187 "                    const char *device,\n"
31188 "                    const char *mountpoint);\n"
31189 "\n"
31190 msgstr ""
31191
31192 #. type: textblock
31193 #: ../src/guestfs-actions.pod:5714
31194 msgid ""
31195 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31196 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
31197 "I<-t> flags."
31198 msgstr ""
31199
31200 #. type: =head2
31201 #: ../src/guestfs-actions.pod:5722
31202 msgid "guestfs_mountpoints"
31203 msgstr ""
31204
31205 #. type: verbatim
31206 #: ../src/guestfs-actions.pod:5724
31207 #, no-wrap
31208 msgid ""
31209 " char **\n"
31210 " guestfs_mountpoints (guestfs_h *g);\n"
31211 "\n"
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs-actions.pod:5727
31216 msgid ""
31217 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31218 "devices.  This one returns a hash table (map) of device name to directory "
31219 "where the device is mounted."
31220 msgstr ""
31221
31222 #. type: =head2
31223 #: ../src/guestfs-actions.pod:5739
31224 msgid "guestfs_mounts"
31225 msgstr ""
31226
31227 #. type: verbatim
31228 #: ../src/guestfs-actions.pod:5741
31229 #, no-wrap
31230 msgid ""
31231 " char **\n"
31232 " guestfs_mounts (guestfs_h *g);\n"
31233 "\n"
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../src/guestfs-actions.pod:5749
31238 msgid "See also: C<guestfs_mountpoints>"
31239 msgstr ""
31240
31241 #. type: =head2
31242 #: ../src/guestfs-actions.pod:5757
31243 msgid "guestfs_mv"
31244 msgstr ""
31245
31246 #. type: verbatim
31247 #: ../src/guestfs-actions.pod:5759
31248 #, no-wrap
31249 msgid ""
31250 " int\n"
31251 " guestfs_mv (guestfs_h *g,\n"
31252 "             const char *src,\n"
31253 "             const char *dest);\n"
31254 "\n"
31255 msgstr ""
31256
31257 #. type: =head2
31258 #: ../src/guestfs-actions.pod:5771
31259 msgid "guestfs_ntfs_3g_probe"
31260 msgstr ""
31261
31262 #. type: verbatim
31263 #: ../src/guestfs-actions.pod:5773
31264 #, no-wrap
31265 msgid ""
31266 " int\n"
31267 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31268 "                        int rw,\n"
31269 "                        const char *device);\n"
31270 "\n"
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs-actions.pod:5792
31275 msgid "(Added in 1.0.43)"
31276 msgstr ""
31277
31278 #. type: =head2
31279 #: ../src/guestfs-actions.pod:5794
31280 msgid "guestfs_ntfsresize"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs-actions.pod:5796
31285 #, no-wrap
31286 msgid ""
31287 " int\n"
31288 " guestfs_ntfsresize (guestfs_h *g,\n"
31289 "                     const char *device);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
31295 msgid ""
31296 "I<This function is deprecated.> In new code, use the "
31297 "L</guestfs_ntfsresize_opts> call instead."
31298 msgstr ""
31299
31300 #. type: =head2
31301 #: ../src/guestfs-actions.pod:5824
31302 msgid "guestfs_ntfsresize_opts"
31303 msgstr ""
31304
31305 #. type: verbatim
31306 #: ../src/guestfs-actions.pod:5826
31307 #, no-wrap
31308 msgid ""
31309 " int\n"
31310 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31311 "                          const char *device,\n"
31312 "                          ...);\n"
31313 "\n"
31314 msgstr ""
31315
31316 #. type: verbatim
31317 #: ../src/guestfs-actions.pod:5836
31318 #, no-wrap
31319 msgid ""
31320 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31321 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31322 "\n"
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs-actions.pod:5856
31327 msgid ""
31328 "After the resize operation, the filesystem is always marked as requiring a "
31329 "consistency check (for safety).  You have to boot into Windows to perform "
31330 "this check and clear this condition.  If you I<don't> set the C<force> "
31331 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31332 "times on a single filesystem without booting into Windows between each "
31333 "resize."
31334 msgstr ""
31335
31336 #. type: =head2
31337 #: ../src/guestfs-actions.pod:5871
31338 msgid "guestfs_ntfsresize_opts_va"
31339 msgstr ""
31340
31341 #. type: verbatim
31342 #: ../src/guestfs-actions.pod:5873
31343 #, no-wrap
31344 msgid ""
31345 " int\n"
31346 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31347 "                             const char *device,\n"
31348 "                             va_list args);\n"
31349 "\n"
31350 msgstr ""
31351
31352 #. type: textblock
31353 #: ../src/guestfs-actions.pod:5878
31354 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31355 msgstr ""
31356
31357 #. type: =head2
31358 #: ../src/guestfs-actions.pod:5882
31359 msgid "guestfs_ntfsresize_opts_argv"
31360 msgstr ""
31361
31362 #. type: verbatim
31363 #: ../src/guestfs-actions.pod:5884
31364 #, no-wrap
31365 msgid ""
31366 " int\n"
31367 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31368 "                               const char *device,\n"
31369 "                               const struct guestfs_ntfsresize_opts_argv "
31370 "*optargs);\n"
31371 "\n"
31372 msgstr ""
31373
31374 #. type: textblock
31375 #: ../src/guestfs-actions.pod:5889
31376 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31377 msgstr ""
31378
31379 #. type: =head2
31380 #: ../src/guestfs-actions.pod:5893
31381 msgid "guestfs_ntfsresize_size"
31382 msgstr ""
31383
31384 #. type: verbatim
31385 #: ../src/guestfs-actions.pod:5895
31386 #, no-wrap
31387 msgid ""
31388 " int\n"
31389 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31390 "                          const char *device,\n"
31391 "                          int64_t size);\n"
31392 "\n"
31393 msgstr ""
31394
31395 #. type: textblock
31396 #: ../src/guestfs-actions.pod:5907
31397 msgid ""
31398 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31399 "to specify the new size (in bytes) explicitly."
31400 msgstr ""
31401
31402 #. type: textblock
31403 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:8461
31404 msgid "(Added in 1.3.14)"
31405 msgstr ""
31406
31407 #. type: =head2
31408 #: ../src/guestfs-actions.pod:5914
31409 msgid "guestfs_part_add"
31410 msgstr ""
31411
31412 #. type: verbatim
31413 #: ../src/guestfs-actions.pod:5916
31414 #, no-wrap
31415 msgid ""
31416 " int\n"
31417 " guestfs_part_add (guestfs_h *g,\n"
31418 "                   const char *device,\n"
31419 "                   const char *prlogex,\n"
31420 "                   int64_t startsect,\n"
31421 "                   int64_t endsect);\n"
31422 "\n"
31423 msgstr ""
31424
31425 #. type: textblock
31426 #: ../src/guestfs-actions.pod:5923
31427 msgid ""
31428 "This command adds a partition to C<device>.  If there is no partition table "
31429 "on the device, call C<guestfs_part_init> first."
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs-actions.pod:5935
31434 msgid ""
31435 "Creating a partition which covers the whole disk is not so easy.  Use "
31436 "C<guestfs_part_disk> to do that."
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6209
31441 msgid "(Added in 1.0.78)"
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:5942
31446 msgid "guestfs_part_del"
31447 msgstr ""
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:5944
31451 #, no-wrap
31452 msgid ""
31453 " int\n"
31454 " guestfs_part_del (guestfs_h *g,\n"
31455 "                   const char *device,\n"
31456 "                   int partnum);\n"
31457 "\n"
31458 msgstr ""
31459
31460 #. type: =head2
31461 #: ../src/guestfs-actions.pod:5959
31462 msgid "guestfs_part_disk"
31463 msgstr ""
31464
31465 #. type: verbatim
31466 #: ../src/guestfs-actions.pod:5961
31467 #, no-wrap
31468 msgid ""
31469 " int\n"
31470 " guestfs_part_disk (guestfs_h *g,\n"
31471 "                    const char *device,\n"
31472 "                    const char *parttype);\n"
31473 "\n"
31474 msgstr ""
31475
31476 #. type: textblock
31477 #: ../src/guestfs-actions.pod:5966
31478 msgid ""
31479 "This command is simply a combination of C<guestfs_part_init> followed by "
31480 "C<guestfs_part_add> to create a single primary partition covering the whole "
31481 "disk."
31482 msgstr ""
31483
31484 #. type: textblock
31485 #: ../src/guestfs-actions.pod:5970
31486 msgid ""
31487 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31488 "possible values are described in C<guestfs_part_init>."
31489 msgstr ""
31490
31491 #. type: =head2
31492 #: ../src/guestfs-actions.pod:5977
31493 msgid "guestfs_part_get_bootable"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs-actions.pod:5979
31498 #, no-wrap
31499 msgid ""
31500 " int\n"
31501 " guestfs_part_get_bootable (guestfs_h *g,\n"
31502 "                            const char *device,\n"
31503 "                            int partnum);\n"
31504 "\n"
31505 msgstr ""
31506
31507 #. type: textblock
31508 #: ../src/guestfs-actions.pod:5987
31509 msgid "See also C<guestfs_part_set_bootable>."
31510 msgstr ""
31511
31512 #. type: =head2
31513 #: ../src/guestfs-actions.pod:5993
31514 msgid "guestfs_part_get_mbr_id"
31515 msgstr ""
31516
31517 #. type: verbatim
31518 #: ../src/guestfs-actions.pod:5995
31519 #, no-wrap
31520 msgid ""
31521 " int\n"
31522 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31523 "                          const char *device,\n"
31524 "                          int partnum);\n"
31525 "\n"
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
31530 msgid ""
31531 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31532 "undefined results for other partition table types (see "
31533 "C<guestfs_part_get_parttype>)."
31534 msgstr ""
31535
31536 #. type: =head2
31537 #: ../src/guestfs-actions.pod:6011
31538 msgid "guestfs_part_get_parttype"
31539 msgstr ""
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-actions.pod:6013
31543 #, no-wrap
31544 msgid ""
31545 " char *\n"
31546 " guestfs_part_get_parttype (guestfs_h *g,\n"
31547 "                            const char *device);\n"
31548 "\n"
31549 msgstr ""
31550
31551 #. type: textblock
31552 #: ../src/guestfs-actions.pod:6020
31553 msgid ""
31554 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31555 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31556 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31557 msgstr ""
31558
31559 #. type: =head2
31560 #: ../src/guestfs-actions.pod:6030
31561 msgid "guestfs_part_init"
31562 msgstr ""
31563
31564 #. type: verbatim
31565 #: ../src/guestfs-actions.pod:6032
31566 #, no-wrap
31567 msgid ""
31568 " int\n"
31569 " guestfs_part_init (guestfs_h *g,\n"
31570 "                    const char *device,\n"
31571 "                    const char *parttype);\n"
31572 "\n"
31573 msgstr ""
31574
31575 #. type: textblock
31576 #: ../src/guestfs-actions.pod:6041
31577 msgid ""
31578 "Initially there are no partitions.  Following this, you should call "
31579 "C<guestfs_part_add> for each partition required."
31580 msgstr ""
31581
31582 #. type: =head2
31583 #: ../src/guestfs-actions.pod:6114
31584 msgid "guestfs_part_list"
31585 msgstr ""
31586
31587 #. type: verbatim
31588 #: ../src/guestfs-actions.pod:6116
31589 #, no-wrap
31590 msgid ""
31591 " struct guestfs_partition_list *\n"
31592 " guestfs_part_list (guestfs_h *g,\n"
31593 "                    const char *device);\n"
31594 "\n"
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs-actions.pod:6133
31599 msgid ""
31600 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31601 "the device's sector size, see C<guestfs_blockdev_getss>."
31602 msgstr ""
31603
31604 #. type: textblock
31605 #: ../src/guestfs-actions.pod:6146
31606 msgid ""
31607 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31608 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31609 "use>."
31610 msgstr ""
31611
31612 #. type: =head2
31613 #: ../src/guestfs-actions.pod:6152
31614 msgid "guestfs_part_set_bootable"
31615 msgstr ""
31616
31617 #. type: verbatim
31618 #: ../src/guestfs-actions.pod:6154
31619 #, no-wrap
31620 msgid ""
31621 " int\n"
31622 " guestfs_part_set_bootable (guestfs_h *g,\n"
31623 "                            const char *device,\n"
31624 "                            int partnum,\n"
31625 "                            int bootable);\n"
31626 "\n"
31627 msgstr ""
31628
31629 #. type: =head2
31630 #: ../src/guestfs-actions.pod:6171
31631 msgid "guestfs_part_set_mbr_id"
31632 msgstr ""
31633
31634 #. type: verbatim
31635 #: ../src/guestfs-actions.pod:6173
31636 #, no-wrap
31637 msgid ""
31638 " int\n"
31639 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31640 "                          const char *device,\n"
31641 "                          int partnum,\n"
31642 "                          int idbyte);\n"
31643 "\n"
31644 msgstr ""
31645
31646 #. type: =head2
31647 #: ../src/guestfs-actions.pod:6193
31648 msgid "guestfs_part_set_name"
31649 msgstr ""
31650
31651 #. type: verbatim
31652 #: ../src/guestfs-actions.pod:6195
31653 #, no-wrap
31654 msgid ""
31655 " int\n"
31656 " guestfs_part_set_name (guestfs_h *g,\n"
31657 "                        const char *device,\n"
31658 "                        int partnum,\n"
31659 "                        const char *name);\n"
31660 "\n"
31661 msgstr ""
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:6211
31665 msgid "guestfs_part_to_dev"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:6213
31670 #, no-wrap
31671 msgid ""
31672 " char *\n"
31673 " guestfs_part_to_dev (guestfs_h *g,\n"
31674 "                      const char *partition);\n"
31675 "\n"
31676 msgstr ""
31677
31678 #. type: textblock
31679 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
31680 msgid ""
31681 "The named partition must exist, for example as a string returned from "
31682 "C<guestfs_list_partitions>."
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs-actions.pod:6224
31687 msgid "See also C<guestfs_part_to_partnum>."
31688 msgstr ""
31689
31690 #. type: =head2
31691 #: ../src/guestfs-actions.pod:6231
31692 msgid "guestfs_part_to_partnum"
31693 msgstr ""
31694
31695 #. type: verbatim
31696 #: ../src/guestfs-actions.pod:6233
31697 #, no-wrap
31698 msgid ""
31699 " int\n"
31700 " guestfs_part_to_partnum (guestfs_h *g,\n"
31701 "                          const char *partition);\n"
31702 "\n"
31703 msgstr ""
31704
31705 #. type: textblock
31706 #: ../src/guestfs-actions.pod:6243
31707 msgid "See also C<guestfs_part_to_dev>."
31708 msgstr ""
31709
31710 #. type: =head2
31711 #: ../src/guestfs-actions.pod:6249
31712 msgid "guestfs_ping_daemon"
31713 msgstr ""
31714
31715 #. type: verbatim
31716 #: ../src/guestfs-actions.pod:6251
31717 #, no-wrap
31718 msgid ""
31719 " int\n"
31720 " guestfs_ping_daemon (guestfs_h *g);\n"
31721 "\n"
31722 msgstr ""
31723
31724 #. type: =head2
31725 #: ../src/guestfs-actions.pod:6263
31726 msgid "guestfs_pread"
31727 msgstr ""
31728
31729 #. type: verbatim
31730 #: ../src/guestfs-actions.pod:6265
31731 #, no-wrap
31732 msgid ""
31733 " char *\n"
31734 " guestfs_pread (guestfs_h *g,\n"
31735 "                const char *path,\n"
31736 "                int count,\n"
31737 "                int64_t offset,\n"
31738 "                size_t *size_r);\n"
31739 "\n"
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs-actions.pod:6278
31744 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31745 msgstr ""
31746
31747 #. type: =head2
31748 #: ../src/guestfs-actions.pod:6289
31749 msgid "guestfs_pread_device"
31750 msgstr ""
31751
31752 #. type: verbatim
31753 #: ../src/guestfs-actions.pod:6291
31754 #, no-wrap
31755 msgid ""
31756 " char *\n"
31757 " guestfs_pread_device (guestfs_h *g,\n"
31758 "                       const char *device,\n"
31759 "                       int count,\n"
31760 "                       int64_t offset,\n"
31761 "                       size_t *size_r);\n"
31762 "\n"
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs-actions.pod:6304
31767 msgid "See also C<guestfs_pread>."
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs-actions.pod:6313
31772 msgid "(Added in 1.5.21)"
31773 msgstr ""
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:6315
31777 msgid "guestfs_pvcreate"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:6317
31782 #, no-wrap
31783 msgid ""
31784 " int\n"
31785 " guestfs_pvcreate (guestfs_h *g,\n"
31786 "                   const char *device);\n"
31787 "\n"
31788 msgstr ""
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:6329
31792 msgid "guestfs_pvremove"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:6331
31797 #, no-wrap
31798 msgid ""
31799 " int\n"
31800 " guestfs_pvremove (guestfs_h *g,\n"
31801 "                   const char *device);\n"
31802 "\n"
31803 msgstr ""
31804
31805 #. type: =head2
31806 #: ../src/guestfs-actions.pod:6346
31807 msgid "guestfs_pvresize"
31808 msgstr ""
31809
31810 #. type: verbatim
31811 #: ../src/guestfs-actions.pod:6348
31812 #, no-wrap
31813 msgid ""
31814 " int\n"
31815 " guestfs_pvresize (guestfs_h *g,\n"
31816 "                   const char *device);\n"
31817 "\n"
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:6359
31822 msgid "guestfs_pvresize_size"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:6361
31827 #, no-wrap
31828 msgid ""
31829 " int\n"
31830 " guestfs_pvresize_size (guestfs_h *g,\n"
31831 "                        const char *device,\n"
31832 "                        int64_t size);\n"
31833 "\n"
31834 msgstr ""
31835
31836 #. type: textblock
31837 #: ../src/guestfs-actions.pod:6366
31838 msgid ""
31839 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31840 "specify the new size (in bytes) explicitly."
31841 msgstr ""
31842
31843 #. type: =head2
31844 #: ../src/guestfs-actions.pod:6373
31845 msgid "guestfs_pvs"
31846 msgstr ""
31847
31848 #. type: verbatim
31849 #: ../src/guestfs-actions.pod:6375
31850 #, no-wrap
31851 msgid ""
31852 " char **\n"
31853 " guestfs_pvs (guestfs_h *g);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs-actions.pod:6384
31859 msgid "See also C<guestfs_pvs_full>."
31860 msgstr ""
31861
31862 #. type: =head2
31863 #: ../src/guestfs-actions.pod:6392
31864 msgid "guestfs_pvs_full"
31865 msgstr ""
31866
31867 #. type: verbatim
31868 #: ../src/guestfs-actions.pod:6394
31869 #, no-wrap
31870 msgid ""
31871 " struct guestfs_lvm_pv_list *\n"
31872 " guestfs_pvs_full (guestfs_h *g);\n"
31873 "\n"
31874 msgstr ""
31875
31876 #. type: textblock
31877 #: ../src/guestfs-actions.pod:6400
31878 msgid ""
31879 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31880 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
31881 "use>."
31882 msgstr ""
31883
31884 #. type: =head2
31885 #: ../src/guestfs-actions.pod:6406
31886 msgid "guestfs_pvuuid"
31887 msgstr ""
31888
31889 #. type: verbatim
31890 #: ../src/guestfs-actions.pod:6408
31891 #, no-wrap
31892 msgid ""
31893 " char *\n"
31894 " guestfs_pvuuid (guestfs_h *g,\n"
31895 "                 const char *device);\n"
31896 "\n"
31897 msgstr ""
31898
31899 #. type: =head2
31900 #: ../src/guestfs-actions.pod:6419
31901 msgid "guestfs_pwrite"
31902 msgstr ""
31903
31904 #. type: verbatim
31905 #: ../src/guestfs-actions.pod:6421
31906 #, no-wrap
31907 msgid ""
31908 " int\n"
31909 " guestfs_pwrite (guestfs_h *g,\n"
31910 "                 const char *path,\n"
31911 "                 const char *content,\n"
31912 "                 size_t content_size,\n"
31913 "                 int64_t offset);\n"
31914 "\n"
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs-actions.pod:6437
31919 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31920 msgstr ""
31921
31922 #. type: =head2
31923 #: ../src/guestfs-actions.pod:6446
31924 msgid "guestfs_pwrite_device"
31925 msgstr ""
31926
31927 #. type: verbatim
31928 #: ../src/guestfs-actions.pod:6448
31929 #, no-wrap
31930 msgid ""
31931 " int\n"
31932 " guestfs_pwrite_device (guestfs_h *g,\n"
31933 "                        const char *device,\n"
31934 "                        const char *content,\n"
31935 "                        size_t content_size,\n"
31936 "                        int64_t offset);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:6463
31942 msgid "See also C<guestfs_pwrite>."
31943 msgstr ""
31944
31945 #. type: textblock
31946 #: ../src/guestfs-actions.pod:6470
31947 msgid "(Added in 1.5.20)"
31948 msgstr ""
31949
31950 #. type: =head2
31951 #: ../src/guestfs-actions.pod:6472
31952 msgid "guestfs_read_file"
31953 msgstr ""
31954
31955 #. type: verbatim
31956 #: ../src/guestfs-actions.pod:6474
31957 #, no-wrap
31958 msgid ""
31959 " char *\n"
31960 " guestfs_read_file (guestfs_h *g,\n"
31961 "                    const char *path,\n"
31962 "                    size_t *size_r);\n"
31963 "\n"
31964 msgstr ""
31965
31966 #. type: textblock
31967 #: ../src/guestfs-actions.pod:6482
31968 msgid ""
31969 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31970 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31971 "function is limited in the total size of file that can be handled."
31972 msgstr ""
31973
31974 #. type: textblock
31975 #: ../src/guestfs-actions.pod:6494
31976 msgid "(Added in 1.0.63)"
31977 msgstr ""
31978
31979 #. type: =head2
31980 #: ../src/guestfs-actions.pod:6496
31981 msgid "guestfs_read_lines"
31982 msgstr ""
31983
31984 #. type: verbatim
31985 #: ../src/guestfs-actions.pod:6498
31986 #, no-wrap
31987 msgid ""
31988 " char **\n"
31989 " guestfs_read_lines (guestfs_h *g,\n"
31990 "                     const char *path);\n"
31991 "\n"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs-actions.pod:6507
31996 msgid ""
31997 "Note that this function cannot correctly handle binary files (specifically, "
31998 "files containing C<\\0> character which is treated as end of line).  For "
31999 "those you need to use the C<guestfs_read_file> function which has a more "
32000 "complex interface."
32001 msgstr ""
32002
32003 #. type: =head2
32004 #: ../src/guestfs-actions.pod:6518
32005 msgid "guestfs_readdir"
32006 msgstr ""
32007
32008 #. type: verbatim
32009 #: ../src/guestfs-actions.pod:6520
32010 #, no-wrap
32011 msgid ""
32012 " struct guestfs_dirent_list *\n"
32013 " guestfs_readdir (guestfs_h *g,\n"
32014 "                  const char *dir);\n"
32015 "\n"
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs-actions.pod:6574
32020 msgid ""
32021 "This function is primarily intended for use by programs.  To get a simple "
32022 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32023 "consumption, use C<guestfs_ll>."
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs-actions.pod:6578
32028 msgid ""
32029 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32030 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
32031 "use>."
32032 msgstr ""
32033
32034 #. type: =head2
32035 #: ../src/guestfs-actions.pod:6584
32036 msgid "guestfs_readlink"
32037 msgstr ""
32038
32039 #. type: verbatim
32040 #: ../src/guestfs-actions.pod:6586
32041 #, no-wrap
32042 msgid ""
32043 " char *\n"
32044 " guestfs_readlink (guestfs_h *g,\n"
32045 "                   const char *path);\n"
32046 "\n"
32047 msgstr ""
32048
32049 #. type: =head2
32050 #: ../src/guestfs-actions.pod:6597
32051 msgid "guestfs_readlinklist"
32052 msgstr ""
32053
32054 #. type: verbatim
32055 #: ../src/guestfs-actions.pod:6599
32056 #, no-wrap
32057 msgid ""
32058 " char **\n"
32059 " guestfs_readlinklist (guestfs_h *g,\n"
32060 "                       const char *path,\n"
32061 "                       char *const *names);\n"
32062 "\n"
32063 msgstr ""
32064
32065 #. type: =head2
32066 #: ../src/guestfs-actions.pod:6632
32067 msgid "guestfs_realpath"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../src/guestfs-actions.pod:6634
32072 #, no-wrap
32073 msgid ""
32074 " char *\n"
32075 " guestfs_realpath (guestfs_h *g,\n"
32076 "                   const char *path);\n"
32077 "\n"
32078 msgstr ""
32079
32080 #. type: =head2
32081 #: ../src/guestfs-actions.pod:6646
32082 msgid "guestfs_removexattr"
32083 msgstr ""
32084
32085 #. type: verbatim
32086 #: ../src/guestfs-actions.pod:6648
32087 #, no-wrap
32088 msgid ""
32089 " int\n"
32090 " guestfs_removexattr (guestfs_h *g,\n"
32091 "                      const char *xattr,\n"
32092 "                      const char *path);\n"
32093 "\n"
32094 msgstr ""
32095
32096 #. type: textblock
32097 #: ../src/guestfs-actions.pod:6656
32098 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32099 msgstr ""
32100
32101 #. type: =head2
32102 #: ../src/guestfs-actions.pod:6662
32103 msgid "guestfs_resize2fs"
32104 msgstr ""
32105
32106 #. type: verbatim
32107 #: ../src/guestfs-actions.pod:6664
32108 #, no-wrap
32109 msgid ""
32110 " int\n"
32111 " guestfs_resize2fs (guestfs_h *g,\n"
32112 "                    const char *device);\n"
32113 "\n"
32114 msgstr ""
32115
32116 #. type: textblock
32117 #: ../src/guestfs-actions.pod:6671
32118 msgid ""
32119 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32120 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32121 "sometimes gives an error about this and sometimes not.  In any case, it is "
32122 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32123 msgstr ""
32124
32125 #. type: =head2
32126 #: ../src/guestfs-actions.pod:6681
32127 msgid "guestfs_resize2fs_M"
32128 msgstr ""
32129
32130 #. type: verbatim
32131 #: ../src/guestfs-actions.pod:6683
32132 #, no-wrap
32133 msgid ""
32134 " int\n"
32135 " guestfs_resize2fs_M (guestfs_h *g,\n"
32136 "                      const char *device);\n"
32137 "\n"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs-actions.pod:6687
32142 msgid ""
32143 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32144 "resized to its minimum size.  This works like the I<-M> option to the "
32145 "C<resize2fs> command."
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs-actions.pod:6691
32150 msgid ""
32151 "To get the resulting size of the filesystem you should call "
32152 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32153 "These two numbers, multiplied together, give the resulting size of the "
32154 "minimal filesystem in bytes."
32155 msgstr ""
32156
32157 #. type: =head2
32158 #: ../src/guestfs-actions.pod:6700
32159 msgid "guestfs_resize2fs_size"
32160 msgstr ""
32161
32162 #. type: verbatim
32163 #: ../src/guestfs-actions.pod:6702
32164 #, no-wrap
32165 msgid ""
32166 " int\n"
32167 " guestfs_resize2fs_size (guestfs_h *g,\n"
32168 "                         const char *device,\n"
32169 "                         int64_t size);\n"
32170 "\n"
32171 msgstr ""
32172
32173 #. type: textblock
32174 #: ../src/guestfs-actions.pod:6707
32175 msgid ""
32176 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32177 "to specify the new size (in bytes) explicitly."
32178 msgstr ""
32179
32180 #. type: =head2
32181 #: ../src/guestfs-actions.pod:6714
32182 msgid "guestfs_rm"
32183 msgstr ""
32184
32185 #. type: verbatim
32186 #: ../src/guestfs-actions.pod:6716
32187 #, no-wrap
32188 msgid ""
32189 " int\n"
32190 " guestfs_rm (guestfs_h *g,\n"
32191 "             const char *path);\n"
32192 "\n"
32193 msgstr ""
32194
32195 #. type: =head2
32196 #: ../src/guestfs-actions.pod:6726
32197 msgid "guestfs_rm_rf"
32198 msgstr ""
32199
32200 #. type: verbatim
32201 #: ../src/guestfs-actions.pod:6728
32202 #, no-wrap
32203 msgid ""
32204 " int\n"
32205 " guestfs_rm_rf (guestfs_h *g,\n"
32206 "                const char *path);\n"
32207 "\n"
32208 msgstr ""
32209
32210 #. type: =head2
32211 #: ../src/guestfs-actions.pod:6740
32212 msgid "guestfs_rmdir"
32213 msgstr ""
32214
32215 #. type: verbatim
32216 #: ../src/guestfs-actions.pod:6742
32217 #, no-wrap
32218 msgid ""
32219 " int\n"
32220 " guestfs_rmdir (guestfs_h *g,\n"
32221 "                const char *path);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-actions.pod:6752
32227 msgid "guestfs_rmmountpoint"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-actions.pod:6754
32232 #, no-wrap
32233 msgid ""
32234 " int\n"
32235 " guestfs_rmmountpoint (guestfs_h *g,\n"
32236 "                       const char *exemptpath);\n"
32237 "\n"
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs-actions.pod:6758
32242 msgid ""
32243 "This calls removes a mountpoint that was previously created with "
32244 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32245 msgstr ""
32246
32247 #. type: =head2
32248 #: ../src/guestfs-actions.pod:6766
32249 msgid "guestfs_scrub_device"
32250 msgstr ""
32251
32252 #. type: verbatim
32253 #: ../src/guestfs-actions.pod:6768
32254 #, no-wrap
32255 msgid ""
32256 " int\n"
32257 " guestfs_scrub_device (guestfs_h *g,\n"
32258 "                       const char *device);\n"
32259 "\n"
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798 ../src/guestfs-actions.pod:6817
32264 msgid "(Added in 1.0.52)"
32265 msgstr ""
32266
32267 #. type: =head2
32268 #: ../src/guestfs-actions.pod:6782
32269 msgid "guestfs_scrub_file"
32270 msgstr ""
32271
32272 #. type: verbatim
32273 #: ../src/guestfs-actions.pod:6784
32274 #, no-wrap
32275 msgid ""
32276 " int\n"
32277 " guestfs_scrub_file (guestfs_h *g,\n"
32278 "                     const char *file);\n"
32279 "\n"
32280 msgstr ""
32281
32282 #. type: =head2
32283 #: ../src/guestfs-actions.pod:6800
32284 msgid "guestfs_scrub_freespace"
32285 msgstr ""
32286
32287 #. type: verbatim
32288 #: ../src/guestfs-actions.pod:6802
32289 #, no-wrap
32290 msgid ""
32291 " int\n"
32292 " guestfs_scrub_freespace (guestfs_h *g,\n"
32293 "                          const char *dir);\n"
32294 "\n"
32295 msgstr ""
32296
32297 #. type: textblock
32298 #: ../src/guestfs-actions.pod:6806
32299 msgid ""
32300 "This command creates the directory C<dir> and then fills it with files until "
32301 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32302 "and deletes them.  The intention is to scrub any free space on the partition "
32303 "containing C<dir>."
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-actions.pod:6819
32308 msgid "guestfs_set_append"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-actions.pod:6821
32313 #, no-wrap
32314 msgid ""
32315 " int\n"
32316 " guestfs_set_append (guestfs_h *g,\n"
32317 "                     const char *append);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:6838
32323 msgid "guestfs_set_attach_method"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:6840
32328 #, no-wrap
32329 msgid ""
32330 " int\n"
32331 " guestfs_set_attach_method (guestfs_h *g,\n"
32332 "                            const char *attachmethod);\n"
32333 "\n"
32334 msgstr ""
32335
32336 #. type: =head2
32337 #: ../src/guestfs-actions.pod:6868
32338 msgid "guestfs_set_autosync"
32339 msgstr ""
32340
32341 #. type: verbatim
32342 #: ../src/guestfs-actions.pod:6870
32343 #, no-wrap
32344 msgid ""
32345 " int\n"
32346 " guestfs_set_autosync (guestfs_h *g,\n"
32347 "                       int autosync);\n"
32348 "\n"
32349 msgstr ""
32350
32351 #. type: =head2
32352 #: ../src/guestfs-actions.pod:6886
32353 msgid "guestfs_set_direct"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-actions.pod:6888
32358 #, no-wrap
32359 msgid ""
32360 " int\n"
32361 " guestfs_set_direct (guestfs_h *g,\n"
32362 "                     int direct);\n"
32363 "\n"
32364 msgstr ""
32365
32366 #. type: textblock
32367 #: ../src/guestfs-actions.pod:6896
32368 msgid ""
32369 "One consequence of this is that log messages aren't caught by the library "
32370 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32371 "stdout."
32372 msgstr ""
32373
32374 #. type: =head2
32375 #: ../src/guestfs-actions.pod:6909
32376 msgid "guestfs_set_e2label"
32377 msgstr ""
32378
32379 #. type: verbatim
32380 #: ../src/guestfs-actions.pod:6911
32381 #, no-wrap
32382 msgid ""
32383 " int\n"
32384 " guestfs_set_e2label (guestfs_h *g,\n"
32385 "                      const char *device,\n"
32386 "                      const char *label);\n"
32387 "\n"
32388 msgstr ""
32389
32390 #. type: textblock
32391 #: ../src/guestfs-actions.pod:6920
32392 msgid ""
32393 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32394 "the existing label on a filesystem."
32395 msgstr ""
32396
32397 #. type: =head2
32398 #: ../src/guestfs-actions.pod:6927
32399 msgid "guestfs_set_e2uuid"
32400 msgstr ""
32401
32402 #. type: verbatim
32403 #: ../src/guestfs-actions.pod:6929
32404 #, no-wrap
32405 msgid ""
32406 " int\n"
32407 " guestfs_set_e2uuid (guestfs_h *g,\n"
32408 "                     const char *device,\n"
32409 "                     const char *uuid);\n"
32410 "\n"
32411 msgstr ""
32412
32413 #. type: textblock
32414 #: ../src/guestfs-actions.pod:6939
32415 msgid ""
32416 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32417 "the existing UUID of a filesystem."
32418 msgstr ""
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:6946
32422 msgid "guestfs_set_memsize"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:6948
32427 #, no-wrap
32428 msgid ""
32429 " int\n"
32430 " guestfs_set_memsize (guestfs_h *g,\n"
32431 "                      int memsize);\n"
32432 "\n"
32433 msgstr ""
32434
32435 #. type: textblock
32436 #: ../src/guestfs-actions.pod:6952
32437 msgid ""
32438 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32439 "This only has any effect if called before C<guestfs_launch>."
32440 msgstr ""
32441
32442 #. type: =head2
32443 #: ../src/guestfs-actions.pod:6967
32444 msgid "guestfs_set_network"
32445 msgstr ""
32446
32447 #. type: verbatim
32448 #: ../src/guestfs-actions.pod:6969
32449 #, no-wrap
32450 msgid ""
32451 " int\n"
32452 " guestfs_set_network (guestfs_h *g,\n"
32453 "                      int network);\n"
32454 "\n"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs-actions.pod:6979
32459 msgid ""
32460 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32461 "effect."
32462 msgstr ""
32463
32464 #. type: =head2
32465 #: ../src/guestfs-actions.pod:6986
32466 msgid "guestfs_set_path"
32467 msgstr ""
32468
32469 #. type: verbatim
32470 #: ../src/guestfs-actions.pod:6988
32471 #, no-wrap
32472 msgid ""
32473 " int\n"
32474 " guestfs_set_path (guestfs_h *g,\n"
32475 "                   const char *searchpath);\n"
32476 "\n"
32477 msgstr ""
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:7003
32481 msgid "guestfs_set_pgroup"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:7005
32486 #, no-wrap
32487 msgid ""
32488 " int\n"
32489 " guestfs_set_pgroup (guestfs_h *g,\n"
32490 "                     int pgroup);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: =head2
32495 #: ../src/guestfs-actions.pod:7022
32496 msgid "guestfs_set_qemu"
32497 msgstr ""
32498
32499 #. type: verbatim
32500 #: ../src/guestfs-actions.pod:7024
32501 #, no-wrap
32502 msgid ""
32503 " int\n"
32504 " guestfs_set_qemu (guestfs_h *g,\n"
32505 "                   const char *qemu);\n"
32506 "\n"
32507 msgstr ""
32508
32509 #. type: =head2
32510 #: ../src/guestfs-actions.pod:7050
32511 msgid "guestfs_set_recovery_proc"
32512 msgstr ""
32513
32514 #. type: verbatim
32515 #: ../src/guestfs-actions.pod:7052
32516 #, no-wrap
32517 msgid ""
32518 " int\n"
32519 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32520 "                            int recoveryproc);\n"
32521 "\n"
32522 msgstr ""
32523
32524 #. type: textblock
32525 #: ../src/guestfs-actions.pod:7056
32526 msgid ""
32527 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32528 "not create a recovery process.  The purpose of the recovery process is to "
32529 "stop runaway qemu processes in the case where the main program aborts "
32530 "abruptly."
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs-actions.pod:7061
32535 msgid ""
32536 "This only has any effect if called before C<guestfs_launch>, and the default "
32537 "is true."
32538 msgstr ""
32539
32540 #. type: =head2
32541 #: ../src/guestfs-actions.pod:7074
32542 msgid "guestfs_set_selinux"
32543 msgstr ""
32544
32545 #. type: verbatim
32546 #: ../src/guestfs-actions.pod:7076
32547 #, no-wrap
32548 msgid ""
32549 " int\n"
32550 " guestfs_set_selinux (guestfs_h *g,\n"
32551 "                      int selinux);\n"
32552 "\n"
32553 msgstr ""
32554
32555 #. type: =head2
32556 #: ../src/guestfs-actions.pod:7093
32557 msgid "guestfs_set_smp"
32558 msgstr ""
32559
32560 #. type: verbatim
32561 #: ../src/guestfs-actions.pod:7095
32562 #, no-wrap
32563 msgid ""
32564 " int\n"
32565 " guestfs_set_smp (guestfs_h *g,\n"
32566 "                  int smp);\n"
32567 "\n"
32568 msgstr ""
32569
32570 #. type: textblock
32571 #: ../src/guestfs-actions.pod:7103
32572 msgid "This function must be called before C<guestfs_launch>."
32573 msgstr ""
32574
32575 #. type: =head2
32576 #: ../src/guestfs-actions.pod:7109
32577 msgid "guestfs_set_trace"
32578 msgstr ""
32579
32580 #. type: verbatim
32581 #: ../src/guestfs-actions.pod:7111
32582 #, no-wrap
32583 msgid ""
32584 " int\n"
32585 " guestfs_set_trace (guestfs_h *g,\n"
32586 "                    int trace);\n"
32587 "\n"
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs-actions.pod:7125
32592 msgid ""
32593 "Trace messages are normally sent to C<stderr>, unless you register a "
32594 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32595 msgstr ""
32596
32597 #. type: =head2
32598 #: ../src/guestfs-actions.pod:7133
32599 msgid "guestfs_set_verbose"
32600 msgstr ""
32601
32602 #. type: verbatim
32603 #: ../src/guestfs-actions.pod:7135
32604 #, no-wrap
32605 msgid ""
32606 " int\n"
32607 " guestfs_set_verbose (guestfs_h *g,\n"
32608 "                      int verbose);\n"
32609 "\n"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs-actions.pod:7144
32614 msgid ""
32615 "Verbose messages are normally sent to C<stderr>, unless you register a "
32616 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32617 msgstr ""
32618
32619 #. type: =head2
32620 #: ../src/guestfs-actions.pod:7152
32621 msgid "guestfs_setcon"
32622 msgstr ""
32623
32624 #. type: verbatim
32625 #: ../src/guestfs-actions.pod:7154
32626 #, no-wrap
32627 msgid ""
32628 " int\n"
32629 " guestfs_setcon (guestfs_h *g,\n"
32630 "                 const char *context);\n"
32631 "\n"
32632 msgstr ""
32633
32634 #. type: =head2
32635 #: ../src/guestfs-actions.pod:7167
32636 msgid "guestfs_setxattr"
32637 msgstr ""
32638
32639 #. type: verbatim
32640 #: ../src/guestfs-actions.pod:7169
32641 #, no-wrap
32642 msgid ""
32643 " int\n"
32644 " guestfs_setxattr (guestfs_h *g,\n"
32645 "                   const char *xattr,\n"
32646 "                   const char *val,\n"
32647 "                   int vallen,\n"
32648 "                   const char *path);\n"
32649 "\n"
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs-actions.pod:7180
32654 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32655 msgstr ""
32656
32657 #. type: =head2
32658 #: ../src/guestfs-actions.pod:7186
32659 msgid "guestfs_sfdisk"
32660 msgstr ""
32661
32662 #. type: verbatim
32663 #: ../src/guestfs-actions.pod:7188
32664 #, no-wrap
32665 msgid ""
32666 " int\n"
32667 " guestfs_sfdisk (guestfs_h *g,\n"
32668 "                 const char *device,\n"
32669 "                 int cyls,\n"
32670 "                 int heads,\n"
32671 "                 int sectors,\n"
32672 "                 char *const *lines);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7268
32678 msgid ""
32679 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32680 "call instead."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs-actions.pod:7223
32685 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32686 msgstr ""
32687
32688 #. type: =head2
32689 #: ../src/guestfs-actions.pod:7230
32690 msgid "guestfs_sfdiskM"
32691 msgstr ""
32692
32693 #. type: verbatim
32694 #: ../src/guestfs-actions.pod:7232
32695 #, no-wrap
32696 msgid ""
32697 " int\n"
32698 " guestfs_sfdiskM (guestfs_h *g,\n"
32699 "                  const char *device,\n"
32700 "                  char *const *lines);\n"
32701 "\n"
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs-actions.pod:7244
32706 msgid ""
32707 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32708 "partition sizes are specified in megabytes only (rounded to the nearest "
32709 "cylinder) and you don't need to specify the cyls, heads and sectors "
32710 "parameters which were rarely if ever used anyway."
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../src/guestfs-actions.pod:7250
32715 msgid ""
32716 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32717 "C<guestfs_part_disk>"
32718 msgstr ""
32719
32720 #. type: =head2
32721 #: ../src/guestfs-actions.pod:7257
32722 msgid "guestfs_sfdisk_N"
32723 msgstr ""
32724
32725 #. type: verbatim
32726 #: ../src/guestfs-actions.pod:7259
32727 #, no-wrap
32728 msgid ""
32729 " int\n"
32730 " guestfs_sfdisk_N (guestfs_h *g,\n"
32731 "                   const char *device,\n"
32732 "                   int partnum,\n"
32733 "                   int cyls,\n"
32734 "                   int heads,\n"
32735 "                   int sectors,\n"
32736 "                   const char *line);\n"
32737 "\n"
32738 msgstr ""
32739
32740 #. type: textblock
32741 #: ../src/guestfs-actions.pod:7278
32742 msgid ""
32743 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32744 "for the cyls/heads/sectors parameters."
32745 msgstr ""
32746
32747 #. type: textblock
32748 #: ../src/guestfs-actions.pod:7281
32749 msgid "See also: C<guestfs_part_add>"
32750 msgstr ""
32751
32752 #. type: =head2
32753 #: ../src/guestfs-actions.pod:7287
32754 msgid "guestfs_sfdisk_disk_geometry"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-actions.pod:7289
32759 #, no-wrap
32760 msgid ""
32761 " char *\n"
32762 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32763 "                               const char *device);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs-actions.pod:7293
32769 msgid ""
32770 "This displays the disk geometry of C<device> read from the partition table.  "
32771 "Especially in the case where the underlying block device has been resized, "
32772 "this can be different from the kernel's idea of the geometry (see "
32773 "C<guestfs_sfdisk_kernel_geometry>)."
32774 msgstr ""
32775
32776 #. type: =head2
32777 #: ../src/guestfs-actions.pod:7306
32778 msgid "guestfs_sfdisk_kernel_geometry"
32779 msgstr ""
32780
32781 #. type: verbatim
32782 #: ../src/guestfs-actions.pod:7308
32783 #, no-wrap
32784 msgid ""
32785 " char *\n"
32786 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32787 "                                 const char *device);\n"
32788 "\n"
32789 msgstr ""
32790
32791 #. type: =head2
32792 #: ../src/guestfs-actions.pod:7322
32793 msgid "guestfs_sfdisk_l"
32794 msgstr ""
32795
32796 #. type: verbatim
32797 #: ../src/guestfs-actions.pod:7324
32798 #, no-wrap
32799 msgid ""
32800 " char *\n"
32801 " guestfs_sfdisk_l (guestfs_h *g,\n"
32802 "                   const char *device);\n"
32803 "\n"
32804 msgstr ""
32805
32806 #. type: textblock
32807 #: ../src/guestfs-actions.pod:7328
32808 msgid ""
32809 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32810 "call instead."
32811 msgstr ""
32812
32813 #. type: textblock
32814 #: ../src/guestfs-actions.pod:7339
32815 msgid "See also: C<guestfs_part_list>"
32816 msgstr ""
32817
32818 #. type: =head2
32819 #: ../src/guestfs-actions.pod:7346
32820 msgid "guestfs_sh"
32821 msgstr ""
32822
32823 #. type: verbatim
32824 #: ../src/guestfs-actions.pod:7348
32825 #, no-wrap
32826 msgid ""
32827 " char *\n"
32828 " guestfs_sh (guestfs_h *g,\n"
32829 "             const char *command);\n"
32830 "\n"
32831 msgstr ""
32832
32833 #. type: textblock
32834 #: ../src/guestfs-actions.pod:7355
32835 msgid "This is like C<guestfs_command>, but passes the command to:"
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs-actions.pod:7363
32840 msgid "All the provisos about C<guestfs_command> apply to this call."
32841 msgstr ""
32842
32843 #. type: =head2
32844 #: ../src/guestfs-actions.pod:7370
32845 msgid "guestfs_sh_lines"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs-actions.pod:7372
32850 #, no-wrap
32851 msgid ""
32852 " char **\n"
32853 " guestfs_sh_lines (guestfs_h *g,\n"
32854 "                   const char *command);\n"
32855 "\n"
32856 msgstr ""
32857
32858 #. type: textblock
32859 #: ../src/guestfs-actions.pod:7376
32860 msgid ""
32861 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32862 "lines."
32863 msgstr ""
32864
32865 #. type: textblock
32866 #: ../src/guestfs-actions.pod:7379
32867 msgid "See also: C<guestfs_command_lines>"
32868 msgstr ""
32869
32870 #. type: =head2
32871 #: ../src/guestfs-actions.pod:7387
32872 msgid "guestfs_sleep"
32873 msgstr ""
32874
32875 #. type: verbatim
32876 #: ../src/guestfs-actions.pod:7389
32877 #, no-wrap
32878 msgid ""
32879 " int\n"
32880 " guestfs_sleep (guestfs_h *g,\n"
32881 "                int secs);\n"
32882 "\n"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs-actions.pod:7397
32887 msgid "(Added in 1.0.41)"
32888 msgstr ""
32889
32890 #. type: =head2
32891 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
32892 msgid "guestfs_stat"
32893 msgstr ""
32894
32895 #. type: verbatim
32896 #: ../src/guestfs-actions.pod:7401
32897 #, no-wrap
32898 msgid ""
32899 " struct guestfs_stat *\n"
32900 " guestfs_stat (guestfs_h *g,\n"
32901 "               const char *path);\n"
32902 "\n"
32903 msgstr ""
32904
32905 #. type: =head2
32906 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
32907 msgid "guestfs_statvfs"
32908 msgstr ""
32909
32910 #. type: verbatim
32911 #: ../src/guestfs-actions.pod:7417
32912 #, no-wrap
32913 msgid ""
32914 " struct guestfs_statvfs *\n"
32915 " guestfs_statvfs (guestfs_h *g,\n"
32916 "                  const char *path);\n"
32917 "\n"
32918 msgstr ""
32919
32920 #. type: textblock
32921 #: ../src/guestfs-actions.pod:7427
32922 msgid ""
32923 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32924 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32925 msgstr ""
32926
32927 #. type: =head2
32928 #: ../src/guestfs-actions.pod:7433
32929 msgid "guestfs_strings"
32930 msgstr ""
32931
32932 #. type: verbatim
32933 #: ../src/guestfs-actions.pod:7435
32934 #, no-wrap
32935 msgid ""
32936 " char **\n"
32937 " guestfs_strings (guestfs_h *g,\n"
32938 "                  const char *path);\n"
32939 "\n"
32940 msgstr ""
32941
32942 #. type: =head2
32943 #: ../src/guestfs-actions.pod:7451
32944 msgid "guestfs_strings_e"
32945 msgstr ""
32946
32947 #. type: verbatim
32948 #: ../src/guestfs-actions.pod:7453
32949 #, no-wrap
32950 msgid ""
32951 " char **\n"
32952 " guestfs_strings_e (guestfs_h *g,\n"
32953 "                    const char *encoding,\n"
32954 "                    const char *path);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:7458
32960 msgid ""
32961 "This is like the C<guestfs_strings> command, but allows you to specify the "
32962 "encoding of strings that are looked for in the source file C<path>."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs-actions.pod:7468
32967 msgid ""
32968 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32969 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32970 msgstr ""
32971
32972 #. type: =head2
32973 #: ../src/guestfs-actions.pod:7506
32974 msgid "guestfs_swapoff_device"
32975 msgstr ""
32976
32977 #. type: verbatim
32978 #: ../src/guestfs-actions.pod:7508
32979 #, no-wrap
32980 msgid ""
32981 " int\n"
32982 " guestfs_swapoff_device (guestfs_h *g,\n"
32983 "                         const char *device);\n"
32984 "\n"
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs-actions.pod:7512
32989 msgid ""
32990 "This command disables the libguestfs appliance swap device or partition "
32991 "named C<device>.  See C<guestfs_swapon_device>."
32992 msgstr ""
32993
32994 #. type: =head2
32995 #: ../src/guestfs-actions.pod:7520
32996 msgid "guestfs_swapoff_file"
32997 msgstr ""
32998
32999 #. type: verbatim
33000 #: ../src/guestfs-actions.pod:7522
33001 #, no-wrap
33002 msgid ""
33003 " int\n"
33004 " guestfs_swapoff_file (guestfs_h *g,\n"
33005 "                       const char *file);\n"
33006 "\n"
33007 msgstr ""
33008
33009 #. type: =head2
33010 #: ../src/guestfs-actions.pod:7532
33011 msgid "guestfs_swapoff_label"
33012 msgstr ""
33013
33014 #. type: verbatim
33015 #: ../src/guestfs-actions.pod:7534
33016 #, no-wrap
33017 msgid ""
33018 " int\n"
33019 " guestfs_swapoff_label (guestfs_h *g,\n"
33020 "                        const char *label);\n"
33021 "\n"
33022 msgstr ""
33023
33024 #. type: =head2
33025 #: ../src/guestfs-actions.pod:7545
33026 msgid "guestfs_swapoff_uuid"
33027 msgstr ""
33028
33029 #. type: verbatim
33030 #: ../src/guestfs-actions.pod:7547
33031 #, no-wrap
33032 msgid ""
33033 " int\n"
33034 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33035 "                       const char *uuid);\n"
33036 "\n"
33037 msgstr ""
33038
33039 #. type: =head2
33040 #: ../src/guestfs-actions.pod:7558
33041 msgid "guestfs_swapon_device"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs-actions.pod:7560
33046 #, no-wrap
33047 msgid ""
33048 " int\n"
33049 " guestfs_swapon_device (guestfs_h *g,\n"
33050 "                        const char *device);\n"
33051 "\n"
33052 msgstr ""
33053
33054 #. type: textblock
33055 #: ../src/guestfs-actions.pod:7564
33056 msgid ""
33057 "This command enables the libguestfs appliance to use the swap device or "
33058 "partition named C<device>.  The increased memory is made available for all "
33059 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33060 msgstr ""
33061
33062 #. type: =head2
33063 #: ../src/guestfs-actions.pod:7580
33064 msgid "guestfs_swapon_file"
33065 msgstr ""
33066
33067 #. type: verbatim
33068 #: ../src/guestfs-actions.pod:7582
33069 #, no-wrap
33070 msgid ""
33071 " int\n"
33072 " guestfs_swapon_file (guestfs_h *g,\n"
33073 "                      const char *file);\n"
33074 "\n"
33075 msgstr ""
33076
33077 #. type: textblock
33078 #: ../src/guestfs-actions.pod:7586
33079 msgid ""
33080 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33081 "notes."
33082 msgstr ""
33083
33084 #. type: =head2
33085 #: ../src/guestfs-actions.pod:7593
33086 msgid "guestfs_swapon_label"
33087 msgstr ""
33088
33089 #. type: verbatim
33090 #: ../src/guestfs-actions.pod:7595
33091 #, no-wrap
33092 msgid ""
33093 " int\n"
33094 " guestfs_swapon_label (guestfs_h *g,\n"
33095 "                       const char *label);\n"
33096 "\n"
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs-actions.pod:7599
33101 msgid ""
33102 "This command enables swap to a labeled swap partition.  See "
33103 "C<guestfs_swapon_device> for other notes."
33104 msgstr ""
33105
33106 #. type: =head2
33107 #: ../src/guestfs-actions.pod:7606
33108 msgid "guestfs_swapon_uuid"
33109 msgstr ""
33110
33111 #. type: verbatim
33112 #: ../src/guestfs-actions.pod:7608
33113 #, no-wrap
33114 msgid ""
33115 " int\n"
33116 " guestfs_swapon_uuid (guestfs_h *g,\n"
33117 "                      const char *uuid);\n"
33118 "\n"
33119 msgstr ""
33120
33121 #. type: textblock
33122 #: ../src/guestfs-actions.pod:7612
33123 msgid ""
33124 "This command enables swap to a swap partition with the given UUID.  See "
33125 "C<guestfs_swapon_device> for other notes."
33126 msgstr ""
33127
33128 #. type: =head2
33129 #: ../src/guestfs-actions.pod:7619
33130 msgid "guestfs_sync"
33131 msgstr ""
33132
33133 #. type: verbatim
33134 #: ../src/guestfs-actions.pod:7621
33135 #, no-wrap
33136 msgid ""
33137 " int\n"
33138 " guestfs_sync (guestfs_h *g);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-actions.pod:7634
33144 msgid "guestfs_tail"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-actions.pod:7636
33149 #, no-wrap
33150 msgid ""
33151 " char **\n"
33152 " guestfs_tail (guestfs_h *g,\n"
33153 "               const char *path);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: =head2
33158 #: ../src/guestfs-actions.pod:7652
33159 msgid "guestfs_tail_n"
33160 msgstr ""
33161
33162 #. type: verbatim
33163 #: ../src/guestfs-actions.pod:7654
33164 #, no-wrap
33165 msgid ""
33166 " char **\n"
33167 " guestfs_tail_n (guestfs_h *g,\n"
33168 "                 int nrlines,\n"
33169 "                 const char *path);\n"
33170 "\n"
33171 msgstr ""
33172
33173 #. type: =head2
33174 #: ../src/guestfs-actions.pod:7676
33175 msgid "guestfs_tar_in"
33176 msgstr ""
33177
33178 #. type: verbatim
33179 #: ../src/guestfs-actions.pod:7678
33180 #, no-wrap
33181 msgid ""
33182 " int\n"
33183 " guestfs_tar_in (guestfs_h *g,\n"
33184 "                 const char *tarfile,\n"
33185 "                 const char *directory);\n"
33186 "\n"
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs-actions.pod:7686
33191 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
33196 msgid "(Added in 1.0.3)"
33197 msgstr ""
33198
33199 #. type: =head2
33200 #: ../src/guestfs-actions.pod:7693
33201 msgid "guestfs_tar_out"
33202 msgstr ""
33203
33204 #. type: verbatim
33205 #: ../src/guestfs-actions.pod:7695
33206 #, no-wrap
33207 msgid ""
33208 " int\n"
33209 " guestfs_tar_out (guestfs_h *g,\n"
33210 "                  const char *directory,\n"
33211 "                  const char *tarfile);\n"
33212 "\n"
33213 msgstr ""
33214
33215 #. type: textblock
33216 #: ../src/guestfs-actions.pod:7703
33217 msgid ""
33218 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33219 "C<guestfs_txz_out>."
33220 msgstr ""
33221
33222 #. type: =head2
33223 #: ../src/guestfs-actions.pod:7710
33224 msgid "guestfs_tgz_in"
33225 msgstr ""
33226
33227 #. type: verbatim
33228 #: ../src/guestfs-actions.pod:7712
33229 #, no-wrap
33230 msgid ""
33231 " int\n"
33232 " guestfs_tgz_in (guestfs_h *g,\n"
33233 "                 const char *tarball,\n"
33234 "                 const char *directory);\n"
33235 "\n"
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs-actions.pod:7720
33240 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33241 msgstr ""
33242
33243 #. type: =head2
33244 #: ../src/guestfs-actions.pod:7726
33245 msgid "guestfs_tgz_out"
33246 msgstr ""
33247
33248 #. type: verbatim
33249 #: ../src/guestfs-actions.pod:7728
33250 #, no-wrap
33251 msgid ""
33252 " int\n"
33253 " guestfs_tgz_out (guestfs_h *g,\n"
33254 "                  const char *directory,\n"
33255 "                  const char *tarball);\n"
33256 "\n"
33257 msgstr ""
33258
33259 #. type: textblock
33260 #: ../src/guestfs-actions.pod:7736
33261 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33262 msgstr ""
33263
33264 #. type: =head2
33265 #: ../src/guestfs-actions.pod:7742
33266 msgid "guestfs_touch"
33267 msgstr ""
33268
33269 #. type: verbatim
33270 #: ../src/guestfs-actions.pod:7744
33271 #, no-wrap
33272 msgid ""
33273 " int\n"
33274 " guestfs_touch (guestfs_h *g,\n"
33275 "                const char *path);\n"
33276 "\n"
33277 msgstr ""
33278
33279 #. type: =head2
33280 #: ../src/guestfs-actions.pod:7759
33281 msgid "guestfs_truncate"
33282 msgstr ""
33283
33284 #. type: verbatim
33285 #: ../src/guestfs-actions.pod:7761
33286 #, no-wrap
33287 msgid ""
33288 " int\n"
33289 " guestfs_truncate (guestfs_h *g,\n"
33290 "                   const char *path);\n"
33291 "\n"
33292 msgstr ""
33293
33294 #. type: =head2
33295 #: ../src/guestfs-actions.pod:7772
33296 msgid "guestfs_truncate_size"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-actions.pod:7774
33301 #, no-wrap
33302 msgid ""
33303 " int\n"
33304 " guestfs_truncate_size (guestfs_h *g,\n"
33305 "                        const char *path,\n"
33306 "                        int64_t size);\n"
33307 "\n"
33308 msgstr ""
33309
33310 #. type: textblock
33311 #: ../src/guestfs-actions.pod:7782
33312 msgid ""
33313 "If the current file size is less than C<size> then the file is extended to "
33314 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33315 "blocks are not allocated for the file until you write to it).  To create a "
33316 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33317 msgstr ""
33318
33319 #. type: =head2
33320 #: ../src/guestfs-actions.pod:7792
33321 msgid "guestfs_tune2fs"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-actions.pod:7794
33326 #, no-wrap
33327 msgid ""
33328 " int\n"
33329 " guestfs_tune2fs (guestfs_h *g,\n"
33330 "                  const char *device,\n"
33331 "                  ...);\n"
33332 "\n"
33333 msgstr ""
33334
33335 #. type: verbatim
33336 #: ../src/guestfs-actions.pod:7804
33337 #, no-wrap
33338 msgid ""
33339 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33340 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33341 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33342 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33343 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33344 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33345 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33346 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33347 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33348 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33349 "\n"
33350 msgstr ""
33351
33352 #. type: textblock
33353 #: ../src/guestfs-actions.pod:7884
33354 msgid ""
33355 "To get the current values of filesystem parameters, see "
33356 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33357 "L<tune2fs(8)> man page."
33358 msgstr ""
33359
33360 #. type: =head2
33361 #: ../src/guestfs-actions.pod:7892
33362 msgid "guestfs_tune2fs_va"
33363 msgstr ""
33364
33365 #. type: verbatim
33366 #: ../src/guestfs-actions.pod:7894
33367 #, no-wrap
33368 msgid ""
33369 " int\n"
33370 " guestfs_tune2fs_va (guestfs_h *g,\n"
33371 "                     const char *device,\n"
33372 "                     va_list args);\n"
33373 "\n"
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs-actions.pod:7899
33378 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33379 msgstr ""
33380
33381 #. type: =head2
33382 #: ../src/guestfs-actions.pod:7903
33383 msgid "guestfs_tune2fs_argv"
33384 msgstr ""
33385
33386 #. type: verbatim
33387 #: ../src/guestfs-actions.pod:7905
33388 #, no-wrap
33389 msgid ""
33390 " int\n"
33391 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33392 "                       const char *device,\n"
33393 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33394 "\n"
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs-actions.pod:7910
33399 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33400 msgstr ""
33401
33402 #. type: =head2
33403 #: ../src/guestfs-actions.pod:7914
33404 msgid "guestfs_tune2fs_l"
33405 msgstr ""
33406
33407 #. type: verbatim
33408 #: ../src/guestfs-actions.pod:7916
33409 #, no-wrap
33410 msgid ""
33411 " char **\n"
33412 " guestfs_tune2fs_l (guestfs_h *g,\n"
33413 "                    const char *device);\n"
33414 "\n"
33415 msgstr ""
33416
33417 #. type: =head2
33418 #: ../src/guestfs-actions.pod:7936
33419 msgid "guestfs_txz_in"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs-actions.pod:7938
33424 #, no-wrap
33425 msgid ""
33426 " int\n"
33427 " guestfs_txz_in (guestfs_h *g,\n"
33428 "                 const char *tarball,\n"
33429 "                 const char *directory);\n"
33430 "\n"
33431 msgstr ""
33432
33433 #. type: =head2
33434 #: ../src/guestfs-actions.pod:7950
33435 msgid "guestfs_txz_out"
33436 msgstr ""
33437
33438 #. type: verbatim
33439 #: ../src/guestfs-actions.pod:7952
33440 #, no-wrap
33441 msgid ""
33442 " int\n"
33443 " guestfs_txz_out (guestfs_h *g,\n"
33444 "                  const char *directory,\n"
33445 "                  const char *tarball);\n"
33446 "\n"
33447 msgstr ""
33448
33449 #. type: =head2
33450 #: ../src/guestfs-actions.pod:7964
33451 msgid "guestfs_umask"
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs-actions.pod:7966
33456 #, no-wrap
33457 msgid ""
33458 " int\n"
33459 " guestfs_umask (guestfs_h *g,\n"
33460 "                int mask);\n"
33461 "\n"
33462 msgstr ""
33463
33464 #. type: textblock
33465 #: ../src/guestfs-actions.pod:7982
33466 msgid ""
33467 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33468 "C<guestfs_mkdir>."
33469 msgstr ""
33470
33471 #. type: =head2
33472 #: ../src/guestfs-actions.pod:7991
33473 msgid "guestfs_umount"
33474 msgstr ""
33475
33476 #. type: verbatim
33477 #: ../src/guestfs-actions.pod:7993
33478 #, no-wrap
33479 msgid ""
33480 " int\n"
33481 " guestfs_umount (guestfs_h *g,\n"
33482 "                 const char *pathordevice);\n"
33483 "\n"
33484 msgstr ""
33485
33486 #. type: =head2
33487 #: ../src/guestfs-actions.pod:8005
33488 msgid "guestfs_umount_all"
33489 msgstr ""
33490
33491 #. type: verbatim
33492 #: ../src/guestfs-actions.pod:8007
33493 #, no-wrap
33494 msgid ""
33495 " int\n"
33496 " guestfs_umount_all (guestfs_h *g);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs-actions.pod:8018
33502 msgid "guestfs_upload"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs-actions.pod:8020
33507 #, no-wrap
33508 msgid ""
33509 " int\n"
33510 " guestfs_upload (guestfs_h *g,\n"
33511 "                 const char *filename,\n"
33512 "                 const char *remotefilename);\n"
33513 "\n"
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs-actions.pod:8030
33518 msgid "See also C<guestfs_download>."
33519 msgstr ""
33520
33521 #. type: =head2
33522 #: ../src/guestfs-actions.pod:8041
33523 msgid "guestfs_upload_offset"
33524 msgstr ""
33525
33526 #. type: verbatim
33527 #: ../src/guestfs-actions.pod:8043
33528 #, no-wrap
33529 msgid ""
33530 " int\n"
33531 " guestfs_upload_offset (guestfs_h *g,\n"
33532 "                        const char *filename,\n"
33533 "                        const char *remotefilename,\n"
33534 "                        int64_t offset);\n"
33535 "\n"
33536 msgstr ""
33537
33538 #. type: textblock
33539 #: ../src/guestfs-actions.pod:8059
33540 msgid ""
33541 "Note that there is no limit on the amount of data that can be uploaded with "
33542 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33543 "full amount unless an error occurs."
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs-actions.pod:8064
33548 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33549 msgstr ""
33550
33551 #. type: =head2
33552 #: ../src/guestfs-actions.pod:8075
33553 msgid "guestfs_utimens"
33554 msgstr ""
33555
33556 #. type: verbatim
33557 #: ../src/guestfs-actions.pod:8077
33558 #, no-wrap
33559 msgid ""
33560 " int\n"
33561 " guestfs_utimens (guestfs_h *g,\n"
33562 "                  const char *path,\n"
33563 "                  int64_t atsecs,\n"
33564 "                  int64_t atnsecs,\n"
33565 "                  int64_t mtsecs,\n"
33566 "                  int64_t mtnsecs);\n"
33567 "\n"
33568 msgstr ""
33569
33570 #. type: =head2
33571 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
33572 msgid "guestfs_version"
33573 msgstr ""
33574
33575 #. type: verbatim
33576 #: ../src/guestfs-actions.pod:8108
33577 #, no-wrap
33578 msgid ""
33579 " struct guestfs_version *\n"
33580 " guestfs_version (guestfs_h *g);\n"
33581 "\n"
33582 msgstr ""
33583
33584 #. type: textblock
33585 #: ../src/guestfs-actions.pod:8136
33586 msgid ""
33587 "I<Note:> Don't use this call to test for availability of features.  In "
33588 "enterprise distributions we backport features from later versions into "
33589 "earlier versions, making this an unreliable way to test for features.  Use "
33590 "C<guestfs_available> instead."
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs-actions.pod:8142
33595 msgid ""
33596 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33597 "error.  I<The caller must call C<guestfs_free_version> after use>."
33598 msgstr ""
33599
33600 #. type: textblock
33601 #: ../src/guestfs-actions.pod:8146
33602 msgid "(Added in 1.0.58)"
33603 msgstr ""
33604
33605 #. type: =head2
33606 #: ../src/guestfs-actions.pod:8148
33607 msgid "guestfs_vfs_label"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs-actions.pod:8150
33612 #, no-wrap
33613 msgid ""
33614 " char *\n"
33615 " guestfs_vfs_label (guestfs_h *g,\n"
33616 "                    const char *device);\n"
33617 "\n"
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs-actions.pod:8159
33622 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33623 msgstr ""
33624
33625 #. type: textblock
33626 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
33627 msgid "(Added in 1.3.18)"
33628 msgstr ""
33629
33630 #. type: =head2
33631 #: ../src/guestfs-actions.pod:8166
33632 msgid "guestfs_vfs_type"
33633 msgstr ""
33634
33635 #. type: verbatim
33636 #: ../src/guestfs-actions.pod:8168
33637 #, no-wrap
33638 msgid ""
33639 " char *\n"
33640 " guestfs_vfs_type (guestfs_h *g,\n"
33641 "                   const char *device);\n"
33642 "\n"
33643 msgstr ""
33644
33645 #. type: =head2
33646 #: ../src/guestfs-actions.pod:8185
33647 msgid "guestfs_vfs_uuid"
33648 msgstr ""
33649
33650 #. type: verbatim
33651 #: ../src/guestfs-actions.pod:8187
33652 #, no-wrap
33653 msgid ""
33654 " char *\n"
33655 " guestfs_vfs_uuid (guestfs_h *g,\n"
33656 "                   const char *device);\n"
33657 "\n"
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../src/guestfs-actions.pod:8196
33662 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33663 msgstr ""
33664
33665 #. type: =head2
33666 #: ../src/guestfs-actions.pod:8203
33667 msgid "guestfs_vg_activate"
33668 msgstr ""
33669
33670 #. type: verbatim
33671 #: ../src/guestfs-actions.pod:8205
33672 #, no-wrap
33673 msgid ""
33674 " int\n"
33675 " guestfs_vg_activate (guestfs_h *g,\n"
33676 "                      int activate,\n"
33677 "                      char *const *volgroups);\n"
33678 "\n"
33679 msgstr ""
33680
33681 #. type: =head2
33682 #: ../src/guestfs-actions.pod:8222
33683 msgid "guestfs_vg_activate_all"
33684 msgstr ""
33685
33686 #. type: verbatim
33687 #: ../src/guestfs-actions.pod:8224
33688 #, no-wrap
33689 msgid ""
33690 " int\n"
33691 " guestfs_vg_activate_all (guestfs_h *g,\n"
33692 "                          int activate);\n"
33693 "\n"
33694 msgstr ""
33695
33696 #. type: =head2
33697 #: ../src/guestfs-actions.pod:8237
33698 msgid "guestfs_vgcreate"
33699 msgstr ""
33700
33701 #. type: verbatim
33702 #: ../src/guestfs-actions.pod:8239
33703 #, no-wrap
33704 msgid ""
33705 " int\n"
33706 " guestfs_vgcreate (guestfs_h *g,\n"
33707 "                   const char *volgroup,\n"
33708 "                   char *const *physvols);\n"
33709 "\n"
33710 msgstr ""
33711
33712 #. type: =head2
33713 #: ../src/guestfs-actions.pod:8251
33714 msgid "guestfs_vglvuuids"
33715 msgstr ""
33716
33717 #. type: verbatim
33718 #: ../src/guestfs-actions.pod:8253
33719 #, no-wrap
33720 msgid ""
33721 " char **\n"
33722 " guestfs_vglvuuids (guestfs_h *g,\n"
33723 "                    const char *vgname);\n"
33724 "\n"
33725 msgstr ""
33726
33727 #. type: textblock
33728 #: ../src/guestfs-actions.pod:8260
33729 msgid ""
33730 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33731 "associate logical volumes and volume groups."
33732 msgstr ""
33733
33734 #. type: textblock
33735 #: ../src/guestfs-actions.pod:8263
33736 msgid "See also C<guestfs_vgpvuuids>."
33737 msgstr ""
33738
33739 #. type: =head2
33740 #: ../src/guestfs-actions.pod:8271
33741 msgid "guestfs_vgpvuuids"
33742 msgstr ""
33743
33744 #. type: verbatim
33745 #: ../src/guestfs-actions.pod:8273
33746 #, no-wrap
33747 msgid ""
33748 " char **\n"
33749 " guestfs_vgpvuuids (guestfs_h *g,\n"
33750 "                    const char *vgname);\n"
33751 "\n"
33752 msgstr ""
33753
33754 #. type: textblock
33755 #: ../src/guestfs-actions.pod:8280
33756 msgid ""
33757 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33758 "associate physical volumes and volume groups."
33759 msgstr ""
33760
33761 #. type: textblock
33762 #: ../src/guestfs-actions.pod:8283
33763 msgid "See also C<guestfs_vglvuuids>."
33764 msgstr ""
33765
33766 #. type: =head2
33767 #: ../src/guestfs-actions.pod:8291
33768 msgid "guestfs_vgremove"
33769 msgstr ""
33770
33771 #. type: verbatim
33772 #: ../src/guestfs-actions.pod:8293
33773 #, no-wrap
33774 msgid ""
33775 " int\n"
33776 " guestfs_vgremove (guestfs_h *g,\n"
33777 "                   const char *vgname);\n"
33778 "\n"
33779 msgstr ""
33780
33781 #. type: =head2
33782 #: ../src/guestfs-actions.pod:8306
33783 msgid "guestfs_vgrename"
33784 msgstr ""
33785
33786 #. type: verbatim
33787 #: ../src/guestfs-actions.pod:8308
33788 #, no-wrap
33789 msgid ""
33790 " int\n"
33791 " guestfs_vgrename (guestfs_h *g,\n"
33792 "                   const char *volgroup,\n"
33793 "                   const char *newvolgroup);\n"
33794 "\n"
33795 msgstr ""
33796
33797 #. type: =head2
33798 #: ../src/guestfs-actions.pod:8319
33799 msgid "guestfs_vgs"
33800 msgstr ""
33801
33802 #. type: verbatim
33803 #: ../src/guestfs-actions.pod:8321
33804 #, no-wrap
33805 msgid ""
33806 " char **\n"
33807 " guestfs_vgs (guestfs_h *g);\n"
33808 "\n"
33809 msgstr ""
33810
33811 #. type: textblock
33812 #: ../src/guestfs-actions.pod:8330
33813 msgid "See also C<guestfs_vgs_full>."
33814 msgstr ""
33815
33816 #. type: =head2
33817 #: ../src/guestfs-actions.pod:8338
33818 msgid "guestfs_vgs_full"
33819 msgstr ""
33820
33821 #. type: verbatim
33822 #: ../src/guestfs-actions.pod:8340
33823 #, no-wrap
33824 msgid ""
33825 " struct guestfs_lvm_vg_list *\n"
33826 " guestfs_vgs_full (guestfs_h *g);\n"
33827 "\n"
33828 msgstr ""
33829
33830 #. type: textblock
33831 #: ../src/guestfs-actions.pod:8346
33832 msgid ""
33833 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33834 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
33835 "use>."
33836 msgstr ""
33837
33838 #. type: =head2
33839 #: ../src/guestfs-actions.pod:8352
33840 msgid "guestfs_vgscan"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-actions.pod:8354
33845 #, no-wrap
33846 msgid ""
33847 " int\n"
33848 " guestfs_vgscan (guestfs_h *g);\n"
33849 "\n"
33850 msgstr ""
33851
33852 #. type: =head2
33853 #: ../src/guestfs-actions.pod:8364
33854 msgid "guestfs_vguuid"
33855 msgstr ""
33856
33857 #. type: verbatim
33858 #: ../src/guestfs-actions.pod:8366
33859 #, no-wrap
33860 msgid ""
33861 " char *\n"
33862 " guestfs_vguuid (guestfs_h *g,\n"
33863 "                 const char *vgname);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: =head2
33868 #: ../src/guestfs-actions.pod:8377
33869 msgid "guestfs_wait_ready"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs-actions.pod:8379
33874 #, no-wrap
33875 msgid ""
33876 " int\n"
33877 " guestfs_wait_ready (guestfs_h *g);\n"
33878 "\n"
33879 msgstr ""
33880
33881 #. type: textblock
33882 #: ../src/guestfs-actions.pod:8382
33883 msgid ""
33884 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33885 "instead."
33886 msgstr ""
33887
33888 #. type: textblock
33889 #: ../src/guestfs-actions.pod:8389
33890 msgid "This function is a no op."
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs-actions.pod:8391
33895 msgid ""
33896 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33897 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33898 "is no longer necessary because C<guestfs_launch> now does the waiting."
33899 msgstr ""
33900
33901 #. type: textblock
33902 #: ../src/guestfs-actions.pod:8396
33903 msgid ""
33904 "If you see any calls to this function in code then you can just remove them, "
33905 "unless you want to retain compatibility with older versions of the API."
33906 msgstr ""
33907
33908 #. type: =head2
33909 #: ../src/guestfs-actions.pod:8404
33910 msgid "guestfs_wc_c"
33911 msgstr ""
33912
33913 #. type: verbatim
33914 #: ../src/guestfs-actions.pod:8406
33915 #, no-wrap
33916 msgid ""
33917 " int\n"
33918 " guestfs_wc_c (guestfs_h *g,\n"
33919 "               const char *path);\n"
33920 "\n"
33921 msgstr ""
33922
33923 #. type: =head2
33924 #: ../src/guestfs-actions.pod:8417
33925 msgid "guestfs_wc_l"
33926 msgstr ""
33927
33928 #. type: verbatim
33929 #: ../src/guestfs-actions.pod:8419
33930 #, no-wrap
33931 msgid ""
33932 " int\n"
33933 " guestfs_wc_l (guestfs_h *g,\n"
33934 "               const char *path);\n"
33935 "\n"
33936 msgstr ""
33937
33938 #. type: =head2
33939 #: ../src/guestfs-actions.pod:8430
33940 msgid "guestfs_wc_w"
33941 msgstr ""
33942
33943 #. type: verbatim
33944 #: ../src/guestfs-actions.pod:8432
33945 #, no-wrap
33946 msgid ""
33947 " int\n"
33948 " guestfs_wc_w (guestfs_h *g,\n"
33949 "               const char *path);\n"
33950 "\n"
33951 msgstr ""
33952
33953 #. type: =head2
33954 #: ../src/guestfs-actions.pod:8443
33955 msgid "guestfs_write"
33956 msgstr ""
33957
33958 #. type: verbatim
33959 #: ../src/guestfs-actions.pod:8445
33960 #, no-wrap
33961 msgid ""
33962 " int\n"
33963 " guestfs_write (guestfs_h *g,\n"
33964 "                const char *path,\n"
33965 "                const char *content,\n"
33966 "                size_t content_size);\n"
33967 "\n"
33968 msgstr ""
33969
33970 #. type: textblock
33971 #: ../src/guestfs-actions.pod:8454
33972 msgid "See also C<guestfs_write_append>."
33973 msgstr ""
33974
33975 #. type: =head2
33976 #: ../src/guestfs-actions.pod:8463
33977 msgid "guestfs_write_append"
33978 msgstr ""
33979
33980 #. type: verbatim
33981 #: ../src/guestfs-actions.pod:8465
33982 #, no-wrap
33983 msgid ""
33984 " int\n"
33985 " guestfs_write_append (guestfs_h *g,\n"
33986 "                       const char *path,\n"
33987 "                       const char *content,\n"
33988 "                       size_t content_size);\n"
33989 "\n"
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs-actions.pod:8474
33994 msgid "See also C<guestfs_write>."
33995 msgstr ""
33996
33997 #. type: =head2
33998 #: ../src/guestfs-actions.pod:8483
33999 msgid "guestfs_write_file"
34000 msgstr ""
34001
34002 #. type: verbatim
34003 #: ../src/guestfs-actions.pod:8485
34004 #, no-wrap
34005 msgid ""
34006 " int\n"
34007 " guestfs_write_file (guestfs_h *g,\n"
34008 "                     const char *path,\n"
34009 "                     const char *content,\n"
34010 "                     int size);\n"
34011 "\n"
34012 msgstr ""
34013
34014 #. type: textblock
34015 #: ../src/guestfs-actions.pod:8491
34016 msgid ""
34017 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34018 "instead."
34019 msgstr ""
34020
34021 #. type: =head2
34022 #: ../src/guestfs-actions.pod:8516
34023 msgid "guestfs_zegrep"
34024 msgstr ""
34025
34026 #. type: verbatim
34027 #: ../src/guestfs-actions.pod:8518
34028 #, no-wrap
34029 msgid ""
34030 " char **\n"
34031 " guestfs_zegrep (guestfs_h *g,\n"
34032 "                 const char *regex,\n"
34033 "                 const char *path);\n"
34034 "\n"
34035 msgstr ""
34036
34037 #. type: =head2
34038 #: ../src/guestfs-actions.pod:8535
34039 msgid "guestfs_zegrepi"
34040 msgstr ""
34041
34042 #. type: verbatim
34043 #: ../src/guestfs-actions.pod:8537
34044 #, no-wrap
34045 msgid ""
34046 " char **\n"
34047 " guestfs_zegrepi (guestfs_h *g,\n"
34048 "                  const char *regex,\n"
34049 "                  const char *path);\n"
34050 "\n"
34051 msgstr ""
34052
34053 #. type: =head2
34054 #: ../src/guestfs-actions.pod:8554
34055 msgid "guestfs_zero"
34056 msgstr ""
34057
34058 #. type: verbatim
34059 #: ../src/guestfs-actions.pod:8556
34060 #, no-wrap
34061 msgid ""
34062 " int\n"
34063 " guestfs_zero (guestfs_h *g,\n"
34064 "               const char *device);\n"
34065 "\n"
34066 msgstr ""
34067
34068 #. type: textblock
34069 #: ../src/guestfs-actions.pod:8570
34070 msgid ""
34071 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34072 "C<guestfs_is_zero_device>"
34073 msgstr ""
34074
34075 #. type: =head2
34076 #: ../src/guestfs-actions.pod:8582
34077 msgid "guestfs_zero_device"
34078 msgstr ""
34079
34080 #. type: verbatim
34081 #: ../src/guestfs-actions.pod:8584
34082 #, no-wrap
34083 msgid ""
34084 " int\n"
34085 " guestfs_zero_device (guestfs_h *g,\n"
34086 "                      const char *device);\n"
34087 "\n"
34088 msgstr ""
34089
34090 #. type: textblock
34091 #: ../src/guestfs-actions.pod:8588
34092 msgid ""
34093 "This command writes zeroes over the entire C<device>.  Compare with "
34094 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34095 msgstr ""
34096
34097 #. type: textblock
34098 #: ../src/guestfs-actions.pod:8603
34099 msgid "(Added in 1.3.1)"
34100 msgstr ""
34101
34102 #. type: =head2
34103 #: ../src/guestfs-actions.pod:8605
34104 msgid "guestfs_zerofree"
34105 msgstr ""
34106
34107 #. type: verbatim
34108 #: ../src/guestfs-actions.pod:8607
34109 #, no-wrap
34110 msgid ""
34111 " int\n"
34112 " guestfs_zerofree (guestfs_h *g,\n"
34113 "                   const char *device);\n"
34114 "\n"
34115 msgstr ""
34116
34117 #. type: =head2
34118 #: ../src/guestfs-actions.pod:8626
34119 msgid "guestfs_zfgrep"
34120 msgstr ""
34121
34122 #. type: verbatim
34123 #: ../src/guestfs-actions.pod:8628
34124 #, no-wrap
34125 msgid ""
34126 " char **\n"
34127 " guestfs_zfgrep (guestfs_h *g,\n"
34128 "                 const char *pattern,\n"
34129 "                 const char *path);\n"
34130 "\n"
34131 msgstr ""
34132
34133 #. type: =head2
34134 #: ../src/guestfs-actions.pod:8645
34135 msgid "guestfs_zfgrepi"
34136 msgstr ""
34137
34138 #. type: verbatim
34139 #: ../src/guestfs-actions.pod:8647
34140 #, no-wrap
34141 msgid ""
34142 " char **\n"
34143 " guestfs_zfgrepi (guestfs_h *g,\n"
34144 "                  const char *pattern,\n"
34145 "                  const char *path);\n"
34146 "\n"
34147 msgstr ""
34148
34149 #. type: =head2
34150 #: ../src/guestfs-actions.pod:8664
34151 msgid "guestfs_zfile"
34152 msgstr ""
34153
34154 #. type: verbatim
34155 #: ../src/guestfs-actions.pod:8666
34156 #, no-wrap
34157 msgid ""
34158 " char *\n"
34159 " guestfs_zfile (guestfs_h *g,\n"
34160 "                const char *meth,\n"
34161 "                const char *path);\n"
34162 "\n"
34163 msgstr ""
34164
34165 #. type: textblock
34166 #: ../src/guestfs-actions.pod:8671
34167 msgid ""
34168 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34169 "instead."
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs-actions.pod:8683
34174 msgid ""
34175 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34176 "files."
34177 msgstr ""
34178
34179 #. type: =head2
34180 #: ../src/guestfs-actions.pod:8691
34181 msgid "guestfs_zgrep"
34182 msgstr ""
34183
34184 #. type: verbatim
34185 #: ../src/guestfs-actions.pod:8693
34186 #, no-wrap
34187 msgid ""
34188 " char **\n"
34189 " guestfs_zgrep (guestfs_h *g,\n"
34190 "                const char *regex,\n"
34191 "                const char *path);\n"
34192 "\n"
34193 msgstr ""
34194
34195 #. type: =head2
34196 #: ../src/guestfs-actions.pod:8710
34197 msgid "guestfs_zgrepi"
34198 msgstr ""
34199
34200 #. type: verbatim
34201 #: ../src/guestfs-actions.pod:8712
34202 #, no-wrap
34203 msgid ""
34204 " char **\n"
34205 " guestfs_zgrepi (guestfs_h *g,\n"
34206 "                 const char *regex,\n"
34207 "                 const char *path);\n"
34208 "\n"
34209 msgstr ""
34210
34211 #. type: =item
34212 #: ../src/guestfs-availability.pod:3
34213 msgid "B<augeas>"
34214 msgstr ""
34215
34216 #. type: textblock
34217 #: ../src/guestfs-availability.pod:5
34218 msgid ""
34219 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
34220 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
34221 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
34222 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
34223 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
34224 msgstr ""
34225
34226 #. type: =item
34227 #: ../src/guestfs-availability.pod:21
34228 msgid "B<btrfs>"
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs-availability.pod:23
34233 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34234 msgstr ""
34235
34236 #. type: =item
34237 #: ../src/guestfs-availability.pod:26
34238 msgid "B<grub>"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs-availability.pod:28
34243 msgid "The following functions: L</guestfs_grub_install>"
34244 msgstr ""
34245
34246 #. type: =item
34247 #: ../src/guestfs-availability.pod:31
34248 msgid "B<inotify>"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs-availability.pod:33
34253 msgid ""
34254 "The following functions: L</guestfs_inotify_add_watch> "
34255 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
34256 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34257 msgstr ""
34258
34259 #. type: =item
34260 #: ../src/guestfs-availability.pod:41
34261 msgid "B<linuxfsuuid>"
34262 msgstr ""
34263
34264 #. type: textblock
34265 #: ../src/guestfs-availability.pod:43
34266 msgid ""
34267 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
34268 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34269 msgstr ""
34270
34271 #. type: =item
34272 #: ../src/guestfs-availability.pod:50
34273 msgid "B<linuxmodules>"
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs-availability.pod:52
34278 msgid "The following functions: L</guestfs_modprobe>"
34279 msgstr ""
34280
34281 #. type: =item
34282 #: ../src/guestfs-availability.pod:55
34283 msgid "B<linuxxattrs>"
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs-availability.pod:57
34288 msgid ""
34289 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
34290 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
34291 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
34292 "L</guestfs_setxattr>"
34293 msgstr ""
34294
34295 #. type: =item
34296 #: ../src/guestfs-availability.pod:68
34297 msgid "B<luks>"
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs-availability.pod:70
34302 msgid ""
34303 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
34304 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
34305 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34306 msgstr ""
34307
34308 #. type: =item
34309 #: ../src/guestfs-availability.pod:79
34310 msgid "B<lvm2>"
34311 msgstr ""
34312
34313 #. type: textblock
34314 #: ../src/guestfs-availability.pod:81
34315 msgid ""
34316 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
34317 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
34318 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
34319 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
34320 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
34321 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
34322 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
34323 "L</guestfs_vgs_full>"
34324 msgstr ""
34325
34326 #. type: =item
34327 #: ../src/guestfs-availability.pod:104
34328 msgid "B<mdadm>"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs-availability.pod:106
34333 msgid ""
34334 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> "
34335 "L</guestfs_md_stop>"
34336 msgstr ""
34337
34338 #. type: =item
34339 #: ../src/guestfs-availability.pod:111
34340 msgid "B<mknod>"
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs-availability.pod:113
34345 msgid ""
34346 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
34347 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
34348 msgstr ""
34349
34350 #. type: =item
34351 #: ../src/guestfs-availability.pod:119
34352 msgid "B<ntfs3g>"
34353 msgstr ""
34354
34355 #. type: textblock
34356 #: ../src/guestfs-availability.pod:121
34357 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34358 msgstr ""
34359
34360 #. type: =item
34361 #: ../src/guestfs-availability.pod:124
34362 msgid "B<ntfsprogs>"
34363 msgstr ""
34364
34365 #. type: textblock
34366 #: ../src/guestfs-availability.pod:126
34367 msgid ""
34368 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34369 "L</guestfs_ntfsresize_size>"
34370 msgstr ""
34371
34372 #. type: =item
34373 #: ../src/guestfs-availability.pod:131
34374 msgid "B<realpath>"
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs-availability.pod:133
34379 msgid "The following functions: L</guestfs_realpath>"
34380 msgstr ""
34381
34382 #. type: =item
34383 #: ../src/guestfs-availability.pod:136
34384 msgid "B<scrub>"
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs-availability.pod:138
34389 msgid ""
34390 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
34391 "L</guestfs_scrub_freespace>"
34392 msgstr ""
34393
34394 #. type: =item
34395 #: ../src/guestfs-availability.pod:143
34396 msgid "B<selinux>"
34397 msgstr ""
34398
34399 #. type: textblock
34400 #: ../src/guestfs-availability.pod:145
34401 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34402 msgstr ""
34403
34404 #. type: =item
34405 #: ../src/guestfs-availability.pod:149
34406 msgid "B<xz>"
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs-availability.pod:151
34411 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34412 msgstr ""
34413
34414 #. type: =item
34415 #: ../src/guestfs-availability.pod:155
34416 msgid "B<zerofree>"
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../src/guestfs-availability.pod:157
34421 msgid "The following functions: L</guestfs_zerofree>"
34422 msgstr ""
34423
34424 #. type: =head2
34425 #: ../src/guestfs-structs.pod:1
34426 msgid "guestfs_int_bool"
34427 msgstr ""
34428
34429 #. type: verbatim
34430 #: ../src/guestfs-structs.pod:3
34431 #, no-wrap
34432 msgid ""
34433 " struct guestfs_int_bool {\n"
34434 "   int32_t i;\n"
34435 "   int32_t b;\n"
34436 " };\n"
34437 " \n"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs-structs.pod:8
34442 #, no-wrap
34443 msgid ""
34444 " struct guestfs_int_bool_list {\n"
34445 "   uint32_t len; /* Number of elements in list. */\n"
34446 "   struct guestfs_int_bool *val; /* Elements. */\n"
34447 " };\n"
34448 " \n"
34449 msgstr ""
34450
34451 #. type: verbatim
34452 #: ../src/guestfs-structs.pod:13
34453 #, no-wrap
34454 msgid ""
34455 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34456 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34457 "\n"
34458 msgstr ""
34459
34460 #. type: =head2
34461 #: ../src/guestfs-structs.pod:16
34462 msgid "guestfs_lvm_pv"
34463 msgstr ""
34464
34465 #. type: verbatim
34466 #: ../src/guestfs-structs.pod:18
34467 #, no-wrap
34468 msgid ""
34469 " struct guestfs_lvm_pv {\n"
34470 "   char *pv_name;\n"
34471 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34472 "*/\n"
34473 "   char pv_uuid[32];\n"
34474 "   char *pv_fmt;\n"
34475 "   uint64_t pv_size;\n"
34476 "   uint64_t dev_size;\n"
34477 "   uint64_t pv_free;\n"
34478 "   uint64_t pv_used;\n"
34479 "   char *pv_attr;\n"
34480 "   int64_t pv_pe_count;\n"
34481 "   int64_t pv_pe_alloc_count;\n"
34482 "   char *pv_tags;\n"
34483 "   uint64_t pe_start;\n"
34484 "   int64_t pv_mda_count;\n"
34485 "   uint64_t pv_mda_free;\n"
34486 " };\n"
34487 " \n"
34488 msgstr ""
34489
34490 #. type: verbatim
34491 #: ../src/guestfs-structs.pod:36
34492 #, no-wrap
34493 msgid ""
34494 " struct guestfs_lvm_pv_list {\n"
34495 "   uint32_t len; /* Number of elements in list. */\n"
34496 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34497 " };\n"
34498 " \n"
34499 msgstr ""
34500
34501 #. type: verbatim
34502 #: ../src/guestfs-structs.pod:41
34503 #, no-wrap
34504 msgid ""
34505 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34506 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34507 "\n"
34508 msgstr ""
34509
34510 #. type: =head2
34511 #: ../src/guestfs-structs.pod:44
34512 msgid "guestfs_lvm_vg"
34513 msgstr ""
34514
34515 #. type: verbatim
34516 #: ../src/guestfs-structs.pod:46
34517 #, no-wrap
34518 msgid ""
34519 " struct guestfs_lvm_vg {\n"
34520 "   char *vg_name;\n"
34521 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34522 "*/\n"
34523 "   char vg_uuid[32];\n"
34524 "   char *vg_fmt;\n"
34525 "   char *vg_attr;\n"
34526 "   uint64_t vg_size;\n"
34527 "   uint64_t vg_free;\n"
34528 "   char *vg_sysid;\n"
34529 "   uint64_t vg_extent_size;\n"
34530 "   int64_t vg_extent_count;\n"
34531 "   int64_t vg_free_count;\n"
34532 "   int64_t max_lv;\n"
34533 "   int64_t max_pv;\n"
34534 "   int64_t pv_count;\n"
34535 "   int64_t lv_count;\n"
34536 "   int64_t snap_count;\n"
34537 "   int64_t vg_seqno;\n"
34538 "   char *vg_tags;\n"
34539 "   int64_t vg_mda_count;\n"
34540 "   uint64_t vg_mda_free;\n"
34541 " };\n"
34542 " \n"
34543 msgstr ""
34544
34545 #. type: verbatim
34546 #: ../src/guestfs-structs.pod:69
34547 #, no-wrap
34548 msgid ""
34549 " struct guestfs_lvm_vg_list {\n"
34550 "   uint32_t len; /* Number of elements in list. */\n"
34551 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34552 " };\n"
34553 " \n"
34554 msgstr ""
34555
34556 #. type: verbatim
34557 #: ../src/guestfs-structs.pod:74
34558 #, no-wrap
34559 msgid ""
34560 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34561 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34562 "\n"
34563 msgstr ""
34564
34565 #. type: =head2
34566 #: ../src/guestfs-structs.pod:77
34567 msgid "guestfs_lvm_lv"
34568 msgstr ""
34569
34570 #. type: verbatim
34571 #: ../src/guestfs-structs.pod:79
34572 #, no-wrap
34573 msgid ""
34574 " struct guestfs_lvm_lv {\n"
34575 "   char *lv_name;\n"
34576 "   /* The next field is NOT nul-terminated, be careful when printing it: "
34577 "*/\n"
34578 "   char lv_uuid[32];\n"
34579 "   char *lv_attr;\n"
34580 "   int64_t lv_major;\n"
34581 "   int64_t lv_minor;\n"
34582 "   int64_t lv_kernel_major;\n"
34583 "   int64_t lv_kernel_minor;\n"
34584 "   uint64_t lv_size;\n"
34585 "   int64_t seg_count;\n"
34586 "   char *origin;\n"
34587 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34588 "   float snap_percent;\n"
34589 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34590 "   float copy_percent;\n"
34591 "   char *move_pv;\n"
34592 "   char *lv_tags;\n"
34593 "   char *mirror_log;\n"
34594 "   char *modules;\n"
34595 " };\n"
34596 " \n"
34597 msgstr ""
34598
34599 #. type: verbatim
34600 #: ../src/guestfs-structs.pod:101
34601 #, no-wrap
34602 msgid ""
34603 " struct guestfs_lvm_lv_list {\n"
34604 "   uint32_t len; /* Number of elements in list. */\n"
34605 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34606 " };\n"
34607 " \n"
34608 msgstr ""
34609
34610 #. type: verbatim
34611 #: ../src/guestfs-structs.pod:106
34612 #, no-wrap
34613 msgid ""
34614 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34615 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34616 "\n"
34617 msgstr ""
34618
34619 #. type: verbatim
34620 #: ../src/guestfs-structs.pod:111
34621 #, no-wrap
34622 msgid ""
34623 " struct guestfs_stat {\n"
34624 "   int64_t dev;\n"
34625 "   int64_t ino;\n"
34626 "   int64_t mode;\n"
34627 "   int64_t nlink;\n"
34628 "   int64_t uid;\n"
34629 "   int64_t gid;\n"
34630 "   int64_t rdev;\n"
34631 "   int64_t size;\n"
34632 "   int64_t blksize;\n"
34633 "   int64_t blocks;\n"
34634 "   int64_t atime;\n"
34635 "   int64_t mtime;\n"
34636 "   int64_t ctime;\n"
34637 " };\n"
34638 " \n"
34639 msgstr ""
34640
34641 #. type: verbatim
34642 #: ../src/guestfs-structs.pod:127
34643 #, no-wrap
34644 msgid ""
34645 " struct guestfs_stat_list {\n"
34646 "   uint32_t len; /* Number of elements in list. */\n"
34647 "   struct guestfs_stat *val; /* Elements. */\n"
34648 " };\n"
34649 " \n"
34650 msgstr ""
34651
34652 #. type: verbatim
34653 #: ../src/guestfs-structs.pod:132
34654 #, no-wrap
34655 msgid ""
34656 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34657 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34658 "\n"
34659 msgstr ""
34660
34661 #. type: verbatim
34662 #: ../src/guestfs-structs.pod:137
34663 #, no-wrap
34664 msgid ""
34665 " struct guestfs_statvfs {\n"
34666 "   int64_t bsize;\n"
34667 "   int64_t frsize;\n"
34668 "   int64_t blocks;\n"
34669 "   int64_t bfree;\n"
34670 "   int64_t bavail;\n"
34671 "   int64_t files;\n"
34672 "   int64_t ffree;\n"
34673 "   int64_t favail;\n"
34674 "   int64_t fsid;\n"
34675 "   int64_t flag;\n"
34676 "   int64_t namemax;\n"
34677 " };\n"
34678 " \n"
34679 msgstr ""
34680
34681 #. type: verbatim
34682 #: ../src/guestfs-structs.pod:151
34683 #, no-wrap
34684 msgid ""
34685 " struct guestfs_statvfs_list {\n"
34686 "   uint32_t len; /* Number of elements in list. */\n"
34687 "   struct guestfs_statvfs *val; /* Elements. */\n"
34688 " };\n"
34689 " \n"
34690 msgstr ""
34691
34692 #. type: verbatim
34693 #: ../src/guestfs-structs.pod:156
34694 #, no-wrap
34695 msgid ""
34696 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34697 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34698 "\n"
34699 msgstr ""
34700
34701 #. type: =head2
34702 #: ../src/guestfs-structs.pod:159
34703 msgid "guestfs_dirent"
34704 msgstr ""
34705
34706 #. type: verbatim
34707 #: ../src/guestfs-structs.pod:161
34708 #, no-wrap
34709 msgid ""
34710 " struct guestfs_dirent {\n"
34711 "   int64_t ino;\n"
34712 "   char ftyp;\n"
34713 "   char *name;\n"
34714 " };\n"
34715 " \n"
34716 msgstr ""
34717
34718 #. type: verbatim
34719 #: ../src/guestfs-structs.pod:167
34720 #, no-wrap
34721 msgid ""
34722 " struct guestfs_dirent_list {\n"
34723 "   uint32_t len; /* Number of elements in list. */\n"
34724 "   struct guestfs_dirent *val; /* Elements. */\n"
34725 " };\n"
34726 " \n"
34727 msgstr ""
34728
34729 #. type: verbatim
34730 #: ../src/guestfs-structs.pod:172
34731 #, no-wrap
34732 msgid ""
34733 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34734 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34735 "\n"
34736 msgstr ""
34737
34738 #. type: verbatim
34739 #: ../src/guestfs-structs.pod:177
34740 #, no-wrap
34741 msgid ""
34742 " struct guestfs_version {\n"
34743 "   int64_t major;\n"
34744 "   int64_t minor;\n"
34745 "   int64_t release;\n"
34746 "   char *extra;\n"
34747 " };\n"
34748 " \n"
34749 msgstr ""
34750
34751 #. type: verbatim
34752 #: ../src/guestfs-structs.pod:184
34753 #, no-wrap
34754 msgid ""
34755 " struct guestfs_version_list {\n"
34756 "   uint32_t len; /* Number of elements in list. */\n"
34757 "   struct guestfs_version *val; /* Elements. */\n"
34758 " };\n"
34759 " \n"
34760 msgstr ""
34761
34762 #. type: verbatim
34763 #: ../src/guestfs-structs.pod:189
34764 #, no-wrap
34765 msgid ""
34766 " void guestfs_free_version (struct guestfs_free_version *);\n"
34767 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34768 "\n"
34769 msgstr ""
34770
34771 #. type: =head2
34772 #: ../src/guestfs-structs.pod:192
34773 msgid "guestfs_xattr"
34774 msgstr ""
34775
34776 #. type: verbatim
34777 #: ../src/guestfs-structs.pod:194
34778 #, no-wrap
34779 msgid ""
34780 " struct guestfs_xattr {\n"
34781 "   char *attrname;\n"
34782 "   /* The next two fields describe a byte array. */\n"
34783 "   uint32_t attrval_len;\n"
34784 "   char *attrval;\n"
34785 " };\n"
34786 " \n"
34787 msgstr ""
34788
34789 #. type: verbatim
34790 #: ../src/guestfs-structs.pod:201
34791 #, no-wrap
34792 msgid ""
34793 " struct guestfs_xattr_list {\n"
34794 "   uint32_t len; /* Number of elements in list. */\n"
34795 "   struct guestfs_xattr *val; /* Elements. */\n"
34796 " };\n"
34797 " \n"
34798 msgstr ""
34799
34800 #. type: verbatim
34801 #: ../src/guestfs-structs.pod:206
34802 #, no-wrap
34803 msgid ""
34804 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34805 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34806 "\n"
34807 msgstr ""
34808
34809 #. type: =head2
34810 #: ../src/guestfs-structs.pod:209
34811 msgid "guestfs_inotify_event"
34812 msgstr ""
34813
34814 #. type: verbatim
34815 #: ../src/guestfs-structs.pod:211
34816 #, no-wrap
34817 msgid ""
34818 " struct guestfs_inotify_event {\n"
34819 "   int64_t in_wd;\n"
34820 "   uint32_t in_mask;\n"
34821 "   uint32_t in_cookie;\n"
34822 "   char *in_name;\n"
34823 " };\n"
34824 " \n"
34825 msgstr ""
34826
34827 #. type: verbatim
34828 #: ../src/guestfs-structs.pod:218
34829 #, no-wrap
34830 msgid ""
34831 " struct guestfs_inotify_event_list {\n"
34832 "   uint32_t len; /* Number of elements in list. */\n"
34833 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34834 " };\n"
34835 " \n"
34836 msgstr ""
34837
34838 #. type: verbatim
34839 #: ../src/guestfs-structs.pod:223
34840 #, no-wrap
34841 msgid ""
34842 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34843 " void guestfs_free_inotify_event_list (struct "
34844 "guestfs_free_inotify_event_list *);\n"
34845 "\n"
34846 msgstr ""
34847
34848 #. type: =head2
34849 #: ../src/guestfs-structs.pod:226
34850 msgid "guestfs_partition"
34851 msgstr ""
34852
34853 #. type: verbatim
34854 #: ../src/guestfs-structs.pod:228
34855 #, no-wrap
34856 msgid ""
34857 " struct guestfs_partition {\n"
34858 "   int32_t part_num;\n"
34859 "   uint64_t part_start;\n"
34860 "   uint64_t part_end;\n"
34861 "   uint64_t part_size;\n"
34862 " };\n"
34863 " \n"
34864 msgstr ""
34865
34866 #. type: verbatim
34867 #: ../src/guestfs-structs.pod:235
34868 #, no-wrap
34869 msgid ""
34870 " struct guestfs_partition_list {\n"
34871 "   uint32_t len; /* Number of elements in list. */\n"
34872 "   struct guestfs_partition *val; /* Elements. */\n"
34873 " };\n"
34874 " \n"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs-structs.pod:240
34879 #, no-wrap
34880 msgid ""
34881 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34882 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34883 "\n"
34884 msgstr ""
34885
34886 #. type: =head2
34887 #: ../src/guestfs-structs.pod:243
34888 msgid "guestfs_application"
34889 msgstr ""
34890
34891 #. type: verbatim
34892 #: ../src/guestfs-structs.pod:245
34893 #, no-wrap
34894 msgid ""
34895 " struct guestfs_application {\n"
34896 "   char *app_name;\n"
34897 "   char *app_display_name;\n"
34898 "   int32_t app_epoch;\n"
34899 "   char *app_version;\n"
34900 "   char *app_release;\n"
34901 "   char *app_install_path;\n"
34902 "   char *app_trans_path;\n"
34903 "   char *app_publisher;\n"
34904 "   char *app_url;\n"
34905 "   char *app_source_package;\n"
34906 "   char *app_summary;\n"
34907 "   char *app_description;\n"
34908 " };\n"
34909 " \n"
34910 msgstr ""
34911
34912 #. type: verbatim
34913 #: ../src/guestfs-structs.pod:260
34914 #, no-wrap
34915 msgid ""
34916 " struct guestfs_application_list {\n"
34917 "   uint32_t len; /* Number of elements in list. */\n"
34918 "   struct guestfs_application *val; /* Elements. */\n"
34919 " };\n"
34920 " \n"
34921 msgstr ""
34922
34923 #. type: verbatim
34924 #: ../src/guestfs-structs.pod:265
34925 #, no-wrap
34926 msgid ""
34927 " void guestfs_free_application (struct guestfs_free_application *);\n"
34928 " void guestfs_free_application_list (struct guestfs_free_application_list "
34929 "*);\n"
34930 "\n"
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:5
34935 msgid "guestfs - Library for accessing and modifying virtual machine images"
34936 msgstr ""
34937
34938 #. type: verbatim
34939 #: ../src/guestfs.pod:11
34940 #, no-wrap
34941 msgid ""
34942 " guestfs_h *g = guestfs_create ();\n"
34943 " guestfs_add_drive (g, \"guest.img\");\n"
34944 " guestfs_launch (g);\n"
34945 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34946 " guestfs_touch (g, \"/hello\");\n"
34947 " guestfs_umount (g, \"/\");\n"
34948 " guestfs_close (g);\n"
34949 "\n"
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:25
34954 msgid ""
34955 "Libguestfs is a library for accessing and modifying guest disk images.  "
34956 "Amongst the things this is good for: making batch configuration changes to "
34957 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34958 "between virtualization systems (see also: virt-p2v), performing partial "
34959 "backups, performing partial guest clones, cloning guests and changing "
34960 "registry/UUID/hostname info, and much else besides."
34961 msgstr ""
34962
34963 #. type: textblock
34964 #: ../src/guestfs.pod:33
34965 msgid ""
34966 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34967 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34968 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34969 "qcow2, vmdk."
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:38
34974 msgid ""
34975 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34976 "what filesystem is in each LV, etc.).  It can also run commands in the "
34977 "context of the guest.  Also you can access filesystems over FUSE."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:43
34982 msgid ""
34983 "Libguestfs is a library that can be linked with C and C++ management "
34984 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34985 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34986 "command line."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:48
34991 msgid ""
34992 "You don't need to be root to use libguestfs, although obviously you do need "
34993 "enough permissions to access the disk images."
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:51
34998 msgid ""
34999 "Libguestfs is a large API because it can do many things.  For a gentle "
35000 "introduction, please read the L</API OVERVIEW> section next."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:54
35005 msgid ""
35006 "There are also some example programs in the L<guestfs-examples(3)> manual "
35007 "page."
35008 msgstr ""
35009
35010 #. type: =head1
35011 #: ../src/guestfs.pod:57
35012 msgid "API OVERVIEW"
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:59
35017 msgid ""
35018 "This section provides a gentler overview of the libguestfs API.  We also try "
35019 "to group API calls together, where that may not be obvious from reading "
35020 "about the individual calls in the main section of this manual."
35021 msgstr ""
35022
35023 #. type: =head2
35024 #: ../src/guestfs.pod:64
35025 msgid "HANDLES"
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs.pod:66
35030 msgid ""
35031 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35032 "must add at least one disk image to the handle, followed by launching the "
35033 "handle, then performing whatever operations you want, and finally closing "
35034 "the handle.  By convention we use the single letter C<g> for the name of the "
35035 "handle variable, although of course you can use any name you want."
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:73
35040 msgid "The general structure of all libguestfs-using programs looks like this:"
35041 msgstr ""
35042
35043 #. type: verbatim
35044 #: ../src/guestfs.pod:76
35045 #, no-wrap
35046 msgid ""
35047 " guestfs_h *g = guestfs_create ();\n"
35048 " \n"
35049 msgstr ""
35050
35051 #. type: verbatim
35052 #: ../src/guestfs.pod:78
35053 #, no-wrap
35054 msgid ""
35055 " /* Call guestfs_add_drive additional times if there are\n"
35056 "  * multiple disk images.\n"
35057 "  */\n"
35058 " guestfs_add_drive (g, \"guest.img\");\n"
35059 " \n"
35060 msgstr ""
35061
35062 #. type: verbatim
35063 #: ../src/guestfs.pod:83
35064 #, no-wrap
35065 msgid ""
35066 " /* Most manipulation calls won't work until you've launched\n"
35067 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35068 "  * and _before_ other commands.\n"
35069 "  */\n"
35070 " guestfs_launch (g);\n"
35071 " \n"
35072 msgstr ""
35073
35074 #. type: verbatim
35075 #: ../src/guestfs.pod:89
35076 #, no-wrap
35077 msgid ""
35078 " /* Now you can examine what partitions, LVs etc are available.\n"
35079 "  */\n"
35080 " char **partitions = guestfs_list_partitions (g);\n"
35081 " char **logvols = guestfs_lvs (g);\n"
35082 " \n"
35083 msgstr ""
35084
35085 #. type: verbatim
35086 #: ../src/guestfs.pod:94
35087 #, no-wrap
35088 msgid ""
35089 " /* To access a filesystem in the image, you must mount it.\n"
35090 "  */\n"
35091 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35092 " \n"
35093 msgstr ""
35094
35095 #. type: verbatim
35096 #: ../src/guestfs.pod:98
35097 #, no-wrap
35098 msgid ""
35099 " /* Now you can perform filesystem actions on the guest\n"
35100 "  * disk image.\n"
35101 "  */\n"
35102 " guestfs_touch (g, \"/hello\");\n"
35103 " \n"
35104 msgstr ""
35105
35106 #. type: verbatim
35107 #: ../src/guestfs.pod:103
35108 #, no-wrap
35109 msgid ""
35110 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35111 "  * it is done automatically when you close the handle.  See\n"
35112 "  * discussion of autosync in this page.\n"
35113 "  */\n"
35114 " guestfs_sync (g);\n"
35115 " \n"
35116 msgstr ""
35117
35118 #. type: verbatim
35119 #: ../src/guestfs.pod:109
35120 #, no-wrap
35121 msgid ""
35122 " /* Close the handle 'g'. */\n"
35123 " guestfs_close (g);\n"
35124 "\n"
35125 msgstr ""
35126
35127 #. type: textblock
35128 #: ../src/guestfs.pod:112
35129 msgid ""
35130 "The code above doesn't include any error checking.  In real code you should "
35131 "check return values carefully for errors.  In general all functions that "
35132 "return integers return C<-1> on error, and all functions that return "
35133 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35134 "how to handle errors, and consult the documentation for each function call "
35135 "below to see precisely how they return error indications.  See "
35136 "L<guestfs-examples(3)> for fully worked examples."
35137 msgstr ""
35138
35139 #. type: =head2
35140 #: ../src/guestfs.pod:121
35141 msgid "DISK IMAGES"
35142 msgstr ""
35143
35144 #. type: textblock
35145 #: ../src/guestfs.pod:123
35146 msgid ""
35147 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35148 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35149 "actual block device, or simply an empty file of zeroes that you have created "
35150 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35151 "of these."
35152 msgstr ""
35153
35154 #. type: textblock
35155 #: ../src/guestfs.pod:129
35156 msgid ""
35157 "The call you should use in modern code for adding drives is "
35158 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35159 "specifying that the format is raw, do:"
35160 msgstr ""
35161
35162 #. type: verbatim
35163 #: ../src/guestfs.pod:133
35164 #, no-wrap
35165 msgid ""
35166 " guestfs_add_drive_opts (g, filename,\n"
35167 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35168 "                         -1);\n"
35169 "\n"
35170 msgstr ""
35171
35172 #. type: textblock
35173 #: ../src/guestfs.pod:137
35174 msgid "You can add a disk read-only using:"
35175 msgstr ""
35176
35177 #. type: verbatim
35178 #: ../src/guestfs.pod:139
35179 #, no-wrap
35180 msgid ""
35181 " guestfs_add_drive_opts (g, filename,\n"
35182 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35183 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35184 "                         -1);\n"
35185 "\n"
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:144
35190 msgid ""
35191 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35192 "libguestfs won't modify the file."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:147
35197 msgid ""
35198 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35199 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35200 "corruption, but adding it read-only is safe."
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs.pod:151
35205 msgid ""
35206 "You must add at least one disk image, and you may add multiple disk images.  "
35207 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35208 "first one you added), C</dev/sdb> (for the second one you added), etc."
35209 msgstr ""
35210
35211 #. type: textblock
35212 #: ../src/guestfs.pod:156
35213 msgid ""
35214 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35215 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35216 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35217 msgstr ""
35218
35219 #. type: =head2
35220 #: ../src/guestfs.pod:161
35221 msgid "MOUNTING"
35222 msgstr ""
35223
35224 #. type: textblock
35225 #: ../src/guestfs.pod:163
35226 msgid ""
35227 "Before you can read or write files, create directories and so on in a disk "
35228 "image that contains filesystems, you have to mount those filesystems using "
35229 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35230 "a disk image contains (for example) one partition with a filesystem on that "
35231 "partition, then you can mount it directly:"
35232 msgstr ""
35233
35234 #. type: verbatim
35235 #: ../src/guestfs.pod:170
35236 #, no-wrap
35237 msgid ""
35238 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35239 "\n"
35240 msgstr ""
35241
35242 #. type: textblock
35243 #: ../src/guestfs.pod:172
35244 msgid ""
35245 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35246 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35247 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35248 "that these are libguestfs virtual devices, and are nothing to do with host "
35249 "devices."
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:178
35254 msgid ""
35255 "If you are given a disk image and you don't know what it contains then you "
35256 "have to find out.  Libguestfs can do that too: use "
35257 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
35258 "and LVs, and either try mounting each to see what is mountable, or else "
35259 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35260 "filesystems, use L</guestfs_list_filesystems>."
35261 msgstr ""
35262
35263 #. type: textblock
35264 #: ../src/guestfs.pod:186
35265 msgid ""
35266 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35267 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35268 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs.pod:191
35273 msgid ""
35274 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35275 "several other variations of the C<guestfs_mount_*> call."
35276 msgstr ""
35277
35278 #. type: =head2
35279 #: ../src/guestfs.pod:194
35280 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:196
35285 msgid ""
35286 "The majority of the libguestfs API consists of fairly low-level calls for "
35287 "accessing and modifying the files, directories, symlinks etc on mounted "
35288 "filesystems.  There are over a hundred such calls which you can find listed "
35289 "in detail below in this man page, and we don't even pretend to cover them "
35290 "all in this overview."
35291 msgstr ""
35292
35293 #. type: textblock
35294 #: ../src/guestfs.pod:202
35295 msgid ""
35296 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35297 "mount point."
35298 msgstr ""
35299
35300 #. type: textblock
35301 #: ../src/guestfs.pod:205
35302 msgid ""
35303 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35304 "the file called C<\"etc/passwd\"> then you could do:"
35305 msgstr ""
35306
35307 #. type: verbatim
35308 #: ../src/guestfs.pod:208
35309 #, no-wrap
35310 msgid ""
35311 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35312 "\n"
35313 msgstr ""
35314
35315 #. type: textblock
35316 #: ../src/guestfs.pod:210
35317 msgid ""
35318 "This would return C<data> as a newly allocated buffer containing the full "
35319 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35320 "or C<NULL> if there was an error."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:214
35325 msgid ""
35326 "As another example, to create a top-level directory on that filesystem "
35327 "called C<\"var\"> you would do:"
35328 msgstr ""
35329
35330 #. type: verbatim
35331 #: ../src/guestfs.pod:217
35332 #, no-wrap
35333 msgid ""
35334 " guestfs_mkdir (g, \"/var\");\n"
35335 "\n"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:219
35340 msgid "To create a symlink you could do:"
35341 msgstr ""
35342
35343 #. type: verbatim
35344 #: ../src/guestfs.pod:221
35345 #, no-wrap
35346 msgid ""
35347 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35348 "               \"/etc/rc3.d/S30portmap\");\n"
35349 "\n"
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:224
35354 msgid ""
35355 "Libguestfs will reject attempts to use relative paths and there is no "
35356 "concept of a current working directory."
35357 msgstr ""
35358
35359 #. type: textblock
35360 #: ../src/guestfs.pod:227
35361 msgid ""
35362 "Libguestfs can return errors in many situations: for example if the "
35363 "filesystem isn't writable, or if a file or directory that you requested "
35364 "doesn't exist.  If you are using the C API (documented here)  you have to "
35365 "check for those error conditions after each call.  (Other language bindings "
35366 "turn these errors into exceptions)."
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:233
35371 msgid ""
35372 "File writes are affected by the per-handle umask, set by calling "
35373 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
35374 msgstr ""
35375
35376 #. type: =head2
35377 #: ../src/guestfs.pod:236
35378 msgid "PARTITIONING"
35379 msgstr ""
35380
35381 #. type: textblock
35382 #: ../src/guestfs.pod:238
35383 msgid ""
35384 "Libguestfs contains API calls to read, create and modify partition tables on "
35385 "disk images."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:241
35390 msgid ""
35391 "In the common case where you want to create a single partition covering the "
35392 "whole disk, you should use the L</guestfs_part_disk> call:"
35393 msgstr ""
35394
35395 #. type: verbatim
35396 #: ../src/guestfs.pod:245
35397 #, no-wrap
35398 msgid ""
35399 " const char *parttype = \"mbr\";\n"
35400 " if (disk_is_larger_than_2TB)\n"
35401 "   parttype = \"gpt\";\n"
35402 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35403 "\n"
35404 msgstr ""
35405
35406 #. type: textblock
35407 #: ../src/guestfs.pod:250
35408 msgid ""
35409 "Obviously this effectively wipes anything that was on that disk image "
35410 "before."
35411 msgstr ""
35412
35413 #. type: =head2
35414 #: ../src/guestfs.pod:253
35415 msgid "LVM2"
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:255
35420 msgid ""
35421 "Libguestfs provides access to a large part of the LVM2 API, such as "
35422 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
35423 "unless you familiarize yourself with the concepts of physical volumes, "
35424 "volume groups and logical volumes."
35425 msgstr ""
35426
35427 #. type: textblock
35428 #: ../src/guestfs.pod:260
35429 msgid ""
35430 "This author strongly recommends reading the LVM HOWTO, online at "
35431 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
35432 msgstr ""
35433
35434 #. type: =head2
35435 #: ../src/guestfs.pod:263
35436 msgid "DOWNLOADING"
35437 msgstr ""
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:265
35441 msgid ""
35442 "Use L</guestfs_cat> to download small, text only files.  This call is "
35443 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35444 "NUL (C<\\0>) characters.  However the API is very simple to use."
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:269
35449 msgid ""
35450 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35451 "bit data, since it returns a (pointer, size) pair.  However it is still "
35452 "limited to \"small\" files, less than 2 MB."
35453 msgstr ""
35454
35455 #. type: textblock
35456 #: ../src/guestfs.pod:273
35457 msgid ""
35458 "L</guestfs_download> can be used to download any file, with no limits on "
35459 "content or size (even files larger than 4 GB)."
35460 msgstr ""
35461
35462 #. type: textblock
35463 #: ../src/guestfs.pod:276
35464 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35465 msgstr ""
35466
35467 #. type: =head2
35468 #: ../src/guestfs.pod:279
35469 msgid "UPLOADING"
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:281
35474 msgid ""
35475 "It's often the case that you want to write a file or files to the disk "
35476 "image."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:284
35481 msgid ""
35482 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35483 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
35484 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
35485 "variety of other functions for creating test files, for example "
35486 "L</guestfs_fill> and L</guestfs_fill_pattern>."
35487 msgstr ""
35488
35489 #. type: textblock
35490 #: ../src/guestfs.pod:290
35491 msgid ""
35492 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35493 "file content or size (even files larger than 4 GB)."
35494 msgstr ""
35495
35496 #. type: textblock
35497 #: ../src/guestfs.pod:293
35498 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:295
35503 msgid ""
35504 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35505 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
35506 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
35507 "the drive in a predictable way (eg. adding it last after all other drives) "
35508 "then you can get the device name from L</guestfs_list_devices> and mount it "
35509 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
35510 "sometimes non-portable between kernel versions, and they don't support "
35511 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
35512 "using a label or UUID, use an ISO image instead."
35513 msgstr ""
35514
35515 #. type: =head2
35516 #: ../src/guestfs.pod:306
35517 msgid "COPYING"
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:308
35522 msgid ""
35523 "There are various different commands for copying between files and devices "
35524 "and in and out of the guest filesystem.  These are summarised in the table "
35525 "below."
35526 msgstr ""
35527
35528 #. type: =item
35529 #: ../src/guestfs.pod:314
35530 msgid "B<file> to B<file>"
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:316
35535 msgid ""
35536 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35537 "directories recursively."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:319
35542 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35543 msgstr ""
35544
35545 #. type: =item
35546 #: ../src/guestfs.pod:322
35547 msgid "B<file> to B<device>"
35548 msgstr ""
35549
35550 #. type: =item
35551 #: ../src/guestfs.pod:324
35552 msgid "B<device> to B<file>"
35553 msgstr ""
35554
35555 #. type: =item
35556 #: ../src/guestfs.pod:326
35557 msgid "B<device> to B<device>"
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:328
35562 msgid ""
35563 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
35564 "L</guestfs_copy_device_to_device>."
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:331
35569 msgid "Example: duplicate the contents of an LV:"
35570 msgstr ""
35571
35572 #. type: verbatim
35573 #: ../src/guestfs.pod:333
35574 #, no-wrap
35575 msgid ""
35576 " guestfs_copy_device_to_device (g,\n"
35577 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35578 "         /* -1 marks the end of the list of optional parameters */\n"
35579 "         -1);\n"
35580 "\n"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:338
35585 msgid ""
35586 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35587 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35588 "optional C<size> parameter:"
35589 msgstr ""
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:342
35593 #, no-wrap
35594 msgid ""
35595 " guestfs_copy_device_to_device (g,\n"
35596 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35597 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35598 "         -1);\n"
35599 "\n"
35600 msgstr ""
35601
35602 #. type: =item
35603 #: ../src/guestfs.pod:347
35604 msgid "B<file on the host> to B<file or device>"
35605 msgstr ""
35606
35607 #. type: textblock
35608 #: ../src/guestfs.pod:349
35609 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35610 msgstr ""
35611
35612 #. type: =item
35613 #: ../src/guestfs.pod:351
35614 msgid "B<file or device> to B<file on the host>"
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:353
35619 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35620 msgstr ""
35621
35622 #. type: =head2
35623 #: ../src/guestfs.pod:357
35624 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35625 msgstr ""
35626
35627 #. type: textblock
35628 #: ../src/guestfs.pod:359
35629 msgid ""
35630 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
35631 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35632 "appears you can only upload and download to files.  However many Un*x-like "
35633 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
35634 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
35635 "stderr, and arbitrary file descriptor N."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:367
35640 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35641 msgstr ""
35642
35643 #. type: verbatim
35644 #: ../src/guestfs.pod:370
35645 #, no-wrap
35646 msgid ""
35647 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35648 "\n"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:372
35653 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35654 msgstr ""
35655
35656 #. type: verbatim
35657 #: ../src/guestfs.pod:374
35658 #, no-wrap
35659 msgid ""
35660 " char devfd[64];\n"
35661 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35662 " guestfs_tar_out (g, \"/\", devfd);\n"
35663 "\n"
35664 msgstr ""
35665
35666 #. type: =head2
35667 #: ../src/guestfs.pod:378
35668 msgid "LISTING FILES"
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:380
35673 msgid ""
35674 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35675 "L<guestfish(1)>-equivalent command C<ll>)."
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:383
35680 msgid ""
35681 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35682 "programs, as a flat list of strings."
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs.pod:386
35687 msgid ""
35688 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35689 "directory, plus additional information about each one.  It is more "
35690 "equivalent to using the L<readdir(3)> call on a local filesystem."
35691 msgstr ""
35692
35693 #. type: textblock
35694 #: ../src/guestfs.pod:390
35695 msgid ""
35696 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
35697 "files."
35698 msgstr ""
35699
35700 #. type: =head2
35701 #: ../src/guestfs.pod:393
35702 msgid "RUNNING COMMANDS"
35703 msgstr ""
35704
35705 #. type: textblock
35706 #: ../src/guestfs.pod:395
35707 msgid ""
35708 "Although libguestfs is primarily an API for manipulating files inside guest "
35709 "images, we also provide some limited facilities for running commands inside "
35710 "guests."
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:399
35715 msgid "There are many limitations to this:"
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:405
35720 msgid ""
35721 "The kernel version that the command runs under will be different from what "
35722 "it expects."
35723 msgstr ""
35724
35725 #. type: textblock
35726 #: ../src/guestfs.pod:410
35727 msgid ""
35728 "If the command needs to communicate with daemons, then most likely they "
35729 "won't be running."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:415
35734 msgid "The command will be running in limited memory."
35735 msgstr ""
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:419
35739 msgid ""
35740 "The network may not be available unless you enable it (see "
35741 "L</guestfs_set_network>)."
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:424
35746 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:428
35751 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:433
35756 msgid ""
35757 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35758 "See L</SELINUX> in this manpage."
35759 msgstr ""
35760
35761 #. type: textblock
35762 #: ../src/guestfs.pod:438
35763 msgid ""
35764 "I<Security:> It is not safe to run commands from untrusted, possibly "
35765 "malicious guests.  These commands may attempt to exploit your program by "
35766 "sending unexpected output.  They could also try to exploit the Linux kernel "
35767 "or qemu provided by the libguestfs appliance.  They could use the network "
35768 "provided by the libguestfs appliance to bypass ordinary network partitions "
35769 "and firewalls.  They could use the elevated privileges or different SELinux "
35770 "context of your program to their advantage."
35771 msgstr ""
35772
35773 #. type: textblock
35774 #: ../src/guestfs.pod:447
35775 msgid ""
35776 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35777 "(a script which runs when the guest next boots normally), and to have this "
35778 "script run the commands you want in the normal context of the running guest, "
35779 "network security and so on.  For information about other security issues, "
35780 "see L</SECURITY>."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:455
35785 msgid ""
35786 "The two main API calls to run commands are L</guestfs_command> and "
35787 "L</guestfs_sh> (there are also variations)."
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:458
35792 msgid ""
35793 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35794 "shell globs, redirections, etc will work."
35795 msgstr ""
35796
35797 #. type: =head2
35798 #: ../src/guestfs.pod:461
35799 msgid "CONFIGURATION FILES"
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:463
35804 msgid ""
35805 "To read and write configuration files in Linux guest filesystems, we "
35806 "strongly recommend using Augeas.  For example, Augeas understands how to "
35807 "read and write, say, a Linux shadow password file or X.org configuration "
35808 "file, and so avoids you having to write that code."
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:468
35813 msgid ""
35814 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35815 "document Augeas itself here because there is excellent documentation on the "
35816 "L<http://augeas.net/> website."
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../src/guestfs.pod:472
35821 msgid ""
35822 "If you don't want to use Augeas (you fool!) then try calling "
35823 "L</guestfs_read_lines> to get the file as a list of lines which you can "
35824 "iterate over."
35825 msgstr ""
35826
35827 #. type: =head2
35828 #: ../src/guestfs.pod:476
35829 msgid "SELINUX"
35830 msgstr ""
35831
35832 #. type: textblock
35833 #: ../src/guestfs.pod:478
35834 msgid ""
35835 "We support SELinux guests.  To ensure that labeling happens correctly in "
35836 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:486
35841 msgid "Before launching, do:"
35842 msgstr ""
35843
35844 #. type: verbatim
35845 #: ../src/guestfs.pod:488
35846 #, no-wrap
35847 msgid ""
35848 " guestfs_set_selinux (g, 1);\n"
35849 "\n"
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:492
35854 msgid ""
35855 "After mounting the guest's filesystem(s), load the policy.  This is best "
35856 "done by running the L<load_policy(8)> command in the guest itself:"
35857 msgstr ""
35858
35859 #. type: verbatim
35860 #: ../src/guestfs.pod:496
35861 #, no-wrap
35862 msgid ""
35863 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35864 "\n"
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:498
35869 msgid ""
35870 "(Older versions of C<load_policy> require you to specify the name of the "
35871 "policy file)."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:503
35876 msgid ""
35877 "Optionally, set the security context for the API.  The correct security "
35878 "context to use can only be known by inspecting the guest.  As an example:"
35879 msgstr ""
35880
35881 #. type: verbatim
35882 #: ../src/guestfs.pod:507
35883 #, no-wrap
35884 msgid ""
35885 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35886 "\n"
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:511
35891 msgid "This will work for running commands and editing existing files."
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:513
35896 msgid ""
35897 "When new files are created, you may need to label them explicitly, for "
35898 "example by running the external command C<restorecon pathname>."
35899 msgstr ""
35900
35901 #. type: =head2
35902 #: ../src/guestfs.pod:517
35903 msgid "UMASK"
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:519
35908 msgid ""
35909 "Certain calls are affected by the current file mode creation mask (the "
35910 "\"umask\").  In particular ones which create files or directories, such as "
35911 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35912 "either the default mode that the file is created with or modifies the mode "
35913 "that you supply."
35914 msgstr ""
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:525
35918 msgid ""
35919 "The default umask is C<022>, so files are created with modes such as C<0644> "
35920 "and directories with C<0755>."
35921 msgstr ""
35922
35923 #. type: textblock
35924 #: ../src/guestfs.pod:528
35925 msgid ""
35926 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35927 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
35928 "L</guestfs_chmod> after creating each file or directory."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:532
35933 msgid "For more information about umask, see L<umask(2)>."
35934 msgstr ""
35935
35936 #. type: textblock
35937 #: ../src/guestfs.pod:536
35938 msgid ""
35939 "Libguestfs allows you to access Linux guests which have been encrypted using "
35940 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35941 "standard.  This includes nearly all whole disk encryption systems used by "
35942 "modern Linux guests."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:542
35947 msgid ""
35948 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35949 "returns the string C<crypto_LUKS>)."
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:545
35954 msgid ""
35955 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35956 "will require the passphrase!"
35957 msgstr ""
35958
35959 #. type: textblock
35960 #: ../src/guestfs.pod:548
35961 msgid ""
35962 "Opening a LUKS device creates a new device mapper device called "
35963 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
35964 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
35965 "decrypted from and encrypted to the underlying block device respectively."
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:554
35970 msgid ""
35971 "LVM volume groups on the device can be made visible by calling "
35972 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
35973 "volume(s) can now be mounted in the usual way."
35974 msgstr ""
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:558
35978 msgid ""
35979 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35980 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35981 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
35982 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35983 "underlying encrypted block device)."
35984 msgstr ""
35985
35986 #. type: =head2
35987 #: ../src/guestfs.pod:565
35988 msgid "INSPECTION"
35989 msgstr ""
35990
35991 #. type: textblock
35992 #: ../src/guestfs.pod:567
35993 msgid ""
35994 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35995 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35996 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35997 "version 1.5.3 the most frequently used part of this library has been "
35998 "rewritten in C and moved into the core code)."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:574
36003 msgid ""
36004 "Add all disks belonging to the unknown virtual machine and call "
36005 "L</guestfs_launch> in the usual way."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:577
36010 msgid ""
36011 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36012 "and certain heuristics, and returns a list of operating systems that were "
36013 "found.  An empty list means none were found.  A single element is the root "
36014 "filesystem of the operating system.  For dual- or multi-boot guests, "
36015 "multiple roots can be returned, each one corresponding to a separate "
36016 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36017 "world of virtualization, but since this scenario can happen, we have built "
36018 "libguestfs to deal with it.)"
36019 msgstr ""
36020
36021 #. type: textblock
36022 #: ../src/guestfs.pod:586
36023 msgid ""
36024 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36025 "to get additional details about that operating system.  For example, call "
36026 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36027 "Windows and Linux-based operating systems respectively."
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../src/guestfs.pod:592
36032 msgid ""
36033 "Un*x-like and Linux-based operating systems usually consist of several "
36034 "filesystems which are mounted at boot time (for example, a separate boot "
36035 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36036 "filesystems correspond to mount points.  Call "
36037 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36038 "hash table like this example:"
36039 msgstr ""
36040
36041 #. type: verbatim
36042 #: ../src/guestfs.pod:599
36043 #, no-wrap
36044 msgid ""
36045 " /boot => /dev/sda1\n"
36046 " /     => /dev/vg_guest/lv_root\n"
36047 " /usr  => /dev/vg_guest/lv_usr\n"
36048 "\n"
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:603
36053 msgid ""
36054 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36055 "filesystems as suggested."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:606
36060 msgid ""
36061 "Be careful to mount filesystems in the right order (eg. C</> before "
36062 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
36063 "work."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:610
36068 msgid ""
36069 "Inspection currently only works for some common operating systems.  "
36070 "Contributors are welcome to send patches for other operating systems that we "
36071 "currently cannot detect."
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:614
36076 msgid ""
36077 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36078 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36079 "encrypted devices."
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:618
36084 msgid ""
36085 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36086 "inspection and caches the results in the guest handle.  Subsequent calls to "
36087 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
36088 "re-read the disks.  If you change the content of the guest disks, you can "
36089 "redo inspection by calling L</guestfs_inspect_os> again.  "
36090 "(L</guestfs_inspect_list_applications> works a little differently from the "
36091 "other calls and does read the disks.  See documentation for that function "
36092 "for details)."
36093 msgstr ""
36094
36095 #. type: =head3
36096 #: ../src/guestfs.pod:627
36097 msgid "INSPECTING INSTALL DISKS"
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:629
36102 msgid ""
36103 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36104 "CDs and more."
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:632
36109 msgid ""
36110 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36111 "system, which currently can be C<installed> (a regular operating system) or "
36112 "C<installer> (some sort of install disk)."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:636
36117 msgid ""
36118 "Further information is available about the operating system that can be "
36119 "installed using the regular inspection APIs like "
36120 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
36121 "etc."
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:641
36126 msgid ""
36127 "Some additional information specific to installer disks is also available "
36128 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
36129 "L</guestfs_inspect_is_multipart> calls."
36130 msgstr ""
36131
36132 #. type: =head2
36133 #: ../src/guestfs.pod:646
36134 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:648
36139 msgid ""
36140 "Libguestfs can mount NTFS partitions.  It does this using the "
36141 "L<http://www.ntfs-3g.org/> driver."
36142 msgstr ""
36143
36144 #. type: =head3
36145 #: ../src/guestfs.pod:651
36146 msgid "DRIVE LETTERS AND PATHS"
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:653
36151 msgid ""
36152 "DOS and Windows still use drive letters, and the filesystems are always "
36153 "treated as case insensitive by Windows itself, and therefore you might find "
36154 "a Windows configuration file referring to a path like "
36155 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
36156 "that directory might be referred to as C</WINDOWS/System32>."
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:659
36161 msgid ""
36162 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36163 "L</guestfs_inspect_get_drive_mappings>)"
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:662
36168 msgid ""
36169 "Dealing with separator characters (backslash vs forward slash) is outside "
36170 "the scope of libguestfs, but usually a simple character replacement will "
36171 "work."
36172 msgstr ""
36173
36174 #. type: textblock
36175 #: ../src/guestfs.pod:666
36176 msgid ""
36177 "To resolve the case insensitivity of paths, call "
36178 "L</guestfs_case_sensitive_path>."
36179 msgstr ""
36180
36181 #. type: =head3
36182 #: ../src/guestfs.pod:669
36183 msgid "ACCESSING THE WINDOWS REGISTRY"
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:671
36188 msgid ""
36189 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36190 "files, through the library C<hivex> which is part of the libguestfs project "
36191 "although ships as a separate tarball.  You have to locate and download the "
36192 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36193 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
36194 "L<virt-win-reg(1)> for more help on this issue."
36195 msgstr ""
36196
36197 #. type: =head3
36198 #: ../src/guestfs.pod:679
36199 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36200 msgstr ""
36201
36202 #. type: textblock
36203 #: ../src/guestfs.pod:681
36204 msgid ""
36205 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36206 "provide something which looks like a Linux symlink.  The way it tries to do "
36207 "the rewriting is described here:"
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:685
36212 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:687
36217 msgid ""
36218 "The essential problem is that ntfs-3g simply does not have enough "
36219 "information to do a correct job.  NTFS links can contain drive letters and "
36220 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36221 "It is almost certainly the case that libguestfs callers should ignore what "
36222 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:694
36227 msgid ""
36228 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
36229 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36230 "attribute, and read the raw reparse data from that (you can find the format "
36231 "documented in various places around the web)."
36232 msgstr ""
36233
36234 #. type: =head3
36235 #: ../src/guestfs.pod:699
36236 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:701
36241 msgid ""
36242 "There are other useful extended attributes that can be read from ntfs-3g "
36243 "filesystems (using L</guestfs_getxattr>).  See:"
36244 msgstr ""
36245
36246 #. type: textblock
36247 #: ../src/guestfs.pod:704
36248 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36249 msgstr ""
36250
36251 #. type: =head2
36252 #: ../src/guestfs.pod:706
36253 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36254 msgstr ""
36255
36256 #. type: textblock
36257 #: ../src/guestfs.pod:708
36258 msgid ""
36259 "Although we don't want to discourage you from using the C API, we will "
36260 "mention here that the same API is also available in other languages."
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:711
36265 msgid ""
36266 "The API is broadly identical in all supported languages.  This means that "
36267 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36268 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36269 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36270 "each language."
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:717
36275 msgid ""
36276 "Error messages are automatically transformed into exceptions if the language "
36277 "supports it."
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:720
36282 msgid ""
36283 "We don't try to \"object orientify\" parts of the API in OO languages, "
36284 "although contributors are welcome to write higher level APIs above what we "
36285 "provide in their favourite languages if they wish."
36286 msgstr ""
36287
36288 #. type: =item
36289 #: ../src/guestfs.pod:726
36290 msgid "B<C++>"
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:728
36295 msgid ""
36296 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36297 "identical to the C API.  C++ classes and exceptions are not used."
36298 msgstr ""
36299
36300 #. type: =item
36301 #: ../src/guestfs.pod:732
36302 msgid "B<C#>"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:734
36307 msgid ""
36308 "The C# bindings are highly experimental.  Please read the warnings at the "
36309 "top of C<csharp/Libguestfs.cs>."
36310 msgstr ""
36311
36312 #. type: =item
36313 #: ../src/guestfs.pod:737
36314 msgid "B<Erlang>"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:739
36319 msgid "See L<guestfs-erlang(3)>."
36320 msgstr ""
36321
36322 #. type: =item
36323 #: ../src/guestfs.pod:741
36324 msgid "B<Haskell>"
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:743
36329 msgid ""
36330 "This is the only language binding that is working but incomplete.  Only "
36331 "calls which return simple integers have been bound in Haskell, and we are "
36332 "looking for help to complete this binding."
36333 msgstr ""
36334
36335 #. type: =item
36336 #: ../src/guestfs.pod:747
36337 msgid "B<Java>"
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:749
36342 msgid ""
36343 "Full documentation is contained in the Javadoc which is distributed with "
36344 "libguestfs.  For examples, see L<guestfs-java(3)>."
36345 msgstr ""
36346
36347 #. type: =item
36348 #: ../src/guestfs.pod:752
36349 msgid "B<OCaml>"
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:754
36354 msgid "See L<guestfs-ocaml(3)>."
36355 msgstr ""
36356
36357 #. type: =item
36358 #: ../src/guestfs.pod:756
36359 msgid "B<Perl>"
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:758
36364 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36365 msgstr ""
36366
36367 #. type: =item
36368 #: ../src/guestfs.pod:760
36369 msgid "B<PHP>"
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:762
36374 msgid ""
36375 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36376 "the php-libguestfs package for your distribution."
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:765
36381 msgid "The PHP binding only works correctly on 64 bit machines."
36382 msgstr ""
36383
36384 #. type: =item
36385 #: ../src/guestfs.pod:767
36386 msgid "B<Python>"
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:769
36391 msgid "See L<guestfs-python(3)>."
36392 msgstr ""
36393
36394 #. type: =item
36395 #: ../src/guestfs.pod:771
36396 msgid "B<Ruby>"
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../src/guestfs.pod:773
36401 msgid "See L<guestfs-ruby(3)>."
36402 msgstr ""
36403
36404 #. type: =item
36405 #: ../src/guestfs.pod:775
36406 msgid "B<shell scripts>"
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../src/guestfs.pod:777
36411 msgid "See L<guestfish(1)>."
36412 msgstr ""
36413
36414 #. type: =head2
36415 #: ../src/guestfs.pod:781
36416 msgid "LIBGUESTFS GOTCHAS"
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:783
36421 msgid ""
36422 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36423 "system [...] that works in the way it is documented but is counterintuitive "
36424 "and almost invites mistakes.\""
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:787
36429 msgid ""
36430 "Since we developed libguestfs and the associated tools, there are several "
36431 "things we would have designed differently, but are now stuck with for "
36432 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36433 "release, you can expect these to change.  Beware of them."
36434 msgstr ""
36435
36436 #. type: =item
36437 #: ../src/guestfs.pod:795
36438 msgid "Autosync / forgetting to sync."
36439 msgstr ""
36440
36441 #. type: textblock
36442 #: ../src/guestfs.pod:797
36443 msgid ""
36444 "I<Update:> Autosync is enabled by default for all API users starting from "
36445 "libguestfs 1.5.24.  This section only applies to older versions."
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:800
36450 msgid ""
36451 "When modifying a filesystem from C or another language, you B<must> unmount "
36452 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36453 "libguestfs handle.  You can also call:"
36454 msgstr ""
36455
36456 #. type: verbatim
36457 #: ../src/guestfs.pod:804
36458 #, no-wrap
36459 msgid ""
36460 " guestfs_set_autosync (g, 1);\n"
36461 "\n"
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:806
36466 msgid ""
36467 "to have the unmount/sync done automatically for you when the handle 'g' is "
36468 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
36469 "q.v.)"
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:810
36474 msgid ""
36475 "If you forget to do this, then it is entirely possible that your changes "
36476 "won't be written out, or will be partially written, or (very rarely) that "
36477 "you'll get disk corruption."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:814
36482 msgid ""
36483 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36484 "guestfish scripts that forget to sync will work just fine, which can make "
36485 "this very puzzling if you are trying to debug a problem."
36486 msgstr ""
36487
36488 #. type: =item
36489 #: ../src/guestfs.pod:818
36490 msgid "Mount option C<-o sync> should not be the default."
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:820
36495 msgid ""
36496 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36497 "libguestfs 1.13.16.  This section only applies to older versions."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:823
36502 msgid ""
36503 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36504 "However C<-o sync> does not add any reliability benefit, but does have a "
36505 "very large performance impact."
36506 msgstr ""
36507
36508 #. type: textblock
36509 #: ../src/guestfs.pod:827
36510 msgid ""
36511 "The work around is to use L</guestfs_mount_options> and set the mount "
36512 "options that you actually want to use."
36513 msgstr ""
36514
36515 #. type: =item
36516 #: ../src/guestfs.pod:830
36517 msgid "Read-only should be the default."
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:832
36522 msgid ""
36523 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36524 "specify I<--rw> if you want to make changes to the image."
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:835
36529 msgid "This would reduce the potential to corrupt live VM images."
36530 msgstr ""
36531
36532 #. type: textblock
36533 #: ../src/guestfs.pod:837
36534 msgid ""
36535 "Note that many filesystems change the disk when you just mount and unmount, "
36536 "even if you didn't perform any writes.  You need to use "
36537 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
36538 msgstr ""
36539
36540 #. type: =item
36541 #: ../src/guestfs.pod:841
36542 msgid "guestfish command line is hard to use."
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:843
36547 msgid ""
36548 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36549 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36550 "exist, so it fails.  In earlier versions of guestfish the error message was "
36551 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36552 "we should have used C<guestfish -c command> to run commands."
36553 msgstr ""
36554
36555 #. type: =item
36556 #: ../src/guestfs.pod:850
36557 msgid "guestfish megabyte modifiers don't work right on all commands"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:852
36562 msgid ""
36563 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36564 "other modifiers).  What guestfish actually does is to multiply the number "
36565 "part by the modifier part and pass the result to the C API.  However this "
36566 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36567 "expecting some other unit (eg. megabytes)."
36568 msgstr ""
36569
36570 #. type: textblock
36571 #: ../src/guestfs.pod:859
36572 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36573 msgstr ""
36574
36575 #. type: verbatim
36576 #: ../src/guestfs.pod:861
36577 #, no-wrap
36578 msgid ""
36579 " lvcreate LV VG 100M\n"
36580 "\n"
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:863
36585 msgid ""
36586 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36587 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36588 "megabytes * megabytes) logical volume.  The error message you get from this "
36589 "is also a little obscure."
36590 msgstr ""
36591
36592 #. type: textblock
36593 #: ../src/guestfs.pod:868
36594 msgid ""
36595 "This could be fixed in the generator by specially marking parameters and "
36596 "return values which take bytes or other units."
36597 msgstr ""
36598
36599 #. type: =item
36600 #: ../src/guestfs.pod:871
36601 msgid "Ambiguity between devices and paths"
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:873
36606 msgid ""
36607 "There is a subtle ambiguity in the API between a device name "
36608 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
36609 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:878
36614 msgid ""
36615 "In the current API we usually resolve this ambiguity by having two separate "
36616 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36617 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36618 "detecting if the path supplied begins with C</dev/>."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:884
36623 msgid ""
36624 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36625 "make paths/devices into structured names.  One way to do this would be to "
36626 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36627 "aspect of grub.  Another way would be to use a structured type, equivalent "
36628 "to this OCaml type:"
36629 msgstr ""
36630
36631 #. type: verbatim
36632 #: ../src/guestfs.pod:890
36633 #, no-wrap
36634 msgid ""
36635 " type path = Path of string | Device of int | Partition of int * int\n"
36636 "\n"
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:892
36641 msgid "which would allow you to pass arguments like:"
36642 msgstr ""
36643
36644 #. type: verbatim
36645 #: ../src/guestfs.pod:894
36646 #, no-wrap
36647 msgid ""
36648 " Path \"/foo/bar\"\n"
36649 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36650 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36651 " Path \"/dev/sdb2\"    (* not a device *)\n"
36652 "\n"
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:899
36657 msgid ""
36658 "As you can see there are still problems to resolve even with this "
36659 "representation.  Also consider how it might work in guestfish."
36660 msgstr ""
36661
36662 #. type: =head2
36663 #: ../src/guestfs.pod:904
36664 msgid "KEYS AND PASSPHRASES"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:906
36669 msgid ""
36670 "Certain libguestfs calls take a parameter that contains sensitive key "
36671 "material, passed in as a C string."
36672 msgstr ""
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:909
36676 msgid ""
36677 "In the future we would hope to change the libguestfs implementation so that "
36678 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36679 "swap.  However this is I<not> done at the moment, because of the complexity "
36680 "of such an implementation."
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:914
36685 msgid ""
36686 "Therefore you should be aware that any key parameter you pass to libguestfs "
36687 "might end up being written out to the swap partition.  If this is a concern, "
36688 "scrub the swap partition or don't use libguestfs on encrypted devices."
36689 msgstr ""
36690
36691 #. type: =head2
36692 #: ../src/guestfs.pod:919
36693 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:921
36698 msgid ""
36699 "All high-level libguestfs actions are synchronous.  If you want to use "
36700 "libguestfs asynchronously then you must create a thread."
36701 msgstr ""
36702
36703 #. type: textblock
36704 #: ../src/guestfs.pod:924
36705 msgid ""
36706 "Only use the handle from a single thread.  Either use the handle exclusively "
36707 "from one thread, or provide your own mutex so that two threads cannot issue "
36708 "calls on the same handle at the same time."
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:928
36713 msgid ""
36714 "See the graphical program guestfs-browser for one possible architecture for "
36715 "multithreaded programs using libvirt and libguestfs."
36716 msgstr ""
36717
36718 #. type: =head2
36719 #: ../src/guestfs.pod:931
36720 msgid "PATH"
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:933
36725 msgid ""
36726 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36727 "internal path."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:936
36732 msgid ""
36733 "By default it looks for these in the directory C<$libdir/guestfs> "
36734 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36735 msgstr ""
36736
36737 #. type: textblock
36738 #: ../src/guestfs.pod:939
36739 msgid ""
36740 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36741 "to change the directories that libguestfs will search in.  The value is a "
36742 "colon-separated list of paths.  The current directory is I<not> searched "
36743 "unless the path contains an empty element or C<.>.  For example "
36744 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36745 "then C</usr/lib/guestfs>."
36746 msgstr ""
36747
36748 #. type: =head2
36749 #: ../src/guestfs.pod:946
36750 msgid "QEMU WRAPPERS"
36751 msgstr ""
36752
36753 #. type: textblock
36754 #: ../src/guestfs.pod:948
36755 msgid ""
36756 "If you want to compile your own qemu, run qemu from a non-standard location, "
36757 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36758 "around qemu."
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:952
36763 msgid ""
36764 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36765 "last command in the shell script (so that qemu replaces the shell and "
36766 "becomes the direct child of the libguestfs-using program).  If you don't do "
36767 "this, then the qemu process won't be cleaned up correctly."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:957
36772 msgid ""
36773 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36774 "source:"
36775 msgstr ""
36776
36777 #. type: verbatim
36778 #: ../src/guestfs.pod:960
36779 #, no-wrap
36780 msgid ""
36781 " #!/bin/sh -\n"
36782 " qemudir=/home/rjones/d/qemu\n"
36783 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
36784 "\"$@\"\n"
36785 "\n"
36786 msgstr ""
36787
36788 #. type: textblock
36789 #: ../src/guestfs.pod:964
36790 msgid ""
36791 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36792 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36793 "example:"
36794 msgstr ""
36795
36796 #. type: verbatim
36797 #: ../src/guestfs.pod:968
36798 #, no-wrap
36799 msgid ""
36800 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36801 "\n"
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:970
36806 msgid ""
36807 "Note that libguestfs also calls qemu with the -help and -version options in "
36808 "order to determine features."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:973
36813 msgid ""
36814 "Wrappers can also be used to edit the options passed to qemu.  In the "
36815 "following example, the C<-machine ...> option (C<-machine> and the following "
36816 "argument) are removed from the command line and replaced with C<-machine "
36817 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
36818 "right one to remove, putting the remaining options into the C<args> array."
36819 msgstr ""
36820
36821 #. type: verbatim
36822 #: ../src/guestfs.pod:982
36823 #, no-wrap
36824 msgid ""
36825 " i=0\n"
36826 " while [ $# -gt 0 ]; do\n"
36827 "     case \"$1\" in\n"
36828 "     -machine)\n"
36829 "         shift 2;;\n"
36830 "     *)\n"
36831 "         args[i]=\"$1\"\n"
36832 "         (( i++ ))\n"
36833 "         shift ;;\n"
36834 "     esac\n"
36835 " done\n"
36836 " \n"
36837 msgstr ""
36838
36839 #. type: verbatim
36840 #: ../src/guestfs.pod:994
36841 #, no-wrap
36842 msgid ""
36843 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36844 "\n"
36845 msgstr ""
36846
36847 #. type: =head2
36848 #: ../src/guestfs.pod:996
36849 msgid "ATTACHING TO RUNNING DAEMONS"
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../src/guestfs.pod:998
36854 msgid ""
36855 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36856 "babies.  Use with caution."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:1001
36861 msgid ""
36862 "I<Note (2):> This section explains how to attach to a running daemon from a "
36863 "low level perspective.  For most users, simply using virt tools such as "
36864 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36865 msgstr ""
36866
36867 #. type: =head3
36868 #: ../src/guestfs.pod:1005
36869 msgid "Using guestfs_set_attach_method"
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../src/guestfs.pod:1007
36874 msgid ""
36875 "By calling L</guestfs_set_attach_method> you can change how the library "
36876 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
36877 "L</ARCHITECTURE> for some background)."
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:1011
36882 msgid ""
36883 "The normal attach method is C<appliance>, where a small appliance is created "
36884 "containing the daemon, and then the library connects to this."
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:1014
36889 msgid ""
36890 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36891 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36892 "daemon over the Unix domain socket."
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:1018
36897 msgid ""
36898 "The normal use for this is to connect to a running virtual machine that "
36899 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36900 "files inside the live virtual machine."
36901 msgstr ""
36902
36903 #. type: =head3
36904 #: ../src/guestfs.pod:1022
36905 msgid "Using guestfs_add_domain with live flag"
36906 msgstr ""
36907
36908 #. type: textblock
36909 #: ../src/guestfs.pod:1024
36910 msgid ""
36911 "L</guestfs_add_domain> provides some help for getting the correct attach "
36912 "method.  If you pass the C<live> option to this function, then (if the "
36913 "virtual machine is running) it will examine the libvirt XML looking for a "
36914 "virtio-serial channel to connect to:"
36915 msgstr ""
36916
36917 #. type: verbatim
36918 #: ../src/guestfs.pod:1030
36919 #, no-wrap
36920 msgid ""
36921 " <domain>\n"
36922 "   ...\n"
36923 "   <devices>\n"
36924 "     ...\n"
36925 "     <channel type='unix'>\n"
36926 "       <source mode='bind' path='/path/to/socket'/>\n"
36927 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36928 "     </channel>\n"
36929 "     ...\n"
36930 "   </devices>\n"
36931 " </domain>\n"
36932 "\n"
36933 msgstr ""
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:1042
36937 msgid ""
36938 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36939 "method to C<unix:/path/to/socket>."
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:1045
36944 msgid ""
36945 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36946 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36947 "to attach to and modify live virtual machines."
36948 msgstr ""
36949
36950 #. type: textblock
36951 #: ../src/guestfs.pod:1049
36952 msgid ""
36953 "The virtual machine needs to have been set up beforehand so that it has the "
36954 "virtio-serial channel and so that guestfsd is running inside it."
36955 msgstr ""
36956
36957 #. type: =head2
36958 #: ../src/guestfs.pod:1053
36959 msgid "ABI GUARANTEE"
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:1055
36964 msgid ""
36965 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36966 "actions as outlined in this section.  Although we will deprecate some "
36967 "actions, for example if they get replaced by newer calls, we will keep the "
36968 "old actions forever.  This allows you the developer to program in confidence "
36969 "against the libguestfs API."
36970 msgstr ""
36971
36972 #. type: =head2
36973 #: ../src/guestfs.pod:1061
36974 msgid "BLOCK DEVICE NAMING"
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:1063
36979 msgid ""
36980 "In the kernel there is now quite a profusion of schemata for naming block "
36981 "devices (in this context, by I<block device> I mean a physical or virtual "
36982 "hard drive).  The original Linux IDE driver used names starting with "
36983 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
36984 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
36985 "replacement for the old IDE driver (particularly for SATA devices) those "
36986 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
36987 "machines with paravirtualized drivers.  This has created several different "
36988 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
36989 "Xen PV disks."
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:1075
36994 msgid ""
36995 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36996 "Linux kernel to access block devices.  We can run a variety of appliances "
36997 "based on a variety of Linux kernels."
36998 msgstr ""
36999
37000 #. type: textblock
37001 #: ../src/guestfs.pod:1079
37002 msgid ""
37003 "This causes a problem for libguestfs because many API calls use device or "
37004 "partition names.  Working scripts and the recipe (example) scripts that we "
37005 "make available over the internet could fail if the naming scheme changes."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:1084
37010 msgid ""
37011 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37012 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37013 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37014 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:1090
37019 msgid ""
37020 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37021 "L</guestfs_list_partitions> and similar calls return the true names of the "
37022 "devices and partitions as known to the appliance."
37023 msgstr ""
37024
37025 #. type: =head3
37026 #: ../src/guestfs.pod:1095
37027 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:1097
37032 msgid ""
37033 "Usually this translation is transparent.  However in some (very rare)  cases "
37034 "you may need to know the exact algorithm.  Such cases include where you use "
37035 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
37036 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
37037 "devices."
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:1103
37042 msgid ""
37043 "The algorithm is applied only to I<parameters> which are known to be either "
37044 "device or partition names.  Return values from functions such as "
37045 "L</guestfs_list_devices> are never changed."
37046 msgstr ""
37047
37048 #. type: textblock
37049 #: ../src/guestfs.pod:1111
37050 msgid "Is the string a parameter which is a device or partition name?"
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:1115
37055 msgid "Does the string begin with C</dev/sd>?"
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:1119
37060 msgid ""
37061 "Does the named device exist? If so, we use that device.  However if I<not> "
37062 "then we continue with this algorithm."
37063 msgstr ""
37064
37065 #. type: textblock
37066 #: ../src/guestfs.pod:1124
37067 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../src/guestfs.pod:1126
37072 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:1128
37077 msgid "If that named device exists, use it.  If not, continue."
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:1132
37082 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:1134
37087 msgid "If that named device exists, use it.  If not, return an error."
37088 msgstr ""
37089
37090 #. type: =head3
37091 #: ../src/guestfs.pod:1138
37092 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:1140
37097 msgid ""
37098 "Although the standard naming scheme and automatic translation is useful for "
37099 "simple programs and guestfish scripts, for larger programs it is best not to "
37100 "rely on this mechanism."
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:1144
37105 msgid ""
37106 "Where possible for maximum future portability programs using libguestfs "
37107 "should use these future-proof techniques:"
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:1151
37112 msgid ""
37113 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37114 "device names, and then use those names directly."
37115 msgstr ""
37116
37117 #. type: textblock
37118 #: ../src/guestfs.pod:1154
37119 msgid "Since those device names exist by definition, they will never be translated."
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:1159
37124 msgid ""
37125 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37126 "filesystem labels."
37127 msgstr ""
37128
37129 #. type: textblock
37130 #: ../src/guestfs.pod:1166
37131 msgid ""
37132 "This section discusses security implications of using libguestfs, "
37133 "particularly with untrusted or malicious guests or disk images."
37134 msgstr ""
37135
37136 #. type: =head2
37137 #: ../src/guestfs.pod:1169
37138 msgid "GENERAL SECURITY CONSIDERATIONS"
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../src/guestfs.pod:1171
37143 msgid ""
37144 "Be careful with any files or data that you download from a guest (by "
37145 "\"download\" we mean not just the L</guestfs_download> command but any "
37146 "command that reads files, filenames, directories or anything else from a "
37147 "disk image).  An attacker could manipulate the data to fool your program "
37148 "into doing the wrong thing.  Consider cases such as:"
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:1181
37153 msgid "the data (file etc) not being present"
37154 msgstr ""
37155
37156 #. type: textblock
37157 #: ../src/guestfs.pod:1185
37158 msgid "being present but empty"
37159 msgstr ""
37160
37161 #. type: textblock
37162 #: ../src/guestfs.pod:1189
37163 msgid "being much larger than normal"
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:1193
37168 msgid "containing arbitrary 8 bit data"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:1197
37173 msgid "being in an unexpected character encoding"
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:1201
37178 msgid "containing homoglyphs."
37179 msgstr ""
37180
37181 #. type: =head2
37182 #: ../src/guestfs.pod:1205
37183 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37184 msgstr ""
37185
37186 #. type: textblock
37187 #: ../src/guestfs.pod:1207
37188 msgid ""
37189 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37190 "(VFS) module can sometimes be escalated into exploits by deliberately "
37191 "creating a malicious, malformed filesystem.  These exploits are very severe "
37192 "for two reasons.  Firstly there are very many filesystem drivers in the "
37193 "kernel, and many of them are infrequently used and not much developer "
37194 "attention has been paid to the code.  Linux userspace helps potential "
37195 "crackers by detecting the filesystem type and automatically choosing the "
37196 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37197 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37198 "exploit (worse in some ways), giving immediate and total access to the "
37199 "system right down to the hardware level."
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../src/guestfs.pod:1220
37204 msgid ""
37205 "That explains why you should never mount a filesystem from an untrusted "
37206 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37207 "inside a qemu virtual machine, usually running as a non-root user.  The "
37208 "attacker would need to write a filesystem which first exploited the kernel, "
37209 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37210 "the libguestfs protocol, and finally to be as serious as the host kernel "
37211 "exploit it would need to escalate its privileges to root.  This multi-step "
37212 "escalation, performed by a static piece of data, is thought to be extremely "
37213 "hard to do, although we never say 'never' about security issues."
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:1231
37218 msgid ""
37219 "In any case callers can reduce the attack surface by forcing the filesystem "
37220 "type when mounting (use L</guestfs_mount_vfs>)."
37221 msgstr ""
37222
37223 #. type: =head2
37224 #: ../src/guestfs.pod:1234
37225 msgid "PROTOCOL SECURITY"
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:1236
37230 msgid ""
37231 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37232 "defined upper message size.  However a program that uses libguestfs must "
37233 "also take care - for example you can write a program that downloads a binary "
37234 "from a disk image and executes it locally, and no amount of protocol "
37235 "security will save you from the consequences."
37236 msgstr ""
37237
37238 #. type: =head2
37239 #: ../src/guestfs.pod:1242
37240 msgid "INSPECTION SECURITY"
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:1244
37245 msgid ""
37246 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37247 "directly from the guest, and these could contain any 8 bit data.  Callers "
37248 "should be careful to escape these before printing them to a structured file "
37249 "(for example, use HTML escaping if creating a web page)."
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:1250
37254 msgid ""
37255 "Guest configuration may be altered in unusual ways by the administrator of "
37256 "the virtual machine, and may not reflect reality (particularly for untrusted "
37257 "or actively malicious guests).  For example we parse the hostname from "
37258 "configuration files like C</etc/sysconfig/network> that we find in the "
37259 "guest, but the guest administrator can easily manipulate these files to "
37260 "provide the wrong hostname."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1258
37265 msgid ""
37266 "The inspection API parses guest configuration using two external libraries: "
37267 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37268 "designed to be robust in the face of malicious data, although denial of "
37269 "service attacks are still possible, for example with oversized configuration "
37270 "files."
37271 msgstr ""
37272
37273 #. type: =head2
37274 #: ../src/guestfs.pod:1264
37275 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../src/guestfs.pod:1266
37280 msgid ""
37281 "Be very cautious about running commands from the guest.  By running a "
37282 "command in the guest, you are giving CPU time to a binary that you do not "
37283 "control, under the same user account as the library, albeit wrapped in qemu "
37284 "virtualization.  More information and alternatives can be found in the "
37285 "section L</RUNNING COMMANDS>."
37286 msgstr ""
37287
37288 #. type: =head2
37289 #: ../src/guestfs.pod:1272
37290 msgid "CVE-2010-3851"
37291 msgstr ""
37292
37293 #. type: textblock
37294 #: ../src/guestfs.pod:1274
37295 msgid "https://bugzilla.redhat.com/642934"
37296 msgstr ""
37297
37298 #. type: textblock
37299 #: ../src/guestfs.pod:1276
37300 msgid ""
37301 "This security bug concerns the automatic disk format detection that qemu "
37302 "does on disk images."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:1279
37307 msgid ""
37308 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37309 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37310 "for one of the known headers, and if none is found then assuming the disk "
37311 "image must be raw."
37312 msgstr ""
37313
37314 #. type: textblock
37315 #: ../src/guestfs.pod:1284
37316 msgid ""
37317 "This allows a guest which has been given a raw disk image to write some "
37318 "other header.  At next boot (or when the disk image is accessed by "
37319 "libguestfs) qemu would do autodetection and think the disk image format was, "
37320 "say, qcow2 based on the header written by the guest."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:1289
37325 msgid ""
37326 "This in itself would not be a problem, but qcow2 offers many features, one "
37327 "of which is to allow a disk image to refer to another image (called the "
37328 "\"backing disk\").  It does this by placing the path to the backing disk "
37329 "into the qcow2 header.  This path is not validated and could point to any "
37330 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37331 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37332 "control of the attacker."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:1297
37337 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
37338 msgstr ""
37339
37340 #. type: textblock
37341 #: ../src/guestfs.pod:1304
37342 msgid "You have enabled the network or have opened the disk in write mode."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:1308
37347 msgid ""
37348 "You are also running untrusted code from the guest (see L</RUNNING "
37349 "COMMANDS>)."
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:1313
37354 msgid ""
37355 "The way to avoid this is to specify the expected disk format when adding "
37356 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37357 "should always do this if the disk is raw format, and it's a good idea for "
37358 "other cases too."
37359 msgstr ""
37360
37361 #. type: textblock
37362 #: ../src/guestfs.pod:1318
37363 msgid ""
37364 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37365 "format is fetched from libvirt and passed through."
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:1321
37370 msgid ""
37371 "For libguestfs tools, use the I<--format> command line parameter as "
37372 "appropriate."
37373 msgstr ""
37374
37375 #. type: =head1
37376 #: ../src/guestfs.pod:1324
37377 msgid "CONNECTION MANAGEMENT"
37378 msgstr ""
37379
37380 #. type: =head2
37381 #: ../src/guestfs.pod:1326
37382 msgid "guestfs_h *"
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:1328
37387 msgid ""
37388 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37389 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37390 "handle and release all resources used."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:1332
37395 msgid ""
37396 "For information on using multiple handles and threads, see the section "
37397 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37398 msgstr ""
37399
37400 #. type: =head2
37401 #: ../src/guestfs.pod:1335
37402 msgid "guestfs_create"
37403 msgstr ""
37404
37405 #. type: verbatim
37406 #: ../src/guestfs.pod:1337
37407 #, no-wrap
37408 msgid ""
37409 " guestfs_h *guestfs_create (void);\n"
37410 "\n"
37411 msgstr ""
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:1339
37415 msgid "Create a connection handle."
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../src/guestfs.pod:1341
37420 msgid ""
37421 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37422 "NULL."
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:1344
37427 msgid ""
37428 "You have to \"configure\" the handle after creating it.  This includes "
37429 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37430 "handle at least once."
37431 msgstr ""
37432
37433 #. type: textblock
37434 #: ../src/guestfs.pod:1348
37435 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37436 msgstr ""
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:1350
37440 msgid ""
37441 "You may also want to configure error handling for the handle.  See the "
37442 "L</ERROR HANDLING> section below."
37443 msgstr ""
37444
37445 #. type: =head2
37446 #: ../src/guestfs.pod:1353
37447 msgid "guestfs_close"
37448 msgstr ""
37449
37450 #. type: verbatim
37451 #: ../src/guestfs.pod:1355
37452 #, no-wrap
37453 msgid ""
37454 " void guestfs_close (guestfs_h *g);\n"
37455 "\n"
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:1357
37460 msgid "This closes the connection handle and frees up all resources used."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:1359
37465 msgid ""
37466 "If autosync was set on the handle and the handle was launched, then this "
37467 "implicitly calls various functions to unmount filesystems and sync the "
37468 "disk.  See L</guestfs_set_autosync> for more details."
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:1363
37473 msgid "If a close callback was set on the handle, then it is called."
37474 msgstr ""
37475
37476 #. type: =head1
37477 #: ../src/guestfs.pod:1365
37478 msgid "ERROR HANDLING"
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../src/guestfs.pod:1367
37483 msgid ""
37484 "API functions can return errors.  For example, almost all functions that "
37485 "return C<int> will return C<-1> to indicate an error."
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:1370
37490 msgid ""
37491 "Additional information is available for errors: an error message string and "
37492 "optionally an error number (errno) if the thing that failed was a system "
37493 "call."
37494 msgstr ""
37495
37496 #. type: textblock
37497 #: ../src/guestfs.pod:1374
37498 msgid ""
37499 "You can get at the additional information about the last error on the handle "
37500 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37501 "up an error handler with L</guestfs_set_error_handler>."
37502 msgstr ""
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:1379
37506 msgid ""
37507 "When the handle is created, a default error handler is installed which "
37508 "prints the error message string to C<stderr>.  For small short-running "
37509 "command line programs it is sufficient to do:"
37510 msgstr ""
37511
37512 #. type: verbatim
37513 #: ../src/guestfs.pod:1383
37514 #, no-wrap
37515 msgid ""
37516 " if (guestfs_launch (g) == -1)\n"
37517 "   exit (EXIT_FAILURE);\n"
37518 "\n"
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1386
37523 msgid ""
37524 "since the default error handler will ensure that an error message has been "
37525 "printed to C<stderr> before the program exits."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../src/guestfs.pod:1389
37530 msgid ""
37531 "For other programs the caller will almost certainly want to install an "
37532 "alternate error handler or do error handling in-line like this:"
37533 msgstr ""
37534
37535 #. type: verbatim
37536 #: ../src/guestfs.pod:1392
37537 #, no-wrap
37538 msgid ""
37539 " /* This disables the default behaviour of printing errors\n"
37540 "    on stderr. */\n"
37541 " guestfs_set_error_handler (g, NULL, NULL);\n"
37542 " \n"
37543 msgstr ""
37544
37545 #. type: verbatim
37546 #: ../src/guestfs.pod:1396
37547 #, no-wrap
37548 msgid ""
37549 " if (guestfs_launch (g) == -1) {\n"
37550 "   /* Examine the error message and print it etc. */\n"
37551 "   char *msg = guestfs_last_error (g);\n"
37552 "   int errnum = guestfs_last_errno (g);\n"
37553 "   fprintf (stderr, \"%s\", msg);\n"
37554 "   if (errnum != 0)\n"
37555 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37556 "   fprintf (stderr, \"\\n\");\n"
37557 "   /* ... */\n"
37558 " }\n"
37559 "\n"
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:1407
37564 msgid ""
37565 "Out of memory errors are handled differently.  The default action is to call "
37566 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
37567 "L</guestfs_set_out_of_memory_handler>."
37568 msgstr ""
37569
37570 #. type: textblock
37571 #: ../src/guestfs.pod:1411
37572 msgid ""
37573 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37574 "because there is no handle if this happens there is no way to get additional "
37575 "error information.  However L</guestfs_create> is supposed to be a "
37576 "lightweight operation which can only fail because of insufficient memory (it "
37577 "returns NULL in this case)."
37578 msgstr ""
37579
37580 #. type: =head2
37581 #: ../src/guestfs.pod:1417
37582 msgid "guestfs_last_error"
37583 msgstr ""
37584
37585 #. type: verbatim
37586 #: ../src/guestfs.pod:1419
37587 #, no-wrap
37588 msgid ""
37589 " const char *guestfs_last_error (guestfs_h *g);\n"
37590 "\n"
37591 msgstr ""
37592
37593 #. type: textblock
37594 #: ../src/guestfs.pod:1421
37595 msgid ""
37596 "This returns the last error message that happened on C<g>.  If there has not "
37597 "been an error since the handle was created, then this returns C<NULL>."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:1425
37602 msgid ""
37603 "The lifetime of the returned string is until the next error occurs, or "
37604 "L</guestfs_close> is called."
37605 msgstr ""
37606
37607 #. type: =head2
37608 #: ../src/guestfs.pod:1428
37609 msgid "guestfs_last_errno"
37610 msgstr ""
37611
37612 #. type: verbatim
37613 #: ../src/guestfs.pod:1430
37614 #, no-wrap
37615 msgid ""
37616 " int guestfs_last_errno (guestfs_h *g);\n"
37617 "\n"
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:1432
37622 msgid "This returns the last error number (errno) that happened on C<g>."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:1434
37627 msgid "If successful, an errno integer not equal to zero is returned."
37628 msgstr ""
37629
37630 #. type: textblock
37631 #: ../src/guestfs.pod:1436
37632 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:1443
37637 msgid "There has not been any error on the handle."
37638 msgstr ""
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:1447
37642 msgid ""
37643 "There has been an error but the errno was meaningless.  This corresponds to "
37644 "the case where the error did not come from a failed system call, but for "
37645 "some other reason."
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:1453
37650 msgid ""
37651 "There was an error from a failed system call, but for some reason the errno "
37652 "was not captured and returned.  This usually indicates a bug in libguestfs."
37653 msgstr ""
37654
37655 #. type: textblock
37656 #: ../src/guestfs.pod:1459
37657 msgid ""
37658 "Libguestfs tries to convert the errno from inside the applicance into a "
37659 "corresponding errno for the caller (not entirely trivial: the appliance "
37660 "might be running a completely different operating system from the library "
37661 "and error numbers are not standardized across Un*xen).  If this could not be "
37662 "done, then the error is translated to C<EINVAL>.  In practice this should "
37663 "only happen in very rare circumstances."
37664 msgstr ""
37665
37666 #. type: =head2
37667 #: ../src/guestfs.pod:1467
37668 msgid "guestfs_set_error_handler"
37669 msgstr ""
37670
37671 #. type: verbatim
37672 #: ../src/guestfs.pod:1469
37673 #, no-wrap
37674 msgid ""
37675 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37676 "                                           void *opaque,\n"
37677 "                                           const char *msg);\n"
37678 " void guestfs_set_error_handler (guestfs_h *g,\n"
37679 "                                 guestfs_error_handler_cb cb,\n"
37680 "                                 void *opaque);\n"
37681 "\n"
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:1476
37686 msgid ""
37687 "The callback C<cb> will be called if there is an error.  The parameters "
37688 "passed to the callback are an opaque data pointer and the error message "
37689 "string."
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:1480
37694 msgid ""
37695 "C<errno> is not passed to the callback.  To get that the callback must call "
37696 "L</guestfs_last_errno>."
37697 msgstr ""
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:1483
37701 msgid ""
37702 "Note that the message string C<msg> is freed as soon as the callback "
37703 "function returns, so if you want to stash it somewhere you must make your "
37704 "own copy."
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:1487
37709 msgid "The default handler prints messages on C<stderr>."
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:1489
37714 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37715 msgstr ""
37716
37717 #. type: =head2
37718 #: ../src/guestfs.pod:1491
37719 msgid "guestfs_get_error_handler"
37720 msgstr ""
37721
37722 #. type: verbatim
37723 #: ../src/guestfs.pod:1493
37724 #, no-wrap
37725 msgid ""
37726 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37727 "                                                     void **opaque_rtn);\n"
37728 "\n"
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../src/guestfs.pod:1496
37733 msgid "Returns the current error handler callback."
37734 msgstr ""
37735
37736 #. type: =head2
37737 #: ../src/guestfs.pod:1498
37738 msgid "guestfs_set_out_of_memory_handler"
37739 msgstr ""
37740
37741 #. type: verbatim
37742 #: ../src/guestfs.pod:1500
37743 #, no-wrap
37744 msgid ""
37745 " typedef void (*guestfs_abort_cb) (void);\n"
37746 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37747 "                                         guestfs_abort_cb);\n"
37748 "\n"
37749 msgstr ""
37750
37751 #. type: textblock
37752 #: ../src/guestfs.pod:1504
37753 msgid ""
37754 "The callback C<cb> will be called if there is an out of memory situation.  "
37755 "I<Note this callback must not return>."
37756 msgstr ""
37757
37758 #. type: textblock
37759 #: ../src/guestfs.pod:1507
37760 msgid "The default is to call L<abort(3)>."
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:1509
37765 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37766 msgstr ""
37767
37768 #. type: =head2
37769 #: ../src/guestfs.pod:1512
37770 msgid "guestfs_get_out_of_memory_handler"
37771 msgstr ""
37772
37773 #. type: verbatim
37774 #: ../src/guestfs.pod:1514
37775 #, no-wrap
37776 msgid ""
37777 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37778 "\n"
37779 msgstr ""
37780
37781 #. type: textblock
37782 #: ../src/guestfs.pod:1516
37783 msgid "This returns the current out of memory handler."
37784 msgstr ""
37785
37786 #. type: =head1
37787 #: ../src/guestfs.pod:1518
37788 msgid "API CALLS"
37789 msgstr ""
37790
37791 #. type: =head1
37792 #: ../src/guestfs.pod:1522
37793 msgid "STRUCTURES"
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:1524
37798 msgid "@STRUCTS@"
37799 msgstr ""
37800
37801 #. type: =head1
37802 #: ../src/guestfs.pod:1526
37803 msgid "AVAILABILITY"
37804 msgstr ""
37805
37806 #. type: =head2
37807 #: ../src/guestfs.pod:1528
37808 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37809 msgstr ""
37810
37811 #. type: textblock
37812 #: ../src/guestfs.pod:1530
37813 msgid ""
37814 "Using L</guestfs_available> you can test availability of the following "
37815 "groups of functions.  This test queries the appliance to see if the "
37816 "appliance you are currently using supports the functionality."
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:1535
37821 msgid "@AVAILABILITY@"
37822 msgstr ""
37823
37824 #. type: =head2
37825 #: ../src/guestfs.pod:1537
37826 msgid "GUESTFISH supported COMMAND"
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../src/guestfs.pod:1539
37831 msgid ""
37832 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37833 "prints out the available groups and whether they are supported by this build "
37834 "of libguestfs.  Note however that you have to do C<run> first."
37835 msgstr ""
37836
37837 #. type: =head2
37838 #: ../src/guestfs.pod:1544
37839 msgid "SINGLE CALLS AT COMPILE TIME"
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:1546
37844 msgid ""
37845 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37846 "function, such as:"
37847 msgstr ""
37848
37849 #. type: verbatim
37850 #: ../src/guestfs.pod:1549
37851 #, no-wrap
37852 msgid ""
37853 " #define LIBGUESTFS_HAVE_DD 1\n"
37854 "\n"
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:1551
37859 msgid "if L</guestfs_dd> is available."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:1553
37864 msgid ""
37865 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37866 "function is available at compile time, we recommended using build tools such "
37867 "as autoconf or cmake.  For example in autotools you could use:"
37868 msgstr ""
37869
37870 #. type: verbatim
37871 #: ../src/guestfs.pod:1558
37872 #, no-wrap
37873 msgid ""
37874 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37875 " AC_CHECK_FUNCS([guestfs_dd])\n"
37876 "\n"
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:1561
37881 msgid ""
37882 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37883 "in your program."
37884 msgstr ""
37885
37886 #. type: =head2
37887 #: ../src/guestfs.pod:1564
37888 msgid "SINGLE CALLS AT RUN TIME"
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:1566
37893 msgid ""
37894 "Testing at compile time doesn't guarantee that a function really exists in "
37895 "the library.  The reason is that you might be dynamically linked against a "
37896 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37897 "This situation unfortunately results in a segmentation fault, which is a "
37898 "shortcoming of the C dynamic linking system itself."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:1573
37903 msgid ""
37904 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37905 "in this example program (note that you still need the compile time check as "
37906 "well):"
37907 msgstr ""
37908
37909 #. type: verbatim
37910 #: ../src/guestfs.pod:1577
37911 #, no-wrap
37912 msgid ""
37913 " #include <stdio.h>\n"
37914 " #include <stdlib.h>\n"
37915 " #include <unistd.h>\n"
37916 " #include <dlfcn.h>\n"
37917 " #include <guestfs.h>\n"
37918 " \n"
37919 msgstr ""
37920
37921 #. type: verbatim
37922 #: ../src/guestfs.pod:1583
37923 #, no-wrap
37924 msgid ""
37925 " main ()\n"
37926 " {\n"
37927 " #ifdef LIBGUESTFS_HAVE_DD\n"
37928 "   void *dl;\n"
37929 "   int has_function;\n"
37930 " \n"
37931 msgstr ""
37932
37933 #. type: verbatim
37934 #: ../src/guestfs.pod:1589
37935 #, no-wrap
37936 msgid ""
37937 "   /* Test if the function guestfs_dd is really available. */\n"
37938 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37939 "   if (!dl) {\n"
37940 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37941 "     exit (EXIT_FAILURE);\n"
37942 "   }\n"
37943 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37944 "   dlclose (dl);\n"
37945 " \n"
37946 msgstr ""
37947
37948 #. type: verbatim
37949 #: ../src/guestfs.pod:1598
37950 #, no-wrap
37951 msgid ""
37952 "   if (!has_function)\n"
37953 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37954 "   else {\n"
37955 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37956 "     /* Now it's safe to call\n"
37957 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37958 "     */\n"
37959 "   }\n"
37960 " #else\n"
37961 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37962 " #endif\n"
37963 "  }\n"
37964 "\n"
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:1611
37969 msgid ""
37970 "You may think the above is an awful lot of hassle, and it is.  There are "
37971 "other ways outside of the C linking system to ensure that this kind of "
37972 "incompatibility never arises, such as using package versioning:"
37973 msgstr ""
37974
37975 #. type: verbatim
37976 #: ../src/guestfs.pod:1616
37977 #, no-wrap
37978 msgid ""
37979 " Requires: libguestfs >= 1.0.80\n"
37980 "\n"
37981 msgstr ""
37982
37983 #. type: =head1
37984 #: ../src/guestfs.pod:1618
37985 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:1620
37990 msgid ""
37991 "A recent feature of the API is the introduction of calls which take optional "
37992 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37993 "takes variable arguments (ie. C<...>), as in this example:"
37994 msgstr ""
37995
37996 #. type: verbatim
37997 #: ../src/guestfs.pod:1625
37998 #, no-wrap
37999 msgid ""
38000 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38001 "\n"
38002 msgstr ""
38003
38004 #. type: textblock
38005 #: ../src/guestfs.pod:1627
38006 msgid ""
38007 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38008 "call with no optional arguments specified:"
38009 msgstr ""
38010
38011 #. type: verbatim
38012 #: ../src/guestfs.pod:1630
38013 #, no-wrap
38014 msgid ""
38015 " guestfs_add_drive_opts (g, filename, -1);\n"
38016 "\n"
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1632
38021 msgid "With a single optional argument:"
38022 msgstr ""
38023
38024 #. type: verbatim
38025 #: ../src/guestfs.pod:1634
38026 #, no-wrap
38027 msgid ""
38028 " guestfs_add_drive_opts (g, filename,\n"
38029 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38030 "                         -1);\n"
38031 "\n"
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:1638
38036 msgid "With two:"
38037 msgstr ""
38038
38039 #. type: verbatim
38040 #: ../src/guestfs.pod:1640
38041 #, no-wrap
38042 msgid ""
38043 " guestfs_add_drive_opts (g, filename,\n"
38044 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38045 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38046 "                         -1);\n"
38047 "\n"
38048 msgstr ""
38049
38050 #. type: textblock
38051 #: ../src/guestfs.pod:1645
38052 msgid ""
38053 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38054 "happen!"
38055 msgstr ""
38056
38057 #. type: =head2
38058 #: ../src/guestfs.pod:1648
38059 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:1650
38064 msgid ""
38065 "The second variant has the same name with the suffix C<_va>, which works the "
38066 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38067 "example function, this is declared:"
38068 msgstr ""
38069
38070 #. type: verbatim
38071 #: ../src/guestfs.pod:1654
38072 #, no-wrap
38073 msgid ""
38074 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38075 "                                va_list args);\n"
38076 "\n"
38077 msgstr ""
38078
38079 #. type: =head2
38080 #: ../src/guestfs.pod:1657
38081 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38082 msgstr ""
38083
38084 #. type: textblock
38085 #: ../src/guestfs.pod:1659
38086 msgid ""
38087 "The third variant is useful where you need to construct these calls.  You "
38088 "pass in a structure where you fill in the optional fields.  The structure "
38089 "has a bitmask as the first element which you must set to indicate which "
38090 "fields you have filled in.  For our example function the structure and call "
38091 "are declared:"
38092 msgstr ""
38093
38094 #. type: verbatim
38095 #: ../src/guestfs.pod:1665
38096 #, no-wrap
38097 msgid ""
38098 " struct guestfs_add_drive_opts_argv {\n"
38099 "   uint64_t bitmask;\n"
38100 "   int readonly;\n"
38101 "   const char *format;\n"
38102 "   /* ... */\n"
38103 " };\n"
38104 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38105 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38106 "\n"
38107 msgstr ""
38108
38109 #. type: textblock
38110 #: ../src/guestfs.pod:1674
38111 msgid "You could call it like this:"
38112 msgstr ""
38113
38114 #. type: verbatim
38115 #: ../src/guestfs.pod:1676
38116 #, no-wrap
38117 msgid ""
38118 " struct guestfs_add_drive_opts_argv optargs = {\n"
38119 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38120 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38121 "   .readonly = 1,\n"
38122 "   .format = \"qcow2\"\n"
38123 " };\n"
38124 " \n"
38125 msgstr ""
38126
38127 #. type: verbatim
38128 #: ../src/guestfs.pod:1683
38129 #, no-wrap
38130 msgid ""
38131 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38132 "\n"
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:1691
38137 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:1696
38142 msgid "You do not need to fill in all fields of the structure."
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:1700
38147 msgid ""
38148 "There must be a one-to-one correspondence between fields of the structure "
38149 "that are filled in, and bits set in the bitmask."
38150 msgstr ""
38151
38152 #. type: =head2
38153 #: ../src/guestfs.pod:1705
38154 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38155 msgstr ""
38156
38157 #. type: textblock
38158 #: ../src/guestfs.pod:1707
38159 msgid ""
38160 "In other languages, optional arguments are expressed in the way that is "
38161 "natural for that language.  We refer you to the language-specific "
38162 "documentation for more details on that."
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:1711
38167 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38168 msgstr ""
38169
38170 #. type: =head2
38171 #: ../src/guestfs.pod:1713
38172 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:1715
38177 msgid ""
38178 "B<Note:> This section documents the generic event mechanism introduced in "
38179 "libguestfs 1.10, which you should use in new code if possible.  The old "
38180 "functions C<guestfs_set_log_message_callback>, "
38181 "C<guestfs_set_subprocess_quit_callback>, "
38182 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38183 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38184 "page.  Because of the ABI guarantee, the old functions continue to work."
38185 msgstr ""
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:1724
38189 msgid ""
38190 "Handles generate events when certain things happen, such as log messages "
38191 "being generated, progress messages during long-running operations, or the "
38192 "handle being closed.  The API calls described below let you register a "
38193 "callback to be called when events happen.  You can register multiple "
38194 "callbacks (for the same, different or overlapping sets of events), and "
38195 "individually remove callbacks.  If callbacks are not removed, then they "
38196 "remain in force until the handle is closed."
38197 msgstr ""
38198
38199 #. type: textblock
38200 #: ../src/guestfs.pod:1732
38201 msgid ""
38202 "In the current implementation, events are only generated synchronously: that "
38203 "means that events (and hence callbacks) can only happen while you are in the "
38204 "middle of making another libguestfs call.  The callback is called in the "
38205 "same thread."
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../src/guestfs.pod:1737
38210 msgid ""
38211 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38212 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38213 msgstr ""
38214
38215 #. type: =head3
38216 #: ../src/guestfs.pod:1741
38217 msgid "CLASSES OF EVENTS"
38218 msgstr ""
38219
38220 #. type: =item
38221 #: ../src/guestfs.pod:1745
38222 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:1748
38227 msgid ""
38228 "The callback function will be called while the handle is being closed "
38229 "(synchronously from L</guestfs_close>)."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:1751
38234 msgid ""
38235 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38236 "handles that are open when the program exits.  This means that this callback "
38237 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38238 "problems in higher-level languages (eg. if your HLL interpreter has already "
38239 "been cleaned up by the time this is called, and if your callback then jumps "
38240 "into some HLL function)."
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../src/guestfs.pod:1758
38245 msgid ""
38246 "If no callback is registered: the handle is closed without any callback "
38247 "being invoked."
38248 msgstr ""
38249
38250 #. type: =item
38251 #: ../src/guestfs.pod:1761
38252 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:1764
38257 msgid ""
38258 "The callback function will be called when the child process quits, either "
38259 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38260 "corresponds to a transition from any state to the CONFIG state)."
38261 msgstr ""
38262
38263 #. type: textblock
38264 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38265 msgid "If no callback is registered: the event is ignored."
38266 msgstr ""
38267
38268 #. type: =item
38269 #: ../src/guestfs.pod:1770
38270 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../src/guestfs.pod:1773
38275 msgid ""
38276 "The callback function will be called when the child process becomes ready "
38277 "first time after it has been launched.  (This corresponds to a transition "
38278 "from LAUNCHING to the READY state)."
38279 msgstr ""
38280
38281 #. type: =item
38282 #: ../src/guestfs.pod:1779
38283 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:1782
38288 msgid ""
38289 "Some long-running operations can generate progress messages.  If this "
38290 "callback is registered, then it will be called each time a progress message "
38291 "is generated (usually two seconds after the operation started, and three "
38292 "times per second thereafter until it completes, although the frequency may "
38293 "change in future versions)."
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../src/guestfs.pod:1788
38298 msgid ""
38299 "The callback receives in the payload four unsigned 64 bit numbers which are "
38300 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38301 msgstr ""
38302
38303 #. type: textblock
38304 #: ../src/guestfs.pod:1791
38305 msgid ""
38306 "The units of C<total> are not defined, although for some operations C<total> "
38307 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38308 "or megabytes), and C<position> may be the portion which has been "
38309 "transferred."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../src/guestfs.pod:1796
38314 msgid "The only defined and stable parts of the API are:"
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:1802
38319 msgid ""
38320 "The callback can display to the user some type of progress bar or indicator "
38321 "which shows the ratio of C<position>:C<total>."
38322 msgstr ""
38323
38324 #. type: textblock
38325 #: ../src/guestfs.pod:1807
38326 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:1811
38331 msgid ""
38332 "If any progress notification is sent during a call, then a final progress "
38333 "notification is always sent when C<position> = C<total> (I<unless> the call "
38334 "fails with an error)."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:1815
38339 msgid ""
38340 "This is to simplify caller code, so callers can easily set the progress "
38341 "indicator to \"100%\" at the end of the operation, without requiring special "
38342 "code to detect this case."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:1821
38347 msgid ""
38348 "For some calls we are unable to estimate the progress of the call, but we "
38349 "can still generate progress messages to indicate activity.  This is known as "
38350 "\"pulse mode\", and is directly supported by certain progress bar "
38351 "implementations (eg. GtkProgressBar)."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:1826
38356 msgid ""
38357 "For these calls, zero or more progress messages are generated with "
38358 "C<position = 0> and C<total = 1>, followed by a final message with "
38359 "C<position = total = 1>."
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:1830
38364 msgid ""
38365 "As noted above, if the call fails with an error then the final message may "
38366 "not be generated."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:1835
38371 msgid ""
38372 "The callback also receives the procedure number (C<proc_nr>) and serial "
38373 "number (C<serial>) of the call.  These are only useful for debugging "
38374 "protocol issues, and the callback can normally ignore them.  The callback "
38375 "may want to print these numbers in error messages or debugging messages."
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../src/guestfs.pod:1841
38380 msgid "If no callback is registered: progress messages are discarded."
38381 msgstr ""
38382
38383 #. type: =item
38384 #: ../src/guestfs.pod:1843
38385 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../src/guestfs.pod:1846
38390 msgid ""
38391 "The callback function is called whenever a log message is generated by qemu, "
38392 "the appliance kernel, guestfsd (daemon), or utility programs."
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../src/guestfs.pod:1849
38397 msgid ""
38398 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
38399 "(L</guestfs_launch>) then additional debug messages are generated."
38400 msgstr ""
38401
38402 #. type: textblock
38403 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38404 msgid ""
38405 "If no callback is registered: the messages are discarded unless the verbose "
38406 "flag is set in which case they are sent to stderr.  You can override the "
38407 "printing of verbose messages to stderr by setting up a callback."
38408 msgstr ""
38409
38410 #. type: =item
38411 #: ../src/guestfs.pod:1857
38412 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38413 msgstr ""
38414
38415 #. type: textblock
38416 #: ../src/guestfs.pod:1860
38417 msgid ""
38418 "The callback function is called whenever a log message is generated by the "
38419 "library part of libguestfs."
38420 msgstr ""
38421
38422 #. type: textblock
38423 #: ../src/guestfs.pod:1863
38424 msgid ""
38425 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38426 "messages are generated."
38427 msgstr ""
38428
38429 #. type: =item
38430 #: ../src/guestfs.pod:1871
38431 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:1874
38436 msgid ""
38437 "The callback function is called whenever a trace message is generated.  This "
38438 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38439 msgstr ""
38440
38441 #. type: textblock
38442 #: ../src/guestfs.pod:1877
38443 msgid ""
38444 "If no callback is registered: the messages are sent to stderr.  You can "
38445 "override the printing of trace messages to stderr by setting up a callback."
38446 msgstr ""
38447
38448 #. type: =item
38449 #: ../src/guestfs.pod:1881
38450 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:1884
38455 msgid "The callback function is called whenever a libguestfs function is entered."
38456 msgstr ""
38457
38458 #. type: textblock
38459 #: ../src/guestfs.pod:1887
38460 msgid ""
38461 "The payload is a string which contains the name of the function that we are "
38462 "entering (not including C<guestfs_> prefix)."
38463 msgstr ""
38464
38465 #. type: textblock
38466 #: ../src/guestfs.pod:1890
38467 msgid ""
38468 "Note that libguestfs functions can call themselves, so you may see many "
38469 "events from a single call.  A few libguestfs functions do not generate this "
38470 "event."
38471 msgstr ""
38472
38473 #. type: =head3
38474 #: ../src/guestfs.pod:1898
38475 msgid "guestfs_set_event_callback"
38476 msgstr ""
38477
38478 #. type: verbatim
38479 #: ../src/guestfs.pod:1900
38480 #, no-wrap
38481 msgid ""
38482 " int guestfs_set_event_callback (guestfs_h *g,\n"
38483 "                                 guestfs_event_callback cb,\n"
38484 "                                 uint64_t event_bitmask,\n"
38485 "                                 int flags,\n"
38486 "                                 void *opaque);\n"
38487 "\n"
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:1906
38492 msgid ""
38493 "This function registers a callback (C<cb>) for all event classes in the "
38494 "C<event_bitmask>."
38495 msgstr ""
38496
38497 #. type: textblock
38498 #: ../src/guestfs.pod:1909
38499 msgid ""
38500 "For example, to register for all log message events, you could call this "
38501 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38502 "To register a single callback for all possible classes of events, use "
38503 "C<GUESTFS_EVENT_ALL>."
38504 msgstr ""
38505
38506 #. type: textblock
38507 #: ../src/guestfs.pod:1915
38508 msgid "C<flags> should always be passed as 0."
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:1917
38513 msgid ""
38514 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38515 "it for any purpose."
38516 msgstr ""
38517
38518 #. type: textblock
38519 #: ../src/guestfs.pod:1920
38520 msgid ""
38521 "The return value is the event handle (an integer) which you can use to "
38522 "delete the callback (see below)."
38523 msgstr ""
38524
38525 #. type: textblock
38526 #: ../src/guestfs.pod:1923
38527 msgid ""
38528 "If there is an error, this function returns C<-1>, and sets the error in the "
38529 "handle in the usual way (see L</guestfs_last_error> etc.)"
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../src/guestfs.pod:1926
38534 msgid ""
38535 "Callbacks remain in effect until they are deleted, or until the handle is "
38536 "closed."
38537 msgstr ""
38538
38539 #. type: textblock
38540 #: ../src/guestfs.pod:1929
38541 msgid ""
38542 "In the case where multiple callbacks are registered for a particular event "
38543 "class, all of the callbacks are called.  The order in which multiple "
38544 "callbacks are called is not defined."
38545 msgstr ""
38546
38547 #. type: =head3
38548 #: ../src/guestfs.pod:1933
38549 msgid "guestfs_delete_event_callback"
38550 msgstr ""
38551
38552 #. type: verbatim
38553 #: ../src/guestfs.pod:1935
38554 #, no-wrap
38555 msgid ""
38556 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38557 "\n"
38558 msgstr ""
38559
38560 #. type: textblock
38561 #: ../src/guestfs.pod:1937
38562 msgid ""
38563 "Delete a callback that was previously registered.  C<event_handle> should be "
38564 "the integer that was returned by a previous call to "
38565 "C<guestfs_set_event_callback> on the same handle."
38566 msgstr ""
38567
38568 #. type: =head3
38569 #: ../src/guestfs.pod:1941
38570 msgid "guestfs_event_callback"
38571 msgstr ""
38572
38573 #. type: verbatim
38574 #: ../src/guestfs.pod:1943
38575 #, no-wrap
38576 msgid ""
38577 " typedef void (*guestfs_event_callback) (\n"
38578 "                  guestfs_h *g,\n"
38579 "                  void *opaque,\n"
38580 "                  uint64_t event,\n"
38581 "                  int event_handle,\n"
38582 "                  int flags,\n"
38583 "                  const char *buf, size_t buf_len,\n"
38584 "                  const uint64_t *array, size_t array_len);\n"
38585 "\n"
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:1952
38590 msgid "This is the type of the event callback function that you have to provide."
38591 msgstr ""
38592
38593 #. type: textblock
38594 #: ../src/guestfs.pod:1955
38595 msgid ""
38596 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38597 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38598 "handle, and C<flags> which in the current API you should ignore."
38599 msgstr ""
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:1959
38603 msgid ""
38604 "The remaining parameters contain the event payload (if any).  Each event may "
38605 "contain a payload, which usually relates to the event class, but for future "
38606 "proofing your code should be written to handle any payload for any event "
38607 "class."
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../src/guestfs.pod:1964
38612 msgid ""
38613 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38614 "there is no message buffer).  Note that this message buffer can contain "
38615 "arbitrary 8 bit data, including NUL bytes."
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../src/guestfs.pod:1968
38620 msgid ""
38621 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38622 "moment this is only used for progress messages."
38623 msgstr ""
38624
38625 #. type: =head3
38626 #: ../src/guestfs.pod:1971
38627 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:1973
38632 msgid ""
38633 "One motivation for the generic event API was to allow GUI programs to "
38634 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38635 "unconditionally to C<stderr>."
38636 msgstr ""
38637
38638 #. type: textblock
38639 #: ../src/guestfs.pod:1977
38640 msgid ""
38641 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38642 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38643 "messages are not events; you must capture error messages separately)."
38644 msgstr ""
38645
38646 #. type: textblock
38647 #: ../src/guestfs.pod:1982
38648 msgid ""
38649 "Programs have to set up a callback to capture the classes of events of "
38650 "interest:"
38651 msgstr ""
38652
38653 #. type: verbatim
38654 #: ../src/guestfs.pod:1985
38655 #, no-wrap
38656 msgid ""
38657 " int eh =\n"
38658 "   guestfs_set_event_callback\n"
38659 "     (g, message_callback,\n"
38660 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38661 "      GUESTFS_EVENT_TRACE,\n"
38662 "      0, NULL) == -1)\n"
38663 " if (eh == -1) {\n"
38664 "   // handle error in the usual way\n"
38665 " }\n"
38666 "\n"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:1995
38671 msgid ""
38672 "The callback can then direct messages to the appropriate place.  In this "
38673 "example, messages are directed to syslog:"
38674 msgstr ""
38675
38676 #. type: verbatim
38677 #: ../src/guestfs.pod:1998
38678 #, no-wrap
38679 msgid ""
38680 " static void\n"
38681 " message_callback (\n"
38682 "         guestfs_h *g,\n"
38683 "         void *opaque,\n"
38684 "         uint64_t event,\n"
38685 "         int event_handle,\n"
38686 "         int flags,\n"
38687 "         const char *buf, size_t buf_len,\n"
38688 "         const uint64_t *array, size_t array_len)\n"
38689 " {\n"
38690 "   const int priority = LOG_USER|LOG_INFO;\n"
38691 "   if (buf_len > 0)\n"
38692 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38693 " }\n"
38694 "\n"
38695 msgstr ""
38696
38697 #. type: =head1
38698 #: ../src/guestfs.pod:2013
38699 msgid "CANCELLING LONG TRANSFERS"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:2015
38704 msgid ""
38705 "Some operations can be cancelled by the caller while they are in progress.  "
38706 "Currently only operations that involve uploading or downloading data can be "
38707 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38708 "parameters in the generator)."
38709 msgstr ""
38710
38711 #. type: =head2
38712 #: ../src/guestfs.pod:2020
38713 msgid "guestfs_user_cancel"
38714 msgstr ""
38715
38716 #. type: verbatim
38717 #: ../src/guestfs.pod:2022
38718 #, no-wrap
38719 msgid ""
38720 " void guestfs_user_cancel (guestfs_h *g);\n"
38721 "\n"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2024
38726 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:2027
38731 msgid ""
38732 "Unlike most other libguestfs calls, this function is signal safe and thread "
38733 "safe.  You can call it from a signal handler or from another thread, without "
38734 "needing to do any locking."
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:2031
38739 msgid ""
38740 "The transfer that was in progress (if there is one) will stop shortly "
38741 "afterwards, and will return an error.  The errno (see "
38742 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38743 "out if the operation was cancelled or failed because of another error."
38744 msgstr ""
38745
38746 #. type: textblock
38747 #: ../src/guestfs.pod:2037
38748 msgid ""
38749 "No cleanup is performed: for example, if a file was being uploaded then "
38750 "after cancellation there may be a partially uploaded file.  It is the "
38751 "caller's responsibility to clean up if necessary."
38752 msgstr ""
38753
38754 #. type: textblock
38755 #: ../src/guestfs.pod:2041
38756 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38757 msgstr ""
38758
38759 #. type: textblock
38760 #: ../src/guestfs.pod:2043
38761 msgid ""
38762 "In an interactive text-based program, you might call it from a C<SIGINT> "
38763 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38764 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38765 "receive the C<^C> signal)."
38766 msgstr ""
38767
38768 #. type: textblock
38769 #: ../src/guestfs.pod:2048
38770 msgid ""
38771 "In a graphical program, when the main thread is displaying a progress bar "
38772 "with a cancel button, wire up the cancel button to call this function."
38773 msgstr ""
38774
38775 #. type: =head1
38776 #: ../src/guestfs.pod:2052
38777 msgid "PRIVATE DATA AREA"
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../src/guestfs.pod:2054
38782 msgid ""
38783 "You can attach named pieces of private data to the libguestfs handle, fetch "
38784 "them by name, and walk over them, for the lifetime of the handle.  This is "
38785 "called the private data area and is only available from the C API."
38786 msgstr ""
38787
38788 #. type: textblock
38789 #: ../src/guestfs.pod:2059
38790 msgid "To attach a named piece of data, use the following call:"
38791 msgstr ""
38792
38793 #. type: verbatim
38794 #: ../src/guestfs.pod:2061
38795 #, no-wrap
38796 msgid ""
38797 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38798 "\n"
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:2063
38803 msgid ""
38804 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38805 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38806 "overwritten."
38807 msgstr ""
38808
38809 #. type: textblock
38810 #: ../src/guestfs.pod:2067
38811 msgid ""
38812 "You can use any C<key> you want, but your key should I<not> start with an "
38813 "underscore character.  Keys beginning with an underscore character are "
38814 "reserved for internal libguestfs purposes (eg. for implementing language "
38815 "bindings).  It is recommended that you prefix the key with some unique "
38816 "string to avoid collisions with other users."
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../src/guestfs.pod:2073
38821 msgid "To retrieve the pointer, use:"
38822 msgstr ""
38823
38824 #. type: verbatim
38825 #: ../src/guestfs.pod:2075
38826 #, no-wrap
38827 msgid ""
38828 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38829 "\n"
38830 msgstr ""
38831
38832 #. type: textblock
38833 #: ../src/guestfs.pod:2077
38834 msgid ""
38835 "This function returns C<NULL> if either no data is found associated with "
38836 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38837 "C<NULL>."
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:2081
38842 msgid ""
38843 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38844 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38845 "all.  In particular, libguestfs does I<not> try to free the data when the "
38846 "handle is closed.  If the data must be freed, then the caller must either "
38847 "free it before calling L</guestfs_close> or must set up a close callback to "
38848 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38849 msgstr ""
38850
38851 #. type: textblock
38852 #: ../src/guestfs.pod:2088
38853 msgid "To walk over all entries, use these two functions:"
38854 msgstr ""
38855
38856 #. type: verbatim
38857 #: ../src/guestfs.pod:2090
38858 #, no-wrap
38859 msgid ""
38860 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38861 "\n"
38862 msgstr ""
38863
38864 #. type: verbatim
38865 #: ../src/guestfs.pod:2092
38866 #, no-wrap
38867 msgid ""
38868 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38869 "\n"
38870 msgstr ""
38871
38872 #. type: textblock
38873 #: ../src/guestfs.pod:2094
38874 msgid ""
38875 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38876 "not have any particular meaning -- keys are not returned in any defined "
38877 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38878 "corresponding data pointer is returned from the function.  C<NULL> is "
38879 "returned if there are no keys stored in the handle."
38880 msgstr ""
38881
38882 #. type: textblock
38883 #: ../src/guestfs.pod:2100
38884 msgid ""
38885 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38886 "value of this function is also C<NULL> is there are no further entries to "
38887 "return."
38888 msgstr ""
38889
38890 #. type: textblock
38891 #: ../src/guestfs.pod:2104
38892 msgid "Notes about walking over entries:"
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:2110
38897 msgid "You must not call C<guestfs_set_private> while walking over the entries."
38898 msgstr ""
38899
38900 #. type: textblock
38901 #: ../src/guestfs.pod:2115
38902 msgid ""
38903 "The handle maintains an internal iterator which is reset when you call "
38904 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38905 "call C<guestfs_set_private>."
38906 msgstr ""
38907
38908 #. type: textblock
38909 #: ../src/guestfs.pod:2121
38910 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38911 msgstr ""
38912
38913 #. type: verbatim
38914 #: ../src/guestfs.pod:2123
38915 #, no-wrap
38916 msgid ""
38917 " guestfs_set_private (g, key, NULL);\n"
38918 "\n"
38919 msgstr ""
38920
38921 #. type: textblock
38922 #: ../src/guestfs.pod:2125
38923 msgid "then that C<key> is not returned when walking."
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:2129
38928 msgid ""
38929 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38930 "C<guestfs_next_private> or C<guestfs_set_private>."
38931 msgstr ""
38932
38933 #. type: textblock
38934 #: ../src/guestfs.pod:2135
38935 msgid ""
38936 "The following example code shows how to print all keys and data pointers "
38937 "that are associated with the handle C<g>:"
38938 msgstr ""
38939
38940 #. type: verbatim
38941 #: ../src/guestfs.pod:2138
38942 #, no-wrap
38943 msgid ""
38944 " const char *key;\n"
38945 " void *data = guestfs_first_private (g, &key);\n"
38946 " while (data != NULL)\n"
38947 "   {\n"
38948 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38949 "     data = guestfs_next_private (g, &key);\n"
38950 "   }\n"
38951 "\n"
38952 msgstr ""
38953
38954 #. type: textblock
38955 #: ../src/guestfs.pod:2146
38956 msgid ""
38957 "More commonly you are only interested in keys that begin with an "
38958 "application-specific prefix C<foo_>.  Modify the loop like so:"
38959 msgstr ""
38960
38961 #. type: verbatim
38962 #: ../src/guestfs.pod:2149
38963 #, no-wrap
38964 msgid ""
38965 " const char *key;\n"
38966 " void *data = guestfs_first_private (g, &key);\n"
38967 " while (data != NULL)\n"
38968 "   {\n"
38969 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38970 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38971 "     data = guestfs_next_private (g, &key);\n"
38972 "   }\n"
38973 "\n"
38974 msgstr ""
38975
38976 #. type: textblock
38977 #: ../src/guestfs.pod:2158
38978 msgid ""
38979 "If you need to modify keys while walking, then you have to jump back to the "
38980 "beginning of the loop.  For example, to delete all keys prefixed with "
38981 "C<foo_>:"
38982 msgstr ""
38983
38984 #. type: verbatim
38985 #: ../src/guestfs.pod:2162
38986 #, no-wrap
38987 msgid ""
38988 "  const char *key;\n"
38989 "  void *data;\n"
38990 " again:\n"
38991 "  data = guestfs_first_private (g, &key);\n"
38992 "  while (data != NULL)\n"
38993 "    {\n"
38994 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38995 "        {\n"
38996 "          guestfs_set_private (g, key, NULL);\n"
38997 "          /* note that 'key' pointer is now invalid, and so is\n"
38998 "             the internal iterator */\n"
38999 "          goto again;\n"
39000 "        }\n"
39001 "      data = guestfs_next_private (g, &key);\n"
39002 "    }\n"
39003 "\n"
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:2178
39008 msgid ""
39009 "Note that the above loop is guaranteed to terminate because the keys are "
39010 "being deleted, but other manipulations of keys within the loop might not "
39011 "terminate unless you also maintain an indication of which keys have been "
39012 "visited."
39013 msgstr ""
39014
39015 #. type: =head1
39016 #: ../src/guestfs.pod:2183
39017 msgid "SYSTEMTAP"
39018 msgstr ""
39019
39020 #. type: textblock
39021 #: ../src/guestfs.pod:2185
39022 msgid ""
39023 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39024 "true of any library, not just libguestfs.  However libguestfs also contains "
39025 "static markers to help in probing internal operations."
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:2189
39030 msgid "You can list all the static markers by doing:"
39031 msgstr ""
39032
39033 #. type: verbatim
39034 #: ../src/guestfs.pod:2191
39035 #, no-wrap
39036 msgid ""
39037 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39038 "              .provider(\"guestfs\").mark(\"*\")'\n"
39039 "\n"
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2194
39044 msgid ""
39045 "B<Note:> These static markers are I<not> part of the stable API and may "
39046 "change in future versions."
39047 msgstr ""
39048
39049 #. type: =head2
39050 #: ../src/guestfs.pod:2197
39051 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39052 msgstr ""
39053
39054 #. type: textblock
39055 #: ../src/guestfs.pod:2199
39056 msgid ""
39057 "This script contains examples of displaying both the static markers and some "
39058 "ordinary C entry points:"
39059 msgstr ""
39060
39061 #. type: verbatim
39062 #: ../src/guestfs.pod:2202
39063 #, no-wrap
39064 msgid ""
39065 " global last;\n"
39066 " \n"
39067 msgstr ""
39068
39069 #. type: verbatim
39070 #: ../src/guestfs.pod:2204
39071 #, no-wrap
39072 msgid ""
39073 " function display_time () {\n"
39074 "       now = gettimeofday_us ();\n"
39075 "       delta = 0;\n"
39076 "       if (last > 0)\n"
39077 "             delta = now - last;\n"
39078 "       last = now;\n"
39079 " \n"
39080 msgstr ""
39081
39082 #. type: verbatim
39083 #: ../src/guestfs.pod:2211
39084 #, no-wrap
39085 msgid ""
39086 "       printf (\"%d (+%d):\", now, delta);\n"
39087 " }\n"
39088 " \n"
39089 msgstr ""
39090
39091 #. type: verbatim
39092 #: ../src/guestfs.pod:2214
39093 #, no-wrap
39094 msgid ""
39095 " probe begin {\n"
39096 "       last = 0;\n"
39097 "       printf (\"ready\\n\");\n"
39098 " }\n"
39099 " \n"
39100 msgstr ""
39101
39102 #. type: verbatim
39103 #: ../src/guestfs.pod:2219
39104 #, no-wrap
39105 msgid ""
39106 " /* Display all calls to static markers. */\n"
39107 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39108 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39109 "       display_time();\n"
39110 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39111 " }\n"
39112 " \n"
39113 msgstr ""
39114
39115 #. type: verbatim
39116 #: ../src/guestfs.pod:2226
39117 #, no-wrap
39118 msgid ""
39119 " /* Display all calls to guestfs_mkfs* functions. */\n"
39120 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39121 "           .function(\"guestfs_mkfs*\") ? {\n"
39122 "       display_time();\n"
39123 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39124 " }\n"
39125 "\n"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:2233
39130 msgid ""
39131 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39132 "program.  Note that you either have to be root, or you have to add yourself "
39133 "to several special stap groups.  Consult the systemtap documentation for "
39134 "more information."
39135 msgstr ""
39136
39137 #. type: verbatim
39138 #: ../src/guestfs.pod:2238
39139 #, no-wrap
39140 msgid ""
39141 " # stap /tmp/test.stap\n"
39142 " ready\n"
39143 "\n"
39144 msgstr ""
39145
39146 #. type: textblock
39147 #: ../src/guestfs.pod:2241
39148 msgid "In another terminal, run a guestfish command such as this:"
39149 msgstr ""
39150
39151 #. type: textblock
39152 #: ../src/guestfs.pod:2245
39153 msgid "In the first terminal, stap trace output similar to this is shown:"
39154 msgstr ""
39155
39156 #. type: verbatim
39157 #: ../src/guestfs.pod:2247
39158 #, no-wrap
39159 msgid ""
39160 " 1318248056692655 (+0):\tlaunch_start\n"
39161 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39162 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39163 " 1318248056838059 (+19774):     launch_run_qemu\n"
39164 " 1318248061071167 (+4233108):   launch_end\n"
39165 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
39166 "device=0x1024e60\n"
39167 "\n"
39168 msgstr ""
39169
39170 #. type: =end
39171 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39172 msgid "html"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2256
39177 msgid ""
39178 "<!-- old anchor for the next section --> <a "
39179 "name=\"state_machine_and_low_level_event_api\"/>"
39180 msgstr ""
39181
39182 #. type: =head1
39183 #: ../src/guestfs.pod:2261
39184 msgid "ARCHITECTURE"
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../src/guestfs.pod:2263
39189 msgid ""
39190 "Internally, libguestfs is implemented by running an appliance (a special "
39191 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39192 "process of the main program."
39193 msgstr ""
39194
39195 #. type: verbatim
39196 #: ../src/guestfs.pod:2267
39197 #, no-wrap
39198 msgid ""
39199 "  ___________________\n"
39200 " /                   \\\n"
39201 " | main program      |\n"
39202 " |                   |\n"
39203 " |                   |           child process / appliance\n"
39204 " |                   |           __________________________\n"
39205 " |                   |          / qemu                     \\\n"
39206 " +-------------------+   RPC    |      +-----------------+ |\n"
39207 " | libguestfs     <--------------------> guestfsd        | |\n"
39208 " |                   |          |      +-----------------+ |\n"
39209 " \\___________________/          |      | Linux kernel    | |\n"
39210 "                                |      +--^--------------+ |\n"
39211 "                                \\_________|________________/\n"
39212 "                                          |\n"
39213 "                                   _______v______\n"
39214 "                                  /              \\\n"
39215 "                                  | Device or    |\n"
39216 "                                  | disk image   |\n"
39217 "                                  \\______________/\n"
39218 "\n"
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:2287
39223 msgid ""
39224 "The library, linked to the main program, creates the child process and hence "
39225 "the appliance in the L</guestfs_launch> function."
39226 msgstr ""
39227
39228 #. type: textblock
39229 #: ../src/guestfs.pod:2290
39230 msgid ""
39231 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39232 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39233 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39234 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39235 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39236 "attached to the qemu process which translates device access by the "
39237 "appliance's Linux kernel into accesses to the image."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:2299
39242 msgid ""
39243 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39244 "Although the disk image you are attached to might also be used by some "
39245 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39246 "care if both libguestfs's qemu process and your virtual machine are trying "
39247 "to update the disk image at the same time, since these usually results in "
39248 "massive disk corruption)."
39249 msgstr ""
39250
39251 #. type: =head1
39252 #: ../src/guestfs.pod:2306
39253 msgid "STATE MACHINE"
39254 msgstr ""
39255
39256 #. type: textblock
39257 #: ../src/guestfs.pod:2308
39258 msgid "libguestfs uses a state machine to model the child process:"
39259 msgstr ""
39260
39261 #. type: verbatim
39262 #: ../src/guestfs.pod:2310
39263 #, no-wrap
39264 msgid ""
39265 "                         |\n"
39266 "                    guestfs_create\n"
39267 "                         |\n"
39268 "                         |\n"
39269 "                     ____V_____\n"
39270 "                    /          \\\n"
39271 "                    |  CONFIG  |\n"
39272 "                    \\__________/\n"
39273 "                     ^ ^   ^  \\\n"
39274 "                    /  |    \\  \\ guestfs_launch\n"
39275 "                   /   |    _\\__V______\n"
39276 "                  /    |   /           \\\n"
39277 "                 /     |   | LAUNCHING |\n"
39278 "                /      |   \\___________/\n"
39279 "               /       |       /\n"
39280 "              /        |  guestfs_launch\n"
39281 "             /         |     /\n"
39282 "    ______  /        __|____V\n"
39283 "   /      \\ ------> /        \\\n"
39284 "   | BUSY |         | READY  |\n"
39285 "   \\______/ <------ \\________/\n"
39286 "\n"
39287 msgstr ""
39288
39289 #. type: textblock
39290 #: ../src/guestfs.pod:2332
39291 msgid ""
39292 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39293 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39294 "(3) alternating between READY and BUSY as commands are issued to, and "
39295 "carried out by, the child process."
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../src/guestfs.pod:2337
39300 msgid ""
39301 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39302 "asynchronously at any time (eg. due to some internal error), and that causes "
39303 "the state to transition back to CONFIG."
39304 msgstr ""
39305
39306 #. type: textblock
39307 #: ../src/guestfs.pod:2341
39308 msgid ""
39309 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39310 "issued when in the CONFIG state."
39311 msgstr ""
39312
39313 #. type: textblock
39314 #: ../src/guestfs.pod:2344
39315 msgid ""
39316 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39317 "L</guestfs_launch> blocks until the child process is READY to accept "
39318 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39319 "moves the state from CONFIG to LAUNCHING while it is running."
39320 msgstr ""
39321
39322 #. type: textblock
39323 #: ../src/guestfs.pod:2350
39324 msgid ""
39325 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39326 "state.  These API calls block waiting for the command to be carried out "
39327 "(ie. the state to transition to BUSY and then back to READY).  There are no "
39328 "non-blocking versions, and no way to issue more than one command per handle "
39329 "at the same time."
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:2356
39334 msgid ""
39335 "Finally, the child process sends asynchronous messages back to the main "
39336 "program, such as kernel log messages.  You can register a callback to "
39337 "receive these messages."
39338 msgstr ""
39339
39340 #. type: =head1
39341 #: ../src/guestfs.pod:2360
39342 msgid "INTERNALS"
39343 msgstr ""
39344
39345 #. type: =head2
39346 #: ../src/guestfs.pod:2362
39347 msgid "APPLIANCE BOOT PROCESS"
39348 msgstr ""
39349
39350 #. type: textblock
39351 #: ../src/guestfs.pod:2364
39352 msgid ""
39353 "This process has evolved and continues to evolve.  The description here "
39354 "corresponds only to the current version of libguestfs and is provided for "
39355 "information only."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:2368
39360 msgid ""
39361 "In order to follow the stages involved below, enable libguestfs debugging "
39362 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39363 msgstr ""
39364
39365 #. type: =item
39366 #: ../src/guestfs.pod:2373
39367 msgid "Create the appliance"
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:2375
39372 msgid ""
39373 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39374 "initrd and the appliance."
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:2378
39379 msgid ""
39380 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39381 "directory if C<TMPDIR> is set)."
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../src/guestfs.pod:2381
39386 msgid ""
39387 "For a complete description of how the appliance is created and cached, read "
39388 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39389 msgstr ""
39390
39391 #. type: =item
39392 #: ../src/guestfs.pod:2385
39393 msgid "Start qemu and boot the kernel"
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:2387
39398 msgid "qemu is invoked to boot the kernel."
39399 msgstr ""
39400
39401 #. type: =item
39402 #: ../src/guestfs.pod:2389
39403 msgid "Run the initrd"
39404 msgstr ""
39405
39406 #. type: textblock
39407 #: ../src/guestfs.pod:2391
39408 msgid ""
39409 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39410 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39411 "order that the appliance itself can be mounted and started."
39412 msgstr ""
39413
39414 #. type: textblock
39415 #: ../src/guestfs.pod:2395
39416 msgid ""
39417 "The initrd is a cpio archive called "
39418 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
39419 msgstr ""
39420
39421 #. type: textblock
39422 #: ../src/guestfs.pod:2398
39423 msgid ""
39424 "When the initrd has started you will see messages showing that kernel "
39425 "modules are being loaded, similar to this:"
39426 msgstr ""
39427
39428 #. type: verbatim
39429 #: ../src/guestfs.pod:2401
39430 #, no-wrap
39431 msgid ""
39432 " febootstrap: ext2 mini initrd starting up\n"
39433 " febootstrap: mounting /sys\n"
39434 " febootstrap: internal insmod libcrc32c.ko\n"
39435 " febootstrap: internal insmod crc32c-intel.ko\n"
39436 "\n"
39437 msgstr ""
39438
39439 #. type: =item
39440 #: ../src/guestfs.pod:2406
39441 msgid "Find and mount the appliance device"
39442 msgstr ""
39443
39444 #. type: textblock
39445 #: ../src/guestfs.pod:2408
39446 msgid ""
39447 "The appliance is a sparse file containing an ext2 filesystem which contains "
39448 "a familiar (although reduced in size) Linux operating system.  It would "
39449 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../src/guestfs.pod:2412
39454 msgid ""
39455 "The regular disks being inspected by libguestfs are the first devices "
39456 "exposed by qemu (eg. as C</dev/vda>)."
39457 msgstr ""
39458
39459 #. type: textblock
39460 #: ../src/guestfs.pod:2415
39461 msgid ""
39462 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39463 "there was only one regular disk)."
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../src/guestfs.pod:2418
39468 msgid ""
39469 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39470 "and switch root into the appliance, and run C</init> from the appliance."
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../src/guestfs.pod:2422
39475 msgid "If this works successfully you will see messages such as:"
39476 msgstr ""
39477
39478 #. type: verbatim
39479 #: ../src/guestfs.pod:2424
39480 #, no-wrap
39481 msgid ""
39482 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39483 " febootstrap: creating /dev/root as block special 252:16\n"
39484 " febootstrap: mounting new root on /root\n"
39485 " febootstrap: chroot\n"
39486 " Starting /init script ...\n"
39487 "\n"
39488 msgstr ""
39489
39490 #. type: textblock
39491 #: ../src/guestfs.pod:2430
39492 msgid ""
39493 "Note that C<Starting /init script ...> indicates that the appliance's init "
39494 "script is now running."
39495 msgstr ""
39496
39497 #. type: =item
39498 #: ../src/guestfs.pod:2433
39499 msgid "Initialize the appliance"
39500 msgstr ""
39501
39502 #. type: textblock
39503 #: ../src/guestfs.pod:2435
39504 msgid ""
39505 "The appliance itself now initializes itself.  This involves starting certain "
39506 "processes like C<udev>, possibly printing some debug information, and "
39507 "finally running the daemon (C<guestfsd>)."
39508 msgstr ""
39509
39510 #. type: =item
39511 #: ../src/guestfs.pod:2439
39512 msgid "The daemon"
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../src/guestfs.pod:2441
39517 msgid ""
39518 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39519 "should see:"
39520 msgstr ""
39521
39522 #. type: verbatim
39523 #: ../src/guestfs.pod:2444
39524 #, no-wrap
39525 msgid ""
39526 " verbose daemon enabled\n"
39527 "\n"
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../src/guestfs.pod:2446
39532 msgid ""
39533 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39534 "connected on the other end to the library."
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2449
39539 msgid ""
39540 "The daemon connects to this port (and hence to the library) and sends a four "
39541 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39542 "protocol (see below)."
39543 msgstr ""
39544
39545 #. type: =head2
39546 #: ../src/guestfs.pod:2455
39547 msgid "COMMUNICATION PROTOCOL"
39548 msgstr ""
39549
39550 #. type: textblock
39551 #: ../src/guestfs.pod:2457
39552 msgid ""
39553 "Don't rely on using this protocol directly.  This section documents how it "
39554 "currently works, but it may change at any time."
39555 msgstr ""
39556
39557 #. type: textblock
39558 #: ../src/guestfs.pod:2460
39559 msgid ""
39560 "The protocol used to talk between the library and the daemon running inside "
39561 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39562 "1014, RFC 1832, RFC 4506)."
39563 msgstr ""
39564
39565 #. type: textblock
39566 #: ../src/guestfs.pod:2464
39567 msgid ""
39568 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39569 "this file is automatically generated)."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../src/guestfs.pod:2467
39574 msgid ""
39575 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39576 "and C<FileOut> parameters, which are handled with very simple request/reply "
39577 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39578 "parameters, which use the same request and reply messages, but they may also "
39579 "be followed by files sent using a chunked encoding."
39580 msgstr ""
39581
39582 #. type: =head3
39583 #: ../src/guestfs.pod:2474
39584 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39585 msgstr ""
39586
39587 #. type: textblock
39588 #: ../src/guestfs.pod:2476
39589 msgid "For ordinary functions, the request message is:"
39590 msgstr ""
39591
39592 #. type: verbatim
39593 #: ../src/guestfs.pod:2478
39594 #, no-wrap
39595 msgid ""
39596 " total length (header + arguments,\n"
39597 "      but not including the length word itself)\n"
39598 " struct guestfs_message_header (encoded as XDR)\n"
39599 " struct guestfs_<foo>_args (encoded as XDR)\n"
39600 "\n"
39601 msgstr ""
39602
39603 #. type: textblock
39604 #: ../src/guestfs.pod:2483
39605 msgid ""
39606 "The total length field allows the daemon to allocate a fixed size buffer "
39607 "into which it slurps the rest of the message.  As a result, the total length "
39608 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39609 "effective size of any request is limited to somewhere under this size."
39610 msgstr ""
39611
39612 #. type: textblock
39613 #: ../src/guestfs.pod:2489
39614 msgid ""
39615 "Note also that many functions don't take any arguments, in which case the "
39616 "C<guestfs_I<foo>_args> is completely omitted."
39617 msgstr ""
39618
39619 #. type: textblock
39620 #: ../src/guestfs.pod:2492
39621 msgid ""
39622 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39623 "receiver knows what type of args structure to expect, or none at all."
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../src/guestfs.pod:2496
39628 msgid ""
39629 "For functions that take optional arguments, the optional arguments are "
39630 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39631 "arguments.  A bitmask in the header indicates which optional arguments are "
39632 "meaningful.  The bitmask is also checked to see if it contains bits set "
39633 "which the daemon does not know about (eg. if more optional arguments were "
39634 "added in a later version of the library), and this causes the call to be "
39635 "rejected."
39636 msgstr ""
39637
39638 #. type: textblock
39639 #: ../src/guestfs.pod:2504
39640 msgid "The reply message for ordinary functions is:"
39641 msgstr ""
39642
39643 #. type: verbatim
39644 #: ../src/guestfs.pod:2506
39645 #, no-wrap
39646 msgid ""
39647 " total length (header + ret,\n"
39648 "      but not including the length word itself)\n"
39649 " struct guestfs_message_header (encoded as XDR)\n"
39650 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39651 "\n"
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../src/guestfs.pod:2511
39656 msgid ""
39657 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39658 "functions that return no formal return values."
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:2514
39663 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39664 msgstr ""
39665
39666 #. type: textblock
39667 #: ../src/guestfs.pod:2517
39668 msgid ""
39669 "In the case of an error, a flag is set in the header, and the reply message "
39670 "is slightly changed:"
39671 msgstr ""
39672
39673 #. type: verbatim
39674 #: ../src/guestfs.pod:2520
39675 #, no-wrap
39676 msgid ""
39677 " total length (header + error,\n"
39678 "      but not including the length word itself)\n"
39679 " struct guestfs_message_header (encoded as XDR)\n"
39680 " struct guestfs_message_error (encoded as XDR)\n"
39681 "\n"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2525
39686 msgid ""
39687 "The C<guestfs_message_error> structure contains the error message as a "
39688 "string."
39689 msgstr ""
39690
39691 #. type: =head3
39692 #: ../src/guestfs.pod:2528
39693 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../src/guestfs.pod:2530
39698 msgid ""
39699 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39700 "The normal request message is sent (see above).  However this is followed by "
39701 "a sequence of file chunks."
39702 msgstr ""
39703
39704 #. type: verbatim
39705 #: ../src/guestfs.pod:2534
39706 #, no-wrap
39707 msgid ""
39708 " total length (header + arguments,\n"
39709 "      but not including the length word itself,\n"
39710 "      and not including the chunks)\n"
39711 " struct guestfs_message_header (encoded as XDR)\n"
39712 " struct guestfs_<foo>_args (encoded as XDR)\n"
39713 " sequence of chunks for FileIn param #0\n"
39714 " sequence of chunks for FileIn param #1 etc.\n"
39715 "\n"
39716 msgstr ""
39717
39718 #. type: textblock
39719 #: ../src/guestfs.pod:2542
39720 msgid "The \"sequence of chunks\" is:"
39721 msgstr ""
39722
39723 #. type: verbatim
39724 #: ../src/guestfs.pod:2544
39725 #, no-wrap
39726 msgid ""
39727 " length of chunk (not including length word itself)\n"
39728 " struct guestfs_chunk (encoded as XDR)\n"
39729 " length of chunk\n"
39730 " struct guestfs_chunk (encoded as XDR)\n"
39731 "   ...\n"
39732 " length of chunk\n"
39733 " struct guestfs_chunk (with data.data_len == 0)\n"
39734 "\n"
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:2552
39739 msgid ""
39740 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39741 "is set in the final chunk to indicate either successful completion or early "
39742 "cancellation."
39743 msgstr ""
39744
39745 #. type: textblock
39746 #: ../src/guestfs.pod:2556
39747 msgid ""
39748 "At time of writing there are no functions that have more than one FileIn "
39749 "parameter.  However this is (theoretically) supported, by sending the "
39750 "sequence of chunks for each FileIn parameter one after another (from left to "
39751 "right)."
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:2561
39756 msgid ""
39757 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39758 "transfer.  The library does this by sending a chunk with a special flag set "
39759 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39760 "RPC, does I<not> send any reply, and goes back to reading the next request."
39761 msgstr ""
39762
39763 #. type: textblock
39764 #: ../src/guestfs.pod:2567
39765 msgid ""
39766 "The daemon may also cancel.  It does this by writing a special word "
39767 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39768 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39769 "cancel chunk).  The special word is chosen so that even if cancellation "
39770 "happens right at the end of the transfer (after the library has finished "
39771 "writing and has started listening for the reply), the \"spurious\" cancel "
39772 "flag will not be confused with the reply message."
39773 msgstr ""
39774
39775 #. type: textblock
39776 #: ../src/guestfs.pod:2576
39777 msgid ""
39778 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39779 "limit), and also files where the size is not known in advance (eg. from "
39780 "pipes or sockets).  However the chunks are rather small "
39781 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39782 "to keep much in memory."
39783 msgstr ""
39784
39785 #. type: =head3
39786 #: ../src/guestfs.pod:2582
39787 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:2584
39792 msgid ""
39793 "The protocol for FileOut parameters is exactly the same as for FileIn "
39794 "parameters, but with the roles of daemon and library reversed."
39795 msgstr ""
39796
39797 #. type: verbatim
39798 #: ../src/guestfs.pod:2587
39799 #, no-wrap
39800 msgid ""
39801 " total length (header + ret,\n"
39802 "      but not including the length word itself,\n"
39803 "      and not including the chunks)\n"
39804 " struct guestfs_message_header (encoded as XDR)\n"
39805 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39806 " sequence of chunks for FileOut param #0\n"
39807 " sequence of chunks for FileOut param #1 etc.\n"
39808 "\n"
39809 msgstr ""
39810
39811 #. type: =head3
39812 #: ../src/guestfs.pod:2595
39813 msgid "INITIAL MESSAGE"
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../src/guestfs.pod:2597
39818 msgid ""
39819 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39820 "which indicates that the guest and daemon is alive.  This is what "
39821 "L</guestfs_launch> waits for."
39822 msgstr ""
39823
39824 #. type: =head3
39825 #: ../src/guestfs.pod:2601
39826 msgid "PROGRESS NOTIFICATION MESSAGES"
39827 msgstr ""
39828
39829 #. type: textblock
39830 #: ../src/guestfs.pod:2603
39831 msgid ""
39832 "The daemon may send progress notification messages at any time.  These are "
39833 "distinguished by the normal length word being replaced by "
39834 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39835 msgstr ""
39836
39837 #. type: textblock
39838 #: ../src/guestfs.pod:2607
39839 msgid ""
39840 "The library turns them into progress callbacks (see "
39841 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
39842 "them if not."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../src/guestfs.pod:2611
39847 msgid ""
39848 "The daemon self-limits the frequency of progress messages it sends (see "
39849 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39850 "messages."
39851 msgstr ""
39852
39853 #. type: =head1
39854 #: ../src/guestfs.pod:2615
39855 msgid "LIBGUESTFS VERSION NUMBERS"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../src/guestfs.pod:2617
39860 msgid ""
39861 "Since April 2010, libguestfs has started to make separate development and "
39862 "stable releases, along with corresponding branches in our git repository.  "
39863 "These separate releases can be identified by version number:"
39864 msgstr ""
39865
39866 #. type: verbatim
39867 #: ../src/guestfs.pod:2622
39868 #, no-wrap
39869 msgid ""
39870 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39871 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39872 "       |\n"
39873 "       v\n"
39874 " 1  .  3  .  5\n"
39875 " ^           ^\n"
39876 " |           |\n"
39877 " |           `-------- sub-version\n"
39878 " |\n"
39879 " `------ always '1' because we don't change the ABI\n"
39880 "\n"
39881 msgstr ""
39882
39883 #. type: textblock
39884 #: ../src/guestfs.pod:2633
39885 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39886 msgstr ""
39887
39888 #. type: textblock
39889 #: ../src/guestfs.pod:2635
39890 msgid ""
39891 "As time passes we cherry pick fixes from the development branch and backport "
39892 "those into the stable branch, the effect being that the stable branch should "
39893 "get more stable and less buggy over time.  So the stable releases are ideal "
39894 "for people who don't need new features but would just like the software to "
39895 "work."
39896 msgstr ""
39897
39898 #. type: textblock
39899 #: ../src/guestfs.pod:2641
39900 msgid "Our criteria for backporting changes are:"
39901 msgstr ""
39902
39903 #. type: textblock
39904 #: ../src/guestfs.pod:2647
39905 msgid ""
39906 "Documentation changes which don't affect any code are backported unless the "
39907 "documentation refers to a future feature which is not in stable."
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2653
39912 msgid ""
39913 "Bug fixes which are not controversial, fix obvious problems, and have been "
39914 "well tested are backported."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:2658
39919 msgid ""
39920 "Simple rearrangements of code which shouldn't affect how it works get "
39921 "backported.  This is so that the code in the two branches doesn't get too "
39922 "far out of step, allowing us to backport future fixes more easily."
39923 msgstr ""
39924
39925 #. type: textblock
39926 #: ../src/guestfs.pod:2664
39927 msgid ""
39928 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39929 "exceptional case: the new feature is required in order to implement an "
39930 "important bug fix."
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:2670
39935 msgid ""
39936 "A new stable branch starts when we think the new features in development are "
39937 "substantial and compelling enough over the current stable branch to warrant "
39938 "it.  When that happens we create new stable and development versions 1.N.0 "
39939 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39940 "stable at this point, but by backporting fixes from development, that branch "
39941 "will stabilize over time."
39942 msgstr ""
39943
39944 #. type: =head1
39945 #: ../src/guestfs.pod:2678
39946 msgid "EXTENDING LIBGUESTFS"
39947 msgstr ""
39948
39949 #. type: =head2
39950 #: ../src/guestfs.pod:2680
39951 msgid "ADDING A NEW API ACTION"
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../src/guestfs.pod:2682
39956 msgid ""
39957 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39958 "documentation) are generated, and this makes it easy to extend the "
39959 "libguestfs API."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:2686
39964 msgid "To add a new API action there are two changes:"
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:2692
39969 msgid ""
39970 "You need to add a description of the call (name, parameters, return type, "
39971 "tests, documentation) to C<generator/generator_actions.ml>."
39972 msgstr ""
39973
39974 #. type: textblock
39975 #: ../src/guestfs.pod:2695
39976 msgid ""
39977 "There are two sorts of API action, depending on whether the call goes "
39978 "through to the daemon in the appliance, or is serviced entirely by the "
39979 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39980 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39981 "an example of the latter, since a trace flag is maintained in the handle and "
39982 "all tracing is done on the library side."
39983 msgstr ""
39984
39985 #. type: textblock
39986 #: ../src/guestfs.pod:2703
39987 msgid ""
39988 "Most new actions are of the first type, and get added to the "
39989 "C<daemon_functions> list.  Each function has a unique procedure number used "
39990 "in the RPC protocol which is assigned to that action when we publish "
39991 "libguestfs and cannot be reused.  Take the latest procedure number and "
39992 "increment it."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2709
39997 msgid ""
39998 "For library-only actions of the second type, add to the "
39999 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40000 "library and do not travel over the RPC mechanism to the daemon, these "
40001 "functions do not need a procedure number, and so the procedure number is set "
40002 "to C<-1>."
40003 msgstr ""
40004
40005 #. type: textblock
40006 #: ../src/guestfs.pod:2717
40007 msgid "Implement the action (in C):"
40008 msgstr ""
40009
40010 #. type: textblock
40011 #: ../src/guestfs.pod:2719
40012 msgid ""
40013 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40014 "C<daemon/> directory."
40015 msgstr ""
40016
40017 #. type: textblock
40018 #: ../src/guestfs.pod:2722
40019 msgid ""
40020 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40021 "(note: double underscore) in the C<src/> directory."
40022 msgstr ""
40023
40024 #. type: textblock
40025 #: ../src/guestfs.pod:2725
40026 msgid "In either case, use another function as an example of what to do."
40027 msgstr ""
40028
40029 #. type: textblock
40030 #: ../src/guestfs.pod:2729
40031 msgid "After making these changes, use C<make> to compile."
40032 msgstr ""
40033
40034 #. type: textblock
40035 #: ../src/guestfs.pod:2731
40036 msgid ""
40037 "Note that you don't need to implement the RPC, language bindings, manual "
40038 "pages or anything else.  It's all automatically generated from the OCaml "
40039 "description."
40040 msgstr ""
40041
40042 #. type: =head2
40043 #: ../src/guestfs.pod:2735
40044 msgid "ADDING TESTS FOR AN API ACTION"
40045 msgstr ""
40046
40047 #. type: textblock
40048 #: ../src/guestfs.pod:2737
40049 msgid ""
40050 "You can supply zero or as many tests as you want per API call.  The tests "
40051 "can either be added as part of the API description "
40052 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
40053 "drop a script into C<tests/*/>.  Note that adding a script to C<tests/*/> is "
40054 "slower, so if possible use the first method."
40055 msgstr ""
40056
40057 #. type: textblock
40058 #: ../src/guestfs.pod:2744
40059 msgid ""
40060 "The following describes the test environment used when you add an API test "
40061 "in C<generator_actions.ml>."
40062 msgstr ""
40063
40064 #. type: textblock
40065 #: ../src/guestfs.pod:2747
40066 msgid "The test environment has 4 block devices:"
40067 msgstr ""
40068
40069 #. type: =item
40070 #: ../src/guestfs.pod:2751
40071 msgid "C</dev/sda> 500MB"
40072 msgstr ""
40073
40074 #. type: textblock
40075 #: ../src/guestfs.pod:2753
40076 msgid "General block device for testing."
40077 msgstr ""
40078
40079 #. type: =item
40080 #: ../src/guestfs.pod:2755
40081 msgid "C</dev/sdb> 50MB"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2757
40086 msgid ""
40087 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40088 "operations."
40089 msgstr ""
40090
40091 #. type: =item
40092 #: ../src/guestfs.pod:2760
40093 msgid "C</dev/sdc> 10MB"
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../src/guestfs.pod:2762
40098 msgid "Used in a few tests where two block devices are needed."
40099 msgstr ""
40100
40101 #. type: =item
40102 #: ../src/guestfs.pod:2764
40103 msgid "C</dev/sdd>"
40104 msgstr ""
40105
40106 #. type: textblock
40107 #: ../src/guestfs.pod:2766
40108 msgid "ISO with fixed content (see C<images/test.iso>)."
40109 msgstr ""
40110
40111 #. type: textblock
40112 #: ../src/guestfs.pod:2770
40113 msgid ""
40114 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40115 "appliance and block devices are reused between tests.  So don't try testing "
40116 "L</guestfs_kill_subprocess> :-x"
40117 msgstr ""
40118
40119 #. type: textblock
40120 #: ../src/guestfs.pod:2774
40121 msgid ""
40122 "Each test starts with an initial scenario, selected using one of the "
40123 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40124 "initialize the disks mentioned above in a particular way as documented in "
40125 "C<generator_types.ml>.  You should not assume anything about the previous "
40126 "contents of other disks that are not initialized."
40127 msgstr ""
40128
40129 #. type: textblock
40130 #: ../src/guestfs.pod:2780
40131 msgid ""
40132 "You can add a prerequisite clause to any individual test.  This is a "
40133 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
40134 "if testing a command which might not work on all variations of libguestfs "
40135 "builds.  A test that has prerequisite of C<Always> means to run "
40136 "unconditionally."
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:2786
40141 msgid ""
40142 "In addition, packagers can skip individual tests by setting environment "
40143 "variables before running C<make check>."
40144 msgstr ""
40145
40146 #. type: verbatim
40147 #: ../src/guestfs.pod:2789
40148 #, no-wrap
40149 msgid ""
40150 " SKIP_TEST_<CMD>_<NUM>=1\n"
40151 "\n"
40152 msgstr ""
40153
40154 #. type: textblock
40155 #: ../src/guestfs.pod:2791
40156 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40157 msgstr ""
40158
40159 #. type: verbatim
40160 #: ../src/guestfs.pod:2795
40161 #, no-wrap
40162 msgid ""
40163 " SKIP_TEST_<CMD>=1\n"
40164 "\n"
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2797
40169 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../src/guestfs.pod:2799
40174 msgid "Packagers can run only certain tests by setting for example:"
40175 msgstr ""
40176
40177 #. type: verbatim
40178 #: ../src/guestfs.pod:2801
40179 #, no-wrap
40180 msgid ""
40181 " TEST_ONLY=\"vfs_type zerofree\"\n"
40182 "\n"
40183 msgstr ""
40184
40185 #. type: textblock
40186 #: ../src/guestfs.pod:2803
40187 msgid ""
40188 "See C<tests/c-api/tests.c> for more details of how these environment "
40189 "variables work."
40190 msgstr ""
40191
40192 #. type: =head2
40193 #: ../src/guestfs.pod:2806
40194 msgid "DEBUGGING NEW API ACTIONS"
40195 msgstr ""
40196
40197 #. type: textblock
40198 #: ../src/guestfs.pod:2808
40199 msgid "Test new actions work before submitting them."
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../src/guestfs.pod:2810
40204 msgid "You can use guestfish to try out new commands."
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../src/guestfs.pod:2812
40209 msgid ""
40210 "Debugging the daemon is a problem because it runs inside a minimal "
40211 "environment.  However you can fprintf messages in the daemon to stderr, and "
40212 "they will show up if you use C<guestfish -v>."
40213 msgstr ""
40214
40215 #. type: =head2
40216 #: ../src/guestfs.pod:2816
40217 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../src/guestfs.pod:2818
40222 msgid ""
40223 "Our C source code generally adheres to some basic code-formatting "
40224 "conventions.  The existing code base is not totally consistent on this "
40225 "front, but we do prefer that contributed code be formatted similarly.  In "
40226 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40227 "indentation level, and other than that, follow the K&R style."
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2824
40232 msgid ""
40233 "If you use Emacs, add the following to one of one of your start-up files "
40234 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
40235 msgstr ""
40236
40237 #. type: verbatim
40238 #: ../src/guestfs.pod:2827
40239 #, no-wrap
40240 msgid ""
40241 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40242 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40243 " (add-hook 'find-file-hook\n"
40244 "     '(lambda () (if (and buffer-file-name\n"
40245 "                          (string-match \"/libguestfs\\\\>\"\n"
40246 "                              (buffer-file-name))\n"
40247 "                          (not (string-equal mode-name \"Change Log\"))\n"
40248 "                          (not (string-equal mode-name \"Makefile\")))\n"
40249 "                     (setq indent-tabs-mode nil))))\n"
40250 " \n"
40251 msgstr ""
40252
40253 #. type: verbatim
40254 #: ../src/guestfs.pod:2837
40255 #, no-wrap
40256 msgid ""
40257 " ;;; When editing C sources in libguestfs, use this style.\n"
40258 " (defun libguestfs-c-mode ()\n"
40259 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40260 "   (interactive)\n"
40261 "   (c-set-style \"K&R\")\n"
40262 "   (setq c-indent-level 2)\n"
40263 "   (setq c-basic-offset 2))\n"
40264 " (add-hook 'c-mode-hook\n"
40265 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40266 "                               (buffer-file-name))\n"
40267 "                           (libguestfs-c-mode))))\n"
40268 "\n"
40269 msgstr ""
40270
40271 #. type: textblock
40272 #: ../src/guestfs.pod:2849
40273 msgid "Enable warnings when compiling (and fix any problems this finds):"
40274 msgstr ""
40275
40276 #. type: verbatim
40277 #: ../src/guestfs.pod:2852
40278 #, no-wrap
40279 msgid ""
40280 " ./configure --enable-gcc-warnings\n"
40281 "\n"
40282 msgstr ""
40283
40284 #. type: textblock
40285 #: ../src/guestfs.pod:2854
40286 msgid "Useful targets are:"
40287 msgstr ""
40288
40289 #. type: verbatim
40290 #: ../src/guestfs.pod:2856
40291 #, no-wrap
40292 msgid ""
40293 " make syntax-check  # checks the syntax of the C code\n"
40294 " make check         # runs the test suite\n"
40295 "\n"
40296 msgstr ""
40297
40298 #. type: =head2
40299 #: ../src/guestfs.pod:2859
40300 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40301 msgstr ""
40302
40303 #. type: textblock
40304 #: ../src/guestfs.pod:2861
40305 msgid ""
40306 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40307 "which are used to do shell quoting."
40308 msgstr ""
40309
40310 #. type: =item
40311 #: ../src/guestfs.pod:2866
40312 msgid "%Q"
40313 msgstr ""
40314
40315 #. type: textblock
40316 #: ../src/guestfs.pod:2868
40317 msgid ""
40318 "Simple shell quoted string.  Any spaces or other shell characters are "
40319 "escaped for you."
40320 msgstr ""
40321
40322 #. type: =item
40323 #: ../src/guestfs.pod:2871
40324 msgid "%R"
40325 msgstr ""
40326
40327 #. type: textblock
40328 #: ../src/guestfs.pod:2873
40329 msgid ""
40330 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40331 "the sysroot."
40332 msgstr ""
40333
40334 #. type: verbatim
40335 #: ../src/guestfs.pod:2880
40336 #, no-wrap
40337 msgid ""
40338 " asprintf (&cmd, \"cat %R\", path);\n"
40339 "\n"
40340 msgstr ""
40341
40342 #. type: textblock
40343 #: ../src/guestfs.pod:2882
40344 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40345 msgstr ""
40346
40347 #. type: textblock
40348 #: ../src/guestfs.pod:2884
40349 msgid ""
40350 "I<Note:> Do I<not> use these when you are passing parameters to the "
40351 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
40352 "because they are not passed via the shell (instead, straight to exec).  You "
40353 "probably want to use the C<sysroot_path()> function however."
40354 msgstr ""
40355
40356 #. type: =head2
40357 #: ../src/guestfs.pod:2890
40358 msgid "SUBMITTING YOUR NEW API ACTIONS"
40359 msgstr ""
40360
40361 #. type: textblock
40362 #: ../src/guestfs.pod:2892
40363 msgid ""
40364 "Submit patches to the mailing list: "
40365 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
40366 "L<rjones@redhat.com>."
40367 msgstr ""
40368
40369 #. type: =head2
40370 #: ../src/guestfs.pod:2896
40371 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:2898
40376 msgid "We support i18n (gettext anyhow) in the library."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../src/guestfs.pod:2900
40381 msgid ""
40382 "However many messages come from the daemon, and we don't translate those at "
40383 "the moment.  One reason is that the appliance generally has all locale files "
40384 "removed from it, because they take up a lot of space.  So we'd have to readd "
40385 "some of those, as well as copying our PO files into the appliance."
40386 msgstr ""
40387
40388 #. type: textblock
40389 #: ../src/guestfs.pod:2906
40390 msgid ""
40391 "Debugging messages are never translated, since they are intended for the "
40392 "programmers."
40393 msgstr ""
40394
40395 #. type: =head2
40396 #: ../src/guestfs.pod:2909
40397 msgid "SOURCE CODE SUBDIRECTORIES"
40398 msgstr ""
40399
40400 #. type: =item
40401 #: ../src/guestfs.pod:2913
40402 msgid "C<align>"
40403 msgstr ""
40404
40405 #. type: textblock
40406 #: ../src/guestfs.pod:2915
40407 msgid "L<virt-alignment-scan(1)> command and documentation."
40408 msgstr ""
40409
40410 #. type: textblock
40411 #: ../src/guestfs.pod:2919
40412 msgid "The libguestfs appliance, build scripts and so on."
40413 msgstr ""
40414
40415 #. type: =item
40416 #: ../src/guestfs.pod:2921
40417 msgid "C<cat>"
40418 msgstr ""
40419
40420 #. type: textblock
40421 #: ../src/guestfs.pod:2923
40422 msgid ""
40423 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40424 "documentation."
40425 msgstr ""
40426
40427 #. type: =item
40428 #: ../src/guestfs.pod:2926
40429 msgid "C<clone>"
40430 msgstr ""
40431
40432 #. type: textblock
40433 #: ../src/guestfs.pod:2928
40434 msgid ""
40435 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40436 "command and documentation."
40437 msgstr ""
40438
40439 #. type: =item
40440 #: ../src/guestfs.pod:2931
40441 msgid "C<contrib>"
40442 msgstr ""
40443
40444 #. type: textblock
40445 #: ../src/guestfs.pod:2933
40446 msgid "Outside contributions, experimental parts."
40447 msgstr ""
40448
40449 #. type: =item
40450 #: ../src/guestfs.pod:2935
40451 msgid "C<daemon>"
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2937
40456 msgid ""
40457 "The daemon that runs inside the libguestfs appliance and carries out "
40458 "actions."
40459 msgstr ""
40460
40461 #. type: =item
40462 #: ../src/guestfs.pod:2940
40463 msgid "C<df>"
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:2942
40468 msgid "L<virt-df(1)> command and documentation."
40469 msgstr ""
40470
40471 #. type: =item
40472 #: ../src/guestfs.pod:2944
40473 msgid "C<edit>"
40474 msgstr ""
40475
40476 #. type: textblock
40477 #: ../src/guestfs.pod:2946
40478 msgid "L<virt-edit(1)> command and documentation."
40479 msgstr ""
40480
40481 #. type: =item
40482 #: ../src/guestfs.pod:2948
40483 msgid "C<examples>"
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:2950
40488 msgid "C API example code."
40489 msgstr ""
40490
40491 #. type: =item
40492 #: ../src/guestfs.pod:2952
40493 msgid "C<fish>"
40494 msgstr ""
40495
40496 #. type: textblock
40497 #: ../src/guestfs.pod:2954
40498 msgid ""
40499 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40500 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40501 "L<virt-tar-out(1)>."
40502 msgstr ""
40503
40504 #. type: =item
40505 #: ../src/guestfs.pod:2958
40506 msgid "C<fuse>"
40507 msgstr ""
40508
40509 #. type: textblock
40510 #: ../src/guestfs.pod:2960
40511 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40512 msgstr ""
40513
40514 #. type: =item
40515 #: ../src/guestfs.pod:2962
40516 msgid "C<generator>"
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../src/guestfs.pod:2964
40521 msgid ""
40522 "The crucially important generator, used to automatically generate large "
40523 "amounts of boilerplate C code for things like RPC and bindings."
40524 msgstr ""
40525
40526 #. type: =item
40527 #: ../src/guestfs.pod:2967
40528 msgid "C<inspector>"
40529 msgstr ""
40530
40531 #. type: textblock
40532 #: ../src/guestfs.pod:2969
40533 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40534 msgstr ""
40535
40536 #. type: =item
40537 #: ../src/guestfs.pod:2971
40538 msgid "C<logo>"
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:2973
40543 msgid "Logo used on the website.  The fish is called Arthur by the way."
40544 msgstr ""
40545
40546 #. type: =item
40547 #: ../src/guestfs.pod:2975
40548 msgid "C<m4>"
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../src/guestfs.pod:2977
40553 msgid "M4 macros used by autoconf."
40554 msgstr ""
40555
40556 #. type: =item
40557 #: ../src/guestfs.pod:2979
40558 msgid "C<po>"
40559 msgstr ""
40560
40561 #. type: textblock
40562 #: ../src/guestfs.pod:2981
40563 msgid "Translations of simple gettext strings."
40564 msgstr ""
40565
40566 #. type: =item
40567 #: ../src/guestfs.pod:2983
40568 msgid "C<po-docs>"
40569 msgstr ""
40570
40571 #. type: textblock
40572 #: ../src/guestfs.pod:2985
40573 msgid ""
40574 "The build infrastructure and PO files for translations of manpages and POD "
40575 "files.  Eventually this will be combined with the C<po> directory, but that "
40576 "is rather complicated."
40577 msgstr ""
40578
40579 #. type: =item
40580 #: ../src/guestfs.pod:2989
40581 msgid "C<rescue>"
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../src/guestfs.pod:2991
40586 msgid "L<virt-rescue(1)> command and documentation."
40587 msgstr ""
40588
40589 #. type: =item
40590 #: ../src/guestfs.pod:2993
40591 msgid "C<resize>"
40592 msgstr ""
40593
40594 #. type: textblock
40595 #: ../src/guestfs.pod:2995
40596 msgid "L<virt-resize(1)> command and documentation."
40597 msgstr ""
40598
40599 #. type: =item
40600 #: ../src/guestfs.pod:2997
40601 msgid "C<sparsify>"
40602 msgstr ""
40603
40604 #. type: textblock
40605 #: ../src/guestfs.pod:2999
40606 msgid "L<virt-sparsify(1)> command and documentation."
40607 msgstr ""
40608
40609 #. type: =item
40610 #: ../src/guestfs.pod:3001
40611 msgid "C<src>"
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../src/guestfs.pod:3003
40616 msgid "Source code to the C library."
40617 msgstr ""
40618
40619 #. type: =item
40620 #: ../src/guestfs.pod:3005
40621 msgid "C<test-tool>"
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../src/guestfs.pod:3007
40626 msgid ""
40627 "Test tool for end users to test if their qemu/kernel combination will work "
40628 "with libguestfs."
40629 msgstr ""
40630
40631 #. type: =item
40632 #: ../src/guestfs.pod:3010
40633 msgid "C<tests>"
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../src/guestfs.pod:3012
40638 msgid "Tests."
40639 msgstr ""
40640
40641 #. type: =item
40642 #: ../src/guestfs.pod:3014
40643 msgid "C<tools>"
40644 msgstr ""
40645
40646 #. type: textblock
40647 #: ../src/guestfs.pod:3016
40648 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40649 msgstr ""
40650
40651 #. type: =item
40652 #: ../src/guestfs.pod:3018
40653 msgid "C<csharp>"
40654 msgstr ""
40655
40656 #. type: =item
40657 #: ../src/guestfs.pod:3020
40658 msgid "C<erlang>"
40659 msgstr ""
40660
40661 #. type: =item
40662 #: ../src/guestfs.pod:3022
40663 msgid "C<haskell>"
40664 msgstr ""
40665
40666 #. type: =item
40667 #: ../src/guestfs.pod:3024
40668 msgid "C<java>"
40669 msgstr ""
40670
40671 #. type: =item
40672 #: ../src/guestfs.pod:3026
40673 msgid "C<ocaml>"
40674 msgstr ""
40675
40676 #. type: =item
40677 #: ../src/guestfs.pod:3028
40678 msgid "C<php>"
40679 msgstr ""
40680
40681 #. type: =item
40682 #: ../src/guestfs.pod:3030
40683 msgid "C<perl>"
40684 msgstr ""
40685
40686 #. type: =item
40687 #: ../src/guestfs.pod:3032
40688 msgid "C<python>"
40689 msgstr ""
40690
40691 #. type: =item
40692 #: ../src/guestfs.pod:3034
40693 msgid "C<ruby>"
40694 msgstr ""
40695
40696 #. type: textblock
40697 #: ../src/guestfs.pod:3036
40698 msgid "Language bindings."
40699 msgstr ""
40700
40701 #. type: =head2
40702 #: ../src/guestfs.pod:3040
40703 msgid "MAKING A STABLE RELEASE"
40704 msgstr ""
40705
40706 #. type: textblock
40707 #: ../src/guestfs.pod:3042
40708 msgid ""
40709 "When we make a stable release, there are several steps documented here.  See "
40710 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40711 "branch policy."
40712 msgstr ""
40713
40714 #. type: textblock
40715 #: ../src/guestfs.pod:3050
40716 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40717 msgstr ""
40718
40719 #. type: textblock
40720 #: ../src/guestfs.pod:3055
40721 msgid "Finalize RELEASE-NOTES."
40722 msgstr ""
40723
40724 #. type: textblock
40725 #: ../src/guestfs.pod:3059
40726 msgid "Update ROADMAP."
40727 msgstr ""
40728
40729 #. type: textblock
40730 #: ../src/guestfs.pod:3063
40731 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40732 msgstr ""
40733
40734 #. type: textblock
40735 #: ../src/guestfs.pod:3067
40736 msgid "Push and pull from Transifex."
40737 msgstr ""
40738
40739 #. type: verbatim
40740 #: ../src/guestfs.pod:3071
40741 #, no-wrap
40742 msgid ""
40743 " tx push -s\n"
40744 "\n"
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:3073
40749 msgid "to push the latest POT files to Transifex.  Then run:"
40750 msgstr ""
40751
40752 #. type: verbatim
40753 #: ../src/guestfs.pod:3075
40754 #, no-wrap
40755 msgid ""
40756 " ./tx-pull.sh\n"
40757 "\n"
40758 msgstr ""
40759
40760 #. type: textblock
40761 #: ../src/guestfs.pod:3077
40762 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40763 msgstr ""
40764
40765 #. type: textblock
40766 #: ../src/guestfs.pod:3081
40767 msgid ""
40768 "Create new stable and development directories under "
40769 "L<http://libguestfs.org/download>."
40770 msgstr ""
40771
40772 #. type: textblock
40773 #: ../src/guestfs.pod:3086
40774 msgid "Create the branch in git:"
40775 msgstr ""
40776
40777 #. type: verbatim
40778 #: ../src/guestfs.pod:3088
40779 #, no-wrap
40780 msgid ""
40781 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40782 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40783 " git branch stable-1.XX\n"
40784 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40785 "\n"
40786 msgstr ""
40787
40788 #. type: =head1
40789 #: ../src/guestfs.pod:3095
40790 msgid "LIMITS"
40791 msgstr ""
40792
40793 #. type: =head2
40794 #: ../src/guestfs.pod:3097
40795 msgid "PROTOCOL LIMITS"
40796 msgstr ""
40797
40798 #. type: textblock
40799 #: ../src/guestfs.pod:3099
40800 msgid ""
40801 "Internally libguestfs uses a message-based protocol to pass API calls and "
40802 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40803 "plenty more detail about this).  The maximum message size used by the "
40804 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40805 "aware of this limit.  The API calls which may be affected are individually "
40806 "documented, with a link back to this section of the documentation."
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:3107
40811 msgid ""
40812 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40813 "a simple string.  Because this string is at some point internally encoded as "
40814 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40815 "the requested file is larger than this then you will get an error."
40816 msgstr ""
40817
40818 #. type: textblock
40819 #: ../src/guestfs.pod:3113
40820 msgid ""
40821 "In order to transfer large files into and out of the guest filesystem, you "
40822 "need to use particular calls that support this.  The sections L</UPLOADING> "
40823 "and L</DOWNLOADING> document how to do this."
40824 msgstr ""
40825
40826 #. type: textblock
40827 #: ../src/guestfs.pod:3117
40828 msgid ""
40829 "You might also consider mounting the disk image using our FUSE filesystem "
40830 "support (L<guestmount(1)>)."
40831 msgstr ""
40832
40833 #. type: =head2
40834 #: ../src/guestfs.pod:3120
40835 msgid "MAXIMUM NUMBER OF DISKS"
40836 msgstr ""
40837
40838 #. type: textblock
40839 #: ../src/guestfs.pod:3122
40840 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40841 msgstr ""
40842
40843 #. type: textblock
40844 #: ../src/guestfs.pod:3125
40845 msgid ""
40846 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40847 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40848 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40849 "purposes."
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:3130
40854 msgid ""
40855 "We are working to substantially raise this limit in future versions but it "
40856 "requires complex changes to qemu."
40857 msgstr ""
40858
40859 #. type: textblock
40860 #: ../src/guestfs.pod:3133
40861 msgid ""
40862 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40863 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40864 "requires changes to qemu."
40865 msgstr ""
40866
40867 #. type: =head2
40868 #: ../src/guestfs.pod:3137
40869 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../src/guestfs.pod:3139
40874 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../src/guestfs.pod:3141
40879 msgid ""
40880 "This is because it reserves 4 bits for the minor device number (thus "
40881 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
40882 msgstr ""
40883
40884 #. type: textblock
40885 #: ../src/guestfs.pod:3144
40886 msgid ""
40887 "If you attach a disk with more than 15 partitions, the extra partitions are "
40888 "ignored by libguestfs."
40889 msgstr ""
40890
40891 #. type: =head2
40892 #: ../src/guestfs.pod:3147
40893 msgid "MAXIMUM SIZE OF A DISK"
40894 msgstr ""
40895
40896 #. type: textblock
40897 #: ../src/guestfs.pod:3149
40898 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40899 msgstr ""
40900
40901 #. type: textblock
40902 #: ../src/guestfs.pod:3151
40903 msgid ""
40904 "We have tested block devices up to 1 exabyte (2**60 or "
40905 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40906 "filesystem."
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../src/guestfs.pod:3155
40911 msgid ""
40912 "Although libguestfs probably does not impose any limit, the underlying host "
40913 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40914 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40915 "TB).  If you store disk images as host logical volumes then you are limited "
40916 "by the maximum size of an LV."
40917 msgstr ""
40918
40919 #. type: textblock
40920 #: ../src/guestfs.pod:3161
40921 msgid ""
40922 "For the hugest disk image files, we recommend using XFS on the host for "
40923 "storage."
40924 msgstr ""
40925
40926 #. type: =head2
40927 #: ../src/guestfs.pod:3164
40928 msgid "MAXIMUM SIZE OF A PARTITION"
40929 msgstr ""
40930
40931 #. type: textblock
40932 #: ../src/guestfs.pod:3166
40933 msgid ""
40934 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40935 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40936 "address a partition located beyond 2 TB on the disk."
40937 msgstr ""
40938
40939 #. type: textblock
40940 #: ../src/guestfs.pod:3170
40941 msgid ""
40942 "It is recommended that you use GPT partitions on disks which are larger than "
40943 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40944 "which are theoretically larger than the largest disk we could support."
40945 msgstr ""
40946
40947 #. type: =head2
40948 #: ../src/guestfs.pod:3175
40949 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../src/guestfs.pod:3177
40954 msgid ""
40955 "This depends on the filesystem type.  libguestfs itself does not impose any "
40956 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40957 "what these limits are."
40958 msgstr ""
40959
40960 #. type: =head2
40961 #: ../src/guestfs.pod:3181
40962 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../src/guestfs.pod:3183
40967 msgid ""
40968 "The API functions L</guestfs_upload>, L</guestfs_download>, "
40969 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40970 "uploads and downloads."
40971 msgstr ""
40972
40973 #. type: =head2
40974 #: ../src/guestfs.pod:3187
40975 msgid "INSPECTION LIMITS"
40976 msgstr ""
40977
40978 #. type: textblock
40979 #: ../src/guestfs.pod:3189
40980 msgid ""
40981 "The inspection code has several arbitrary limits on things like the size of "
40982 "Windows Registry hive it will read, and the length of product name.  These "
40983 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40984 "memory and disk space on the host, and should not be reached in practice.  "
40985 "See the source code for more information."
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../src/guestfs.pod:3215
40990 msgid ""
40991 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40992 "effect as calling C<guestfs_set_verbose (g, 1)>."
40993 msgstr ""
40994
40995 #. type: textblock
40996 #: ../src/guestfs.pod:3227
40997 msgid ""
40998 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40999 "the discussion of paths in section L</PATH> above."
41000 msgstr ""
41001
41002 #. type: textblock
41003 #: ../src/guestfs.pod:3236
41004 msgid "See also L</QEMU WRAPPERS> above."
41005 msgstr ""
41006
41007 #. type: textblock
41008 #: ../src/guestfs.pod:3240
41009 msgid ""
41010 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41011 "effect as calling C<guestfs_set_trace (g, 1)>."
41012 msgstr ""
41013
41014 #. type: textblock
41015 #: ../src/guestfs.pod:3258
41016 msgid ""
41017 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
41018 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
41019 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
41020 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
41021 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
41022 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41023 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
41024 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
41025 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
41026 "L<virt-win-reg(1)>, L<guestfs-testing(1)>, L<qemu(1)>, L<febootstrap(1)>, "
41027 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
41028 "L<http://libguestfs.org/>."
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../src/guestfs.pod:3295
41033 msgid ""
41034 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
41035 "L<lvm(8)>, L<disktype(1)>."
41036 msgstr ""
41037
41038 #. type: =head1
41039 #: ../src/guestfs.pod:3302 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
41040 msgid "BUGS"
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../src/guestfs.pod:3304
41045 msgid "To get a list of bugs against libguestfs use this link:"
41046 msgstr ""
41047
41048 #. type: textblock
41049 #: ../src/guestfs.pod:3306
41050 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../src/guestfs.pod:3308
41055 msgid "To report a new bug against libguestfs use this link:"
41056 msgstr ""
41057
41058 #. type: textblock
41059 #: ../src/guestfs.pod:3310
41060 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../src/guestfs.pod:3312
41065 msgid "When reporting a bug, please check:"
41066 msgstr ""
41067
41068 #. type: textblock
41069 #: ../src/guestfs.pod:3318
41070 msgid "That the bug hasn't been reported already."
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../src/guestfs.pod:3322
41075 msgid "That you are testing a recent version."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../src/guestfs.pod:3326
41080 msgid "Describe the bug accurately, and give a way to reproduce it."
41081 msgstr ""
41082
41083 #. type: textblock
41084 #: ../src/guestfs.pod:3330
41085 msgid ""
41086 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41087 "bug report."
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../test-tool/libguestfs-test-tool.pod:5
41092 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41093 msgstr ""
41094
41095 #. type: verbatim
41096 #: ../test-tool/libguestfs-test-tool.pod:9
41097 #, no-wrap
41098 msgid ""
41099 " libguestfs-test-tool [--options]\n"
41100 "\n"
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../test-tool/libguestfs-test-tool.pod:13
41105 msgid ""
41106 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41107 "to check basic libguestfs functionality is working.  This is needed because "
41108 "libguestfs occasionally breaks for reasons beyond our control: usually "
41109 "because of changes in the underlying qemu or kernel packages, or the host "
41110 "environment."
41111 msgstr ""
41112
41113 #. type: textblock
41114 #: ../test-tool/libguestfs-test-tool.pod:19
41115 msgid "If you suspect a problem in libguestfs, then just run:"
41116 msgstr ""
41117
41118 #. type: verbatim
41119 #: ../test-tool/libguestfs-test-tool.pod:21
41120 #, no-wrap
41121 msgid ""
41122 " libguestfs-test-tool\n"
41123 "\n"
41124 msgstr ""
41125
41126 #. type: textblock
41127 #: ../test-tool/libguestfs-test-tool.pod:23
41128 msgid "It will print lots of diagnostic messages."
41129 msgstr ""
41130
41131 #. type: textblock
41132 #: ../test-tool/libguestfs-test-tool.pod:25
41133 msgid "If it runs to completion successfully, you will see this near the end:"
41134 msgstr ""
41135
41136 #. type: verbatim
41137 #: ../test-tool/libguestfs-test-tool.pod:27
41138 #, no-wrap
41139 msgid ""
41140 " ===== TEST FINISHED OK =====\n"
41141 "\n"
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../test-tool/libguestfs-test-tool.pod:29
41146 msgid "and the test tool will exit with code 0."
41147 msgstr ""
41148
41149 #. type: textblock
41150 #: ../test-tool/libguestfs-test-tool.pod:31
41151 msgid ""
41152 "If it fails (and/or exits with non-zero error code), please paste the "
41153 "I<complete, unedited> output of the test tool into a bug report.  More "
41154 "information about reporting bugs can be found on the "
41155 "L<http://libguestfs.org/> website."
41156 msgstr ""
41157
41158 #. type: textblock
41159 #: ../test-tool/libguestfs-test-tool.pod:42
41160 msgid "Display short usage information and exit."
41161 msgstr ""
41162
41163 #. type: =item
41164 #: ../test-tool/libguestfs-test-tool.pod:44
41165 msgid "B<--qemu qemu_binary>"
41166 msgstr ""
41167
41168 #. type: textblock
41169 #: ../test-tool/libguestfs-test-tool.pod:46
41170 msgid ""
41171 "If you have downloaded another qemu binary, point this option at the full "
41172 "path of the binary to try it."
41173 msgstr ""
41174
41175 #. type: =item
41176 #: ../test-tool/libguestfs-test-tool.pod:49
41177 msgid "B<--qemudir qemu_source_dir>"
41178 msgstr ""
41179
41180 #. type: textblock
41181 #: ../test-tool/libguestfs-test-tool.pod:51
41182 msgid ""
41183 "If you have compiled qemu from source, point this option at the source "
41184 "directory to try it."
41185 msgstr ""
41186
41187 #. type: =item
41188 #: ../test-tool/libguestfs-test-tool.pod:54
41189 msgid "B<-t N>"
41190 msgstr ""
41191
41192 #. type: =item
41193 #: ../test-tool/libguestfs-test-tool.pod:56
41194 msgid "B<--timeout N>"
41195 msgstr ""
41196
41197 #. type: textblock
41198 #: ../test-tool/libguestfs-test-tool.pod:58
41199 msgid ""
41200 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41201 "minutes) which does not usually need to be adjusted."
41202 msgstr ""
41203
41204 #. type: =head1
41205 #: ../test-tool/libguestfs-test-tool.pod:63
41206 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41207 msgstr ""
41208
41209 #. type: textblock
41210 #: ../test-tool/libguestfs-test-tool.pod:65
41211 msgid ""
41212 "If you have compiled another version of qemu from source and would like to "
41213 "try that, then you can use the I<--qemudir> option to point to the qemu "
41214 "source directory."
41215 msgstr ""
41216
41217 #. type: textblock
41218 #: ../test-tool/libguestfs-test-tool.pod:69
41219 msgid ""
41220 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41221 "option to point to the binary."
41222 msgstr ""
41223
41224 #. type: textblock
41225 #: ../test-tool/libguestfs-test-tool.pod:72
41226 msgid ""
41227 "Note when using these options, you can ignore the business of qemu wrapper "
41228 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41229 "wrapper script for you if one is needed."
41230 msgstr ""
41231
41232 #. type: =head1
41233 #: ../test-tool/libguestfs-test-tool.pod:76
41234 msgid "TRYING OUT A DIFFERENT KERNEL"
41235 msgstr ""
41236
41237 #. type: textblock
41238 #: ../test-tool/libguestfs-test-tool.pod:78
41239 msgid ""
41240 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41241 "libguestfs tries.  You do this by setting the environment variables "
41242 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41243 msgstr ""
41244
41245 #. type: textblock
41246 #: ../test-tool/libguestfs-test-tool.pod:82
41247 msgid ""
41248 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41249 "information."
41250 msgstr ""
41251
41252 #. type: =head1
41253 #: ../test-tool/libguestfs-test-tool.pod:85
41254 msgid "SELF-DIAGNOSIS"
41255 msgstr ""
41256
41257 #. type: textblock
41258 #: ../test-tool/libguestfs-test-tool.pod:87
41259 msgid ""
41260 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41261 "produced by libguestfs-test-tool and/or possible errors."
41262 msgstr ""
41263
41264 #. type: textblock
41265 #: ../test-tool/libguestfs-test-tool.pod:92
41266 msgid ""
41267 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41268 "I<1> if there was an error."
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../test-tool/libguestfs-test-tool.pod:97
41273 msgid ""
41274 "For the full list of environment variables which may affect libguestfs, "
41275 "please see the L<guestfs(3)> manual page."
41276 msgstr ""
41277
41278 #. type: textblock
41279 #: ../test-tool/libguestfs-test-tool.pod:102
41280 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41281 msgstr ""
41282
41283 #. type: textblock
41284 #: ../tools/virt-list-filesystems.pl:32
41285 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41286 msgstr ""
41287
41288 #. type: verbatim
41289 #: ../tools/virt-list-filesystems.pl:36
41290 #, no-wrap
41291 msgid ""
41292 " virt-list-filesystems [--options] domname\n"
41293 "\n"
41294 msgstr ""
41295
41296 #. type: verbatim
41297 #: ../tools/virt-list-filesystems.pl:38
41298 #, no-wrap
41299 msgid ""
41300 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41301 "\n"
41302 msgstr ""
41303
41304 #. type: textblock
41305 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41306 msgid ""
41307 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41308 "replacement."
41309 msgstr ""
41310
41311 #. type: textblock
41312 #: ../tools/virt-list-filesystems.pl:45
41313 msgid ""
41314 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41315 "are contained in a virtual machine or disk image."
41316 msgstr ""
41317
41318 #. type: textblock
41319 #: ../tools/virt-list-filesystems.pl:49
41320 msgid ""
41321 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41322 "functionality.  For more complex cases you should look at the "
41323 "L<guestfish(1)> tool."
41324 msgstr ""
41325
41326 #. type: textblock
41327 #: ../tools/virt-list-filesystems.pl:112
41328 msgid ""
41329 "With this option, C<virt-list-filesystems> displays the type of each "
41330 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41331 msgstr ""
41332
41333 #. type: =item
41334 #: ../tools/virt-list-filesystems.pl:119
41335 msgid "B<-a>"
41336 msgstr ""
41337
41338 #. type: textblock
41339 #: ../tools/virt-list-filesystems.pl:123
41340 msgid ""
41341 "Normally we only show mountable filesystems.  If this option is given then "
41342 "swap devices are shown too."
41343 msgstr ""
41344
41345 #. type: textblock
41346 #: ../tools/virt-list-filesystems.pl:197
41347 msgid ""
41348 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
41349 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
41350 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41351 msgstr ""
41352
41353 #. type: textblock
41354 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41355 msgid "Copyright (C) 2009 Red Hat Inc."
41356 msgstr ""
41357
41358 #. type: textblock
41359 #: ../tools/virt-list-partitions.pl:32
41360 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
41361 msgstr ""
41362
41363 #. type: verbatim
41364 #: ../tools/virt-list-partitions.pl:36
41365 #, no-wrap
41366 msgid ""
41367 " virt-list-partitions [--options] domname\n"
41368 "\n"
41369 msgstr ""
41370
41371 #. type: verbatim
41372 #: ../tools/virt-list-partitions.pl:38
41373 #, no-wrap
41374 msgid ""
41375 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41376 "\n"
41377 msgstr ""
41378
41379 #. type: textblock
41380 #: ../tools/virt-list-partitions.pl:45
41381 msgid ""
41382 "C<virt-list-partitions> is a command line tool to list the partitions that "
41383 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41384 "first step to using L<virt-resize(1)>."
41385 msgstr ""
41386
41387 #. type: textblock
41388 #: ../tools/virt-list-partitions.pl:50
41389 msgid ""
41390 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41391 "functionality.  For more complex cases you should look at the "
41392 "L<guestfish(1)> tool."
41393 msgstr ""
41394
41395 #. type: textblock
41396 #: ../tools/virt-list-partitions.pl:113
41397 msgid "Show sizes in human-readable form (eg. \"1G\")."
41398 msgstr ""
41399
41400 #. type: textblock
41401 #: ../tools/virt-list-partitions.pl:123
41402 msgid ""
41403 "With this option, C<virt-list-partitions> displays the type and size of each "
41404 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41405 msgstr ""
41406
41407 #. type: =item
41408 #: ../tools/virt-list-partitions.pl:130
41409 msgid "B<-t>"
41410 msgstr ""
41411
41412 #. type: =item
41413 #: ../tools/virt-list-partitions.pl:132
41414 msgid "B<--total>"
41415 msgstr ""
41416
41417 #. type: textblock
41418 #: ../tools/virt-list-partitions.pl:134
41419 msgid "Display the total size of each block device (as a separate row or rows)."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../tools/virt-list-partitions.pl:267
41424 msgid ""
41425 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
41426 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
41427 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41428 msgstr ""
41429
41430 #. type: textblock
41431 #: ../tools/virt-list-partitions.pl:283
41432 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41433 msgstr ""
41434
41435 #. type: textblock
41436 #: ../tools/virt-make-fs.pl:37
41437 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41438 msgstr ""
41439
41440 #. type: verbatim
41441 #: ../tools/virt-make-fs.pl:41
41442 #, no-wrap
41443 msgid ""
41444 " virt-make-fs [--options] input.tar output.img\n"
41445 "\n"
41446 msgstr ""
41447
41448 #. type: verbatim
41449 #: ../tools/virt-make-fs.pl:43
41450 #, no-wrap
41451 msgid ""
41452 " virt-make-fs [--options] input.tar.gz output.img\n"
41453 "\n"
41454 msgstr ""
41455
41456 #. type: verbatim
41457 #: ../tools/virt-make-fs.pl:45
41458 #, no-wrap
41459 msgid ""
41460 " virt-make-fs [--options] directory output.img\n"
41461 "\n"
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../tools/virt-make-fs.pl:49
41466 msgid ""
41467 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41468 "archive or some files in a directory.  It is similar to tools like "
41469 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
41470 "it can create common filesystem types like ext2/3 or NTFS, which can be "
41471 "useful if you want to attach these filesystems to existing virtual machines "
41472 "(eg. to import large amounts of read-only data to a VM)."
41473 msgstr ""
41474
41475 #. type: textblock
41476 #: ../tools/virt-make-fs.pl:57
41477 msgid "Basic usage is:"
41478 msgstr ""
41479
41480 #. type: verbatim
41481 #: ../tools/virt-make-fs.pl:59
41482 #, no-wrap
41483 msgid ""
41484 " virt-make-fs input output.img\n"
41485 "\n"
41486 msgstr ""
41487
41488 #. type: textblock
41489 #: ../tools/virt-make-fs.pl:61
41490 msgid ""
41491 "where C<input> is either a directory containing files that you want to add, "
41492 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41493 "C<output.img> is a disk image.  The input type is detected automatically.  "
41494 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41495 "extra flags (see L</OPTIONS> below)."
41496 msgstr ""
41497
41498 #. type: =head2
41499 #: ../tools/virt-make-fs.pl:67
41500 msgid "FILESYSTEM TYPE"
41501 msgstr ""
41502
41503 #. type: textblock
41504 #: ../tools/virt-make-fs.pl:69
41505 msgid ""
41506 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41507 "libguestfs supports can be used (but I<not> read-only formats like "
41508 "ISO9660).  Here are some of the more common choices:"
41509 msgstr ""
41510
41511 #. type: =item
41512 #: ../tools/virt-make-fs.pl:75
41513 msgid "I<ext3>"
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../tools/virt-make-fs.pl:77
41518 msgid ""
41519 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41520 "you are not going to use the filesystem in a way that requires the journal, "
41521 "then this is just wasted overhead."
41522 msgstr ""
41523
41524 #. type: =item
41525 #: ../tools/virt-make-fs.pl:81
41526 msgid "I<ntfs> or I<vfat>"
41527 msgstr ""
41528
41529 #. type: textblock
41530 #: ../tools/virt-make-fs.pl:83
41531 msgid "Useful if exporting data to a Windows guest."
41532 msgstr ""
41533
41534 #. type: textblock
41535 #: ../tools/virt-make-fs.pl:85
41536 msgid ""
41537 "I<Note for vfat>: The tar archive or local directory must only contain files "
41538 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41539 "program running within libguestfs is unable to change the ownership of "
41540 "non-root files, since vfat itself does not support this."
41541 msgstr ""
41542
41543 #. type: =item
41544 #: ../tools/virt-make-fs.pl:90
41545 msgid "I<minix>"
41546 msgstr ""
41547
41548 #. type: textblock
41549 #: ../tools/virt-make-fs.pl:92
41550 msgid ""
41551 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41552 "total filesystem size."
41553 msgstr ""
41554
41555 #. type: =head3
41556 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
41557 msgid "EXAMPLE"
41558 msgstr ""
41559
41560 #. type: verbatim
41561 #: ../tools/virt-make-fs.pl:99
41562 #, no-wrap
41563 msgid ""
41564 " virt-make-fs --type=minix input minixfs.img\n"
41565 "\n"
41566 msgstr ""
41567
41568 #. type: =head2
41569 #: ../tools/virt-make-fs.pl:101
41570 msgid "TO PARTITION OR NOT TO PARTITION"
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../tools/virt-make-fs.pl:103
41575 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41576 msgstr ""
41577
41578 #. type: textblock
41579 #: ../tools/virt-make-fs.pl:105
41580 msgid ""
41581 "Adding a partition can make the disk image more compatible with certain "
41582 "virtualized operating systems which don't expect to see a filesystem "
41583 "directly located on a block device (Linux doesn't care and will happily "
41584 "handle both types)."
41585 msgstr ""
41586
41587 #. type: textblock
41588 #: ../tools/virt-make-fs.pl:110
41589 msgid ""
41590 "On the other hand, if you have a partition table then the output image is no "
41591 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41592 "directly on a partitioned disk image.  (However libguestfs tools such as "
41593 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41594 msgstr ""
41595
41596 #. type: textblock
41597 #: ../tools/virt-make-fs.pl:118
41598 msgid "Add an MBR partition:"
41599 msgstr ""
41600
41601 #. type: verbatim
41602 #: ../tools/virt-make-fs.pl:120
41603 #, no-wrap
41604 msgid ""
41605 " virt-make-fs --partition -- input disk.img\n"
41606 "\n"
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../tools/virt-make-fs.pl:122
41611 msgid ""
41612 "If the output disk image could be terabyte-sized or larger, it's better to "
41613 "use an EFI/GPT-compatible partition table:"
41614 msgstr ""
41615
41616 #. type: verbatim
41617 #: ../tools/virt-make-fs.pl:125
41618 #, no-wrap
41619 msgid ""
41620 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41621 "\n"
41622 msgstr ""
41623
41624 #. type: =head2
41625 #: ../tools/virt-make-fs.pl:127
41626 msgid "EXTRA SPACE"
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../tools/virt-make-fs.pl:129
41631 msgid ""
41632 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41633 "the files that it contains, but might have extra space.  Depending on how "
41634 "you are going to use the output, you might think this extra space is wasted "
41635 "and want to minimize it, or you might want to leave space so that more files "
41636 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41637 "but you can use the I<--size> flag to leave space in the filesystem if you "
41638 "want it."
41639 msgstr ""
41640
41641 #. type: textblock
41642 #: ../tools/virt-make-fs.pl:137
41643 msgid ""
41644 "An alternative way to leave extra space but not make the output image any "
41645 "bigger is to use an alternative disk image format (instead of the default "
41646 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41647 "image format (check your hypervisor supports this before using it).  This "
41648 "allows you to choose a large I<--size> but the extra space won't actually be "
41649 "allocated in the image until you try to store something in it."
41650 msgstr ""
41651
41652 #. type: textblock
41653 #: ../tools/virt-make-fs.pl:145
41654 msgid ""
41655 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41656 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41657 "to build another image from scratch."
41658 msgstr ""
41659
41660 #. type: verbatim
41661 #: ../tools/virt-make-fs.pl:151
41662 #, no-wrap
41663 msgid ""
41664 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41665 "\n"
41666 msgstr ""
41667
41668 #. type: textblock
41669 #: ../tools/virt-make-fs.pl:179
41670 msgid "Enable debugging information."
41671 msgstr ""
41672
41673 #. type: =item
41674 #: ../tools/virt-make-fs.pl:185
41675 msgid "B<--size=E<lt>NE<gt>>"
41676 msgstr ""
41677
41678 #. type: =item
41679 #: ../tools/virt-make-fs.pl:187
41680 msgid "B<--size=+E<lt>NE<gt>>"
41681 msgstr ""
41682
41683 #. type: =item
41684 #: ../tools/virt-make-fs.pl:189
41685 msgid "B<-s E<lt>NE<gt>>"
41686 msgstr ""
41687
41688 #. type: =item
41689 #: ../tools/virt-make-fs.pl:191
41690 msgid "B<-s +E<lt>NE<gt>>"
41691 msgstr ""
41692
41693 #. type: textblock
41694 #: ../tools/virt-make-fs.pl:193
41695 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41696 msgstr ""
41697
41698 #. type: textblock
41699 #: ../tools/virt-make-fs.pl:196
41700 msgid ""
41701 "If this option is I<not> given, then the output image will be just large "
41702 "enough to contain all the files, with not much wasted space."
41703 msgstr ""
41704
41705 #. type: textblock
41706 #: ../tools/virt-make-fs.pl:199
41707 msgid ""
41708 "To choose a fixed size output disk, specify an absolute number followed by "
41709 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41710 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41711 "files, else you will get an error."
41712 msgstr ""
41713
41714 #. type: textblock
41715 #: ../tools/virt-make-fs.pl:204
41716 msgid ""
41717 "To leave extra space, specify C<+> (plus sign) and a number followed by "
41718 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41719 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41720 "the input files, and (approximately) an extra 200 MB free space."
41721 msgstr ""
41722
41723 #. type: textblock
41724 #: ../tools/virt-make-fs.pl:210
41725 msgid ""
41726 "Note that virt-make-fs estimates free space, and therefore will not produce "
41727 "filesystems containing precisely the free space requested.  (It is much more "
41728 "expensive and time-consuming to produce a filesystem which has precisely the "
41729 "desired free space)."
41730 msgstr ""
41731
41732 #. type: =item
41733 #: ../tools/virt-make-fs.pl:219
41734 msgid "B<--format=E<lt>fmtE<gt>>"
41735 msgstr ""
41736
41737 #. type: =item
41738 #: ../tools/virt-make-fs.pl:221
41739 msgid "B<-F E<lt>fmtE<gt>>"
41740 msgstr ""
41741
41742 #. type: textblock
41743 #: ../tools/virt-make-fs.pl:223
41744 msgid "Choose the output disk image format."
41745 msgstr ""
41746
41747 #. type: textblock
41748 #: ../tools/virt-make-fs.pl:225
41749 msgid "The default is C<raw> (raw sparse disk image)."
41750 msgstr ""
41751
41752 #. type: textblock
41753 #: ../tools/virt-make-fs.pl:227
41754 msgid ""
41755 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41756 "that would really make sense here is C<qcow2>."
41757 msgstr ""
41758
41759 #. type: =item
41760 #: ../tools/virt-make-fs.pl:234
41761 msgid "B<--type=E<lt>fsE<gt>>"
41762 msgstr ""
41763
41764 #. type: =item
41765 #: ../tools/virt-make-fs.pl:236
41766 msgid "B<-t E<lt>fsE<gt>>"
41767 msgstr ""
41768
41769 #. type: textblock
41770 #: ../tools/virt-make-fs.pl:238
41771 msgid "Choose the output filesystem type."
41772 msgstr ""
41773
41774 #. type: textblock
41775 #: ../tools/virt-make-fs.pl:240
41776 msgid "The default is C<ext2>."
41777 msgstr ""
41778
41779 #. type: textblock
41780 #: ../tools/virt-make-fs.pl:242
41781 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
41782 msgstr ""
41783
41784 #. type: =item
41785 #: ../tools/virt-make-fs.pl:249
41786 msgid "B<--partition>"
41787 msgstr ""
41788
41789 #. type: =item
41790 #: ../tools/virt-make-fs.pl:251
41791 msgid "B<--partition=E<lt>parttypeE<gt>>"
41792 msgstr ""
41793
41794 #. type: textblock
41795 #: ../tools/virt-make-fs.pl:253
41796 msgid ""
41797 "If specified, this flag adds an MBR partition table to the output disk "
41798 "image."
41799 msgstr ""
41800
41801 #. type: textblock
41802 #: ../tools/virt-make-fs.pl:256
41803 msgid ""
41804 "You can change the partition table type, eg. I<--partition=gpt> for large "
41805 "disks."
41806 msgstr ""
41807
41808 #. type: textblock
41809 #: ../tools/virt-make-fs.pl:259
41810 msgid ""
41811 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41812 "might consider the next parameter to be the partition type.  For example:"
41813 msgstr ""
41814
41815 #. type: verbatim
41816 #: ../tools/virt-make-fs.pl:263
41817 #, no-wrap
41818 msgid ""
41819 " virt-make-fs --partition input.tar output.img\n"
41820 "\n"
41821 msgstr ""
41822
41823 #. type: textblock
41824 #: ../tools/virt-make-fs.pl:265
41825 msgid ""
41826 "would cause virt-make-fs to think you wanted to use a partition type of "
41827 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41828 "dash) between options and the input and output arguments:"
41829 msgstr ""
41830
41831 #. type: verbatim
41832 #: ../tools/virt-make-fs.pl:269
41833 #, no-wrap
41834 msgid ""
41835 " virt-make-fs --partition -- input.tar output.img\n"
41836 "\n"
41837 msgstr ""
41838
41839 #. type: textblock
41840 #: ../tools/virt-make-fs.pl:271
41841 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41842 msgstr ""
41843
41844 #. type: textblock
41845 #: ../tools/virt-make-fs.pl:559
41846 msgid ""
41847 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41848 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
41849 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41850 msgstr ""
41851
41852 #. type: textblock
41853 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41854 msgid ""
41855 "When reporting bugs, please enable debugging and capture the I<complete> "
41856 "output:"
41857 msgstr ""
41858
41859 #. type: verbatim
41860 #: ../tools/virt-make-fs.pl:576
41861 #, no-wrap
41862 msgid ""
41863 " export LIBGUESTFS_DEBUG=1\n"
41864 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41865 "\n"
41866 msgstr ""
41867
41868 #. type: textblock
41869 #: ../tools/virt-make-fs.pl:579
41870 msgid ""
41871 "Attach /tmp/virt-make-fs.log to a new bug report at "
41872 "L<https://bugzilla.redhat.com/>"
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../tools/virt-tar.pl:33
41877 msgid "virt-tar - Extract or upload files to a virtual machine"
41878 msgstr ""
41879
41880 #. type: verbatim
41881 #: ../tools/virt-tar.pl:37
41882 #, no-wrap
41883 msgid ""
41884 " virt-tar [--options] -x domname directory tarball\n"
41885 "\n"
41886 msgstr ""
41887
41888 #. type: verbatim
41889 #: ../tools/virt-tar.pl:39
41890 #, no-wrap
41891 msgid ""
41892 " virt-tar [--options] -u domname tarball directory\n"
41893 "\n"
41894 msgstr ""
41895
41896 #. type: verbatim
41897 #: ../tools/virt-tar.pl:41
41898 #, no-wrap
41899 msgid ""
41900 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41901 "\n"
41902 msgstr ""
41903
41904 #. type: verbatim
41905 #: ../tools/virt-tar.pl:43
41906 #, no-wrap
41907 msgid ""
41908 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41909 "\n"
41910 msgstr ""
41911
41912 #. type: =head2
41913 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41914 msgid "NOTE"
41915 msgstr ""
41916
41917 #. type: textblock
41918 #: ../tools/virt-tar.pl:47
41919 msgid ""
41920 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
41921 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../tools/virt-tar.pl:52
41926 msgid "Download C</home> from the VM into a local tarball:"
41927 msgstr ""
41928
41929 #. type: verbatim
41930 #: ../tools/virt-tar.pl:54
41931 #, no-wrap
41932 msgid ""
41933 " virt-tar -x domname /home home.tar\n"
41934 "\n"
41935 msgstr ""
41936
41937 #. type: verbatim
41938 #: ../tools/virt-tar.pl:56
41939 #, no-wrap
41940 msgid ""
41941 " virt-tar -zx domname /home home.tar.gz\n"
41942 "\n"
41943 msgstr ""
41944
41945 #. type: textblock
41946 #: ../tools/virt-tar.pl:58
41947 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41948 msgstr ""
41949
41950 #. type: verbatim
41951 #: ../tools/virt-tar.pl:60
41952 #, no-wrap
41953 msgid ""
41954 " virt-tar -u domname uploadstuff.tar /tmp\n"
41955 "\n"
41956 msgstr ""
41957
41958 #. type: verbatim
41959 #: ../tools/virt-tar.pl:62
41960 #, no-wrap
41961 msgid ""
41962 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41963 "\n"
41964 msgstr ""
41965
41966 #. type: textblock
41967 #: ../tools/virt-tar.pl:66
41968 msgid ""
41969 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41970 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41971 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41972 msgstr ""
41973
41974 #. type: textblock
41975 #: ../tools/virt-tar.pl:71
41976 msgid ""
41977 "You can use I<-x> (extract) on live virtual machines, but you might get "
41978 "inconsistent results or errors if there is filesystem activity inside the "
41979 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41980 "work, but the only way to guarantee consistent results is if the virtual "
41981 "machine is shut down."
41982 msgstr ""
41983
41984 #. type: textblock
41985 #: ../tools/virt-tar.pl:79
41986 msgid ""
41987 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41988 "parts of a guest filesystem.  There are many possibilities: making backups, "
41989 "uploading data files, snooping on guest activity, fixing or customizing "
41990 "guests, etc."
41991 msgstr ""
41992
41993 #. type: textblock
41994 #: ../tools/virt-tar.pl:84
41995 msgid ""
41996 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41997 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41998 "should look at the L<guestfish(1)> tool."
41999 msgstr ""
42000
42001 #. type: textblock
42002 #: ../tools/virt-tar.pl:88
42003 msgid ""
42004 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42005 "its contents (recursively) from the virtual machine into a local tarball.  "
42006 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42007 "virtual machine.  You cannot use these two options together."
42008 msgstr ""
42009
42010 #. type: textblock
42011 #: ../tools/virt-tar.pl:94
42012 msgid ""
42013 "In addition, you may need to use the I<-z> (gZip) option to enable "
42014 "compression.  When uploading, you have to specify I<-z> if the upload file "
42015 "is compressed because virt-tar won't detect this on its own."
42016 msgstr ""
42017
42018 #. type: textblock
42019 #: ../tools/virt-tar.pl:98
42020 msgid ""
42021 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42022 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42023 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42024 "the L<libguestfs(3)> API)."
42025 msgstr ""
42026
42027 #. type: =item
42028 #: ../tools/virt-tar.pl:160
42029 msgid "B<--extract>"
42030 msgstr ""
42031
42032 #. type: =item
42033 #: ../tools/virt-tar.pl:162
42034 msgid "B<--download>"
42035 msgstr ""
42036
42037 #. type: =item
42038 #: ../tools/virt-tar.pl:164
42039 msgid "B<-u>"
42040 msgstr ""
42041
42042 #. type: =item
42043 #: ../tools/virt-tar.pl:166
42044 msgid "B<--upload>"
42045 msgstr ""
42046
42047 #. type: textblock
42048 #: ../tools/virt-tar.pl:168
42049 msgid ""
42050 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42051 "local tarball."
42052 msgstr ""
42053
42054 #. type: textblock
42055 #: ../tools/virt-tar.pl:171
42056 msgid ""
42057 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42058 "Please read the L</WARNING> section above before using this option."
42059 msgstr ""
42060
42061 #. type: textblock
42062 #: ../tools/virt-tar.pl:175
42063 msgid "You must specify exactly one of these options."
42064 msgstr ""
42065
42066 #. type: =item
42067 #: ../tools/virt-tar.pl:181
42068 msgid "B<-z>"
42069 msgstr ""
42070
42071 #. type: =item
42072 #: ../tools/virt-tar.pl:183
42073 msgid "B<--gzip>"
42074 msgstr ""
42075
42076 #. type: textblock
42077 #: ../tools/virt-tar.pl:185
42078 msgid "Specify that the input or output tarball is gzip-compressed."
42079 msgstr ""
42080
42081 #. type: textblock
42082 #: ../tools/virt-tar.pl:298
42083 msgid ""
42084 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
42085 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42086 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
42087 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../tools/virt-win-reg.pl:37
42092 msgid ""
42093 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
42094 "guest"
42095 msgstr ""
42096
42097 #. type: verbatim
42098 #: ../tools/virt-win-reg.pl:41
42099 #, no-wrap
42100 msgid ""
42101 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42102 "\n"
42103 msgstr ""
42104
42105 #. type: verbatim
42106 #: ../tools/virt-win-reg.pl:43
42107 #, no-wrap
42108 msgid ""
42109 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42110 "\n"
42111 msgstr ""
42112
42113 #. type: verbatim
42114 #: ../tools/virt-win-reg.pl:45
42115 #, no-wrap
42116 msgid ""
42117 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42118 "\n"
42119 msgstr ""
42120
42121 #. type: verbatim
42122 #: ../tools/virt-win-reg.pl:47
42123 #, no-wrap
42124 msgid ""
42125 " virt-win-reg --merge domname [input.reg ...]\n"
42126 "\n"
42127 msgstr ""
42128
42129 #. type: verbatim
42130 #: ../tools/virt-win-reg.pl:49
42131 #, no-wrap
42132 msgid ""
42133 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42134 "\n"
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../tools/virt-win-reg.pl:53
42139 msgid ""
42140 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42141 "virtual machines.  If you do this, you I<will> get irreversible disk "
42142 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42143 "but doesn't catch all cases."
42144 msgstr ""
42145
42146 #. type: textblock
42147 #: ../tools/virt-win-reg.pl:58
42148 msgid ""
42149 "Modifying the Windows Registry is an inherently risky operation.  The format "
42150 "is deliberately obscure and undocumented, and Registry changes can leave the "
42151 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42152 "you have a reliable backup first."
42153 msgstr ""
42154
42155 #. type: textblock
42156 #: ../tools/virt-win-reg.pl:65
42157 msgid ""
42158 "This program can export and merge Windows Registry entries from a Windows "
42159 "guest."
42160 msgstr ""
42161
42162 #. type: textblock
42163 #: ../tools/virt-win-reg.pl:68
42164 msgid ""
42165 "The first parameter is the libvirt guest name or the raw disk image of a "
42166 "Windows guest."
42167 msgstr ""
42168
42169 #. type: textblock
42170 #: ../tools/virt-win-reg.pl:71
42171 msgid ""
42172 "If I<--merge> is I<not> specified, then the chosen registry key is "
42173 "displayed/exported (recursively).  For example:"
42174 msgstr ""
42175
42176 #. type: verbatim
42177 #: ../tools/virt-win-reg.pl:74
42178 #, no-wrap
42179 msgid ""
42180 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42181 "\n"
42182 msgstr ""
42183
42184 #. type: textblock
42185 #: ../tools/virt-win-reg.pl:76
42186 msgid "You can also display single values from within registry keys, for example:"
42187 msgstr ""
42188
42189 #. type: verbatim
42190 #: ../tools/virt-win-reg.pl:79
42191 #, no-wrap
42192 msgid ""
42193 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42194 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42195 " Windows 7 Enterprise\n"
42196 "\n"
42197 msgstr ""
42198
42199 #. type: textblock
42200 #: ../tools/virt-win-reg.pl:83
42201 msgid ""
42202 "With I<--merge>, you can merge a textual regedit file into the Windows "
42203 "Registry:"
42204 msgstr ""
42205
42206 #. type: verbatim
42207 #: ../tools/virt-win-reg.pl:86
42208 #, no-wrap
42209 msgid ""
42210 " $ virt-win-reg --merge Windows7 changes.reg\n"
42211 "\n"
42212 msgstr ""
42213
42214 #. type: textblock
42215 #: ../tools/virt-win-reg.pl:90
42216 msgid ""
42217 "This program is only meant for simple access to the registry.  If you want "
42218 "to do complicated things with the registry, we suggest you download the "
42219 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42220 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42221 "L<hivexregedit(1)>."
42222 msgstr ""
42223
42224 #. type: =item
42225 #: ../tools/virt-win-reg.pl:159
42226 msgid "B<--merge>"
42227 msgstr ""
42228
42229 #. type: textblock
42230 #: ../tools/virt-win-reg.pl:161
42231 msgid ""
42232 "In merge mode, this merges a textual regedit file into the Windows Registry "
42233 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42234 "displays or exports Registry entries instead."
42235 msgstr ""
42236
42237 #. type: textblock
42238 #: ../tools/virt-win-reg.pl:165
42239 msgid ""
42240 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42241 "result in disk corruption.  However exporting (without this flag)  is always "
42242 "safe."
42243 msgstr ""
42244
42245 #. type: =item
42246 #: ../tools/virt-win-reg.pl:173
42247 msgid "B<--encoding> UTF-16LE|ASCII"
42248 msgstr ""
42249
42250 #. type: textblock
42251 #: ../tools/virt-win-reg.pl:175
42252 msgid ""
42253 "When merging (only), you may need to specify the encoding for strings to be "
42254 "used in the hive file.  This is explained in detail in "
42255 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
42256 msgstr ""
42257
42258 #. type: textblock
42259 #: ../tools/virt-win-reg.pl:179
42260 msgid ""
42261 "The default is to use UTF-16LE, which should work with recent versions of "
42262 "Windows."
42263 msgstr ""
42264
42265 #. type: =item
42266 #: ../tools/virt-win-reg.pl:186
42267 msgid "B<--unsafe-printable-strings>"
42268 msgstr ""
42269
42270 #. type: textblock
42271 #: ../tools/virt-win-reg.pl:188
42272 msgid ""
42273 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42274 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42275 "present."
42276 msgstr ""
42277
42278 #. type: textblock
42279 #: ../tools/virt-win-reg.pl:192
42280 msgid ""
42281 "This is unsafe and does not preserve the fidelity of strings in the original "
42282 "Registry for various reasons:"
42283 msgstr ""
42284
42285 #. type: textblock
42286 #: ../tools/virt-win-reg.pl:199
42287 msgid ""
42288 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42289 "other encodings will be corrupted by this transformation."
42290 msgstr ""
42291
42292 #. type: textblock
42293 #: ../tools/virt-win-reg.pl:204
42294 msgid ""
42295 "Assumes that everything which has type 1 or 2 is really a string and that "
42296 "everything else is not a string, but the type field in real Registries is "
42297 "not reliable."
42298 msgstr ""
42299
42300 #. type: textblock
42301 #: ../tools/virt-win-reg.pl:210
42302 msgid ""
42303 "Loses information about whether a zero codepoint followed the string in the "
42304 "Registry or not."
42305 msgstr ""
42306
42307 #. type: textblock
42308 #: ../tools/virt-win-reg.pl:215
42309 msgid ""
42310 "This all happens because the Registry itself contains no information about "
42311 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42312 msgstr ""
42313
42314 #. type: textblock
42315 #: ../tools/virt-win-reg.pl:219
42316 msgid ""
42317 "You should only use this option for quick hacking and debugging of the "
42318 "Registry contents, and I<never> use it if the output is going to be passed "
42319 "into another program or stored in another Registry."
42320 msgstr ""
42321
42322 #. type: =head1
42323 #: ../tools/virt-win-reg.pl:556
42324 msgid "SUPPORTED SYSTEMS"
42325 msgstr ""
42326
42327 #. type: textblock
42328 #: ../tools/virt-win-reg.pl:558
42329 msgid ""
42330 "The program currently supports Windows NT-derived guests starting with "
42331 "Windows XP through to at least Windows 7."
42332 msgstr ""
42333
42334 #. type: textblock
42335 #: ../tools/virt-win-reg.pl:561
42336 msgid "The following Registry keys are supported:"
42337 msgstr ""
42338
42339 #. type: =item
42340 #: ../tools/virt-win-reg.pl:565
42341 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42342 msgstr ""
42343
42344 #. type: =item
42345 #: ../tools/virt-win-reg.pl:567
42346 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42347 msgstr ""
42348
42349 #. type: =item
42350 #: ../tools/virt-win-reg.pl:569
42351 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42352 msgstr ""
42353
42354 #. type: =item
42355 #: ../tools/virt-win-reg.pl:571
42356 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42357 msgstr ""
42358
42359 #. type: =item
42360 #: ../tools/virt-win-reg.pl:573
42361 msgid "C<HKEY_USERS\\.DEFAULT>"
42362 msgstr ""
42363
42364 #. type: =item
42365 #: ../tools/virt-win-reg.pl:575
42366 msgid "C<HKEY_USERS\\I<SID>>"
42367 msgstr ""
42368
42369 #. type: textblock
42370 #: ../tools/virt-win-reg.pl:577
42371 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42372 msgstr ""
42373
42374 #. type: =item
42375 #: ../tools/virt-win-reg.pl:579
42376 msgid "C<HKEY_USERS\\I<username>>"
42377 msgstr ""
42378
42379 #. type: textblock
42380 #: ../tools/virt-win-reg.pl:581
42381 msgid "where I<username> is a local user name (this is a libguestfs extension)."
42382 msgstr ""
42383
42384 #. type: textblock
42385 #: ../tools/virt-win-reg.pl:585
42386 msgid ""
42387 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42388 "C<HKEY_USERS>."
42389 msgstr ""
42390
42391 #. type: textblock
42392 #: ../tools/virt-win-reg.pl:588
42393 msgid ""
42394 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42395 "supported (there is no \"current user\")."
42396 msgstr ""
42397
42398 #. type: =head1
42399 #: ../tools/virt-win-reg.pl:591
42400 msgid "ENCODING"
42401 msgstr ""
42402
42403 #. type: textblock
42404 #: ../tools/virt-win-reg.pl:593
42405 msgid ""
42406 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42407 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
42408 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
42409 "with Windows-style line endings, you may need to reencode the whole file "
42410 "before or after processing."
42411 msgstr ""
42412
42413 #. type: textblock
42414 #: ../tools/virt-win-reg.pl:599
42415 msgid ""
42416 "To reencode a file from Windows format to Linux (before processing it with "
42417 "the I<--merge> option), you would do something like this:"
42418 msgstr ""
42419
42420 #. type: verbatim
42421 #: ../tools/virt-win-reg.pl:602
42422 #, no-wrap
42423 msgid ""
42424 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42425 "\n"
42426 msgstr ""
42427
42428 #. type: textblock
42429 #: ../tools/virt-win-reg.pl:604
42430 msgid ""
42431 "To go in the opposite direction, after exporting and before sending the file "
42432 "to a Windows user, do something like this:"
42433 msgstr ""
42434
42435 #. type: verbatim
42436 #: ../tools/virt-win-reg.pl:607
42437 #, no-wrap
42438 msgid ""
42439 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42440 "\n"
42441 msgstr ""
42442
42443 #. type: textblock
42444 #: ../tools/virt-win-reg.pl:609
42445 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42446 msgstr ""
42447
42448 #. type: textblock
42449 #: ../tools/virt-win-reg.pl:611
42450 msgid ""
42451 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42452 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
42453 "Windows-style (CRLF) line endings, like this:"
42454 msgstr ""
42455
42456 #. type: verbatim
42457 #: ../tools/virt-win-reg.pl:615
42458 #, no-wrap
42459 msgid ""
42460 " $ file software.reg\n"
42461 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42462 " with CRLF line terminators\n"
42463 "\n"
42464 msgstr ""
42465
42466 #. type: textblock
42467 #: ../tools/virt-win-reg.pl:619
42468 msgid "This file would need conversion before you could I<--merge> it."
42469 msgstr ""
42470
42471 #. type: =head1
42472 #: ../tools/virt-win-reg.pl:621
42473 msgid "CurrentControlSet etc."
42474 msgstr ""
42475
42476 #. type: textblock
42477 #: ../tools/virt-win-reg.pl:623
42478 msgid ""
42479 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42480 "Registry at the level of the hive file, and therefore you cannot modify "
42481 "these."
42482 msgstr ""
42483
42484 #. type: textblock
42485 #: ../tools/virt-win-reg.pl:627
42486 msgid ""
42487 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42488 "circumstances it might refer to another control set.  The way to find out is "
42489 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42490 msgstr ""
42491
42492 #. type: verbatim
42493 #: ../tools/virt-win-reg.pl:631
42494 #, no-wrap
42495 msgid ""
42496 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42497 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42498 " \"Current\"=dword:00000001\n"
42499 " \"Default\"=dword:00000001\n"
42500 " \"Failed\"=dword:00000000\n"
42501 " \"LastKnownGood\"=dword:00000002\n"
42502 "\n"
42503 msgstr ""
42504
42505 #. type: textblock
42506 #: ../tools/virt-win-reg.pl:638
42507 msgid "\"Current\" is the one which Windows will choose when it boots."
42508 msgstr ""
42509
42510 #. type: textblock
42511 #: ../tools/virt-win-reg.pl:640
42512 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
42513 msgstr ""
42514
42515 #. type: =head1
42516 #: ../tools/virt-win-reg.pl:643
42517 msgid "DELETING REGISTRY KEYS AND VALUES"
42518 msgstr ""
42519
42520 #. type: textblock
42521 #: ../tools/virt-win-reg.pl:645
42522 msgid "To delete a whole registry key, use the syntax:"
42523 msgstr ""
42524
42525 #. type: verbatim
42526 #: ../tools/virt-win-reg.pl:647
42527 #, no-wrap
42528 msgid ""
42529 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42530 "\n"
42531 msgstr ""
42532
42533 #. type: textblock
42534 #: ../tools/virt-win-reg.pl:649
42535 msgid "To delete a single value within a key, use the syntax:"
42536 msgstr ""
42537
42538 #. type: verbatim
42539 #: ../tools/virt-win-reg.pl:651
42540 #, no-wrap
42541 msgid ""
42542 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42543 " \"Value\"=-\n"
42544 "\n"
42545 msgstr ""
42546
42547 #. type: =head1
42548 #: ../tools/virt-win-reg.pl:654
42549 msgid "WINDOWS TIPS"
42550 msgstr ""
42551
42552 #. type: textblock
42553 #: ../tools/virt-win-reg.pl:656
42554 msgid ""
42555 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42556 "be shut off, else you will get disk corruption."
42557 msgstr ""
42558
42559 #. type: =head2
42560 #: ../tools/virt-win-reg.pl:659
42561 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42562 msgstr ""
42563
42564 #. type: textblock
42565 #: ../tools/virt-win-reg.pl:661
42566 msgid ""
42567 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42568 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42569 "is uploaded into C<C:\\>:"
42570 msgstr ""
42571
42572 #. type: verbatim
42573 #: ../tools/virt-win-reg.pl:665
42574 #, no-wrap
42575 msgid ""
42576 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42577 "\n"
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../tools/virt-win-reg.pl:667
42582 msgid "Prepare a regedit file containing the registry change:"
42583 msgstr ""
42584
42585 #. type: verbatim
42586 #: ../tools/virt-win-reg.pl:669
42587 #, no-wrap
42588 msgid ""
42589 " cat > test.reg <<'EOF'\n"
42590 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42591 " \"Test\"=\"c:\\\\test.bat\"\n"
42592 " EOF\n"
42593 "\n"
42594 msgstr ""
42595
42596 #. type: textblock
42597 #: ../tools/virt-win-reg.pl:674
42598 msgid ""
42599 "In this example we use the key C<RunOnce> which means that the script will "
42600 "run precisely once when the first user logs in.  If you want it to run every "
42601 "time a user logs in, replace C<RunOnce> with C<Run>."
42602 msgstr ""
42603
42604 #. type: textblock
42605 #: ../tools/virt-win-reg.pl:678
42606 msgid "Now update the registry:"
42607 msgstr ""
42608
42609 #. type: verbatim
42610 #: ../tools/virt-win-reg.pl:680
42611 #, no-wrap
42612 msgid ""
42613 " virt-win-reg --merge WindowsGuest test.reg\n"
42614 "\n"
42615 msgstr ""
42616
42617 #. type: =head2
42618 #: ../tools/virt-win-reg.pl:682
42619 msgid "INSTALLING A SERVICE"
42620 msgstr ""
42621
42622 #. type: textblock
42623 #: ../tools/virt-win-reg.pl:684
42624 msgid ""
42625 "This section assumes you are familiar with Windows services, and you either "
42626 "have a program which handles the Windows Service Control Protocol directly "
42627 "or you want to run any program using a service wrapper like SrvAny or the "
42628 "free RHSrvAny."
42629 msgstr ""
42630
42631 #. type: textblock
42632 #: ../tools/virt-win-reg.pl:689
42633 msgid ""
42634 "First upload the program and optionally the service wrapper.  In this case "
42635 "the test program is called C<test.exe> and we are using the RHSrvAny "
42636 "wrapper:"
42637 msgstr ""
42638
42639 #. type: verbatim
42640 #: ../tools/virt-win-reg.pl:693
42641 #, no-wrap
42642 msgid ""
42643 " guestfish -i -d WindowsGuest <<EOF\n"
42644 "   upload rhsrvany.exe /rhsrvany.exe\n"
42645 "   upload test.exe /test.exe\n"
42646 " EOF\n"
42647 "\n"
42648 msgstr ""
42649
42650 #. type: textblock
42651 #: ../tools/virt-win-reg.pl:698
42652 msgid ""
42653 "Prepare a regedit file containing the registry changes.  In this example, "
42654 "the first registry change is needed for the service itself or the service "
42655 "wrapper (if used).  The second registry change is only needed because I am "
42656 "using the RHSrvAny service wrapper."
42657 msgstr ""
42658
42659 #. type: verbatim
42660 #: ../tools/virt-win-reg.pl:703
42661 #, no-wrap
42662 msgid ""
42663 " cat > service.reg <<'EOF'\n"
42664 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42665 " \"Type\"=dword:00000010\n"
42666 " \"Start\"=dword:00000002\n"
42667 " \"ErrorControl\"=dword:00000001\n"
42668 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42669 " \"DisplayName\"=\"RHSrvAny\"\n"
42670 " \"ObjectName\"=\"NetworkService\"\n"
42671 " \n"
42672 msgstr ""
42673
42674 #. type: verbatim
42675 #: ../tools/virt-win-reg.pl:712
42676 #, no-wrap
42677 msgid ""
42678 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42679 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42680 " \"PWD\"=\"c:\\\\Temp\"\n"
42681 " EOF\n"
42682 "\n"
42683 msgstr ""
42684
42685 #. type: textblock
42686 #: ../tools/virt-win-reg.pl:723
42687 msgid ""
42688 "For use of C<ControlSet001> see the section above in this manual page.  You "
42689 "may need to adjust this according to the control set that is in use by the "
42690 "guest."
42691 msgstr ""
42692
42693 #. type: textblock
42694 #: ../tools/virt-win-reg.pl:729
42695 msgid ""
42696 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42697 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42698 "privileged account."
42699 msgstr ""
42700
42701 #. type: textblock
42702 #: ../tools/virt-win-reg.pl:735
42703 msgid ""
42704 "For the meaning of the magic numbers, see this Microsoft KB article: "
42705 "L<http://support.microsoft.com/kb/103000>."
42706 msgstr ""
42707
42708 #. type: textblock
42709 #: ../tools/virt-win-reg.pl:740
42710 msgid "Update the registry:"
42711 msgstr ""
42712
42713 #. type: verbatim
42714 #: ../tools/virt-win-reg.pl:742
42715 #, no-wrap
42716 msgid ""
42717 " virt-win-reg --merge WindowsGuest service.reg\n"
42718 "\n"
42719 msgstr ""
42720
42721 #. type: textblock
42722 #: ../tools/virt-win-reg.pl:746
42723 msgid ""
42724 "Be careful when passing parameters containing C<\\> (backslash) in the "
42725 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42726 "(but not both) to protect them from the shell."
42727 msgstr ""
42728
42729 #. type: textblock
42730 #: ../tools/virt-win-reg.pl:750
42731 msgid "Paths and value names are case-insensitive."
42732 msgstr ""
42733
42734 #. type: textblock
42735 #: ../tools/virt-win-reg.pl:759
42736 msgid ""
42737 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
42738 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
42739 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
42740 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42741 msgstr ""
42742
42743 #. type: verbatim
42744 #: ../tools/virt-win-reg.pl:777
42745 #, no-wrap
42746 msgid ""
42747 " export LIBGUESTFS_DEBUG=1\n"
42748 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42749 "\n"
42750 msgstr ""
42751
42752 #. type: textblock
42753 #: ../tools/virt-win-reg.pl:780
42754 msgid ""
42755 "Attach /tmp/virt-win-reg.log to a new bug report at "
42756 "L<https://bugzilla.redhat.com/>"
42757 msgstr ""