Pushed and pulled latest translations from Transifex.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.13.22\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-19 17:23+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../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 ../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 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
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 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/physical_block_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/logical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/minimum_io_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/optimal_io_size\n"
540 " 0\n"
541 "\n"
542 msgstr ""
543
544 #. type: textblock
545 #: ../align/virt-alignment-scan.pod:243
546 msgid "For a NetApp LUN:"
547 msgstr ""
548
549 #. type: verbatim
550 #: ../align/virt-alignment-scan.pod:245
551 #, no-wrap
552 msgid ""
553 " $ cat /sys/block/sdc/queue/logical_block_size\n"
554 " 512\n"
555 " $ cat /sys/block/sdc/queue/physical_block_size\n"
556 " 512\n"
557 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
560 " 65536\n"
561 "\n"
562 msgstr ""
563
564 #. type: textblock
565 #: ../align/virt-alignment-scan.pod:254
566 msgid ""
567 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
568 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
569 msgstr ""
570
571 #. type: textblock
572 #: ../align/virt-alignment-scan.pod:258
573 msgid ""
574 "For detailed information about what these numbers mean, see "
575 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
576 msgstr ""
577
578 #. type: textblock
579 #: ../align/virt-alignment-scan.pod:261
580 msgid ""
581 "[Thanks to Mike Snitzer for providing NetApp data and additional "
582 "information.]"
583 msgstr ""
584
585 #. type: =head2
586 #: ../align/virt-alignment-scan.pod:264
587 msgid "1 MB PARTITION ALIGNMENT"
588 msgstr ""
589
590 #. type: textblock
591 #: ../align/virt-alignment-scan.pod:266
592 msgid ""
593 "Microsoft picked 1 MB as the default alignment for all partitions starting "
594 "with Windows 2008 Server, and Linux has followed this."
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:269
599 msgid ""
600 "Assuming 512 byte sectors in the guest, you will now see the first partition "
601 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
602 "multiple of 2048 sectors."
603 msgstr ""
604
605 #. type: textblock
606 #: ../align/virt-alignment-scan.pod:273
607 msgid ""
608 "1 MB alignment is compatible with all current alignment requirements (4K, "
609 "64K) and provides room for future growth in physical block sizes."
610 msgstr ""
611
612 #. type: =head2
613 #: ../align/virt-alignment-scan.pod:276
614 msgid "SETTING ALIGNMENT"
615 msgstr ""
616
617 #. type: textblock
618 #: ../align/virt-alignment-scan.pod:278
619 msgid ""
620 "Currently there is no virt tool for fixing alignment problems in guests.  "
621 "This is a difficult problem to fix because simply moving partitions around "
622 "breaks the bootloader, necessitating either manual reinstallation of the "
623 "bootloader using a rescue disk, or complex and error-prone hacks."
624 msgstr ""
625
626 #. type: textblock
627 #: ../align/virt-alignment-scan.pod:284
628 msgid ""
629 "L<virt-resize(1)> does not change the alignment of the first partition, but "
630 "it does align the second and subsequent partitions to a multiple of 64 or "
631 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
632 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
633 "virt-resize could be used to align the main OS partition, so that the "
634 "majority of OS accesses except at boot will be aligned."
635 msgstr ""
636
637 #. type: textblock
638 #: ../align/virt-alignment-scan.pod:292
639 msgid ""
640 "The easiest way to correct partition alignment problems is to reinstall your "
641 "guest operating systems.  If you install operating systems from templates, "
642 "ensure these have correct partition alignment too."
643 msgstr ""
644
645 #. type: textblock
646 #: ../align/virt-alignment-scan.pod:297
647 msgid ""
648 "For older versions of Windows, the following NetApp document contains useful "
649 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
650 msgstr ""
651
652 #. type: textblock
653 #: ../align/virt-alignment-scan.pod:300
654 msgid ""
655 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
656 "an explicit C<%pre> section that creates aligned partitions using "
657 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
658 "document above contains an example."
659 msgstr ""
660
661 #. type: =head1
662 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
663 msgid "SHELL QUOTING"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
668 msgid ""
669 "Libvirt guest names can contain arbitrary characters, some of which have "
670 "meaning to the shell such as C<#> and space.  You may need to quote or "
671 "escape these characters on the command line.  See the shell manual page "
672 "L<sh(1)> for details."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
677 msgid "EXIT STATUS"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:314
682 msgid "This program returns:"
683 msgstr ""
684
685 #. type: =item
686 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337 ../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 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403 ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417 ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148 ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156 ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168 ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182 ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294 ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601 ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615 ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039 ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808 ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830 ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982 ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636 ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047 ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060 ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083 ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322 ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
687 msgid "*"
688 msgstr ""
689
690 #. type: textblock
691 #: ../align/virt-alignment-scan.pod:320
692 msgid "0"
693 msgstr ""
694
695 #. type: textblock
696 #: ../align/virt-alignment-scan.pod:322
697 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:326
702 msgid "1"
703 msgstr ""
704
705 #. type: textblock
706 #: ../align/virt-alignment-scan.pod:328
707 msgid "an error scanning the disk image or guest"
708 msgstr ""
709
710 #. type: textblock
711 #: ../align/virt-alignment-scan.pod:332
712 msgid "2"
713 msgstr ""
714
715 #. type: textblock
716 #: ../align/virt-alignment-scan.pod:334
717 msgid ""
718 "successful exit, some partitions have alignment E<lt> 64K which can result "
719 "in poor performance on high end network storage"
720 msgstr ""
721
722 #. type: textblock
723 #: ../align/virt-alignment-scan.pod:339
724 msgid "3"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:341
729 msgid ""
730 "successful exit, some partitions have alignment E<lt> 4K which can result in "
731 "poor performance on most hypervisors"
732 msgstr ""
733
734 #. type: =head1
735 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod: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:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:746
736 msgid "SEE ALSO"
737 msgstr ""
738
739 #. type: textblock
740 #: ../align/virt-alignment-scan.pod:348
741 msgid ""
742 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
743 "L<virt-resize(1)>, L<http://libguestfs.org/>."
744 msgstr ""
745
746 #. type: =head1
747 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
748 msgid "AUTHOR"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
753 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
754 msgstr ""
755
756 #. type: =head1
757 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../fish/guestfish.pod: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:403 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:776
758 msgid "COPYRIGHT"
759 msgstr ""
760
761 #. type: textblock
762 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:270
763 msgid "Copyright (C) 2011 Red Hat Inc."
764 msgstr ""
765
766 #. type: textblock
767 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243 ../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:407 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:780
768 msgid ""
769 "This program is free software; you can redistribute it and/or modify it "
770 "under the terms of the GNU General Public License as published by the Free "
771 "Software Foundation; either version 2 of the License, or (at your option) "
772 "any later version."
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248 ../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:412 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:785
777 msgid ""
778 "This program is distributed in the hope that it will be useful, but WITHOUT "
779 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
780 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
781 "more details."
782 msgstr ""
783
784 #. type: textblock
785 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253 ../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:417 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:790
786 msgid ""
787 "You should have received a copy of the GNU General Public License along with "
788 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
789 "Ave, Cambridge, MA 02139, USA."
790 msgstr ""
791
792 #. type: textblock
793 #: ../cat/virt-cat.pod:5
794 msgid "virt-cat - Display files in a virtual machine"
795 msgstr ""
796
797 #. type: verbatim
798 #: ../cat/virt-cat.pod:9
799 #, no-wrap
800 msgid ""
801 " virt-cat [--options] -d domname file [file ...]\n"
802 "\n"
803 msgstr ""
804
805 #. type: verbatim
806 #: ../cat/virt-cat.pod:11
807 #, no-wrap
808 msgid ""
809 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
810 "\n"
811 msgstr ""
812
813 #. type: textblock
814 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
815 msgid "Old-style:"
816 msgstr ""
817
818 #. type: verbatim
819 #: ../cat/virt-cat.pod:15
820 #, no-wrap
821 msgid ""
822 " virt-cat domname file\n"
823 "\n"
824 msgstr ""
825
826 #. type: verbatim
827 #: ../cat/virt-cat.pod:17
828 #, no-wrap
829 msgid ""
830 " virt-cat disk.img file\n"
831 "\n"
832 msgstr ""
833
834 #. type: textblock
835 #: ../cat/virt-cat.pod:21
836 msgid ""
837 "C<virt-cat> is a command line tool to display the contents of C<file> where "
838 "C<file> exists in the named virtual machine (or disk image)."
839 msgstr ""
840
841 #. type: textblock
842 #: ../cat/virt-cat.pod:24
843 msgid ""
844 "Multiple filenames can be given, in which case they are concatenated "
845 "together.  Each filename must be a full path, starting at the root directory "
846 "(starting with '/')."
847 msgstr ""
848
849 #. type: textblock
850 #: ../cat/virt-cat.pod:28
851 msgid ""
852 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
853 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
854 "tool (see L</USING GUESTFISH> below)."
855 msgstr ""
856
857 #. type: =head1
858 #: ../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
859 msgid "EXAMPLES"
860 msgstr ""
861
862 #. type: textblock
863 #: ../cat/virt-cat.pod:34
864 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
865 msgstr ""
866
867 #. type: verbatim
868 #: ../cat/virt-cat.pod:37
869 #, no-wrap
870 msgid ""
871 " virt-cat -d mydomain /etc/fstab\n"
872 "\n"
873 msgstr ""
874
875 #. type: textblock
876 #: ../cat/virt-cat.pod:39
877 msgid "List syslog messages from a VM disk image file:"
878 msgstr ""
879
880 #. type: verbatim
881 #: ../cat/virt-cat.pod:41
882 #, no-wrap
883 msgid ""
884 " virt-cat -a disk.img /var/log/messages | tail\n"
885 "\n"
886 msgstr ""
887
888 #. type: textblock
889 #: ../cat/virt-cat.pod:43
890 msgid "Find out what DHCP IP address a VM acquired:"
891 msgstr ""
892
893 #. type: verbatim
894 #: ../cat/virt-cat.pod:45
895 #, no-wrap
896 msgid ""
897 " virt-cat -d mydomain /var/log/messages | \\\n"
898 "   grep 'dhclient: bound to' | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:48
904 msgid "Find out what packages were recently installed:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:50
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/yum.log | tail\n"
912 "\n"
913 msgstr ""
914
915 #. type: textblock
916 #: ../cat/virt-cat.pod:52
917 msgid "Find out who is logged on inside a virtual machine:"
918 msgstr ""
919
920 #. type: verbatim
921 #: ../cat/virt-cat.pod:54
922 #, no-wrap
923 msgid ""
924 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
925 " who /tmp/utmp\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:57
931 msgid "or who was logged on:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:59
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
939 " last -f /tmp/wtmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
945 msgid ""
946 "Add I<file> which should be a disk image from a virtual machine.  If the "
947 "virtual machine has multiple block devices, you must supply all of them with "
948 "separate I<-a> options."
949 msgstr ""
950
951 #. type: =item
952 #: ../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
953 msgid "B<--echo-keys>"
954 msgstr ""
955
956 #. type: textblock
957 #: ../cat/virt-cat.pod:100
958 msgid ""
959 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
960 "so you cannot see what you are typing.  If you are not worried about Tempest "
961 "attacks and there is no one else in the room you can specify this flag to "
962 "see what you are typing."
963 msgstr ""
964
965 #. type: verbatim
966 #: ../cat/virt-cat.pod:116
967 #, no-wrap
968 msgid ""
969 " virt-cat --format=raw -a disk.img file\n"
970 "\n"
971 msgstr ""
972
973 #. type: verbatim
974 #: ../cat/virt-cat.pod:120
975 #, no-wrap
976 msgid ""
977 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
978 "\n"
979 msgstr ""
980
981 #. type: =item
982 #: ../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
983 msgid "B<--keys-from-stdin>"
984 msgstr ""
985
986 #. type: textblock
987 #: ../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
988 msgid ""
989 "Read key or passphrase parameters from stdin.  The default is to try to read "
990 "passphrases from the user by opening C</dev/tty>."
991 msgstr ""
992
993 #. type: =head1
994 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
995 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
996 msgstr ""
997
998 #. type: textblock
999 #: ../cat/virt-cat.pod:154
1000 msgid "Previous versions of virt-cat allowed you to write either:"
1001 msgstr ""
1002
1003 #. type: verbatim
1004 #: ../cat/virt-cat.pod:156
1005 #, no-wrap
1006 msgid ""
1007 " virt-cat disk.img [disk.img ...] file\n"
1008 "\n"
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1013 msgid "or"
1014 msgstr ""
1015
1016 #. type: verbatim
1017 #: ../cat/virt-cat.pod:160
1018 #, no-wrap
1019 msgid ""
1020 " virt-cat guestname file\n"
1021 "\n"
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1026 msgid ""
1027 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1028 "the confusing case where a disk image might have the same name as a guest."
1029 msgstr ""
1030
1031 #. type: textblock
1032 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1033 msgid "For compatibility the old style is still supported."
1034 msgstr ""
1035
1036 #. type: =head1
1037 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1038 msgid "USING GUESTFISH"
1039 msgstr ""
1040
1041 #. type: textblock
1042 #: ../cat/virt-cat.pod:170
1043 msgid ""
1044 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1045 "C<virt-cat> doesn't work."
1046 msgstr ""
1047
1048 #. type: textblock
1049 #: ../cat/virt-cat.pod:173
1050 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1051 msgstr ""
1052
1053 #. type: verbatim
1054 #: ../cat/virt-cat.pod:175
1055 #, no-wrap
1056 msgid ""
1057 " guestfish --ro -i -d domname download file -\n"
1058 "\n"
1059 msgstr ""
1060
1061 #. type: textblock
1062 #: ../cat/virt-cat.pod:177
1063 msgid ""
1064 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1065 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-cat.pod:181
1070 msgid ""
1071 "The command above uses libguestfs's guest inspection feature and so does not "
1072 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1073 "disk images that don't contain guests.  To display a file from a disk image "
1074 "directly, use:"
1075 msgstr ""
1076
1077 #. type: verbatim
1078 #: ../cat/virt-cat.pod:186
1079 #, no-wrap
1080 msgid ""
1081 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1082 "\n"
1083 msgstr ""
1084
1085 #. type: textblock
1086 #: ../cat/virt-cat.pod:188
1087 msgid ""
1088 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1089 "the disk image, and C<file> is the full path to the file."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374 ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1094 msgid "This program returns 0 if successful, or non-zero if there was an error."
1095 msgstr ""
1096
1097 #. type: textblock
1098 #: ../cat/virt-cat.pod:205
1099 msgid ""
1100 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1101 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:641
1106 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1107 msgstr ""
1108
1109 #. type: textblock
1110 #: ../cat/virt-filesystems.pod:5
1111 msgid ""
1112 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1113 "virtual machine or disk image"
1114 msgstr ""
1115
1116 #. type: verbatim
1117 #: ../cat/virt-filesystems.pod:9
1118 #, no-wrap
1119 msgid ""
1120 " virt-filesystems [--options] -d domname\n"
1121 "\n"
1122 msgstr ""
1123
1124 #. type: verbatim
1125 #: ../cat/virt-filesystems.pod:11
1126 #, no-wrap
1127 msgid ""
1128 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1129 "\n"
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../cat/virt-filesystems.pod:15
1134 msgid ""
1135 "This tool allows you to discover filesystems, partitions, logical volumes, "
1136 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1137 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1138 msgstr ""
1139
1140 #. type: textblock
1141 #: ../cat/virt-filesystems.pod:20
1142 msgid ""
1143 "One use for this tool is from shell scripts to iterate over all filesystems "
1144 "from a disk image:"
1145 msgstr ""
1146
1147 #. type: verbatim
1148 #: ../cat/virt-filesystems.pod:23
1149 #, no-wrap
1150 msgid ""
1151 " for fs in $(virt-filesystems -a disk.img); do\n"
1152 "   # ...\n"
1153 " done\n"
1154 "\n"
1155 msgstr ""
1156
1157 #. type: textblock
1158 #: ../cat/virt-filesystems.pod:27
1159 msgid ""
1160 "Another use is to list partitions before using another tool to modify those "
1161 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1162 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../cat/virt-filesystems.pod:32
1167 msgid ""
1168 "Various command line options control what this program displays.  You need "
1169 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1170 "guest respectively.  If you just specify that then the program shows "
1171 "filesystems found, one per line, like this:"
1172 msgstr ""
1173
1174 #. type: verbatim
1175 #: ../cat/virt-filesystems.pod:37
1176 #, no-wrap
1177 msgid ""
1178 " $ virt-filesystems -a disk.img\n"
1179 " /dev/sda1\n"
1180 " /dev/vg_guest/lv_root\n"
1181 "\n"
1182 msgstr ""
1183
1184 #. type: textblock
1185 #: ../cat/virt-filesystems.pod:41
1186 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1187 msgstr ""
1188
1189 #. type: verbatim
1190 #: ../cat/virt-filesystems.pod:44
1191 #, no-wrap
1192 msgid ""
1193 " $ virt-filesystems -a disk.img -l\n"
1194 " Name                   Type         VFS   Label  Size\n"
1195 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1196 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1197 "\n"
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:49
1202 msgid ""
1203 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1204 "shown as well:"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-filesystems.pod:52
1209 #, no-wrap
1210 msgid ""
1211 " $ virt-filesystems -a disk.img --extra\n"
1212 " /dev/sda1\n"
1213 " /dev/vg_guest/lv_root\n"
1214 " /dev/vg_guest/lv_swap\n"
1215 " /dev/vg_guest/lv_data\n"
1216 "\n"
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:58
1221 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1222 msgstr ""
1223
1224 #. type: verbatim
1225 #: ../cat/virt-filesystems.pod:60
1226 #, no-wrap
1227 msgid ""
1228 " $ virt-filesystems -a disk.img --partitions\n"
1229 " /dev/sda1\n"
1230 " /dev/sda2\n"
1231 "\n"
1232 msgstr ""
1233
1234 #. type: textblock
1235 #: ../cat/virt-filesystems.pod:64
1236 msgid ""
1237 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1238 "I<--physical-volumes>, I<--block-devices> to list those items."
1239 msgstr ""
1240
1241 #. type: textblock
1242 #: ../cat/virt-filesystems.pod:67
1243 msgid ""
1244 "You can use these options in combination as well (if you want a combination "
1245 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1246 "items fall into several categories (eg. C</dev/sda1> might be both a "
1247 "partition and a filesystem).  These items are listed several times.  To get "
1248 "a list which includes absolutely everything that virt-filesystems knows "
1249 "about, use the I<--all> option."
1250 msgstr ""
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:74
1254 msgid ""
1255 "UUIDs (because they are quite long) are not shown by default.  Add the "
1256 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-filesystems.pod:78
1261 msgid ""
1262 "I<--all --long --uuid> is a useful combination to display all possible "
1263 "information about everything."
1264 msgstr ""
1265
1266 #. type: verbatim
1267 #: ../cat/virt-filesystems.pod:81
1268 #, no-wrap
1269 msgid ""
1270 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1271 " Name      Type       VFS  Label           Size Parent   UUID\n"
1272 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1273 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1274 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1275 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1276 " /dev/sda  device     -    -               20G  -        -\n"
1277 "\n"
1278 msgstr ""
1279
1280 #. type: textblock
1281 #: ../cat/virt-filesystems.pod:89
1282 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1283 msgstr ""
1284
1285 #. type: =item
1286 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1287 msgid "B<--all>"
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-filesystems.pod:112
1292 msgid ""
1293 "Display everything.  This is currently the same as specifying these options: "
1294 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1295 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1296 "be added to this list in future)."
1297 msgstr ""
1298
1299 #. type: textblock
1300 #: ../cat/virt-filesystems.pod:117
1301 msgid "See also I<--long>."
1302 msgstr ""
1303
1304 #. type: =item
1305 #: ../cat/virt-filesystems.pod:119
1306 msgid "B<--blkdevs>"
1307 msgstr ""
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:121
1311 msgid "B<--block-devices>"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:123
1316 msgid "Display block devices."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1321 msgid "B<--csv>"
1322 msgstr ""
1323
1324 #. type: textblock
1325 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1326 msgid ""
1327 "Write out the results in CSV format (comma-separated values).  This format "
1328 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1329 "ABOUT CSV FORMAT> below."
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../cat/virt-filesystems.pod:150
1334 msgid ""
1335 "When prompting for keys and passphrases, virt-filesystems normally turns "
1336 "echoing off so you cannot see what you are typing.  If you are not worried "
1337 "about Tempest attacks and there is no one else in the room you can specify "
1338 "this flag to see what you are typing."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-filesystems.pod:155
1343 msgid "B<--extra>"
1344 msgstr ""
1345
1346 #. type: textblock
1347 #: ../cat/virt-filesystems.pod:157
1348 msgid ""
1349 "This causes filesystems that are not ordinary, mountable filesystems to be "
1350 "displayed.  This category includes swapspace, and filesystems that are empty "
1351 "or contain unknown data."
1352 msgstr ""
1353
1354 #. type: textblock
1355 #: ../cat/virt-filesystems.pod:161
1356 msgid "This option implies I<--filesystems>."
1357 msgstr ""
1358
1359 #. type: =item
1360 #: ../cat/virt-filesystems.pod:163
1361 msgid "B<--filesystems>"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:165
1366 msgid ""
1367 "Display mountable filesystems.  If no display option was selected then this "
1368 "option is implied."
1369 msgstr ""
1370
1371 #. type: textblock
1372 #: ../cat/virt-filesystems.pod:168
1373 msgid "With I<--extra>, non-mountable filesystems are shown too."
1374 msgstr ""
1375
1376 #. type: verbatim
1377 #: ../cat/virt-filesystems.pod:181
1378 #, no-wrap
1379 msgid ""
1380 " virt-filesystems --format=raw -a disk.img\n"
1381 "\n"
1382 msgstr ""
1383
1384 #. type: verbatim
1385 #: ../cat/virt-filesystems.pod:185
1386 #, no-wrap
1387 msgid ""
1388 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1389 "\n"
1390 msgstr ""
1391
1392 #. type: =item
1393 #: ../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
1394 msgid "B<-h>"
1395 msgstr ""
1396
1397 #. type: =item
1398 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1399 msgid "B<--human-readable>"
1400 msgstr ""
1401
1402 #. type: textblock
1403 #: ../cat/virt-filesystems.pod:198
1404 msgid "In I<--long> mode, display sizes in human-readable format."
1405 msgstr ""
1406
1407 #. type: =item
1408 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1409 msgid "B<-l>"
1410 msgstr ""
1411
1412 #. type: =item
1413 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1414 msgid "B<--long>"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-filesystems.pod:209
1419 msgid "Display extra columns of data (\"long format\")."
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-filesystems.pod:211
1424 msgid "A title row is added unless you also specify I<--no-title>."
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../cat/virt-filesystems.pod:213
1429 msgid ""
1430 "The extra columns displayed depend on what output you select, and the "
1431 "ordering of columns may change in future versions.  Use the title row, "
1432 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1433 "programs."
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-filesystems.pod:218
1438 msgid ""
1439 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1440 "default is to show raw numbers of I<bytes>."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-filesystems.pod:221
1445 msgid "Use I<--uuid> to display UUIDs too."
1446 msgstr ""
1447
1448 #. type: =item
1449 #: ../cat/virt-filesystems.pod:223
1450 msgid "B<--lvs>"
1451 msgstr ""
1452
1453 #. type: =item
1454 #: ../cat/virt-filesystems.pod:225
1455 msgid "B<--logvols>"
1456 msgstr ""
1457
1458 #. type: =item
1459 #: ../cat/virt-filesystems.pod:227
1460 msgid "B<--logical-volumes>"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:229
1465 msgid ""
1466 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1467 "of whether the LVs contain filesystems."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:232
1472 msgid "B<--no-title>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:234
1477 msgid "In I<--long> mode, don't add a title row."
1478 msgstr ""
1479
1480 #. type: textblock
1481 #: ../cat/virt-filesystems.pod:236
1482 msgid ""
1483 "Note that the order of the columns is not fixed, and may change in future "
1484 "versions of virt-filesystems, so using this option may give you unexpected "
1485 "surprises."
1486 msgstr ""
1487
1488 #. type: =item
1489 #: ../cat/virt-filesystems.pod:240
1490 msgid "B<--parts>"
1491 msgstr ""
1492
1493 #. type: =item
1494 #: ../cat/virt-filesystems.pod:242
1495 msgid "B<--partitions>"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-filesystems.pod:244
1500 msgid ""
1501 "Display partitions.  In this mode, these are displayed irrespective of "
1502 "whether the partitions contain filesystems."
1503 msgstr ""
1504
1505 #. type: =item
1506 #: ../cat/virt-filesystems.pod:247
1507 msgid "B<--pvs>"
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../cat/virt-filesystems.pod:249
1512 msgid "B<--physvols>"
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:251
1517 msgid "B<--physical-volumes>"
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-filesystems.pod:253
1522 msgid "Display LVM physical volumes."
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1527 msgid "B<--uuid>"
1528 msgstr ""
1529
1530 #. type: =item
1531 #: ../cat/virt-filesystems.pod:257
1532 msgid "B<--uuids>"
1533 msgstr ""
1534
1535 #. type: textblock
1536 #: ../cat/virt-filesystems.pod:259
1537 msgid "In I<--long> mode, display UUIDs as well."
1538 msgstr ""
1539
1540 #. type: =item
1541 #: ../cat/virt-filesystems.pod:273
1542 msgid "B<--vgs>"
1543 msgstr ""
1544
1545 #. type: =item
1546 #: ../cat/virt-filesystems.pod:275
1547 msgid "B<--volgroups>"
1548 msgstr ""
1549
1550 #. type: =item
1551 #: ../cat/virt-filesystems.pod:277
1552 msgid "B<--volume-groups>"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:279
1557 msgid "Display LVM volume groups."
1558 msgstr ""
1559
1560 #. type: =head1
1561 #: ../cat/virt-filesystems.pod:287
1562 msgid "COLUMNS"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:289
1567 msgid ""
1568 "Note that columns in the output are subject to reordering and change in "
1569 "future versions of this tool."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:294
1574 msgid "B<Name>"
1575 msgstr ""
1576
1577 #. type: textblock
1578 #: ../cat/virt-filesystems.pod:296
1579 msgid "The filesystem, partition, block device or LVM name."
1580 msgstr ""
1581
1582 #. type: textblock
1583 #: ../cat/virt-filesystems.pod:298
1584 msgid ""
1585 "For device and partition names these are displayed as canonical libguestfs "
1586 "names, so that for example C</dev/sda2> is the second partition on the first "
1587 "device."
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-filesystems.pod:302
1592 msgid ""
1593 "If the I<--long> option is B<not> specified, then only the name column is "
1594 "shown in the output."
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:305
1599 msgid "B<Type>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:307
1604 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:309
1609 msgid "B<VFS>"
1610 msgstr ""
1611
1612 #. type: textblock
1613 #: ../cat/virt-filesystems.pod:311
1614 msgid ""
1615 "If there is a filesystem, then this column displays the filesystem type if "
1616 "one could be detected, eg. C<ext4>."
1617 msgstr ""
1618
1619 #. type: =item
1620 #: ../cat/virt-filesystems.pod:314
1621 msgid "B<Label>"
1622 msgstr ""
1623
1624 #. type: textblock
1625 #: ../cat/virt-filesystems.pod:316
1626 msgid ""
1627 "If the object has a label (used for identifying and mounting filesystems) "
1628 "then this column contains the label."
1629 msgstr ""
1630
1631 #. type: =item
1632 #: ../cat/virt-filesystems.pod:319
1633 msgid "B<Size>"
1634 msgstr ""
1635
1636 #. type: textblock
1637 #: ../cat/virt-filesystems.pod:321
1638 msgid ""
1639 "The size of the object in bytes.  If the I<--human> option is used then the "
1640 "size is displayed in a human-readable form."
1641 msgstr ""
1642
1643 #. type: =item
1644 #: ../cat/virt-filesystems.pod:324
1645 msgid "B<Parent>"
1646 msgstr ""
1647
1648 #. type: textblock
1649 #: ../cat/virt-filesystems.pod:326
1650 msgid ""
1651 "The parent column records the parent relationship between objects.  For "
1652 "example, if the object is a partition, then this column contains the name of "
1653 "the containing device.  If the object is a logical volume, then this column "
1654 "is the name of the volume group."
1655 msgstr ""
1656
1657 #. type: =item
1658 #: ../cat/virt-filesystems.pod:331
1659 msgid "B<UUID>"
1660 msgstr ""
1661
1662 #. type: textblock
1663 #: ../cat/virt-filesystems.pod:333
1664 msgid ""
1665 "If the object has a UUID (used for identifying and mounting filesystems and "
1666 "block devices) then this column contains the UUID as a string."
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:337
1671 msgid "The UUID is only displayed if the I<--uuid> option is given."
1672 msgstr ""
1673
1674 #. type: =head1
1675 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1676 msgid "NOTE ABOUT CSV FORMAT"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1681 msgid ""
1682 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1683 "should be easy to parse, but it is definitely not easy to parse."
1684 msgstr ""
1685
1686 #. type: textblock
1687 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1688 msgid ""
1689 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1690 "reliably.  This example has two columns:"
1691 msgstr ""
1692
1693 #. type: verbatim
1694 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1695 #, no-wrap
1696 msgid ""
1697 " \"foo,bar\",baz\n"
1698 "\n"
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1703 msgid ""
1704 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1705 "reliably.  This example has one row:"
1706 msgstr ""
1707
1708 #. type: verbatim
1709 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1710 #, no-wrap
1711 msgid ""
1712 " \"foo\n"
1713 " bar\",baz\n"
1714 "\n"
1715 msgstr ""
1716
1717 #. type: textblock
1718 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1719 msgid ""
1720 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1721 "packaged in major Linux distributions)."
1722 msgstr ""
1723
1724 #. type: textblock
1725 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1726 msgid ""
1727 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1728 "or Python's built-in csv library)."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1733 msgid "Most spreadsheets and databases can import CSV directly."
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-filesystems.pod:379
1738 msgid ""
1739 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1740 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1741 "L<http://libguestfs.org/>."
1742 msgstr ""
1743
1744 #. type: textblock
1745 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1746 msgid "Copyright (C) 2010 Red Hat Inc."
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:5
1751 msgid "virt-ls - List files in a virtual machine"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:9
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls [--options] -d domname directory [directory ...]\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: verbatim
1763 #: ../cat/virt-ls.pod:11
1764 #, no-wrap
1765 msgid ""
1766 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1767 "...]\n"
1768 "\n"
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1773 msgid "Old style:"
1774 msgstr ""
1775
1776 #. type: verbatim
1777 #: ../cat/virt-ls.pod:15
1778 #, no-wrap
1779 msgid ""
1780 " virt-ls [--options] domname directory\n"
1781 "\n"
1782 msgstr ""
1783
1784 #. type: verbatim
1785 #: ../cat/virt-ls.pod:17
1786 #, no-wrap
1787 msgid ""
1788 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1789 "\n"
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-ls.pod:21
1794 msgid ""
1795 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1796 "more from a virtual machine or disk image."
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:24
1801 msgid ""
1802 "Multiple directory names can be given, in which case the output from each is "
1803 "concatenated."
1804 msgstr ""
1805
1806 #. type: textblock
1807 #: ../cat/virt-ls.pod:27
1808 msgid ""
1809 "To list directories from a libvirt guest use the I<-d> option to specify the "
1810 "name of the guest.  For a disk image, use the I<-a> option."
1811 msgstr ""
1812
1813 #. type: textblock
1814 #: ../cat/virt-ls.pod:31
1815 msgid ""
1816 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1817 "may need to use L<guestfish(1)>, or write a program directly to the "
1818 "L<guestfs(3)> API."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-ls.pod:37
1823 msgid "Get a list of all files and directories in a virtual machine:"
1824 msgstr ""
1825
1826 #. type: verbatim
1827 #: ../cat/virt-ls.pod:39
1828 #, no-wrap
1829 msgid ""
1830 " virt-ls -R -d guest /\n"
1831 "\n"
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:41
1836 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:43
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:45
1849 msgid "List all public-writable directories in a Linux virtual machine:"
1850 msgstr ""
1851
1852 #. type: verbatim
1853 #: ../cat/virt-ls.pod:47
1854 #, no-wrap
1855 msgid ""
1856 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1857 "\n"
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:49
1862 msgid "List all Unix domain sockets in a Linux virtual machine:"
1863 msgstr ""
1864
1865 #. type: verbatim
1866 #: ../cat/virt-ls.pod:51
1867 #, no-wrap
1868 msgid ""
1869 " virt-ls -lR -d guest / | grep '^s'\n"
1870 "\n"
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-ls.pod:53
1875 msgid "List all regular files with filenames ending in '.png':"
1876 msgstr ""
1877
1878 #. type: verbatim
1879 #: ../cat/virt-ls.pod:55
1880 #, no-wrap
1881 msgid ""
1882 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1883 "\n"
1884 msgstr ""
1885
1886 #. type: textblock
1887 #: ../cat/virt-ls.pod:57
1888 msgid "To display files larger than 10MB in home directories:"
1889 msgstr ""
1890
1891 #. type: verbatim
1892 #: ../cat/virt-ls.pod:59
1893 #, no-wrap
1894 msgid ""
1895 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1896 "\n"
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../cat/virt-ls.pod:61
1901 msgid "Find everything modified in the last 7 days:"
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-ls.pod:63
1906 #, no-wrap
1907 msgid ""
1908 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1909 "\n"
1910 msgstr ""
1911
1912 #. type: textblock
1913 #: ../cat/virt-ls.pod:65
1914 msgid "Find regular files modified in the last 24 hours:"
1915 msgstr ""
1916
1917 #. type: verbatim
1918 #: ../cat/virt-ls.pod:67
1919 #, no-wrap
1920 msgid ""
1921 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1922 "\n"
1923 msgstr ""
1924
1925 #. type: =head2
1926 #: ../cat/virt-ls.pod:69
1927 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1928 msgstr ""
1929
1930 #. type: textblock
1931 #: ../cat/virt-ls.pod:71
1932 msgid ""
1933 "Find the differences between files in a guest and an earlier snapshot of the "
1934 "same guest."
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:74
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1942 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1943 " diff -u old new | less\n"
1944 "\n"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-ls.pod:78
1949 msgid ""
1950 "The commands above won't find files where the content has changed but the "
1951 "metadata (eg. file size and modification date) is the same.  To do that, you "
1952 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1953 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1954 "of every regular file in the virtual machine."
1955 msgstr ""
1956
1957 #. type: =head1
1958 #: ../cat/virt-ls.pod:84
1959 msgid "OUTPUT MODES"
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-ls.pod:86
1964 msgid ""
1965 "C<virt-ls> has four output modes, controlled by different combinations of "
1966 "the I<-l> and I<-R> options."
1967 msgstr ""
1968
1969 #. type: =head2
1970 #: ../cat/virt-ls.pod:89
1971 msgid "SIMPLE LISTING"
1972 msgstr ""
1973
1974 #. type: textblock
1975 #: ../cat/virt-ls.pod:91
1976 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1977 msgstr ""
1978
1979 #. type: verbatim
1980 #: ../cat/virt-ls.pod:93
1981 #, no-wrap
1982 msgid ""
1983 " $ virt-ls -d guest /\n"
1984 " bin\n"
1985 " boot\n"
1986 " [etc.]\n"
1987 "\n"
1988 msgstr ""
1989
1990 #. type: =head2
1991 #: ../cat/virt-ls.pod:98
1992 msgid "LONG LISTING"
1993 msgstr ""
1994
1995 #. type: textblock
1996 #: ../cat/virt-ls.pod:100
1997 msgid ""
1998 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1999 "(more specifically, like the C<guestfs_ll> function)."
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:103
2004 #, no-wrap
2005 msgid ""
2006 " $ virt-ls -l -d guest /\n"
2007 " total 204\n"
2008 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2009 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2010 " [etc.]\n"
2011 "\n"
2012 msgstr ""
2013
2014 #. type: textblock
2015 #: ../cat/virt-ls.pod:109
2016 msgid ""
2017 "Note that while this is useful for displaying a directory, do not try "
2018 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2019 "instead."
2020 msgstr ""
2021
2022 #. type: =head2
2023 #: ../cat/virt-ls.pod:113
2024 msgid "RECURSIVE LISTING"
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:115
2029 msgid ""
2030 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2031 "and directories recursively:"
2032 msgstr ""
2033
2034 #. type: verbatim
2035 #: ../cat/virt-ls.pod:118
2036 #, no-wrap
2037 msgid ""
2038 " $ virt-ls -R -d guest /tmp\n"
2039 " foo\n"
2040 " foo/bar\n"
2041 " [etc.]\n"
2042 "\n"
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:123
2047 msgid ""
2048 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2049 "converts C<\\0> characters to C<\\n>."
2050 msgstr ""
2051
2052 #. type: =head2
2053 #: ../cat/virt-ls.pod:126
2054 msgid "RECURSIVE LONG LISTING"
2055 msgstr ""
2056
2057 #. type: textblock
2058 #: ../cat/virt-ls.pod:128
2059 msgid ""
2060 "Using I<-lR> options together changes the output to display directories "
2061 "recursively, with file stats, and optionally other features such as "
2062 "checksums and extended attributes."
2063 msgstr ""
2064
2065 #. type: textblock
2066 #: ../cat/virt-ls.pod:132
2067 msgid ""
2068 "Most of the interesting features of C<virt-ls> are only available when using "
2069 "I<-lR> mode."
2070 msgstr ""
2071
2072 #. type: textblock
2073 #: ../cat/virt-ls.pod:135
2074 msgid ""
2075 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2076 "you cannot use the output in another program (because filenames can contain "
2077 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2078 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2079 "on you by creating filenames with embedded newline characters.  To B<safely> "
2080 "parse the output in another program, use the I<--csv> (Comma-Separated "
2081 "Values) option."
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../cat/virt-ls.pod:143
2086 msgid ""
2087 "Note that this output format is completely unrelated to the C<ls -lR> "
2088 "command."
2089 msgstr ""
2090
2091 #. type: verbatim
2092 #: ../cat/virt-ls.pod:146
2093 #, no-wrap
2094 msgid ""
2095 " $ virt-ls -lR -d guest /bin\n"
2096 " d 0555       4096 /bin\n"
2097 " - 0755        123 /bin/alsaunmute\n"
2098 " - 0755      28328 /bin/arch\n"
2099 " l 0777          4 /bin/awk -> gawk\n"
2100 " - 0755      27216 /bin/basename\n"
2101 " - 0755     943360 /bin/bash\n"
2102 " [etc.]\n"
2103 "\n"
2104 msgstr ""
2105
2106 #. type: textblock
2107 #: ../cat/virt-ls.pod:155
2108 msgid "These basic fields are always shown:"
2109 msgstr ""
2110
2111 #. type: =item
2112 #: ../cat/virt-ls.pod:159
2113 msgid "type"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:161
2118 msgid ""
2119 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2120 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2121 "link), C<s> (socket) or C<u> (unknown)."
2122 msgstr ""
2123
2124 #. type: =item
2125 #: ../cat/virt-ls.pod:171
2126 msgid "permissions"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:173
2131 msgid "The Unix permissions, displayed as a 4 digit octal number."
2132 msgstr ""
2133
2134 #. type: =item
2135 #: ../cat/virt-ls.pod:175
2136 msgid "size"
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-ls.pod:177
2141 msgid ""
2142 "The size of the file.  This is shown in bytes unless I<-h> or "
2143 "I<--human-readable> option is given, in which case this is shown as a "
2144 "human-readable number."
2145 msgstr ""
2146
2147 #. type: =head2
2148 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2149 msgid "path"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-ls.pod:183
2154 msgid "The full path of the file or directory."
2155 msgstr ""
2156
2157 #. type: =item
2158 #: ../cat/virt-ls.pod:185
2159 msgid "link"
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:187
2164 msgid "For symbolic links only, the link target."
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-ls.pod:191
2169 msgid ""
2170 "In I<-lR> mode, additional command line options enable the display of more "
2171 "fields."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:194
2176 msgid ""
2177 "With the I<--uids> flag, these additional fields are displayed before the "
2178 "path:"
2179 msgstr ""
2180
2181 #. type: =item
2182 #: ../cat/virt-ls.pod:199
2183 msgid "uid"
2184 msgstr ""
2185
2186 #. type: =item
2187 #: ../cat/virt-ls.pod:201
2188 msgid "gid"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:203
2193 msgid ""
2194 "The UID and GID of the owner of the file (displayed numerically).  Note "
2195 "these only make sense in the context of a Unix-like guest."
2196 msgstr ""
2197
2198 #. type: textblock
2199 #: ../cat/virt-ls.pod:208
2200 msgid "With the I<--times> flag, these additional fields are displayed:"
2201 msgstr ""
2202
2203 #. type: =item
2204 #: ../cat/virt-ls.pod:212
2205 msgid "atime"
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-ls.pod:214
2210 msgid "The time of last access."
2211 msgstr ""
2212
2213 #. type: =item
2214 #: ../cat/virt-ls.pod:216
2215 msgid "mtime"
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-ls.pod:218
2220 msgid "The time of last modification."
2221 msgstr ""
2222
2223 #. type: =item
2224 #: ../cat/virt-ls.pod:220
2225 msgid "ctime"
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-ls.pod:222
2230 msgid "The time of last status change."
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-ls.pod:226
2235 msgid ""
2236 "The time fields are displayed as string dates and times, unless one of the "
2237 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../cat/virt-ls.pod:229
2242 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2243 msgstr ""
2244
2245 #. type: =item
2246 #: ../cat/virt-ls.pod:233
2247 msgid "device"
2248 msgstr ""
2249
2250 #. type: textblock
2251 #: ../cat/virt-ls.pod:235
2252 msgid ""
2253 "The device containing the file (displayed as major:minor).  This may not "
2254 "match devices as known to the guest."
2255 msgstr ""
2256
2257 #. type: =item
2258 #: ../cat/virt-ls.pod:238
2259 msgid "inode"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:240
2264 msgid "The inode number."
2265 msgstr ""
2266
2267 #. type: =item
2268 #: ../cat/virt-ls.pod:242
2269 msgid "nlink"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../cat/virt-ls.pod:244
2274 msgid "The number of hard links."
2275 msgstr ""
2276
2277 #. type: =item
2278 #: ../cat/virt-ls.pod:246
2279 msgid "rdev"
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../cat/virt-ls.pod:248
2284 msgid "For block and char special files, the device (displayed as major:minor)."
2285 msgstr ""
2286
2287 #. type: =item
2288 #: ../cat/virt-ls.pod:251
2289 msgid "blocks"
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../cat/virt-ls.pod:253
2294 msgid "The number of 512 byte blocks allocated to the file."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:257
2299 msgid ""
2300 "With the I<--checksum> flag, the checksum of the file contents is shown "
2301 "(only for regular files).  Computing file checksums can take a considerable "
2302 "amount of time."
2303 msgstr ""
2304
2305 #. type: =item
2306 #: ../cat/virt-ls.pod:280
2307 msgid "B<--checksum>"
2308 msgstr ""
2309
2310 #. type: =item
2311 #: ../cat/virt-ls.pod:282
2312 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2313 msgstr ""
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:284
2317 msgid ""
2318 "Display checksum over file contents for regular files.  With no argument, "
2319 "this defaults to using I<md5>.  Using an argument, you can select the "
2320 "checksum type to use."
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../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
2325 msgid ""
2326 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2327 "LISTING> above."
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:316
2332 msgid ""
2333 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2334 "so you cannot see what you are typing.  If you are not worried about Tempest "
2335 "attacks and there is no one else in the room you can specify this flag to "
2336 "see what you are typing."
2337 msgstr ""
2338
2339 #. type: =item
2340 #: ../cat/virt-ls.pod:321
2341 msgid "B<--extra-stats>"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../cat/virt-ls.pod:323
2346 msgid "Display extra stats."
2347 msgstr ""
2348
2349 #. type: verbatim
2350 #: ../cat/virt-ls.pod:339
2351 #, no-wrap
2352 msgid ""
2353 " virt-ls --format=raw -a disk.img /dir\n"
2354 "\n"
2355 msgstr ""
2356
2357 #. type: verbatim
2358 #: ../cat/virt-ls.pod:343
2359 #, no-wrap
2360 msgid ""
2361 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2362 "\n"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:356
2367 msgid "Display file sizes in human-readable format."
2368 msgstr ""
2369
2370 #. type: =item
2371 #: ../cat/virt-ls.pod:370
2372 msgid "B<-R>"
2373 msgstr ""
2374
2375 #. type: =item
2376 #: ../cat/virt-ls.pod:372
2377 msgid "B<--recursive>"
2378 msgstr ""
2379
2380 #. type: textblock
2381 #: ../cat/virt-ls.pod:374
2382 msgid ""
2383 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2384 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2385 "LISTING>."
2386 msgstr ""
2387
2388 #. type: textblock
2389 #: ../cat/virt-ls.pod:378
2390 msgid ""
2391 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2392 "L</LONG LISTING>."
2393 msgstr ""
2394
2395 #. type: textblock
2396 #: ../cat/virt-ls.pod:381
2397 msgid ""
2398 "C<virt-ls -R> produces a recursive list of files starting at the named "
2399 "directory.  See L</RECURSIVE LISTING>."
2400 msgstr ""
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:384
2404 msgid ""
2405 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2406 "parsed.  See L</RECURSIVE LONG LISTING>."
2407 msgstr ""
2408
2409 #. type: =item
2410 #: ../cat/virt-ls.pod:387
2411 msgid "B<--times>"
2412 msgstr ""
2413
2414 #. type: textblock
2415 #: ../cat/virt-ls.pod:389
2416 msgid "Display time fields."
2417 msgstr ""
2418
2419 #. type: =item
2420 #: ../cat/virt-ls.pod:394
2421 msgid "B<--time-days>"
2422 msgstr ""
2423
2424 #. type: textblock
2425 #: ../cat/virt-ls.pod:396
2426 msgid "Display time fields as days before now (negative if in the future)."
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:398
2431 msgid ""
2432 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2433 "of the file is between 0 and 86399 seconds."
2434 msgstr ""
2435
2436 #. type: =item
2437 #: ../cat/virt-ls.pod:404
2438 msgid "B<--time-relative>"
2439 msgstr ""
2440
2441 #. type: textblock
2442 #: ../cat/virt-ls.pod:406
2443 msgid "Display time fields as seconds before now (negative if in the future)."
2444 msgstr ""
2445
2446 #. type: =item
2447 #: ../cat/virt-ls.pod:411
2448 msgid "B<--time-t>"
2449 msgstr ""
2450
2451 #. type: textblock
2452 #: ../cat/virt-ls.pod:413
2453 msgid "Display time fields as seconds since the Unix epoch."
2454 msgstr ""
2455
2456 #. type: =item
2457 #: ../cat/virt-ls.pod:418
2458 msgid "B<--uids>"
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../cat/virt-ls.pod:420
2463 msgid "Display UID and GID fields."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:445
2468 msgid "Previous versions of virt-ls allowed you to write either:"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../cat/virt-ls.pod:447
2473 #, no-wrap
2474 msgid ""
2475 " virt-ls disk.img [disk.img ...] /dir\n"
2476 "\n"
2477 msgstr ""
2478
2479 #. type: verbatim
2480 #: ../cat/virt-ls.pod:451
2481 #, no-wrap
2482 msgid ""
2483 " virt-ls guestname /dir\n"
2484 "\n"
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:497
2489 msgid ""
2490 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2491 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2492 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2493 msgstr ""
2494
2495 #. type: textblock
2496 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2497 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2498 msgstr ""
2499
2500 #. type: textblock
2501 #: ../clone/virt-sysprep.pod:5
2502 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2503 msgstr ""
2504
2505 #. type: verbatim
2506 #: ../clone/virt-sysprep.pod:9
2507 #, no-wrap
2508 msgid ""
2509 " virt-sysprep [--options] -d domname\n"
2510 "\n"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../clone/virt-sysprep.pod:11
2515 #, no-wrap
2516 msgid ""
2517 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../clone/virt-sysprep.pod:15
2523 msgid ""
2524 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2525 "can be made from it.  Steps in this process include removing SSH host keys, "
2526 "removing persistent network MAC configuration, and removing user accounts.  "
2527 "Each step can be enabled or disabled as required."
2528 msgstr ""
2529
2530 #. type: textblock
2531 #: ../clone/virt-sysprep.pod:21
2532 msgid ""
2533 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2534 "customization by the system administrator."
2535 msgstr ""
2536
2537 #. type: textblock
2538 #: ../clone/virt-sysprep.pod:24
2539 msgid ""
2540 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2541 "be shut down.  If you want to preserve the existing contents of the guest, "
2542 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2543 "below."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../clone/virt-sysprep.pod:29
2548 msgid ""
2549 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2550 "recommend that you don't.  The time you might want to run it as root is when "
2551 "you need root in order to access the disk image, but even in this case it "
2552 "would be better to change the permissions on the disk image to be writable "
2553 "as the non-root user running virt-sysprep."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../clone/virt-sysprep.pod:35
2558 msgid ""
2559 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2560 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2561 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2562 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2563 "Windows sysprepping in a future version, and we already have code to do it."
2564 msgstr ""
2565
2566 #. type: =item
2567 #: ../clone/virt-sysprep.pod:76
2568 msgid "B<--enable=...>"
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../clone/virt-sysprep.pod:78
2573 msgid ""
2574 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2575 "operations, for example:"
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../clone/virt-sysprep.pod:81
2580 #, no-wrap
2581 msgid ""
2582 " --enable=ssh-hostkeys,udev-persistent-net\n"
2583 "\n"
2584 msgstr ""
2585
2586 #. type: textblock
2587 #: ../clone/virt-sysprep.pod:83
2588 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2589 msgstr ""
2590
2591 #. type: textblock
2592 #: ../clone/virt-sysprep.pod:85
2593 msgid ""
2594 "If the I<--enable> option is not given, then we default to trying all "
2595 "possible sysprep operations.  But some sysprep operations are skipped for "
2596 "some guest types."
2597 msgstr ""
2598
2599 #. type: textblock
2600 #: ../clone/virt-sysprep.pod:89
2601 msgid ""
2602 "Use I<--list-operations> to list operations supported by a particular "
2603 "version of virt-sysprep."
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../clone/virt-sysprep.pod:92
2608 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2609 msgstr ""
2610
2611 #. type: verbatim
2612 #: ../clone/virt-sysprep.pod:106
2613 #, no-wrap
2614 msgid ""
2615 " virt-sysprep --format=raw -a disk.img\n"
2616 "\n"
2617 msgstr ""
2618
2619 #. type: verbatim
2620 #: ../clone/virt-sysprep.pod:110
2621 #, no-wrap
2622 msgid ""
2623 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2624 "\n"
2625 msgstr ""
2626
2627 #. type: =item
2628 #: ../clone/virt-sysprep.pod:119
2629 msgid "B<--hostname> newhostname"
2630 msgstr ""
2631
2632 #. type: textblock
2633 #: ../clone/virt-sysprep.pod:121
2634 msgid ""
2635 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2636 "defaults to C<localhost.localdomain>."
2637 msgstr ""
2638
2639 #. type: =item
2640 #: ../clone/virt-sysprep.pod:124
2641 msgid "B<--list-operations>"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../clone/virt-sysprep.pod:126
2646 msgid "List the operations supported by the virt-sysprep program."
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../clone/virt-sysprep.pod:128
2651 msgid "B<--selinux-relabel>"
2652 msgstr ""
2653
2654 #. type: =item
2655 #: ../clone/virt-sysprep.pod:130
2656 msgid "B<--no-selinux-relabel>"
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../clone/virt-sysprep.pod:132
2661 msgid ""
2662 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2663 "I<--no-selinux-relabel> disables relabelling."
2664 msgstr ""
2665
2666 #. type: textblock
2667 #: ../clone/virt-sysprep.pod:135
2668 msgid ""
2669 "The default is to try to detect if SELinux relabelling is required.  See "
2670 "L</SELINUX RELABELLING> below for more details."
2671 msgstr ""
2672
2673 #. type: =head1
2674 #: ../clone/virt-sysprep.pod:156
2675 msgid "OPERATIONS"
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../clone/virt-sysprep.pod:158
2680 msgid ""
2681 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2682 "enabled>, although some are skipped depending on the type of guest."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../clone/virt-sysprep.pod:162
2687 msgid ""
2688 "Operations can be individually enabled using the I<--enable> option.  Use a "
2689 "comma-separated list, for example:"
2690 msgstr ""
2691
2692 #. type: verbatim
2693 #: ../clone/virt-sysprep.pod:165
2694 #, no-wrap
2695 msgid ""
2696 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2697 "\n"
2698 msgstr ""
2699
2700 #. type: textblock
2701 #: ../clone/virt-sysprep.pod:167
2702 msgid ""
2703 "To list the operations supported by the current version of virt-sysprep, use "
2704 "I<--list-operations>."
2705 msgstr ""
2706
2707 #. type: textblock
2708 #: ../clone/virt-sysprep.pod:170
2709 msgid ""
2710 "Future versions of virt-sysprep may add more operations.  If you are using "
2711 "virt-sysprep and want predictable behaviour, specify only the operations "
2712 "that you want to have enabled."
2713 msgstr ""
2714
2715 #. type: =head2
2716 #: ../clone/virt-sysprep.pod:174
2717 msgid "cron-spool"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../clone/virt-sysprep.pod:176
2722 msgid "Remove user at-jobs and cron-jobs."
2723 msgstr ""
2724
2725 #. type: =head2
2726 #: ../clone/virt-sysprep.pod:178
2727 msgid "dhcp-client-state"
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../clone/virt-sysprep.pod:180
2732 msgid "Remove DHCP client leases."
2733 msgstr ""
2734
2735 #. type: =head2
2736 #: ../clone/virt-sysprep.pod:182
2737 msgid "dhcp-server-state"
2738 msgstr ""
2739
2740 #. type: textblock
2741 #: ../clone/virt-sysprep.pod:184
2742 msgid "Remove DHCP server leases."
2743 msgstr ""
2744
2745 #. type: =head2
2746 #: ../clone/virt-sysprep.pod:186
2747 msgid "hostname"
2748 msgstr ""
2749
2750 #. type: textblock
2751 #: ../clone/virt-sysprep.pod:188
2752 msgid ""
2753 "Changes the hostname of the guest to the value given in the I<--hostname> "
2754 "parameter."
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../clone/virt-sysprep.pod:191
2759 msgid ""
2760 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2761 "C<localhost.localdomain>."
2762 msgstr ""
2763
2764 #. type: =head2
2765 #: ../clone/virt-sysprep.pod:194
2766 msgid "logfiles"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../clone/virt-sysprep.pod:196
2771 msgid "Remove many log files."
2772 msgstr ""
2773
2774 #. type: =head2
2775 #: ../clone/virt-sysprep.pod:198
2776 msgid "mail-spool"
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../clone/virt-sysprep.pod:200
2781 msgid "Remove email from the local mail spool directory."
2782 msgstr ""
2783
2784 #. type: =head2
2785 #: ../clone/virt-sysprep.pod:202
2786 msgid "net-hwaddr"
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../clone/virt-sysprep.pod:204
2791 msgid ""
2792 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2793 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2794 msgstr ""
2795
2796 #. type: =head2
2797 #: ../clone/virt-sysprep.pod:207
2798 msgid "random-seed"
2799 msgstr ""
2800
2801 #. type: textblock
2802 #: ../clone/virt-sysprep.pod:209
2803 msgid ""
2804 "Write some random bytes from the host into the random seed file of the "
2805 "guest."
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../clone/virt-sysprep.pod:212
2810 msgid "See L</RANDOM SEED> below."
2811 msgstr ""
2812
2813 #. type: =head2
2814 #: ../clone/virt-sysprep.pod:214
2815 msgid "rhn-systemid"
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../clone/virt-sysprep.pod:216
2820 msgid "Remove the RHN system ID."
2821 msgstr ""
2822
2823 #. type: =head2
2824 #: ../clone/virt-sysprep.pod:218
2825 msgid "smolt-uuid"
2826 msgstr ""
2827
2828 #. type: textblock
2829 #: ../clone/virt-sysprep.pod:220
2830 msgid "Remove the Smolt hardware UUID."
2831 msgstr ""
2832
2833 #. type: =head2
2834 #: ../clone/virt-sysprep.pod:222
2835 msgid "ssh-hostkeys"
2836 msgstr ""
2837
2838 #. type: textblock
2839 #: ../clone/virt-sysprep.pod:224
2840 msgid "Remove the SSH host keys in the guest."
2841 msgstr ""
2842
2843 #. type: textblock
2844 #: ../clone/virt-sysprep.pod:226
2845 msgid ""
2846 "The SSH host keys are regenerated (differently) next time the guest is "
2847 "booted."
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../clone/virt-sysprep.pod:229
2852 msgid ""
2853 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2854 "stark warning about the host key changing:"
2855 msgstr ""
2856
2857 #. type: verbatim
2858 #: ../clone/virt-sysprep.pod:232
2859 #, no-wrap
2860 msgid ""
2861 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2862 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2863 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2864 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2865 "\n"
2866 msgstr ""
2867
2868 #. type: =head2
2869 #: ../clone/virt-sysprep.pod:237
2870 msgid "udev-persistent-net"
2871 msgstr ""
2872
2873 #. type: textblock
2874 #: ../clone/virt-sysprep.pod:239
2875 msgid ""
2876 "Remove udev persistent net rules which map the guest's existing MAC address "
2877 "to a fixed ethernet device (eg. eth0)."
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../clone/virt-sysprep.pod:242
2882 msgid ""
2883 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2884 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2885 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2886 "Erasing the udev persistent net rules avoids this."
2887 msgstr ""
2888
2889 #. type: =head2
2890 #: ../clone/virt-sysprep.pod:247
2891 msgid "utmp"
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../clone/virt-sysprep.pod:249
2896 msgid "Remove the utmp file."
2897 msgstr ""
2898
2899 #. type: textblock
2900 #: ../clone/virt-sysprep.pod:251
2901 msgid ""
2902 "This records who is currently logged in on a machine.  In modern Linux "
2903 "distros it is stored in a ramdisk and hence not part of the virtual "
2904 "machine's disk, but it was stored on disk in older distros."
2905 msgstr ""
2906
2907 #. type: =head2
2908 #: ../clone/virt-sysprep.pod:255
2909 msgid "yum-uuid"
2910 msgstr ""
2911
2912 #. type: textblock
2913 #: ../clone/virt-sysprep.pod:257
2914 msgid "Remove the yum UUID."
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../clone/virt-sysprep.pod:259
2919 msgid ""
2920 "Yum creates a fresh UUID the next time it runs when it notices that the "
2921 "original UUID has been erased."
2922 msgstr ""
2923
2924 #. type: =head1
2925 #: ../clone/virt-sysprep.pod:262
2926 msgid "COPYING AND CLONING"
2927 msgstr ""
2928
2929 #. type: textblock
2930 #: ../clone/virt-sysprep.pod:264
2931 msgid ""
2932 "Virt-sysprep can be used as part of a process of cloning guests, or to "
2933 "prepare a template from which guests can be cloned.  There are many "
2934 "different ways to achieve this using the virt tools, and this section is "
2935 "just an introduction."
2936 msgstr ""
2937
2938 #. type: textblock
2939 #: ../clone/virt-sysprep.pod:269
2940 msgid "A virtual machine (when switched off) consists of two parts:"
2941 msgstr ""
2942
2943 #. type: =item
2944 #: ../clone/virt-sysprep.pod:273
2945 msgid "I<configuration>"
2946 msgstr ""
2947
2948 #. type: textblock
2949 #: ../clone/virt-sysprep.pod:275
2950 msgid ""
2951 "The configuration or description of the guest.  eg. The libvirt XML (see "
2952 "C<virsh dumpxml>), the running configuration of the guest, or another "
2953 "external format like OVF."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../clone/virt-sysprep.pod:279
2958 msgid "Some configuration items that might need to be changed:"
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../clone/virt-sysprep.pod:285
2963 msgid "name"
2964 msgstr ""
2965
2966 #. type: textblock
2967 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
2968 msgid "UUID"
2969 msgstr ""
2970
2971 #. type: textblock
2972 #: ../clone/virt-sysprep.pod:293
2973 msgid "path to block device(s)"
2974 msgstr ""
2975
2976 #. type: textblock
2977 #: ../clone/virt-sysprep.pod:297
2978 msgid "network card MAC address"
2979 msgstr ""
2980
2981 #. type: =item
2982 #: ../clone/virt-sysprep.pod:301
2983 msgid "I<block device(s)>"
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../clone/virt-sysprep.pod:303
2988 msgid ""
2989 "One or more hard disk images, themselves containing files, directories, "
2990 "applications, kernels, configuration, etc."
2991 msgstr ""
2992
2993 #. type: textblock
2994 #: ../clone/virt-sysprep.pod:306
2995 msgid "Some things inside the block devices that might need to be changed:"
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../clone/virt-sysprep.pod:312
3000 msgid "hostname and other net configuration"
3001 msgstr ""
3002
3003 #. type: textblock
3004 #: ../clone/virt-sysprep.pod:320
3005 msgid "SSH host keys"
3006 msgstr ""
3007
3008 #. type: textblock
3009 #: ../clone/virt-sysprep.pod:324
3010 msgid "Windows unique security ID (SID)"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:328
3015 msgid "Puppet registration"
3016 msgstr ""
3017
3018 #. type: =head2
3019 #: ../clone/virt-sysprep.pod:334
3020 msgid "COPYING THE BLOCK DEVICE"
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../clone/virt-sysprep.pod:336
3025 msgid ""
3026 "Starting with an original guest, you probably wish to copy the guest block "
3027 "device and its configuration to make a template.  Then once you are happy "
3028 "with the template, you will want to make many clones from it."
3029 msgstr ""
3030
3031 #. type: verbatim
3032 #: ../clone/virt-sysprep.pod:341
3033 #, no-wrap
3034 msgid ""
3035 "                        virt-sysprep\n"
3036 "                             |\n"
3037 "                             v\n"
3038 " original guest --------> template ---------->\n"
3039 "                                      \\------> cloned\n"
3040 "                                       \\-----> guests\n"
3041 "                                        \\---->\n"
3042 "\n"
3043 msgstr ""
3044
3045 #. type: textblock
3046 #: ../clone/virt-sysprep.pod:349
3047 msgid ""
3048 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3049 "L<dd(1)>."
3050 msgstr ""
3051
3052 #. type: verbatim
3053 #: ../clone/virt-sysprep.pod:352
3054 #, no-wrap
3055 msgid ""
3056 "                   dd                 dd\n"
3057 " original guest --------> template ---------->\n"
3058 "                                      \\------> cloned\n"
3059 "                                       \\-----> guests\n"
3060 "                                        \\---->\n"
3061 "\n"
3062 msgstr ""
3063
3064 #. type: textblock
3065 #: ../clone/virt-sysprep.pod:358
3066 msgid "There are some smarter (and faster) ways too:"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../clone/virt-sysprep.pod:364
3071 #, no-wrap
3072 msgid ""
3073 "                          snapshot\n"
3074 "                template ---------->\n"
3075 "                            \\------> cloned\n"
3076 "                             \\-----> guests\n"
3077 "                              \\---->\n"
3078 "\n"
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../clone/virt-sysprep.pod:370
3083 msgid ""
3084 "Use the block device as a backing file and create a snapshot on top for each "
3085 "guest.  The advantage is that you don't need to copy the block device (very "
3086 "fast) and only changes are stored (less storage required)."
3087 msgstr ""
3088
3089 #. type: textblock
3090 #: ../clone/virt-sysprep.pod:375
3091 msgid ""
3092 "Note that writing to the backing file once you have created guests on top of "
3093 "it is not possible: you will corrupt the guests."
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:378
3098 msgid ""
3099 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3100 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3101 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3102 "also create cheap snapshots from files or LUNs."
3103 msgstr ""
3104
3105 #. type: textblock
3106 #: ../clone/virt-sysprep.pod:386
3107 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../clone/virt-sysprep.pod:390
3112 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3113 msgstr ""
3114
3115 #. type: =head2
3116 #: ../clone/virt-sysprep.pod:394
3117 msgid "VIRT-CLONE"
3118 msgstr ""
3119
3120 #. type: textblock
3121 #: ../clone/virt-sysprep.pod:396
3122 msgid ""
3123 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3124 "and/or modify the external libvirt configuration of a guest.  It will reset "
3125 "the name, UUID and MAC address of the guest in the libvirt XML."
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../clone/virt-sysprep.pod:401
3130 msgid ""
3131 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3132 "image.  This was the original motivation to write virt-sysprep."
3133 msgstr ""
3134
3135 #. type: =head2
3136 #: ../clone/virt-sysprep.pod:404
3137 msgid "SPARSIFY"
3138 msgstr ""
3139
3140 #. type: verbatim
3141 #: ../clone/virt-sysprep.pod:406
3142 #, no-wrap
3143 msgid ""
3144 "              virt-sparsify\n"
3145 " original guest --------> template\n"
3146 "\n"
3147 msgstr ""
3148
3149 #. type: textblock
3150 #: ../clone/virt-sysprep.pod:409
3151 msgid ""
3152 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3153 "it easier to compress and/or faster to copy."
3154 msgstr ""
3155
3156 #. type: textblock
3157 #: ../clone/virt-sysprep.pod:412
3158 msgid ""
3159 "Notice that since virt-sparsify also copies the image, you can use it to "
3160 "make the initial copy (instead of C<dd>)."
3161 msgstr ""
3162
3163 #. type: =head2
3164 #: ../clone/virt-sysprep.pod:415
3165 msgid "RESIZE"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../clone/virt-sysprep.pod:417
3170 #, no-wrap
3171 msgid ""
3172 "                         virt-resize\n"
3173 "                template ---------->\n"
3174 "                            \\------> cloned\n"
3175 "                             \\-----> guests\n"
3176 "                              \\---->\n"
3177 "\n"
3178 msgstr ""
3179
3180 #. type: textblock
3181 #: ../clone/virt-sysprep.pod:423
3182 msgid ""
3183 "If you want to give people cloned guests, but let them pick the size of the "
3184 "guest themselves (eg. depending on how much they are prepared to pay for "
3185 "disk space), then instead of copying the template, you can run "
3186 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3187 "ideal for cloning guests from a template."
3188 msgstr ""
3189
3190 #. type: =head1
3191 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3192 msgid "SECURITY"
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../clone/virt-sysprep.pod:431
3197 msgid ""
3198 "Although virt-sysprep removes some sensitive information from the guest, it "
3199 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3200 "above, and the implementation of the operations in the shell script.  You "
3201 "should also examine the guest afterwards."
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../clone/virt-sysprep.pod:436
3206 msgid ""
3207 "Sensitive files are simply removed.  The data they contained may still exist "
3208 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3209 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3210 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3211 "inodes."
3212 msgstr ""
3213
3214 #. type: =head2
3215 #: ../clone/virt-sysprep.pod:442
3216 msgid "RANDOM SEED"
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../clone/virt-sysprep.pod:444
3221 msgid "I<(This section applies to Linux guests only)>"
3222 msgstr ""
3223
3224 #. type: textblock
3225 #: ../clone/virt-sysprep.pod:446
3226 msgid ""
3227 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3228 "from the host into the guest's random seed file."
3229 msgstr ""
3230
3231 #. type: textblock
3232 #: ../clone/virt-sysprep.pod:449
3233 msgid ""
3234 "If this is just done once and the guest is cloned from the same template, "
3235 "then each guest will start with the same entropy, and things like SSH host "
3236 "keys and TCP sequence numbers may be predictable."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../clone/virt-sysprep.pod:453
3241 msgid ""
3242 "Therefore you should arrange to add more randomness I<after> cloning from a "
3243 "template too, which can be done by just enabling the C<random-seed> "
3244 "operation:"
3245 msgstr ""
3246
3247 #. type: verbatim
3248 #: ../clone/virt-sysprep.pod:457
3249 #, no-wrap
3250 msgid ""
3251 " cp template.img newguest.img\n"
3252 " virt-sysprep --enable=random-seed -a newguest.img\n"
3253 "\n"
3254 msgstr ""
3255
3256 #. type: =head2
3257 #: ../clone/virt-sysprep.pod:460
3258 msgid "SELINUX RELABELLING"
3259 msgstr ""
3260
3261 #. type: textblock
3262 #: ../clone/virt-sysprep.pod:462
3263 msgid "I<(This section applies to Linux guests using SELinux only)>"
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../clone/virt-sysprep.pod:464
3268 msgid ""
3269 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3270 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3271 "next time the guest is booted.  This process interrupts boot and can take "
3272 "some time."
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../clone/virt-sysprep.pod:469
3277 msgid ""
3278 "You can force relabelling for all guests by supplying the "
3279 "I<--selinux-relabel> option."
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../clone/virt-sysprep.pod:472
3284 msgid ""
3285 "You can disable relabelling entirely by supplying the "
3286 "I<--no-selinux-relabel> option."
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:484
3291 msgid "This program returns 0 on success, or 1 if there was an error."
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../clone/virt-sysprep.pod:488
3296 msgid ""
3297 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3298 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3299 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3300 "L<http://libvirt.org/>."
3301 msgstr ""
3302
3303 #. type: textblock
3304 #: ../df/virt-df.pod:5
3305 msgid "virt-df - Display free space on virtual filesystems"
3306 msgstr ""
3307
3308 #. type: verbatim
3309 #: ../df/virt-df.pod:9
3310 #, no-wrap
3311 msgid ""
3312 " virt-df [--options]\n"
3313 "\n"
3314 msgstr ""
3315
3316 #. type: verbatim
3317 #: ../df/virt-df.pod:11
3318 #, no-wrap
3319 msgid ""
3320 " virt-df [--options] -d domname\n"
3321 "\n"
3322 msgstr ""
3323
3324 #. type: verbatim
3325 #: ../df/virt-df.pod:13
3326 #, no-wrap
3327 msgid ""
3328 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3329 "\n"
3330 msgstr ""
3331
3332 #. type: verbatim
3333 #: ../df/virt-df.pod:17
3334 #, no-wrap
3335 msgid ""
3336 " virt-df [--options] domname\n"
3337 "\n"
3338 msgstr ""
3339
3340 #. type: verbatim
3341 #: ../df/virt-df.pod:19
3342 #, no-wrap
3343 msgid ""
3344 " virt-df [--options] disk.img [disk.img ...]\n"
3345 "\n"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../df/virt-df.pod:23
3350 msgid ""
3351 "C<virt-df> is a command line tool to display free space on virtual machine "
3352 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3353 "allocated to a virtual machine, but can look inside disk images to see how "
3354 "much space is really being used."
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../df/virt-df.pod:28
3359 msgid ""
3360 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3361 "to get a list of all active and inactive guests, and performs a C<df>-type "
3362 "operation on each one in turn, printing out the results."
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../df/virt-df.pod:32
3367 msgid ""
3368 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3369 "C<df>-type operation on either the single named libvirt domain, or on the "
3370 "disk image(s) listed on the command line (which must all belong to a single "
3371 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3372 "single guest>.  If you want to run on multiple guests, then you have to "
3373 "invoke C<virt-df> multiple times."
3374 msgstr ""
3375
3376 #. type: textblock
3377 #: ../df/virt-df.pod:39
3378 msgid ""
3379 "Use the I<--csv> option to get a format which can be easily parsed by other "
3380 "programs.  Other options are similar to the standard L<df(1)> command."
3381 msgstr ""
3382
3383 #. type: textblock
3384 #: ../df/virt-df.pod:45
3385 msgid ""
3386 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3387 "output human-readable:"
3388 msgstr ""
3389
3390 #. type: verbatim
3391 #: ../df/virt-df.pod:48
3392 #, no-wrap
3393 msgid ""
3394 " # virt-df -d F14x64 -h\n"
3395 " Filesystem                       Size     Used  Available  Use%\n"
3396 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3397 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../df/virt-df.pod:53
3403 msgid "Show disk usage for a disk image file called C<test.img>:"
3404 msgstr ""
3405
3406 #. type: verbatim
3407 #: ../df/virt-df.pod:55
3408 #, no-wrap
3409 msgid ""
3410 " $ virt-df -a test1.img\n"
3411 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3412 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3413 "\n"
3414 msgstr ""
3415
3416 #. type: verbatim
3417 #: ../df/virt-df.pod:112
3418 #, no-wrap
3419 msgid ""
3420 " virt-df --format=raw -a disk.img\n"
3421 "\n"
3422 msgstr ""
3423
3424 #. type: verbatim
3425 #: ../df/virt-df.pod:116
3426 #, no-wrap
3427 msgid ""
3428 " virt-df --format=raw -a disk.img --format -a another.img\n"
3429 "\n"
3430 msgstr ""
3431
3432 #. type: textblock
3433 #: ../df/virt-df.pod:129
3434 msgid "Print sizes in human-readable format."
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../df/virt-df.pod:131
3439 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3440 msgstr ""
3441
3442 #. type: =item
3443 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3444 msgid "B<-i>"
3445 msgstr ""
3446
3447 #. type: =item
3448 #: ../df/virt-df.pod:135
3449 msgid "B<--inodes>"
3450 msgstr ""
3451
3452 #. type: textblock
3453 #: ../df/virt-df.pod:137
3454 msgid "Print inodes instead of blocks."
3455 msgstr ""
3456
3457 #. type: =item
3458 #: ../df/virt-df.pod:139
3459 msgid "B<--one-per-guest>"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../df/virt-df.pod:141
3464 msgid ""
3465 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3466 "disks from several guests to a single libguestfs appliance."
3467 msgstr ""
3468
3469 #. type: textblock
3470 #: ../df/virt-df.pod:144
3471 msgid "You might use this option in the following circumstances:"
3472 msgstr ""
3473
3474 #. type: textblock
3475 #: ../df/virt-df.pod:150
3476 msgid ""
3477 "If you think an untrusted guest might actively try to exploit the libguestfs "
3478 "appliance kernel, then this prevents one guest from interfering with the "
3479 "stats printed for another guest."
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../df/virt-df.pod:156
3484 msgid ""
3485 "If the kernel has a bug which stops it from accessing a filesystem in one "
3486 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3487 "and report stats for further guests."
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../df/virt-df.pod:165
3492 msgid ""
3493 "Print UUIDs instead of names.  This is useful for following a guest even "
3494 "when the guest is migrated or renamed, or when two guests happen to have the "
3495 "same name."
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../df/virt-df.pod:169
3500 msgid ""
3501 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3502 "images, we still print the disk image name even when this option is "
3503 "specified."
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../df/virt-df.pod:229
3508 msgid ""
3509 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3510 "L<http://libguestfs.org/>."
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../edit/virt-edit.pod:5
3515 msgid "virt-edit - Edit a file in a virtual machine"
3516 msgstr ""
3517
3518 #. type: verbatim
3519 #: ../edit/virt-edit.pod:9
3520 #, no-wrap
3521 msgid ""
3522 " virt-edit [--options] -d domname file [file ...]\n"
3523 "\n"
3524 msgstr ""
3525
3526 #. type: verbatim
3527 #: ../edit/virt-edit.pod:11
3528 #, no-wrap
3529 msgid ""
3530 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3531 "\n"
3532 msgstr ""
3533
3534 #. type: verbatim
3535 #: ../edit/virt-edit.pod:13
3536 #, no-wrap
3537 msgid ""
3538 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3539 "\n"
3540 msgstr ""
3541
3542 #. type: verbatim
3543 #: ../edit/virt-edit.pod:17
3544 #, no-wrap
3545 msgid ""
3546 " virt-edit domname file\n"
3547 "\n"
3548 msgstr ""
3549
3550 #. type: verbatim
3551 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3552 #, no-wrap
3553 msgid ""
3554 " virt-edit disk.img [disk.img ...] file\n"
3555 "\n"
3556 msgstr ""
3557
3558 #. type: =head1
3559 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3560 msgid "WARNING"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../edit/virt-edit.pod:23
3565 msgid ""
3566 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3567 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3568 "doing this, but doesn't catch all cases."
3569 msgstr ""
3570
3571 #. type: textblock
3572 #: ../edit/virt-edit.pod:29
3573 msgid ""
3574 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3575 "exists in the named virtual machine (or disk image)."
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../edit/virt-edit.pod:32
3580 msgid ""
3581 "Multiple filenames can be given, in which case they are each edited in "
3582 "turn.  Each filename must be a full path, starting at the root directory "
3583 "(starting with '/')."
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../edit/virt-edit.pod:36
3588 msgid "If you want to just view a file, use L<virt-cat(1)>."
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../edit/virt-edit.pod:38
3593 msgid ""
3594 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3595 "L</USING GUESTFISH> below)."
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../edit/virt-edit.pod:41
3600 msgid ""
3601 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3602 "that and much more."
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../edit/virt-edit.pod:46
3607 msgid "Edit the named files interactively:"
3608 msgstr ""
3609
3610 #. type: verbatim
3611 #: ../edit/virt-edit.pod:48
3612 #, no-wrap
3613 msgid ""
3614 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3615 "\n"
3616 msgstr ""
3617
3618 #. type: verbatim
3619 #: ../edit/virt-edit.pod:50
3620 #, no-wrap
3621 msgid ""
3622 " virt-edit -d mydomain /etc/passwd\n"
3623 "\n"
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../edit/virt-edit.pod:52
3628 msgid "For Windows guests, some Windows paths are understood:"
3629 msgstr ""
3630
3631 #. type: verbatim
3632 #: ../edit/virt-edit.pod:54
3633 #, no-wrap
3634 msgid ""
3635 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3636 "\n"
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../edit/virt-edit.pod:56
3641 msgid ""
3642 "If Perl is installed, you can also edit files non-interactively (see "
3643 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3644 msgstr ""
3645
3646 #. type: verbatim
3647 #: ../edit/virt-edit.pod:60
3648 #, no-wrap
3649 msgid ""
3650 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3651 "\n"
3652 msgstr ""
3653
3654 #. type: =item
3655 #: ../edit/virt-edit.pod:81
3656 msgid "B<-b> extension"
3657 msgstr ""
3658
3659 #. type: =item
3660 #: ../edit/virt-edit.pod:83
3661 msgid "B<--backup> extension"
3662 msgstr ""
3663
3664 #. type: textblock
3665 #: ../edit/virt-edit.pod:85
3666 msgid ""
3667 "Create a backup of the original file I<in the guest disk image>.  The backup "
3668 "has the original filename with C<extension> added."
3669 msgstr ""
3670
3671 #. type: textblock
3672 #: ../edit/virt-edit.pod:88
3673 msgid ""
3674 "Usually the first character of C<extension> would be a dot C<.> so you would "
3675 "write:"
3676 msgstr ""
3677
3678 #. type: verbatim
3679 #: ../edit/virt-edit.pod:91
3680 #, no-wrap
3681 msgid ""
3682 " virt-edit -b .orig [etc]\n"
3683 "\n"
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../edit/virt-edit.pod:93
3688 msgid "By default, no backup file is made."
3689 msgstr ""
3690
3691 #. type: =item
3692 #: ../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
3693 msgid "B<-c URI>"
3694 msgstr ""
3695
3696 #. type: =item
3697 #: ../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
3698 msgid "B<--connect URI>"
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../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
3703 msgid ""
3704 "If you specify guest block devices directly, then libvirt is not used at "
3705 "all."
3706 msgstr ""
3707
3708 #. type: textblock
3709 #: ../edit/virt-edit.pod:114
3710 msgid ""
3711 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3712 "off so you cannot see what you are typing.  If you are not worried about "
3713 "Tempest attacks and there is no one else in the room you can specify this "
3714 "flag to see what you are typing."
3715 msgstr ""
3716
3717 #. type: =item
3718 #: ../edit/virt-edit.pod:119
3719 msgid "B<-e> EXPR"
3720 msgstr ""
3721
3722 #. type: =item
3723 #: ../edit/virt-edit.pod:121
3724 msgid "B<--expr> EXPR"
3725 msgstr ""
3726
3727 #. type: textblock
3728 #: ../edit/virt-edit.pod:123
3729 msgid ""
3730 "Instead of launching the external editor, non-interactively apply the Perl "
3731 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3732 "EDITING> below."
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../edit/virt-edit.pod:127
3737 msgid ""
3738 "Be careful to properly quote the expression to prevent it from being altered "
3739 "by the shell."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../edit/virt-edit.pod:130
3744 msgid "Note that this option is only available when Perl 5 is installed."
3745 msgstr ""
3746
3747 #. type: =item
3748 #: ../edit/virt-edit.pod:132
3749 msgid "B<--format> raw|qcow2|..."
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../edit/virt-edit.pod:143
3754 #, no-wrap
3755 msgid ""
3756 " virt-edit --format=raw -a disk.img file\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: verbatim
3761 #: ../edit/virt-edit.pod:147
3762 #, no-wrap
3763 msgid ""
3764 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3765 "\n"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../edit/virt-edit.pod:181
3770 msgid "Previous versions of virt-edit allowed you to write either:"
3771 msgstr ""
3772
3773 #. type: verbatim
3774 #: ../edit/virt-edit.pod:187
3775 #, no-wrap
3776 msgid ""
3777 " virt-edit guestname file\n"
3778 "\n"
3779 msgstr ""
3780
3781 #. type: =head1
3782 #: ../edit/virt-edit.pod:195
3783 msgid "NON-INTERACTIVE EDITING"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../edit/virt-edit.pod:197
3788 msgid ""
3789 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3790 "administrator can interactively edit the file."
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../edit/virt-edit.pod:200
3795 msgid ""
3796 "There are two ways also to use C<virt-edit> from scripts in order to make "
3797 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3798 "like this, it's less error-prone to write scripts directly using the "
3799 "libguestfs API and Augeas for configuration file editing.)"
3800 msgstr ""
3801
3802 #. type: textblock
3803 #: ../edit/virt-edit.pod:206
3804 msgid ""
3805 "The first method is to temporarily set C<$EDITOR> to any script or program "
3806 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3807 "update C<tmpfile> in place however it likes."
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../edit/virt-edit.pod:210
3812 msgid ""
3813 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3814 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3815 "instances of C<foo> with C<bar> in a file:"
3816 msgstr ""
3817
3818 #. type: verbatim
3819 #: ../edit/virt-edit.pod:214
3820 #, no-wrap
3821 msgid ""
3822 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3823 "\n"
3824 msgstr ""
3825
3826 #. type: textblock
3827 #: ../edit/virt-edit.pod:216
3828 msgid ""
3829 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3830 "For example to delete root's password you could do:"
3831 msgstr ""
3832
3833 #. type: verbatim
3834 #: ../edit/virt-edit.pod:219
3835 #, no-wrap
3836 msgid ""
3837 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3838 "\n"
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../edit/virt-edit.pod:221
3843 msgid ""
3844 "What really happens is that the snippet is evaluated as a Perl expression "
3845 "for each line of the file.  The line, including the final C<\\n>, is passed "
3846 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../edit/virt-edit.pod:226
3851 msgid ""
3852 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3853 "C<apache> user account from the password file you can do:"
3854 msgstr ""
3855
3856 #. type: verbatim
3857 #: ../edit/virt-edit.pod:229
3858 #, no-wrap
3859 msgid ""
3860 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3861 "\n"
3862 msgstr ""
3863
3864 #. type: textblock
3865 #: ../edit/virt-edit.pod:231
3866 msgid ""
3867 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3868 "the end of the file is rather difficult this way since there is no concept "
3869 "of \"last line of the file\" - your expression just doesn't get called "
3870 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3871 "want to do this."
3872 msgstr ""
3873
3874 #. type: textblock
3875 #: ../edit/virt-edit.pod:237
3876 msgid ""
3877 "The variable C<$lineno> contains the current line number.  As is "
3878 "traditional, the first line in the file is number C<1>."
3879 msgstr ""
3880
3881 #. type: textblock
3882 #: ../edit/virt-edit.pod:240
3883 msgid ""
3884 "The return value from the expression is ignored, but the expression may call "
3885 "C<die> in order to abort the whole program, leaving the original file "
3886 "untouched."
3887 msgstr ""
3888
3889 #. type: textblock
3890 #: ../edit/virt-edit.pod:244
3891 msgid ""
3892 "Remember when matching the end of a line that C<$_> may contain the final "
3893 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3894 "newline then neither of these.  Thus to match or substitute some text at the "
3895 "end of a line, use this regular expression:"
3896 msgstr ""
3897
3898 #. type: verbatim
3899 #: ../edit/virt-edit.pod:249
3900 #, no-wrap
3901 msgid ""
3902 " /some text(\\r?\\n)?$/\n"
3903 "\n"
3904 msgstr ""
3905
3906 #. type: textblock
3907 #: ../edit/virt-edit.pod:251
3908 msgid ""
3909 "Alternately, use the perl C<chomp> function, being careful not to chomp "
3910 "C<$_> itself (since that would remove all newlines from the file):"
3911 msgstr ""
3912
3913 #. type: verbatim
3914 #: ../edit/virt-edit.pod:255
3915 #, no-wrap
3916 msgid ""
3917 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3918 "\n"
3919 msgstr ""
3920
3921 #. type: =head1
3922 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3923 msgid "WINDOWS PATHS"
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../edit/virt-edit.pod:259
3928 msgid ""
3929 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3930 "paths (eg. C<E:\\foo\\bar.txt>)."
3931 msgstr ""
3932
3933 #. type: textblock
3934 #: ../edit/virt-edit.pod:262
3935 msgid "If and only if the guest is running Windows then:"
3936 msgstr ""
3937
3938 #. type: textblock
3939 #: ../edit/virt-edit.pod:268
3940 msgid ""
3941 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3942 "to the correct filesystem."
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../edit/virt-edit.pod:273
3947 msgid ""
3948 "Any backslash (C<\\>) characters in the path are replaced with forward "
3949 "slashes so that libguestfs can process it."
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../edit/virt-edit.pod:278
3954 msgid ""
3955 "The path is resolved case insensitively to locate the file that should be "
3956 "edited."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../edit/virt-edit.pod:283
3961 msgid "There are some known shortcomings:"
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../edit/virt-edit.pod:289
3966 msgid "Some NTFS symbolic links may not be followed correctly."
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../edit/virt-edit.pod:293
3971 msgid "NTFS junction points that cross filesystems are not followed."
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../edit/virt-edit.pod:299
3976 msgid ""
3977 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3978 "C<virt-edit> doesn't work."
3979 msgstr ""
3980
3981 #. type: textblock
3982 #: ../edit/virt-edit.pod:302
3983 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3984 msgstr ""
3985
3986 #. type: verbatim
3987 #: ../edit/virt-edit.pod:304
3988 #, no-wrap
3989 msgid ""
3990 " guestfish --rw -i -d domname edit /file\n"
3991 "\n"
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../edit/virt-edit.pod:306
3996 msgid ""
3997 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3998 "path to the file."
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../edit/virt-edit.pod:309
4003 msgid ""
4004 "The command above uses libguestfs's guest inspection feature and so does not "
4005 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4006 "disk images that don't contain guests.  To edit a file on a disk image "
4007 "directly, use:"
4008 msgstr ""
4009
4010 #. type: verbatim
4011 #: ../edit/virt-edit.pod:314
4012 #, no-wrap
4013 msgid ""
4014 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4015 "\n"
4016 msgstr ""
4017
4018 #. type: textblock
4019 #: ../edit/virt-edit.pod:316
4020 msgid ""
4021 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4022 "the disk image to edit, and C</file> is the full path to the file."
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../edit/virt-edit.pod:320
4027 msgid ""
4028 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4029 "C<write> or C<upload> instead:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:323
4034 #, no-wrap
4035 msgid ""
4036 " guestfish --rw -i -d domname touch /newfile\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: verbatim
4041 #: ../edit/virt-edit.pod:325
4042 #, no-wrap
4043 msgid ""
4044 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4045 "\n"
4046 msgstr ""
4047
4048 #. type: verbatim
4049 #: ../edit/virt-edit.pod:327
4050 #, no-wrap
4051 msgid ""
4052 " guestfish --rw -i -d domname upload localfile /newfile\n"
4053 "\n"
4054 msgstr ""
4055
4056 #. type: =head1
4057 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4058 msgid "ENVIRONMENT VARIABLES"
4059 msgstr ""
4060
4061 #. type: =item
4062 #: ../edit/virt-edit.pod:333
4063 msgid "C<EDITOR>"
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../edit/virt-edit.pod:335
4068 msgid ""
4069 "If set, this string is used as the editor.  It may contain arguments, "
4070 "eg. C<\"emacs -nw\">"
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../edit/virt-edit.pod:338
4075 msgid "If not set, C<vi> is used."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../edit/virt-edit.pod:356
4080 msgid ""
4081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4082 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4083 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4084 msgstr ""
4085
4086 #. type: textblock
4087 #: ../erlang/examples/guestfs-erlang.pod:5
4088 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4089 msgstr ""
4090
4091 #. type: verbatim
4092 #: ../erlang/examples/guestfs-erlang.pod:9
4093 #, no-wrap
4094 msgid ""
4095 " {ok, G} = guestfs:create(),\n"
4096 " ok = guestfs:add_drive_opts(G, Disk,\n"
4097 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4098 " ok = guestfs:launch(G),\n"
4099 " [Device] = guestfs:list_devices(G),\n"
4100 " ok = guestfs:close(G).\n"
4101 "\n"
4102 msgstr ""
4103
4104 #. type: textblock
4105 #: ../erlang/examples/guestfs-erlang.pod:18
4106 msgid ""
4107 "This manual page documents how to call libguestfs from the Erlang "
4108 "programming language.  This page just documents the differences from the C "
4109 "API and gives some examples.  If you are not familiar with using libguestfs, "
4110 "you also need to read L<guestfs(3)>."
4111 msgstr ""
4112
4113 #. type: =head2
4114 #: ../erlang/examples/guestfs-erlang.pod:23
4115 msgid "OPENING AND CLOSING THE HANDLE"
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../erlang/examples/guestfs-erlang.pod:25
4120 msgid ""
4121 "The Erlang bindings are implemented using an external program called "
4122 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4123 "should specify the full path to the program:"
4124 msgstr ""
4125
4126 #. type: verbatim
4127 #: ../erlang/examples/guestfs-erlang.pod:29
4128 #, no-wrap
4129 msgid ""
4130 " {ok, G} = guestfs:create().\n"
4131 "\n"
4132 msgstr ""
4133
4134 #. type: verbatim
4135 #: ../erlang/examples/guestfs-erlang.pod:31
4136 #, no-wrap
4137 msgid ""
4138 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4139 "\n"
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../erlang/examples/guestfs-erlang.pod:33
4144 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../erlang/examples/guestfs-erlang.pod:36
4149 msgid "To close the handle:"
4150 msgstr ""
4151
4152 #. type: verbatim
4153 #: ../erlang/examples/guestfs-erlang.pod:38
4154 #, no-wrap
4155 msgid ""
4156 " ok = guestfs:close(G).\n"
4157 "\n"
4158 msgstr ""
4159
4160 #. type: =head2
4161 #: ../erlang/examples/guestfs-erlang.pod:40
4162 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../erlang/examples/guestfs-erlang.pod:42
4167 msgid ""
4168 "For functions that take optional arguments, the first arguments are the "
4169 "non-optional ones.  The last argument is a list of tuples supplying the "
4170 "remaining optional arguments."
4171 msgstr ""
4172
4173 #. type: verbatim
4174 #: ../erlang/examples/guestfs-erlang.pod:46
4175 #, no-wrap
4176 msgid ""
4177 " ok = guestfs:add_drive_opts(G, Disk,\n"
4178 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4179 "\n"
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../erlang/examples/guestfs-erlang.pod:49
4184 msgid "If the last argument would be an empty list, you can also omit it:"
4185 msgstr ""
4186
4187 #. type: verbatim
4188 #: ../erlang/examples/guestfs-erlang.pod:51
4189 #, no-wrap
4190 msgid ""
4191 " ok = guestfs:add_drive_opts(G, Disk).\n"
4192 "\n"
4193 msgstr ""
4194
4195 #. type: =head2
4196 #: ../erlang/examples/guestfs-erlang.pod:53
4197 msgid "RETURN VALUES AND ERRORS"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../erlang/examples/guestfs-erlang.pod:55
4202 msgid ""
4203 "On success, most functions return a C<Result> term (which could be a list, "
4204 "string, tuple etc.).  If there is nothing for the function to return, then "
4205 "the atom C<ok> is returned."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../erlang/examples/guestfs-erlang.pod:59
4210 msgid "On error, you would see one of the following tuples:"
4211 msgstr ""
4212
4213 #. type: =item
4214 #: ../erlang/examples/guestfs-erlang.pod:63
4215 msgid "C<{error, Msg, Errno}>"
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../erlang/examples/guestfs-erlang.pod:65
4220 msgid "This indicates an ordinary error from the function."
4221 msgstr ""
4222
4223 #. type: textblock
4224 #: ../erlang/examples/guestfs-erlang.pod:67
4225 msgid ""
4226 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4227 "(integer)."
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../erlang/examples/guestfs-erlang.pod:70
4232 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4233 msgstr ""
4234
4235 #. type: =item
4236 #: ../erlang/examples/guestfs-erlang.pod:72
4237 msgid "C<{unknown, Function}>"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../erlang/examples/guestfs-erlang.pod:74
4242 msgid ""
4243 "This indicates that the function you called is not known.  Generally this "
4244 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4245 "which you should not do."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../erlang/examples/guestfs-erlang.pod:78
4250 msgid "C<Function> is the name of the unknown function."
4251 msgstr ""
4252
4253 #. type: =item
4254 #: ../erlang/examples/guestfs-erlang.pod:80
4255 msgid "C<{unknownarg, Arg}>"
4256 msgstr ""
4257
4258 #. type: textblock
4259 #: ../erlang/examples/guestfs-erlang.pod:82
4260 msgid ""
4261 "This indicates that you called a function with optional arguments, with an "
4262 "unknown argument name."
4263 msgstr ""
4264
4265 #. type: textblock
4266 #: ../erlang/examples/guestfs-erlang.pod:85
4267 msgid "C<Arg> is the name of the unknown argument."
4268 msgstr ""
4269
4270 #. type: =head1
4271 #: ../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
4272 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../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
4277 msgid "@EXAMPLE1@"
4278 msgstr ""
4279
4280 #. type: =head1
4281 #: ../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
4282 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4283 msgstr ""
4284
4285 #. type: textblock
4286 #: ../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
4287 msgid "@EXAMPLE2@"
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../erlang/examples/guestfs-erlang.pod:99
4292 msgid ""
4293 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4294 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4295 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4296 "L<http://libguestfs.org/>."
4297 msgstr ""
4298
4299 #. type: =head1
4300 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../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:389 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333 ../test-tool/libguestfs-test-tool.pod:106
4301 msgid "AUTHORS"
4302 msgstr ""
4303
4304 #. type: textblock
4305 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../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:3335 ../test-tool/libguestfs-test-tool.pod:108
4306 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4311 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../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
4316 msgid ""
4317 "The examples in this manual page may be freely copied, modified and "
4318 "distributed without any restrictions."
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4323 msgid ""
4324 "This library is free software; you can redistribute it and/or modify it "
4325 "under the terms of the GNU Lesser General Public License as published by the "
4326 "Free Software Foundation; either version 2 of the License, or (at your "
4327 "option) any later version."
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4332 msgid ""
4333 "This library is distributed in the hope that it will be useful, but WITHOUT "
4334 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4335 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4336 "for more details."
4337 msgstr ""
4338
4339 #. type: textblock
4340 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4341 msgid ""
4342 "You should have received a copy of the GNU Lesser General Public License "
4343 "along with this library; if not, write to the Free Software Foundation, "
4344 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../examples/guestfs-examples.pod:5
4349 msgid "guestfs-examples - Examples of using libguestfs from C"
4350 msgstr ""
4351
4352 #. type: verbatim
4353 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4354 #, no-wrap
4355 msgid ""
4356 " #include <guestfs.h>\n"
4357 " \n"
4358 msgstr ""
4359
4360 #. type: verbatim
4361 #: ../examples/guestfs-examples.pod:11
4362 #, no-wrap
4363 msgid ""
4364 " guestfs_h *g = guestfs_create ();\n"
4365 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4366 " guestfs_launch (g);\n"
4367 "\n"
4368 msgstr ""
4369
4370 #. type: verbatim
4371 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4372 #, no-wrap
4373 msgid ""
4374 " cc prog.c -o prog -lguestfs\n"
4375 "or:\n"
4376 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../examples/guestfs-examples.pod:21
4382 msgid ""
4383 "This manual page contains examples of calling libguestfs from the C "
4384 "programming language.  If you are not familiar with using libguestfs, you "
4385 "also need to read L<guestfs(3)>."
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../examples/guestfs-examples.pod:35
4390 msgid ""
4391 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4392 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4393 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4394 msgstr ""
4395
4396 #. type: textblock
4397 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4398 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4399 msgstr ""
4400
4401 #. type: =end
4402 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4403 msgid "comment"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../examples/guestfs-recipes.pod:5
4408 msgid ""
4409 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4410 "here.  The only way which works for both sorts of output is to just write "
4411 "the URL directly.  Do NOT use L<...> for URLs."
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../examples/guestfs-recipes.pod:9
4416 msgid ""
4417 "We break with tradition here and don't use ALL CAPS for the section "
4418 "headings, as this makes them much easier to read."
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:16
4423 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../examples/guestfs-recipes.pod:20
4428 msgid ""
4429 "This page contains recipes for and links to things you can do using "
4430 "libguestfs, L<guestfish(1)> and the virt tools."
4431 msgstr ""
4432
4433 #. type: =head1
4434 #: ../examples/guestfs-recipes.pod:23
4435 msgid "Audit a virtual machine for setuid files"
4436 msgstr ""
4437
4438 #. type: textblock
4439 #: ../examples/guestfs-recipes.pod:25
4440 msgid ""
4441 "The link below contains a small program which can be used to audit a Linux "
4442 "virtual machine to see what setuid and setgid files it contains."
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../examples/guestfs-recipes.pod:28
4447 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4448 msgstr ""
4449
4450 #. type: =head1
4451 #: ../examples/guestfs-recipes.pod:30
4452 msgid "Change the background image in a Windows XP VM"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../examples/guestfs-recipes.pod:32
4457 msgid ""
4458 "The links below explain how to use L<guestfish(1)> to change the background "
4459 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4460 "be substantially different for each version of Windows."
4461 msgstr ""
4462
4463 #. type: textblock
4464 #: ../examples/guestfs-recipes.pod:37
4465 msgid ""
4466 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4467 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4468 msgstr ""
4469
4470 #. type: =head1
4471 #: ../examples/guestfs-recipes.pod:40
4472 msgid "Cloning a virtual machine (Linux)"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../examples/guestfs-recipes.pod:42
4477 msgid ""
4478 "The guestfish technique described in the link below works well for most "
4479 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4480 "slightly."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../examples/guestfs-recipes.pod:46
4485 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../examples/guestfs-recipes.pod:48
4490 msgid ""
4491 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4492 "discussion."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../examples/guestfs-recipes.pod:51
4497 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4498 msgstr ""
4499
4500 #. type: =head1
4501 #: ../examples/guestfs-recipes.pod:53
4502 msgid "Cloning a virtual machine (Windows)"
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../examples/guestfs-recipes.pod:55
4507 msgid ""
4508 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4509 "straightforward.  Currently there is code in the Aeolus Oz project which "
4510 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4511 "we may add sysprepping ability."
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../examples/guestfs-recipes.pod:60
4516 msgid ""
4517 "https://github.com/clalancette/oz "
4518 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4519 msgstr ""
4520
4521 #. type: =head1
4522 #: ../examples/guestfs-recipes.pod:63
4523 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4524 msgstr ""
4525
4526 #. type: textblock
4527 #: ../examples/guestfs-recipes.pod:65
4528 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4529 msgstr ""
4530
4531 #. type: verbatim
4532 #: ../examples/guestfs-recipes.pod:67
4533 #, no-wrap
4534 msgid ""
4535 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4536 "\n"
4537 msgstr ""
4538
4539 #. type: textblock
4540 #: ../examples/guestfs-recipes.pod:69
4541 msgid "To export just a subdirectory, eg. C</files>, do:"
4542 msgstr ""
4543
4544 #. type: verbatim
4545 #: ../examples/guestfs-recipes.pod:71
4546 #, no-wrap
4547 msgid ""
4548 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4549 "\n"
4550 msgstr ""
4551
4552 #. type: =head1
4553 #: ../examples/guestfs-recipes.pod:73
4554 msgid "Create empty disk images"
4555 msgstr ""
4556
4557 #. type: textblock
4558 #: ../examples/guestfs-recipes.pod:75
4559 msgid ""
4560 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4561 "The useful guide below explains the options available."
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../examples/guestfs-recipes.pod:78
4566 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4567 msgstr ""
4568
4569 #. type: =head1
4570 #: ../examples/guestfs-recipes.pod:80
4571 msgid "Dump raw filesystem content from inside a disk image or VM"
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../examples/guestfs-recipes.pod:82
4576 msgid ""
4577 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4578 "filesystem content from any filesystem in a disk image or a VM (even one "
4579 "which is encrypted or buried inside an LV):"
4580 msgstr ""
4581
4582 #. type: verbatim
4583 #: ../examples/guestfs-recipes.pod:86
4584 #, no-wrap
4585 msgid ""
4586 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4587 "\n"
4588 msgstr ""
4589
4590 #. type: verbatim
4591 #: ../examples/guestfs-recipes.pod:88
4592 #, no-wrap
4593 msgid ""
4594 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4595 "\n"
4596 msgstr ""
4597
4598 #. type: textblock
4599 #: ../examples/guestfs-recipes.pod:90
4600 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4601 msgstr ""
4602
4603 #. type: =head1
4604 #: ../examples/guestfs-recipes.pod:92
4605 msgid "Edit grub configuration in a VM"
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../examples/guestfs-recipes.pod:94
4610 msgid "You can use this to:"
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../examples/guestfs-recipes.pod:100
4615 msgid "Fix a virtual machine that does not boot."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../examples/guestfs-recipes.pod:104
4620 msgid "Change which kernel is used to boot the VM."
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../examples/guestfs-recipes.pod:108
4625 msgid "Change kernel command line options."
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../examples/guestfs-recipes.pod:112
4630 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4631 msgstr ""
4632
4633 #. type: verbatim
4634 #: ../examples/guestfs-recipes.pod:114
4635 #, no-wrap
4636 msgid ""
4637 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4638 "\n"
4639 msgstr ""
4640
4641 #. type: textblock
4642 #: ../examples/guestfs-recipes.pod:116
4643 msgid ""
4644 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4645 "this:"
4646 msgstr ""
4647
4648 #. type: verbatim
4649 #: ../examples/guestfs-recipes.pod:119
4650 #, no-wrap
4651 msgid ""
4652 " virt-rescue -d BrokenGuest\n"
4653 "\n"
4654 msgstr ""
4655
4656 #. type: =head1
4657 #: ../examples/guestfs-recipes.pod:121
4658 msgid "Export any directory from a VM"
4659 msgstr ""
4660
4661 #. type: textblock
4662 #: ../examples/guestfs-recipes.pod:123
4663 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4664 msgstr ""
4665
4666 #. type: verbatim
4667 #: ../examples/guestfs-recipes.pod:126
4668 #, no-wrap
4669 msgid ""
4670 " virt-copy-out -d Guest /home .\n"
4671 "\n"
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597 ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463 ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670 ../tools/virt-win-reg.pl:706
4676 msgid "Notes:"
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../examples/guestfs-recipes.pod:134
4681 msgid ""
4682 "The final dot of the command is not a printing error.  It means we want to "
4683 "copy out to the current directory."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../examples/guestfs-recipes.pod:139
4688 msgid "This creates a directory called C<home> under the current directory."
4689 msgstr ""
4690
4691 #. type: textblock
4692 #: ../examples/guestfs-recipes.pod:143
4693 msgid ""
4694 "If the guest is a Windows guest then you can use drive letters and "
4695 "backslashes, but you must prefix the path with C<win:> and quote it to "
4696 "protect it from the shell, like this:"
4697 msgstr ""
4698
4699 #. type: verbatim
4700 #: ../examples/guestfs-recipes.pod:147
4701 #, no-wrap
4702 msgid ""
4703 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4704 "\n"
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../examples/guestfs-recipes.pod:149
4709 msgid "To get the output as a compressed tarball, do:"
4710 msgstr ""
4711
4712 #. type: verbatim
4713 #: ../examples/guestfs-recipes.pod:151
4714 #, no-wrap
4715 msgid ""
4716 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4717 "\n"
4718 msgstr ""
4719
4720 #. type: textblock
4721 #: ../examples/guestfs-recipes.pod:153
4722 msgid ""
4723 "Although it sounds tempting, this is usually not a reliable way to get a "
4724 "backup from a running guest.  See the entry in the FAQ: "
4725 "http://libguestfs.org/FAQ.html#backup"
4726 msgstr ""
4727
4728 #. type: =head1
4729 #: ../examples/guestfs-recipes.pod:157
4730 msgid "Find out which user is using the most space"
4731 msgstr ""
4732
4733 #. type: textblock
4734 #: ../examples/guestfs-recipes.pod:159
4735 msgid ""
4736 "This simple script examines a Linux guest to find out which user is using "
4737 "the most space in their home directory:"
4738 msgstr ""
4739
4740 #. type: verbatim
4741 #: ../examples/guestfs-recipes.pod:162
4742 #, no-wrap
4743 msgid ""
4744 " #!/bin/sh -\n"
4745 " \n"
4746 msgstr ""
4747
4748 #. type: verbatim
4749 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4750 #, no-wrap
4751 msgid ""
4752 " set -e\n"
4753 " \n"
4754 msgstr ""
4755
4756 #. type: verbatim
4757 #: ../examples/guestfs-recipes.pod:166
4758 #, no-wrap
4759 msgid ""
4760 " vm=\"$1\"\n"
4761 " dir=/home\n"
4762 " \n"
4763 msgstr ""
4764
4765 #. type: verbatim
4766 #: ../examples/guestfs-recipes.pod:169
4767 #, no-wrap
4768 msgid ""
4769 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4770 " \n"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../examples/guestfs-recipes.pod:171
4775 #, no-wrap
4776 msgid ""
4777 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4778 "     echo -n \"$dir/$d\"\n"
4779 "     echo -ne '\\t'\n"
4780 "     guestfish --remote du \"$dir/$d\";\n"
4781 " done | sort -nr -k 2\n"
4782 " \n"
4783 msgstr ""
4784
4785 #. type: verbatim
4786 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4787 #, no-wrap
4788 msgid ""
4789 " guestfish --remote exit\n"
4790 "\n"
4791 msgstr ""
4792
4793 #. type: =head1
4794 #: ../examples/guestfs-recipes.pod:179
4795 msgid "Get DHCP address from a VM"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../examples/guestfs-recipes.pod:181
4800 msgid ""
4801 "The link below explains the many different possible techniques for getting "
4802 "the last assigned DHCP address of a virtual machine."
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../examples/guestfs-recipes.pod:184
4807 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4808 msgstr ""
4809
4810 #. type: textblock
4811 #: ../examples/guestfs-recipes.pod:186
4812 msgid ""
4813 "In the libguestfs source examples directory you will find the latest version "
4814 "of the C<virt-dhcp-address.c> program."
4815 msgstr ""
4816
4817 #. type: =head1
4818 #: ../examples/guestfs-recipes.pod:189
4819 msgid "Get the operating system product name string"
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../examples/guestfs-recipes.pod:191
4824 msgid "Save the following script into a file called C<product-name.sh>:"
4825 msgstr ""
4826
4827 #. type: verbatim
4828 #: ../examples/guestfs-recipes.pod:193
4829 #, no-wrap
4830 msgid ""
4831 " #!/bin/sh -\n"
4832 " set -e\n"
4833 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4834 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4835 " guestfish --remote inspect-get-product-name \"$root\"\n"
4836 " guestfish --remote exit\n"
4837 "\n"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../examples/guestfs-recipes.pod:200
4842 msgid "Make the script executable and run it on a named guest:"
4843 msgstr ""
4844
4845 #. type: verbatim
4846 #: ../examples/guestfs-recipes.pod:202
4847 #, no-wrap
4848 msgid ""
4849 " # product-name.sh RHEL60x64\n"
4850 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4851 "\n"
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../examples/guestfs-recipes.pod:205
4856 msgid ""
4857 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4858 "C<xpath> command line tool or from your favourite programming language:"
4859 msgstr ""
4860
4861 #. type: verbatim
4862 #: ../examples/guestfs-recipes.pod:209
4863 #, no-wrap
4864 msgid ""
4865 " # virt-inspector RHEL60x64 > xml\n"
4866 " # xpath '//product_name' < xml\n"
4867 " Found 1 nodes:\n"
4868 " -- NODE --\n"
4869 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4870 "(Santiago)</product_name>\n"
4871 "\n"
4872 msgstr ""
4873
4874 #. type: =head1
4875 #: ../examples/guestfs-recipes.pod:215
4876 msgid "Get the default boot kernel for a Linux VM"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../examples/guestfs-recipes.pod:217
4881 msgid ""
4882 "The link below contains a program to print the default boot kernel for a "
4883 "Linux VM."
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../examples/guestfs-recipes.pod:220
4888 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../examples/guestfs-recipes.pod:222
4893 msgid ""
4894 "It uses Augeas, and the technique is generally applicable for many different "
4895 "tasks, such as:"
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../examples/guestfs-recipes.pod:229
4900 msgid "listing the user accounts in the guest"
4901 msgstr ""
4902
4903 #. type: textblock
4904 #: ../examples/guestfs-recipes.pod:233
4905 msgid "what repositories is it configured to use"
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../examples/guestfs-recipes.pod:237
4910 msgid "what NTP servers does it connect to"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../examples/guestfs-recipes.pod:241
4915 msgid "what were the boot messages last time it booted"
4916 msgstr ""
4917
4918 #. type: textblock
4919 #: ../examples/guestfs-recipes.pod:245
4920 msgid "listing who was logged in recently"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-recipes.pod:249
4925 msgid "http://augeas.net/"
4926 msgstr ""
4927
4928 #. type: =head1
4929 #: ../examples/guestfs-recipes.pod:251
4930 msgid "Install RPMs in a guest"
4931 msgstr ""
4932
4933 #. type: textblock
4934 #: ../examples/guestfs-recipes.pod:253
4935 msgid ""
4936 "The link below contains a method to install RPMs in a guest.  In fact the "
4937 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4938 "installs them next time the guest is booted.  You could use this technique "
4939 "to install vital security updates in an offline guest."
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../examples/guestfs-recipes.pod:259
4944 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4945 msgstr ""
4946
4947 #. type: =head1
4948 #: ../examples/guestfs-recipes.pod:261
4949 msgid "List applications installed in a VM"
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../examples/guestfs-recipes.pod:263
4954 msgid "Save the following to a file C<list-apps.sh>:"
4955 msgstr ""
4956
4957 #. type: verbatim
4958 #: ../examples/guestfs-recipes.pod:265
4959 #, no-wrap
4960 msgid ""
4961 " #!/bin/sh -\n"
4962 " set -e\n"
4963 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4964 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4965 " guestfish --remote inspect-list-applications \"$root\"\n"
4966 " guestfish --remote exit\n"
4967 "\n"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../examples/guestfs-recipes.pod:272
4972 msgid ""
4973 "Make the file executable and then you can run it on any named virtual "
4974 "machine:"
4975 msgstr ""
4976
4977 #. type: verbatim
4978 #: ../examples/guestfs-recipes.pod:275
4979 #, no-wrap
4980 msgid ""
4981 " # list-apps.sh WinGuest\n"
4982 " [0] = {\n"
4983 "   app_name: Mozilla Firefox (3.6.12)\n"
4984 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4985 "   app_epoch: 0\n"
4986 "   app_version: 3.6.12 (en-GB)\n"
4987 "   app_release:\n"
4988 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4989 "   app_trans_path:\n"
4990 "   app_publisher: Mozilla\n"
4991 "   app_url: http://www.mozilla.com/en-GB/\n"
4992 "   app_source_package:\n"
4993 "   app_summary:\n"
4994 "   app_description: Mozilla Firefox\n"
4995 " }\n"
4996 " [1] = {\n"
4997 "   app_name: VLC media player\n"
4998 "   app_display_name: VLC media player 1.1.5\n"
4999 "   app_epoch: 0\n"
5000 "   app_version: 1.1.5\n"
5001 "   app_release:\n"
5002 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5003 "   app_trans_path:\n"
5004 "   app_publisher: VideoLAN\n"
5005 "   app_url: http://www.videolan.org/\n"
5006 "   app_source_package:\n"
5007 "   app_summary:\n"
5008 "   app_description:\n"
5009 " }\n"
5010 "\n"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:305
5015 msgid ""
5016 "If you want to run the script on disk images (instead of libvirt virtual "
5017 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5018 "L<virt-inspector(1)>."
5019 msgstr ""
5020
5021 #. type: =head1
5022 #: ../examples/guestfs-recipes.pod:309
5023 msgid "List files and directories in a VM"
5024 msgstr ""
5025
5026 #. type: textblock
5027 #: ../examples/guestfs-recipes.pod:311
5028 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5029 msgstr ""
5030
5031 #. type: verbatim
5032 #: ../examples/guestfs-recipes.pod:313
5033 #, no-wrap
5034 msgid ""
5035 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5036 "\n"
5037 msgstr ""
5038
5039 #. type: =head1
5040 #: ../examples/guestfs-recipes.pod:315
5041 msgid "List services in a Windows VM"
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:317
5046 msgid ""
5047 "The link below contains a script that can be used to list out the services "
5048 "from a Windows VM, and whether those services run at boot time or are loaded "
5049 "on demand."
5050 msgstr ""
5051
5052 #. type: textblock
5053 #: ../examples/guestfs-recipes.pod:321
5054 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5055 msgstr ""
5056
5057 #. type: =head1
5058 #: ../examples/guestfs-recipes.pod:323
5059 msgid "Make a disk image sparse"
5060 msgstr ""
5061
5062 #. type: textblock
5063 #: ../examples/guestfs-recipes.pod:325
5064 msgid ""
5065 "The link below contains some guides for making a disk image sparse (or "
5066 "reintroducing sparseness)."
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:328
5071 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5072 msgstr ""
5073
5074 #. type: =head1
5075 #: ../examples/guestfs-recipes.pod:330
5076 msgid "Monitor disk usage over time"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../examples/guestfs-recipes.pod:332
5081 msgid ""
5082 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5083 "The link below contains a guide."
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../examples/guestfs-recipes.pod:335
5088 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5089 msgstr ""
5090
5091 #. type: =head1
5092 #: ../examples/guestfs-recipes.pod:337
5093 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5094 msgstr ""
5095
5096 #. type: textblock
5097 #: ../examples/guestfs-recipes.pod:339
5098 msgid ""
5099 "L<guestfish(1)> plus the tools described in the link below can be used to "
5100 "read out the Windows Event Log from any virtual machine running Windows "
5101 "Vista or a later version."
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../examples/guestfs-recipes.pod:343
5106 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5107 msgstr ""
5108
5109 #. type: =head1
5110 #: ../examples/guestfs-recipes.pod:345
5111 msgid "Remove root password (Linux)"
5112 msgstr ""
5113
5114 #. type: textblock
5115 #: ../examples/guestfs-recipes.pod:347
5116 msgid ""
5117 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5118 "files.  One use is to remove the root password from a Linux guest:"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../examples/guestfs-recipes.pod:350
5123 #, no-wrap
5124 msgid ""
5125 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: =head1
5130 #: ../examples/guestfs-recipes.pod:352
5131 msgid "Remove Administrator password (Windows)"
5132 msgstr ""
5133
5134 #. type: textblock
5135 #: ../examples/guestfs-recipes.pod:354
5136 msgid ""
5137 "The link below contains one technique for removing the Administrator "
5138 "password from a Windows VM, or to be more precise, it gives you a command "
5139 "prompt the next time you log in which you can use to bypass any security:"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../examples/guestfs-recipes.pod:359
5144 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5145 msgstr ""
5146
5147 #. type: =head1
5148 #: ../examples/guestfs-recipes.pod:361
5149 msgid "Unpack a live CD"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../examples/guestfs-recipes.pod:363
5154 msgid ""
5155 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5156 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5157 "layers, as outlined in the guide below."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:367
5162 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5163 msgstr ""
5164
5165 #. type: =head1
5166 #: ../examples/guestfs-recipes.pod:369
5167 msgid "Uploading and downloading files"
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../examples/guestfs-recipes.pod:371
5172 msgid ""
5173 "The link below contains general tips on uploading (copying in)  and "
5174 "downloading (copying out) files from VMs."
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../examples/guestfs-recipes.pod:374
5179 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5180 msgstr ""
5181
5182 #. type: =head1
5183 #: ../examples/guestfs-recipes.pod:376
5184 msgid "Use libguestfs tools on VMware ESX guests"
5185 msgstr ""
5186
5187 #. type: textblock
5188 #: ../examples/guestfs-recipes.pod:378
5189 msgid ""
5190 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5191 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../examples/guestfs-recipes.pod:382
5196 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:386
5201 msgid ""
5202 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5203 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5204 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5205 "L<http://libguestfs.org/>."
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../examples/guestfs-recipes.pod:403
5210 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5211 msgstr ""
5212
5213 #. type: =head2
5214 #: ../fish/guestfish-actions.pod:1
5215 msgid "add-cdrom"
5216 msgstr ""
5217
5218 #. type: verbatim
5219 #: ../fish/guestfish-actions.pod:3
5220 #, no-wrap
5221 msgid ""
5222 " add-cdrom filename\n"
5223 "\n"
5224 msgstr ""
5225
5226 #. type: textblock
5227 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5228 msgid "This function adds a virtual CD-ROM disk image to the guest."
5229 msgstr ""
5230
5231 #. type: textblock
5232 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5233 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:15
5238 msgid ""
5239 "This call checks for the existence of C<filename>.  This stops you from "
5240 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5241 "and C<http:> URLs.  To specify those, use the general L</config> call "
5242 "instead."
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../fish/guestfish-actions.pod:22
5247 msgid ""
5248 "If you just want to add an ISO file (often you use this as an efficient way "
5249 "to transfer large files into the guest), then you should probably use "
5250 "L</add-drive-ro> instead."
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168 ../fish/guestfish-actions.pod:182
5255 msgid ""
5256 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5257 "instead."
5258 msgstr ""
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171 ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031 ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405 ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486 ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447 ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492 ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179 ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835 ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876 ../src/guestfs-actions.pod:8059
5262 msgid ""
5263 "Deprecated functions will not be removed from the API, but the fact that "
5264 "they are deprecated indicates that there are problems with correct use of "
5265 "these functions."
5266 msgstr ""
5267
5268 #. type: =head2
5269 #: ../fish/guestfish-actions.pod:35
5270 msgid "add-domain"
5271 msgstr ""
5272
5273 #. type: =head2
5274 #: ../fish/guestfish-actions.pod:37
5275 msgid "domain"
5276 msgstr ""
5277
5278 #. type: verbatim
5279 #: ../fish/guestfish-actions.pod:39
5280 #, no-wrap
5281 msgid ""
5282 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
5283 "[allowuuid:..]\n"
5284 "\n"
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../fish/guestfish-actions.pod:41
5289 msgid ""
5290 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5291 "It works by connecting to libvirt, requesting the domain and domain XML from "
5292 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5293 msgstr ""
5294
5295 #. type: textblock
5296 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5297 msgid ""
5298 "The number of disks added is returned.  This operation is atomic: if an "
5299 "error is returned, then no disks are added."
5300 msgstr ""
5301
5302 #. type: textblock
5303 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5304 msgid ""
5305 "This function does some minimal checks to make sure the libvirt domain is "
5306 "not running (unless C<readonly> is true).  In a future version we will try "
5307 "to acquire the libvirt lock on each disk."
5308 msgstr ""
5309
5310 #. type: textblock
5311 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5312 msgid ""
5313 "Disks must be accessible locally.  This often means that adding disks from a "
5314 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5315 "unless those disks are accessible via the same device path locally too."
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5320 msgid ""
5321 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5322 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5323 "default libvirt URI (or one set through an environment variable, see the "
5324 "libvirt documentation for full details)."
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5329 msgid ""
5330 "The optional C<live> flag controls whether this call will try to connect to "
5331 "a running virtual machine C<guestfsd> process if it sees a suitable "
5332 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5333 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5334 "DAEMONS> for more information."
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5339 msgid ""
5340 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5341 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5342 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5343 "as usual."
5344 msgstr ""
5345
5346 #. type: textblock
5347 #: ../fish/guestfish-actions.pod:76
5348 msgid ""
5349 "The other optional parameters are passed directly through to "
5350 "L</add-drive-opts>."
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148 ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789 ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053 ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387 ../fish/guestfish-actions.pod:3522
5355 msgid ""
5356 "This command has one or more optional arguments.  See L</OPTIONAL "
5357 "ARGUMENTS>."
5358 msgstr ""
5359
5360 #. type: =head2
5361 #: ../fish/guestfish-actions.pod:81
5362 msgid "add-drive"
5363 msgstr ""
5364
5365 #. type: verbatim
5366 #: ../fish/guestfish-actions.pod:83
5367 #, no-wrap
5368 msgid ""
5369 " add-drive filename\n"
5370 "\n"
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:85
5375 msgid ""
5376 "This function is the equivalent of calling L</add-drive-opts> with no "
5377 "optional parameters, so the disk is added writable, with the format being "
5378 "detected automatically."
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:89
5383 msgid ""
5384 "Automatic detection of the format opens you up to a potential security hole "
5385 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5386 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5387 "you should think about replacing calls to this function with calls to "
5388 "L</add-drive-opts>, and specifying the format."
5389 msgstr ""
5390
5391 #. type: =head2
5392 #: ../fish/guestfish-actions.pod:96
5393 msgid "add-drive-opts"
5394 msgstr ""
5395
5396 #. type: =head2
5397 #: ../fish/guestfish-actions.pod:98
5398 msgid "add"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../fish/guestfish-actions.pod:100
5403 #, no-wrap
5404 msgid ""
5405 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5406 "\n"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5411 msgid ""
5412 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5413 "The first time you call this function, the disk appears as C</dev/sda>, the "
5414 "second time as C</dev/sdb>, and so on."
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5419 msgid ""
5420 "You don't necessarily need to be root when using libguestfs.  However you "
5421 "obviously do need sufficient permissions to access the filename for whatever "
5422 "operations you want to perform (ie. read access if you just want to read the "
5423 "image or write access if you want to modify the image)."
5424 msgstr ""
5425
5426 #. type: textblock
5427 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5428 msgid "This call checks that C<filename> exists."
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
5433 msgid "The optional arguments are:"
5434 msgstr ""
5435
5436 #. type: =item
5437 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5438 msgid "C<readonly>"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5443 msgid ""
5444 "If true then the image is treated as read-only.  Writes are still allowed, "
5445 "but they are stored in a temporary snapshot overlay which is discarded at "
5446 "the end.  The disk that you add is not modified."
5447 msgstr ""
5448
5449 #. type: =item
5450 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
5451 msgid "C<format>"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../fish/guestfish-actions.pod:127
5456 msgid ""
5457 "This forces the image format.  If you omit this (or use L</add-drive> or "
5458 "L</add-drive-ro>) then the format is automatically detected.  Possible "
5459 "formats include C<raw> and C<qcow2>."
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
5464 msgid ""
5465 "Automatic detection of the format opens you up to a potential security hole "
5466 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5467 "RHBZ#642934.  Specifying the format closes this security hole."
5468 msgstr ""
5469
5470 #. type: =item
5471 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
5472 msgid "C<iface>"
5473 msgstr ""
5474
5475 #. type: textblock
5476 #: ../fish/guestfish-actions.pod:138
5477 msgid ""
5478 "This rarely-used option lets you emulate the behaviour of the deprecated "
5479 "L</add-drive-with-if> call (q.v.)"
5480 msgstr ""
5481
5482 #. type: =item
5483 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
5484 msgid "C<name>"
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
5489 msgid ""
5490 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
5491 "a hint to the guest inspection process if it is available."
5492 msgstr ""
5493
5494 #. type: =head2
5495 #: ../fish/guestfish-actions.pod:150
5496 msgid "add-drive-ro"
5497 msgstr ""
5498
5499 #. type: =head2
5500 #: ../fish/guestfish-actions.pod:152
5501 msgid "add-ro"
5502 msgstr ""
5503
5504 #. type: verbatim
5505 #: ../fish/guestfish-actions.pod:154
5506 #, no-wrap
5507 msgid ""
5508 " add-drive-ro filename\n"
5509 "\n"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../fish/guestfish-actions.pod:156
5514 msgid ""
5515 "This function is the equivalent of calling L</add-drive-opts> with the "
5516 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5517 "is added read-only, with the format being detected automatically."
5518 msgstr ""
5519
5520 #. type: =head2
5521 #: ../fish/guestfish-actions.pod:161
5522 msgid "add-drive-ro-with-if"
5523 msgstr ""
5524
5525 #. type: verbatim
5526 #: ../fish/guestfish-actions.pod:163
5527 #, no-wrap
5528 msgid ""
5529 " add-drive-ro-with-if filename iface\n"
5530 "\n"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../fish/guestfish-actions.pod:165
5535 msgid ""
5536 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5537 "interface emulation to use at run time."
5538 msgstr ""
5539
5540 #. type: =head2
5541 #: ../fish/guestfish-actions.pod:175
5542 msgid "add-drive-with-if"
5543 msgstr ""
5544
5545 #. type: verbatim
5546 #: ../fish/guestfish-actions.pod:177
5547 #, no-wrap
5548 msgid ""
5549 " add-drive-with-if filename iface\n"
5550 "\n"
5551 msgstr ""
5552
5553 #. type: textblock
5554 #: ../fish/guestfish-actions.pod:179
5555 msgid ""
5556 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5557 "interface emulation to use at run time."
5558 msgstr ""
5559
5560 #. type: =head2
5561 #: ../fish/guestfish-actions.pod:189
5562 msgid "aug-clear"
5563 msgstr ""
5564
5565 #. type: verbatim
5566 #: ../fish/guestfish-actions.pod:191
5567 #, no-wrap
5568 msgid ""
5569 " aug-clear augpath\n"
5570 "\n"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
5575 msgid ""
5576 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5577 "L<augtool(1)> C<clear> command."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:196
5582 msgid "aug-close"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:198
5587 #, no-wrap
5588 msgid ""
5589 " aug-close\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:200
5595 msgid ""
5596 "Close the current Augeas handle and free up any resources used by it.  After "
5597 "calling this, you have to call L</aug-init> again before you can use any "
5598 "other Augeas functions."
5599 msgstr ""
5600
5601 #. type: =head2
5602 #: ../fish/guestfish-actions.pod:205
5603 msgid "aug-defnode"
5604 msgstr ""
5605
5606 #. type: verbatim
5607 #: ../fish/guestfish-actions.pod:207
5608 #, no-wrap
5609 msgid ""
5610 " aug-defnode name expr val\n"
5611 "\n"
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
5616 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5617 msgstr ""
5618
5619 #. type: textblock
5620 #: ../fish/guestfish-actions.pod:212
5621 msgid ""
5622 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5623 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5624 "containing that single node."
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
5629 msgid ""
5630 "On success this returns a pair containing the number of nodes in the "
5631 "nodeset, and a boolean flag if a node was created."
5632 msgstr ""
5633
5634 #. type: =head2
5635 #: ../fish/guestfish-actions.pod:220
5636 msgid "aug-defvar"
5637 msgstr ""
5638
5639 #. type: verbatim
5640 #: ../fish/guestfish-actions.pod:222
5641 #, no-wrap
5642 msgid ""
5643 " aug-defvar name expr\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
5649 msgid ""
5650 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5651 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5652 msgstr ""
5653
5654 #. type: textblock
5655 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
5656 msgid ""
5657 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5658 "evaluates to something which is not a nodeset."
5659 msgstr ""
5660
5661 #. type: =head2
5662 #: ../fish/guestfish-actions.pod:231
5663 msgid "aug-get"
5664 msgstr ""
5665
5666 #. type: verbatim
5667 #: ../fish/guestfish-actions.pod:233
5668 #, no-wrap
5669 msgid ""
5670 " aug-get augpath\n"
5671 "\n"
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
5676 msgid ""
5677 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5678 "node, the C<value> is returned."
5679 msgstr ""
5680
5681 #. type: =head2
5682 #: ../fish/guestfish-actions.pod:238
5683 msgid "aug-init"
5684 msgstr ""
5685
5686 #. type: verbatim
5687 #: ../fish/guestfish-actions.pod:240
5688 #, no-wrap
5689 msgid ""
5690 " aug-init root flags\n"
5691 "\n"
5692 msgstr ""
5693
5694 #. type: textblock
5695 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
5696 msgid ""
5697 "Create a new Augeas handle for editing configuration files.  If there was "
5698 "any previous Augeas handle associated with this guestfs session, then it is "
5699 "closed."
5700 msgstr ""
5701
5702 #. type: textblock
5703 #: ../fish/guestfish-actions.pod:246
5704 msgid "You must call this before using any other L</aug-*> commands."
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
5709 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
5714 msgid ""
5715 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5716 "logical I<or> of the following integers:"
5717 msgstr ""
5718
5719 #. type: =item
5720 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
5721 msgid "C<AUG_SAVE_BACKUP> = 1"
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
5726 msgid "Keep the original file with a C<.augsave> extension."
5727 msgstr ""
5728
5729 #. type: =item
5730 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
5731 msgid "C<AUG_SAVE_NEWFILE> = 2"
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
5736 msgid ""
5737 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5738 "original.  Overrides C<AUG_SAVE_BACKUP>."
5739 msgstr ""
5740
5741 #. type: =item
5742 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
5743 msgid "C<AUG_TYPE_CHECK> = 4"
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
5748 msgid "Typecheck lenses."
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../fish/guestfish-actions.pod:271
5753 msgid ""
5754 "This option is only useful when debugging Augeas lenses.  Use of this option "
5755 "may require additional memory for the libguestfs appliance.  You may need to "
5756 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5757 msgstr ""
5758
5759 #. type: =item
5760 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
5761 msgid "C<AUG_NO_STDINC> = 8"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
5766 msgid "Do not use standard load path for modules."
5767 msgstr ""
5768
5769 #. type: =item
5770 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
5771 msgid "C<AUG_SAVE_NOOP> = 16"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
5776 msgid "Make save a no-op, just record what would have been changed."
5777 msgstr ""
5778
5779 #. type: =item
5780 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
5781 msgid "C<AUG_NO_LOAD> = 32"
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:286
5786 msgid "Do not load the tree in L</aug-init>."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:290
5791 msgid "To close the handle, you can call L</aug-close>."
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
5796 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5797 msgstr ""
5798
5799 #. type: =head2
5800 #: ../fish/guestfish-actions.pod:294
5801 msgid "aug-insert"
5802 msgstr ""
5803
5804 #. type: verbatim
5805 #: ../fish/guestfish-actions.pod:296
5806 #, no-wrap
5807 msgid ""
5808 " aug-insert augpath label true|false\n"
5809 "\n"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
5814 msgid ""
5815 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5816 "or after C<path> (depending on the boolean flag C<before>)."
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
5821 msgid ""
5822 "C<path> must match exactly one existing node in the tree, and C<label> must "
5823 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5824 msgstr ""
5825
5826 #. type: =head2
5827 #: ../fish/guestfish-actions.pod:306
5828 msgid "aug-load"
5829 msgstr ""
5830
5831 #. type: verbatim
5832 #: ../fish/guestfish-actions.pod:308
5833 #, no-wrap
5834 msgid ""
5835 " aug-load\n"
5836 "\n"
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
5841 msgid "Load files into the tree."
5842 msgstr ""
5843
5844 #. type: textblock
5845 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
5846 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../fish/guestfish-actions.pod:315
5851 msgid "aug-ls"
5852 msgstr ""
5853
5854 #. type: verbatim
5855 #: ../fish/guestfish-actions.pod:317
5856 #, no-wrap
5857 msgid ""
5858 " aug-ls augpath\n"
5859 "\n"
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:319
5864 msgid ""
5865 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5866 "resulting nodes into alphabetical order."
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../fish/guestfish-actions.pod:322
5871 msgid "aug-match"
5872 msgstr ""
5873
5874 #. type: verbatim
5875 #: ../fish/guestfish-actions.pod:324
5876 #, no-wrap
5877 msgid ""
5878 " aug-match augpath\n"
5879 "\n"
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
5884 msgid ""
5885 "Returns a list of paths which match the path expression C<path>.  The "
5886 "returned paths are sufficiently qualified so that they match exactly one "
5887 "node in the current tree."
5888 msgstr ""
5889
5890 #. type: =head2
5891 #: ../fish/guestfish-actions.pod:330
5892 msgid "aug-mv"
5893 msgstr ""
5894
5895 #. type: verbatim
5896 #: ../fish/guestfish-actions.pod:332
5897 #, no-wrap
5898 msgid ""
5899 " aug-mv src dest\n"
5900 "\n"
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
5905 msgid ""
5906 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5907 "C<dest> is overwritten if it exists."
5908 msgstr ""
5909
5910 #. type: =head2
5911 #: ../fish/guestfish-actions.pod:337
5912 msgid "aug-rm"
5913 msgstr ""
5914
5915 #. type: verbatim
5916 #: ../fish/guestfish-actions.pod:339
5917 #, no-wrap
5918 msgid ""
5919 " aug-rm augpath\n"
5920 "\n"
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
5925 msgid "Remove C<path> and all of its children."
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
5930 msgid "On success this returns the number of entries which were removed."
5931 msgstr ""
5932
5933 #. type: =head2
5934 #: ../fish/guestfish-actions.pod:345
5935 msgid "aug-save"
5936 msgstr ""
5937
5938 #. type: verbatim
5939 #: ../fish/guestfish-actions.pod:347
5940 #, no-wrap
5941 msgid ""
5942 " aug-save\n"
5943 "\n"
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
5948 msgid "This writes all pending changes to disk."
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../fish/guestfish-actions.pod:351
5953 msgid ""
5954 "The flags which were passed to L</aug-init> affect exactly how files are "
5955 "saved."
5956 msgstr ""
5957
5958 #. type: =head2
5959 #: ../fish/guestfish-actions.pod:354
5960 msgid "aug-set"
5961 msgstr ""
5962
5963 #. type: verbatim
5964 #: ../fish/guestfish-actions.pod:356
5965 #, no-wrap
5966 msgid ""
5967 " aug-set augpath val\n"
5968 "\n"
5969 msgstr ""
5970
5971 #. type: textblock
5972 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
5973 msgid "Set the value associated with C<path> to C<val>."
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:360
5978 msgid ""
5979 "In the Augeas API, it is possible to clear a node by setting the value to "
5980 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5981 "this call.  Instead you must use the L</aug-clear> call."
5982 msgstr ""
5983
5984 #. type: =head2
5985 #: ../fish/guestfish-actions.pod:365
5986 msgid "available"
5987 msgstr ""
5988
5989 #. type: verbatim
5990 #: ../fish/guestfish-actions.pod:367
5991 #, no-wrap
5992 msgid ""
5993 " available 'groups ...'\n"
5994 "\n"
5995 msgstr ""
5996
5997 #. type: textblock
5998 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
5999 msgid ""
6000 "This command is used to check the availability of some groups of "
6001 "functionality in the appliance, which not all builds of the libguestfs "
6002 "appliance will be able to provide."
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:373
6007 msgid ""
6008 "The libguestfs groups, and the functions that those groups correspond to, "
6009 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6010 "runtime by calling L</available-all-groups>."
6011 msgstr ""
6012
6013 #. type: textblock
6014 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6015 msgid ""
6016 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6017 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6018 "and Augeas (configuration file editing) functions."
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6023 msgid "The command returns no error if I<all> requested groups are available."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6028 msgid ""
6029 "It fails with an error if one or more of the requested groups is unavailable "
6030 "in the appliance."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6035 msgid ""
6036 "If an unknown group name is included in the list of groups then an error is "
6037 "always returned."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6042 msgid "I<Notes:>"
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:397
6047 msgid "You must call L</launch> before calling this function."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6052 msgid ""
6053 "The reason is because we don't know what groups are supported by the "
6054 "appliance/daemon until it is running and can be queried."
6055 msgstr ""
6056
6057 #. type: textblock
6058 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6059 msgid ""
6060 "If a group of functions is available, this does not necessarily mean that "
6061 "they will work.  You still have to check for errors when calling individual "
6062 "API functions even if they are available."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6067 msgid ""
6068 "It is usually the job of distro packagers to build complete functionality "
6069 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6070 "with all requirements satisfied, will support everything."
6071 msgstr ""
6072
6073 #. type: textblock
6074 #: ../fish/guestfish-actions.pod:419
6075 msgid ""
6076 "This call was added in version C<1.0.80>.  In previous versions of "
6077 "libguestfs all you could do would be to speculatively execute a command to "
6078 "find out if the daemon implemented it.  See also L</version>."
6079 msgstr ""
6080
6081 #. type: =head2
6082 #: ../fish/guestfish-actions.pod:426
6083 msgid "available-all-groups"
6084 msgstr ""
6085
6086 #. type: verbatim
6087 #: ../fish/guestfish-actions.pod:428
6088 #, no-wrap
6089 msgid ""
6090 " available-all-groups\n"
6091 "\n"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:430
6096 msgid ""
6097 "This command returns a list of all optional groups that this daemon knows "
6098 "about.  Note this returns both supported and unsupported groups.  To find "
6099 "out which ones the daemon can actually support you have to call "
6100 "L</available> on each member of the returned list."
6101 msgstr ""
6102
6103 #. type: textblock
6104 #: ../fish/guestfish-actions.pod:436
6105 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6106 msgstr ""
6107
6108 #. type: =head2
6109 #: ../fish/guestfish-actions.pod:438
6110 msgid "base64-in"
6111 msgstr ""
6112
6113 #. type: verbatim
6114 #: ../fish/guestfish-actions.pod:440
6115 #, no-wrap
6116 msgid ""
6117 " base64-in (base64file|-) filename\n"
6118 "\n"
6119 msgstr ""
6120
6121 #. type: textblock
6122 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6123 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454 ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787 ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907 ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762 ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784 ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6128 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6129 msgstr ""
6130
6131 #. type: =head2
6132 #: ../fish/guestfish-actions.pod:447
6133 msgid "base64-out"
6134 msgstr ""
6135
6136 #. type: verbatim
6137 #: ../fish/guestfish-actions.pod:449
6138 #, no-wrap
6139 msgid ""
6140 " base64-out filename (base64file|-)\n"
6141 "\n"
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6146 msgid ""
6147 "This command downloads the contents of C<filename>, writing it out to local "
6148 "file C<base64file> encoded as base64."
6149 msgstr ""
6150
6151 #. type: =head2
6152 #: ../fish/guestfish-actions.pod:456
6153 msgid "blockdev-flushbufs"
6154 msgstr ""
6155
6156 #. type: verbatim
6157 #: ../fish/guestfish-actions.pod:458
6158 #, no-wrap
6159 msgid ""
6160 " blockdev-flushbufs device\n"
6161 "\n"
6162 msgstr ""
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6166 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6167 msgstr ""
6168
6169 #. type: textblock
6170 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493 ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518 ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537 ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553 ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770 ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6171 msgid "This uses the L<blockdev(8)> command."
6172 msgstr ""
6173
6174 #. type: =head2
6175 #: ../fish/guestfish-actions.pod:465
6176 msgid "blockdev-getbsz"
6177 msgstr ""
6178
6179 #. type: verbatim
6180 #: ../fish/guestfish-actions.pod:467
6181 #, no-wrap
6182 msgid ""
6183 " blockdev-getbsz device\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: textblock
6188 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6189 msgid "This returns the block size of a device."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534 ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6194 msgid ""
6195 "(Note this is different from both I<size in blocks> and I<filesystem block "
6196 "size>)."
6197 msgstr ""
6198
6199 #. type: =head2
6200 #: ../fish/guestfish-actions.pod:476
6201 msgid "blockdev-getro"
6202 msgstr ""
6203
6204 #. type: verbatim
6205 #: ../fish/guestfish-actions.pod:478
6206 #, no-wrap
6207 msgid ""
6208 " blockdev-getro device\n"
6209 "\n"
6210 msgstr ""
6211
6212 #. type: textblock
6213 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6214 msgid ""
6215 "Returns a boolean indicating if the block device is read-only (true if "
6216 "read-only, false if not)."
6217 msgstr ""
6218
6219 #. type: =head2
6220 #: ../fish/guestfish-actions.pod:485
6221 msgid "blockdev-getsize64"
6222 msgstr ""
6223
6224 #. type: verbatim
6225 #: ../fish/guestfish-actions.pod:487
6226 #, no-wrap
6227 msgid ""
6228 " blockdev-getsize64 device\n"
6229 "\n"
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6234 msgid "This returns the size of the device in bytes."
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:491
6239 msgid "See also L</blockdev-getsz>."
6240 msgstr ""
6241
6242 #. type: =head2
6243 #: ../fish/guestfish-actions.pod:495
6244 msgid "blockdev-getss"
6245 msgstr ""
6246
6247 #. type: verbatim
6248 #: ../fish/guestfish-actions.pod:497
6249 #, no-wrap
6250 msgid ""
6251 " blockdev-getss device\n"
6252 "\n"
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6257 msgid ""
6258 "This returns the size of sectors on a block device.  Usually 512, but can be "
6259 "larger for modern devices."
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:502
6264 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6265 msgstr ""
6266
6267 #. type: =head2
6268 #: ../fish/guestfish-actions.pod:507
6269 msgid "blockdev-getsz"
6270 msgstr ""
6271
6272 #. type: verbatim
6273 #: ../fish/guestfish-actions.pod:509
6274 #, no-wrap
6275 msgid ""
6276 " blockdev-getsz device\n"
6277 "\n"
6278 msgstr ""
6279
6280 #. type: textblock
6281 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6282 msgid ""
6283 "This returns the size of the device in units of 512-byte sectors (even if "
6284 "the sectorsize isn't 512 bytes ... weird)."
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:514
6289 msgid ""
6290 "See also L</blockdev-getss> for the real sector size of the device, and "
6291 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6292 msgstr ""
6293
6294 #. type: =head2
6295 #: ../fish/guestfish-actions.pod:520
6296 msgid "blockdev-rereadpt"
6297 msgstr ""
6298
6299 #. type: verbatim
6300 #: ../fish/guestfish-actions.pod:522
6301 #, no-wrap
6302 msgid ""
6303 " blockdev-rereadpt device\n"
6304 "\n"
6305 msgstr ""
6306
6307 #. type: textblock
6308 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6309 msgid "Reread the partition table on C<device>."
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:528
6314 msgid "blockdev-setbsz"
6315 msgstr ""
6316
6317 #. type: verbatim
6318 #: ../fish/guestfish-actions.pod:530
6319 #, no-wrap
6320 msgid ""
6321 " blockdev-setbsz device blocksize\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6327 msgid "This sets the block size of a device."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:539
6332 msgid "blockdev-setro"
6333 msgstr ""
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:541
6337 #, no-wrap
6338 msgid ""
6339 " blockdev-setro device\n"
6340 "\n"
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6345 msgid "Sets the block device named C<device> to read-only."
6346 msgstr ""
6347
6348 #. type: =head2
6349 #: ../fish/guestfish-actions.pod:547
6350 msgid "blockdev-setrw"
6351 msgstr ""
6352
6353 #. type: verbatim
6354 #: ../fish/guestfish-actions.pod:549
6355 #, no-wrap
6356 msgid ""
6357 " blockdev-setrw device\n"
6358 "\n"
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6363 msgid "Sets the block device named C<device> to read-write."
6364 msgstr ""
6365
6366 #. type: =head2
6367 #: ../fish/guestfish-actions.pod:555
6368 msgid "btrfs-filesystem-resize"
6369 msgstr ""
6370
6371 #. type: verbatim
6372 #: ../fish/guestfish-actions.pod:557
6373 #, no-wrap
6374 msgid ""
6375 " btrfs-filesystem-resize mountpoint [size:..]\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6381 msgid "This command resizes a btrfs filesystem."
6382 msgstr ""
6383
6384 #. type: textblock
6385 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6386 msgid ""
6387 "Note that unlike other resize calls, the filesystem has to be mounted and "
6388 "the parameter is the mountpoint not the device (this is a requirement of "
6389 "btrfs itself)."
6390 msgstr ""
6391
6392 #. type: textblock
6393 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
6394 msgid "The optional parameters are:"
6395 msgstr ""
6396
6397 #. type: =item
6398 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
6399 msgid "C<size>"
6400 msgstr ""
6401
6402 #. type: textblock
6403 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6404 msgid ""
6405 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6406 "resized to the maximum size."
6407 msgstr ""
6408
6409 #. type: textblock
6410 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6411 msgid "See also L<btrfs(8)>."
6412 msgstr ""
6413
6414 #. type: =head2
6415 #: ../fish/guestfish-actions.pod:580
6416 msgid "case-sensitive-path"
6417 msgstr ""
6418
6419 #. type: verbatim
6420 #: ../fish/guestfish-actions.pod:582
6421 #, no-wrap
6422 msgid ""
6423 " case-sensitive-path path\n"
6424 "\n"
6425 msgstr ""
6426
6427 #. type: textblock
6428 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
6429 msgid ""
6430 "This can be used to resolve case insensitive paths on a filesystem which is "
6431 "case sensitive.  The use case is to resolve paths which you have read from "
6432 "Windows configuration files or the Windows Registry, to the true path."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
6437 msgid ""
6438 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6439 "(and probably others), which is that although the underlying filesystem is "
6440 "case-insensitive, the driver exports the filesystem to Linux as "
6441 "case-sensitive."
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
6446 msgid ""
6447 "One consequence of this is that special directories such as C<c:\\windows> "
6448 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6449 "precise details of how they were created.  In Windows itself this would not "
6450 "be a problem."
6451 msgstr ""
6452
6453 #. type: textblock
6454 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
6455 msgid ""
6456 "Bug or feature? You decide: "
6457 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
6462 msgid ""
6463 "This function resolves the true case of each element in the path and returns "
6464 "the case-sensitive path."
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:606
6469 msgid ""
6470 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6471 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6472 "how the directories were originally created under Windows)."
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
6477 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:614
6482 msgid "See also L</realpath>."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../fish/guestfish-actions.pod:616
6487 msgid "cat"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../fish/guestfish-actions.pod:618
6492 #, no-wrap
6493 msgid ""
6494 " cat path\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
6500 msgid "Return the contents of the file named C<path>."
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:622
6505 msgid ""
6506 "Note that this function cannot correctly handle binary files (specifically, "
6507 "files containing C<\\0> character which is treated as end of string).  For "
6508 "those you need to use the L</read-file> or L</download> functions which have "
6509 "a more complex interface."
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985 ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062 ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587 ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652 ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681 ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895 ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722 ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143 ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173 ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200 ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267 ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306 ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560 ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537 ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151 ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840 ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044 ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
6514 msgid ""
6515 "Because of the message protocol, there is a transfer limit of somewhere "
6516 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6517 msgstr ""
6518
6519 #. type: =head2
6520 #: ../fish/guestfish-actions.pod:630
6521 msgid "checksum"
6522 msgstr ""
6523
6524 #. type: verbatim
6525 #: ../fish/guestfish-actions.pod:632
6526 #, no-wrap
6527 msgid ""
6528 " checksum csumtype path\n"
6529 "\n"
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
6534 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
6539 msgid ""
6540 "The type of checksum to compute is given by the C<csumtype> parameter which "
6541 "must have one of the following values:"
6542 msgstr ""
6543
6544 #. type: =item
6545 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
6546 msgid "C<crc>"
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
6551 msgid ""
6552 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6553 "C<cksum> command."
6554 msgstr ""
6555
6556 #. type: =item
6557 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
6558 msgid "C<md5>"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
6563 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6564 msgstr ""
6565
6566 #. type: =item
6567 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
6568 msgid "C<sha1>"
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
6573 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6574 msgstr ""
6575
6576 #. type: =item
6577 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
6578 msgid "C<sha224>"
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
6583 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6584 msgstr ""
6585
6586 #. type: =item
6587 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
6588 msgid "C<sha256>"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
6593 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6594 msgstr ""
6595
6596 #. type: =item
6597 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
6598 msgid "C<sha384>"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
6603 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6604 msgstr ""
6605
6606 #. type: =item
6607 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
6608 msgid "C<sha512>"
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
6613 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
6618 msgid "The checksum is returned as a printable string."
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:675
6623 msgid "To get the checksum for a device, use L</checksum-device>."
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:677
6628 msgid "To get the checksums for many files, use L</checksums-out>."
6629 msgstr ""
6630
6631 #. type: =head2
6632 #: ../fish/guestfish-actions.pod:679
6633 msgid "checksum-device"
6634 msgstr ""
6635
6636 #. type: verbatim
6637 #: ../fish/guestfish-actions.pod:681
6638 #, no-wrap
6639 msgid ""
6640 " checksum-device csumtype device\n"
6641 "\n"
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../fish/guestfish-actions.pod:683
6646 msgid ""
6647 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6648 "device named C<device>.  For the types of checksums supported see the "
6649 "L</checksum> command."
6650 msgstr ""
6651
6652 #. type: =head2
6653 #: ../fish/guestfish-actions.pod:687
6654 msgid "checksums-out"
6655 msgstr ""
6656
6657 #. type: verbatim
6658 #: ../fish/guestfish-actions.pod:689
6659 #, no-wrap
6660 msgid ""
6661 " checksums-out csumtype directory (sumsfile|-)\n"
6662 "\n"
6663 msgstr ""
6664
6665 #. type: textblock
6666 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
6667 msgid ""
6668 "This command computes the checksums of all regular files in C<directory> and "
6669 "then emits a list of those checksums to the local output file C<sumsfile>."
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
6674 msgid ""
6675 "This can be used for verifying the integrity of a virtual machine.  However "
6676 "to be properly secure you should pay attention to the output of the checksum "
6677 "command (it uses the ones from GNU coreutils).  In particular when the "
6678 "filename is not printable, coreutils uses a special backslash syntax.  For "
6679 "more information, see the GNU coreutils info file."
6680 msgstr ""
6681
6682 #. type: =head2
6683 #: ../fish/guestfish-actions.pod:705
6684 msgid "chmod"
6685 msgstr ""
6686
6687 #. type: verbatim
6688 #: ../fish/guestfish-actions.pod:707
6689 #, no-wrap
6690 msgid ""
6691 " chmod mode path\n"
6692 "\n"
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
6697 msgid ""
6698 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6699 "supported."
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
6704 msgid ""
6705 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6706 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6707 "C<700>."
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299 ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
6712 msgid "The mode actually set is affected by the umask."
6713 msgstr ""
6714
6715 #. type: =head2
6716 #: ../fish/guestfish-actions.pod:718
6717 msgid "chown"
6718 msgstr ""
6719
6720 #. type: verbatim
6721 #: ../fish/guestfish-actions.pod:720
6722 #, no-wrap
6723 msgid ""
6724 " chown owner group path\n"
6725 "\n"
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
6730 msgid "Change the file owner to C<owner> and group to C<group>."
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
6735 msgid ""
6736 "Only numeric uid and gid are supported.  If you want to use names, you will "
6737 "need to locate and parse the password file yourself (Augeas support makes "
6738 "this relatively easy)."
6739 msgstr ""
6740
6741 #. type: =head2
6742 #: ../fish/guestfish-actions.pod:728
6743 msgid "command"
6744 msgstr ""
6745
6746 #. type: verbatim
6747 #: ../fish/guestfish-actions.pod:730
6748 #, no-wrap
6749 msgid ""
6750 " command 'arguments ...'\n"
6751 "\n"
6752 msgstr ""
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
6756 msgid ""
6757 "This call runs a command from the guest filesystem.  The filesystem must be "
6758 "mounted, and must contain a compatible operating system (ie. something "
6759 "Linux, with the same or compatible processor architecture)."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:737
6764 msgid ""
6765 "The single parameter is an argv-style list of arguments.  The first element "
6766 "is the name of the program to run.  Subsequent elements are parameters.  The "
6767 "list must be non-empty (ie. must contain a program name).  Note that the "
6768 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6769 msgstr ""
6770
6771 #. type: textblock
6772 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
6773 msgid "The return value is anything printed to I<stdout> by the command."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
6778 msgid ""
6779 "If the command returns a non-zero exit status, then this function returns an "
6780 "error message.  The error message string is the content of I<stderr> from "
6781 "the command."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
6786 msgid ""
6787 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6788 "C</bin>.  If you require a program from another location, you should provide "
6789 "the full path in the first parameter."
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
6794 msgid ""
6795 "Shared libraries and data files required by the program must be available on "
6796 "filesystems which are mounted in the correct places.  It is the caller's "
6797 "responsibility to ensure all filesystems that are needed are mounted at the "
6798 "right locations."
6799 msgstr ""
6800
6801 #. type: =head2
6802 #: ../fish/guestfish-actions.pod:765
6803 msgid "command-lines"
6804 msgstr ""
6805
6806 #. type: verbatim
6807 #: ../fish/guestfish-actions.pod:767
6808 #, no-wrap
6809 msgid ""
6810 " command-lines 'arguments ...'\n"
6811 "\n"
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:769
6816 msgid "This is the same as L</command>, but splits the result into a list of lines."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:772
6821 msgid "See also: L</sh-lines>"
6822 msgstr ""
6823
6824 #. type: =head2
6825 #: ../fish/guestfish-actions.pod:777
6826 msgid "compress-device-out"
6827 msgstr ""
6828
6829 #. type: verbatim
6830 #: ../fish/guestfish-actions.pod:779
6831 #, no-wrap
6832 msgid ""
6833 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6834 "\n"
6835 msgstr ""
6836
6837 #. type: textblock
6838 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
6839 msgid ""
6840 "This command compresses C<device> and writes it out to the local file "
6841 "C<zdevice>."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:784
6846 msgid ""
6847 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6848 "L</compress-out>."
6849 msgstr ""
6850
6851 #. type: =head2
6852 #: ../fish/guestfish-actions.pod:791
6853 msgid "compress-out"
6854 msgstr ""
6855
6856 #. type: verbatim
6857 #: ../fish/guestfish-actions.pod:793
6858 #, no-wrap
6859 msgid ""
6860 " compress-out ctype file (zfile|-) [level:..]\n"
6861 "\n"
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
6866 msgid ""
6867 "This command compresses C<file> and writes it out to the local file "
6868 "C<zfile>."
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
6873 msgid ""
6874 "The compression program used is controlled by the C<ctype> parameter.  "
6875 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6876 "Some compression types may not be supported by particular builds of "
6877 "libguestfs, in which case you will get an error containing the substring "
6878 "\"not supported\"."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
6883 msgid ""
6884 "The optional C<level> parameter controls compression level.  The meaning and "
6885 "default for this parameter depends on the compression program being used."
6886 msgstr ""
6887
6888 #. type: =head2
6889 #: ../fish/guestfish-actions.pod:812
6890 msgid "config"
6891 msgstr ""
6892
6893 #. type: verbatim
6894 #: ../fish/guestfish-actions.pod:814
6895 #, no-wrap
6896 msgid ""
6897 " config qemuparam qemuvalue\n"
6898 "\n"
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
6903 msgid ""
6904 "This can be used to add arbitrary qemu command line parameters of the form "
6905 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6906 "setting some parameters which would interfere with parameters that we use."
6907 msgstr ""
6908
6909 #. type: textblock
6910 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
6911 msgid "The first character of C<param> string must be a C<-> (dash)."
6912 msgstr ""
6913
6914 #. type: textblock
6915 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
6916 msgid "C<value> can be NULL."
6917 msgstr ""
6918
6919 #. type: =head2
6920 #: ../fish/guestfish-actions.pod:825
6921 msgid "copy-size"
6922 msgstr ""
6923
6924 #. type: verbatim
6925 #: ../fish/guestfish-actions.pod:827
6926 #, no-wrap
6927 msgid ""
6928 " copy-size src dest size\n"
6929 "\n"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
6934 msgid ""
6935 "This command copies exactly C<size> bytes from one source device or file "
6936 "C<src> to another destination device or file C<dest>."
6937 msgstr ""
6938
6939 #. type: textblock
6940 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
6941 msgid ""
6942 "Note this will fail if the source is too short or if the destination is not "
6943 "large enough."
6944 msgstr ""
6945
6946 #. type: =head2
6947 #: ../fish/guestfish-actions.pod:835
6948 msgid "cp"
6949 msgstr ""
6950
6951 #. type: verbatim
6952 #: ../fish/guestfish-actions.pod:837
6953 #, no-wrap
6954 msgid ""
6955 " cp src dest\n"
6956 "\n"
6957 msgstr ""
6958
6959 #. type: textblock
6960 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
6961 msgid ""
6962 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6963 "destination filename or destination directory."
6964 msgstr ""
6965
6966 #. type: =head2
6967 #: ../fish/guestfish-actions.pod:842
6968 msgid "cp-a"
6969 msgstr ""
6970
6971 #. type: verbatim
6972 #: ../fish/guestfish-actions.pod:844
6973 #, no-wrap
6974 msgid ""
6975 " cp-a src dest\n"
6976 "\n"
6977 msgstr ""
6978
6979 #. type: textblock
6980 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
6981 msgid ""
6982 "This copies a file or directory from C<src> to C<dest> recursively using the "
6983 "C<cp -a> command."
6984 msgstr ""
6985
6986 #. type: =head2
6987 #: ../fish/guestfish-actions.pod:849
6988 msgid "dd"
6989 msgstr ""
6990
6991 #. type: verbatim
6992 #: ../fish/guestfish-actions.pod:851
6993 #, no-wrap
6994 msgid ""
6995 " dd src dest\n"
6996 "\n"
6997 msgstr ""
6998
6999 #. type: textblock
7000 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7001 msgid ""
7002 "This command copies from one source device or file C<src> to another "
7003 "destination device or file C<dest>.  Normally you would use this to copy to "
7004 "or from a device or partition, for example to duplicate a filesystem."
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:858
7009 msgid ""
7010 "If the destination is a device, it must be as large or larger than the "
7011 "source file or device, otherwise the copy will fail.  This command cannot do "
7012 "partial copies (see L</copy-size>)."
7013 msgstr ""
7014
7015 #. type: =head2
7016 #: ../fish/guestfish-actions.pod:862
7017 msgid "df"
7018 msgstr ""
7019
7020 #. type: verbatim
7021 #: ../fish/guestfish-actions.pod:864
7022 #, no-wrap
7023 msgid ""
7024 " df\n"
7025 "\n"
7026 msgstr ""
7027
7028 #. type: textblock
7029 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7030 msgid "This command runs the C<df> command to report disk space used."
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7035 msgid ""
7036 "This command is mostly useful for interactive sessions.  It is I<not> "
7037 "intended that you try to parse the output string.  Use L</statvfs> from "
7038 "programs."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:872
7043 msgid "df-h"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:874
7048 #, no-wrap
7049 msgid ""
7050 " df-h\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7056 msgid ""
7057 "This command runs the C<df -h> command to report disk space used in "
7058 "human-readable format."
7059 msgstr ""
7060
7061 #. type: =head2
7062 #: ../fish/guestfish-actions.pod:883
7063 msgid "dmesg"
7064 msgstr ""
7065
7066 #. type: verbatim
7067 #: ../fish/guestfish-actions.pod:885
7068 #, no-wrap
7069 msgid ""
7070 " dmesg\n"
7071 "\n"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7076 msgid ""
7077 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7078 "This is sometimes useful for extended debugging of problems."
7079 msgstr ""
7080
7081 #. type: textblock
7082 #: ../fish/guestfish-actions.pod:891
7083 msgid ""
7084 "Another way to get the same information is to enable verbose messages with "
7085 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7086 "before running the program."
7087 msgstr ""
7088
7089 #. type: =head2
7090 #: ../fish/guestfish-actions.pod:896
7091 msgid "download"
7092 msgstr ""
7093
7094 #. type: verbatim
7095 #: ../fish/guestfish-actions.pod:898
7096 #, no-wrap
7097 msgid ""
7098 " download remotefilename (filename|-)\n"
7099 "\n"
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7104 msgid ""
7105 "Download file C<remotefilename> and save it as C<filename> on the local "
7106 "machine."
7107 msgstr ""
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7111 msgid "C<filename> can also be a named pipe."
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:905
7116 msgid "See also L</upload>, L</cat>."
7117 msgstr ""
7118
7119 #. type: =head2
7120 #: ../fish/guestfish-actions.pod:909
7121 msgid "download-offset"
7122 msgstr ""
7123
7124 #. type: verbatim
7125 #: ../fish/guestfish-actions.pod:911
7126 #, no-wrap
7127 msgid ""
7128 " download-offset remotefilename (filename|-) offset size\n"
7129 "\n"
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7134 msgid ""
7135 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7136 "region must be within the file or device)."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:919
7141 msgid ""
7142 "Note that there is no limit on the amount of data that can be downloaded "
7143 "with this call, unlike with L</pread>, and this call always reads the full "
7144 "amount unless an error occurs."
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:924
7149 msgid "See also L</download>, L</pread>."
7150 msgstr ""
7151
7152 #. type: =head2
7153 #: ../fish/guestfish-actions.pod:928
7154 msgid "drop-caches"
7155 msgstr ""
7156
7157 #. type: verbatim
7158 #: ../fish/guestfish-actions.pod:930
7159 #, no-wrap
7160 msgid ""
7161 " drop-caches whattodrop\n"
7162 "\n"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7167 msgid ""
7168 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7169 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7170 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7175 msgid "Setting C<whattodrop> to 3 should drop everything."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7180 msgid ""
7181 "This automatically calls L<sync(2)> before the operation, so that the "
7182 "maximum guest memory is freed."
7183 msgstr ""
7184
7185 #. type: =head2
7186 #: ../fish/guestfish-actions.pod:942
7187 msgid "du"
7188 msgstr ""
7189
7190 #. type: verbatim
7191 #: ../fish/guestfish-actions.pod:944
7192 #, no-wrap
7193 msgid ""
7194 " du path\n"
7195 "\n"
7196 msgstr ""
7197
7198 #. type: textblock
7199 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7200 msgid ""
7201 "This command runs the C<du -s> command to estimate file space usage for "
7202 "C<path>."
7203 msgstr ""
7204
7205 #. type: textblock
7206 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7207 msgid ""
7208 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7209 "estimate includes the contents of the directory and all subdirectories "
7210 "(recursively)."
7211 msgstr ""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7215 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7216 msgstr ""
7217
7218 #. type: =head2
7219 #: ../fish/guestfish-actions.pod:956
7220 msgid "e2fsck-f"
7221 msgstr ""
7222
7223 #. type: verbatim
7224 #: ../fish/guestfish-actions.pod:958
7225 #, no-wrap
7226 msgid ""
7227 " e2fsck-f device\n"
7228 "\n"
7229 msgstr ""
7230
7231 #. type: textblock
7232 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7233 msgid ""
7234 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7235 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7236 "clean (I<-f>)."
7237 msgstr ""
7238
7239 #. type: textblock
7240 #: ../fish/guestfish-actions.pod:964
7241 msgid ""
7242 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7243 "should use L</fsck>."
7244 msgstr ""
7245
7246 #. type: =head2
7247 #: ../fish/guestfish-actions.pod:967
7248 msgid "echo-daemon"
7249 msgstr ""
7250
7251 #. type: verbatim
7252 #: ../fish/guestfish-actions.pod:969
7253 #, no-wrap
7254 msgid ""
7255 " echo-daemon 'words ...'\n"
7256 "\n"
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7261 msgid ""
7262 "This command concatenates the list of C<words> passed with single spaces "
7263 "between them and returns the resulting string."
7264 msgstr ""
7265
7266 #. type: textblock
7267 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7268 msgid "You can use this command to test the connection through to the daemon."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:976
7273 msgid "See also L</ping-daemon>."
7274 msgstr ""
7275
7276 #. type: =head2
7277 #: ../fish/guestfish-actions.pod:978
7278 msgid "egrep"
7279 msgstr ""
7280
7281 #. type: verbatim
7282 #: ../fish/guestfish-actions.pod:980
7283 #, no-wrap
7284 msgid ""
7285 " egrep regex path\n"
7286 "\n"
7287 msgstr ""
7288
7289 #. type: textblock
7290 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
7291 msgid "This calls the external C<egrep> program and returns the matching lines."
7292 msgstr ""
7293
7294 #. type: =head2
7295 #: ../fish/guestfish-actions.pod:988
7296 msgid "egrepi"
7297 msgstr ""
7298
7299 #. type: verbatim
7300 #: ../fish/guestfish-actions.pod:990
7301 #, no-wrap
7302 msgid ""
7303 " egrepi regex path\n"
7304 "\n"
7305 msgstr ""
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
7309 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7310 msgstr ""
7311
7312 #. type: =head2
7313 #: ../fish/guestfish-actions.pod:998
7314 msgid "equal"
7315 msgstr ""
7316
7317 #. type: verbatim
7318 #: ../fish/guestfish-actions.pod:1000
7319 #, no-wrap
7320 msgid ""
7321 " equal file1 file2\n"
7322 "\n"
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
7327 msgid ""
7328 "This compares the two files C<file1> and C<file2> and returns true if their "
7329 "content is exactly equal, or false otherwise."
7330 msgstr ""
7331
7332 #. type: textblock
7333 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
7334 msgid "The external L<cmp(1)> program is used for the comparison."
7335 msgstr ""
7336
7337 #. type: =head2
7338 #: ../fish/guestfish-actions.pod:1007
7339 msgid "exists"
7340 msgstr ""
7341
7342 #. type: verbatim
7343 #: ../fish/guestfish-actions.pod:1009
7344 #, no-wrap
7345 msgid ""
7346 " exists path\n"
7347 "\n"
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
7352 msgid ""
7353 "This returns C<true> if and only if there is a file, directory (or anything) "
7354 "with the given C<path> name."
7355 msgstr ""
7356
7357 #. type: textblock
7358 #: ../fish/guestfish-actions.pod:1014
7359 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7360 msgstr ""
7361
7362 #. type: =head2
7363 #: ../fish/guestfish-actions.pod:1016
7364 msgid "fallocate"
7365 msgstr ""
7366
7367 #. type: verbatim
7368 #: ../fish/guestfish-actions.pod:1018
7369 #, no-wrap
7370 msgid ""
7371 " fallocate path len\n"
7372 "\n"
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
7377 msgid ""
7378 "This command preallocates a file (containing zero bytes) named C<path> of "
7379 "size C<len> bytes.  If the file exists already, it is overwritten."
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
7384 msgid ""
7385 "Do not confuse this with the guestfish-specific C<alloc> command which "
7386 "allocates a file in the host and attaches it as a device."
7387 msgstr ""
7388
7389 #. type: textblock
7390 #: ../fish/guestfish-actions.pod:1028
7391 msgid ""
7392 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7393 "instead."
7394 msgstr ""
7395
7396 #. type: =head2
7397 #: ../fish/guestfish-actions.pod:1035
7398 msgid "fallocate64"
7399 msgstr ""
7400
7401 #. type: verbatim
7402 #: ../fish/guestfish-actions.pod:1037
7403 #, no-wrap
7404 msgid ""
7405 " fallocate64 path len\n"
7406 "\n"
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1043
7411 msgid ""
7412 "Note that this call allocates disk blocks for the file.  To create a sparse "
7413 "file use L</truncate-size> instead."
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:1046
7418 msgid ""
7419 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7420 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7421 "maximum size of files created through that call to 1GB."
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
7426 msgid ""
7427 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7428 "commands which create a file in the host and attach it as a device."
7429 msgstr ""
7430
7431 #. type: =head2
7432 #: ../fish/guestfish-actions.pod:1055
7433 msgid "fgrep"
7434 msgstr ""
7435
7436 #. type: verbatim
7437 #: ../fish/guestfish-actions.pod:1057
7438 #, no-wrap
7439 msgid ""
7440 " fgrep pattern path\n"
7441 "\n"
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
7446 msgid "This calls the external C<fgrep> program and returns the matching lines."
7447 msgstr ""
7448
7449 #. type: =head2
7450 #: ../fish/guestfish-actions.pod:1065
7451 msgid "fgrepi"
7452 msgstr ""
7453
7454 #. type: verbatim
7455 #: ../fish/guestfish-actions.pod:1067
7456 #, no-wrap
7457 msgid ""
7458 " fgrepi pattern path\n"
7459 "\n"
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
7464 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7465 msgstr ""
7466
7467 #. type: =head2
7468 #: ../fish/guestfish-actions.pod:1075
7469 msgid "file"
7470 msgstr ""
7471
7472 #. type: verbatim
7473 #: ../fish/guestfish-actions.pod:1077
7474 #, no-wrap
7475 msgid ""
7476 " file path\n"
7477 "\n"
7478 msgstr ""
7479
7480 #. type: textblock
7481 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
7482 msgid ""
7483 "This call uses the standard L<file(1)> command to determine the type or "
7484 "contents of the file."
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
7489 msgid ""
7490 "This call will also transparently look inside various types of compressed "
7491 "file."
7492 msgstr ""
7493
7494 #. type: textblock
7495 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
7496 msgid ""
7497 "The exact command which runs is C<file -zb path>.  Note in particular that "
7498 "the filename is not prepended to the output (the I<-b> option)."
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
7503 msgid ""
7504 "The output depends on the output of the underlying L<file(1)> command and it "
7505 "can change in future in ways beyond our control.  In other words, the output "
7506 "is not guaranteed by the ABI."
7507 msgstr ""
7508
7509 #. type: textblock
7510 #: ../fish/guestfish-actions.pod:1093
7511 msgid ""
7512 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7513 "(etc), L</is-zero>."
7514 msgstr ""
7515
7516 #. type: =head2
7517 #: ../fish/guestfish-actions.pod:1096
7518 msgid "file-architecture"
7519 msgstr ""
7520
7521 #. type: verbatim
7522 #: ../fish/guestfish-actions.pod:1098
7523 #, no-wrap
7524 msgid ""
7525 " file-architecture filename\n"
7526 "\n"
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
7531 msgid ""
7532 "This detects the architecture of the binary C<filename>, and returns it if "
7533 "known."
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
7538 msgid "Currently defined architectures are:"
7539 msgstr ""
7540
7541 #. type: =item
7542 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
7543 msgid "\"i386\""
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
7548 msgid ""
7549 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7550 "irrespective of the precise processor requirements of the binary."
7551 msgstr ""
7552
7553 #. type: =item
7554 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
7555 msgid "\"x86_64\""
7556 msgstr ""
7557
7558 #. type: textblock
7559 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
7560 msgid "64 bit x86-64."
7561 msgstr ""
7562
7563 #. type: =item
7564 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
7565 msgid "\"sparc\""
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
7570 msgid "32 bit SPARC."
7571 msgstr ""
7572
7573 #. type: =item
7574 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
7575 msgid "\"sparc64\""
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
7580 msgid "64 bit SPARC V9 and above."
7581 msgstr ""
7582
7583 #. type: =item
7584 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
7585 msgid "\"ia64\""
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
7590 msgid "Intel Itanium."
7591 msgstr ""
7592
7593 #. type: =item
7594 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
7595 msgid "\"ppc\""
7596 msgstr ""
7597
7598 #. type: textblock
7599 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
7600 msgid "32 bit Power PC."
7601 msgstr ""
7602
7603 #. type: =item
7604 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
7605 msgid "\"ppc64\""
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
7610 msgid "64 bit Power PC."
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
7615 msgid "Libguestfs may return other architecture strings in future."
7616 msgstr ""
7617
7618 #. type: textblock
7619 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
7620 msgid "The function works on at least the following types of files:"
7621 msgstr ""
7622
7623 #. type: textblock
7624 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
7625 msgid "many types of Un*x and Linux binary"
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
7630 msgid "many types of Un*x and Linux shared library"
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
7635 msgid "Windows Win32 and Win64 binaries"
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
7640 msgid "Windows Win32 and Win64 DLLs"
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
7645 msgid "Win32 binaries and DLLs return C<i386>."
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
7650 msgid "Win64 binaries and DLLs return C<x86_64>."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
7655 msgid "Linux kernel modules"
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
7660 msgid "Linux new-style initrd images"
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
7665 msgid "some non-x86 Linux vmlinuz kernels"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
7670 msgid "What it can't do currently:"
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
7675 msgid "static libraries (libfoo.a)"
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
7680 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7681 msgstr ""
7682
7683 #. type: textblock
7684 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
7685 msgid "x86 Linux vmlinuz kernels"
7686 msgstr ""
7687
7688 #. type: textblock
7689 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
7690 msgid ""
7691 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7692 "compressed code, and are horribly hard to unpack.  If you want to find the "
7693 "architecture of a kernel, use the architecture of the associated initrd or "
7694 "kernel module(s) instead."
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:1201
7699 msgid "filesize"
7700 msgstr ""
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:1203
7704 #, no-wrap
7705 msgid ""
7706 " filesize file\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
7712 msgid "This command returns the size of C<file> in bytes."
7713 msgstr ""
7714
7715 #. type: textblock
7716 #: ../fish/guestfish-actions.pod:1207
7717 msgid ""
7718 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7719 "L</is-file> etc.  To get the size of block devices, use "
7720 "L</blockdev-getsize64>."
7721 msgstr ""
7722
7723 #. type: =head2
7724 #: ../fish/guestfish-actions.pod:1211
7725 msgid "fill"
7726 msgstr ""
7727
7728 #. type: verbatim
7729 #: ../fish/guestfish-actions.pod:1213
7730 #, no-wrap
7731 msgid ""
7732 " fill c len path\n"
7733 "\n"
7734 msgstr ""
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
7738 msgid ""
7739 "This command creates a new file called C<path>.  The initial content of the "
7740 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7741 "C<[0..255]>."
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:1219
7746 msgid ""
7747 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7748 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7749 "L</fill-pattern>."
7750 msgstr ""
7751
7752 #. type: =head2
7753 #: ../fish/guestfish-actions.pod:1224
7754 msgid "fill-pattern"
7755 msgstr ""
7756
7757 #. type: verbatim
7758 #: ../fish/guestfish-actions.pod:1226
7759 #, no-wrap
7760 msgid ""
7761 " fill-pattern pattern len path\n"
7762 "\n"
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:1228
7767 msgid ""
7768 "This function is like L</fill> except that it creates a new file of length "
7769 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7770 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7771 "bytes."
7772 msgstr ""
7773
7774 #. type: =head2
7775 #: ../fish/guestfish-actions.pod:1233
7776 msgid "find"
7777 msgstr ""
7778
7779 #. type: verbatim
7780 #: ../fish/guestfish-actions.pod:1235
7781 #, no-wrap
7782 msgid ""
7783 " find directory\n"
7784 "\n"
7785 msgstr ""
7786
7787 #. type: textblock
7788 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
7789 msgid ""
7790 "This command lists out all files and directories, recursively, starting at "
7791 "C<directory>.  It is essentially equivalent to running the shell command "
7792 "C<find directory -print> but some post-processing happens on the output, "
7793 "described below."
7794 msgstr ""
7795
7796 #. type: textblock
7797 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
7798 msgid ""
7799 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7800 "structure was:"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
7805 #, no-wrap
7806 msgid ""
7807 " /tmp/a\n"
7808 " /tmp/b\n"
7809 " /tmp/c/d\n"
7810 "\n"
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../fish/guestfish-actions.pod:1249
7815 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7816 msgstr ""
7817
7818 #. type: verbatim
7819 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
7820 #, no-wrap
7821 msgid ""
7822 " a\n"
7823 " b\n"
7824 " c\n"
7825 " c/d\n"
7826 "\n"
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
7831 msgid "If C<directory> is not a directory, then this command returns an error."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
7836 msgid "The returned list is sorted."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1262
7841 msgid "See also L</find0>."
7842 msgstr ""
7843
7844 #. type: =head2
7845 #: ../fish/guestfish-actions.pod:1267
7846 msgid "find0"
7847 msgstr ""
7848
7849 #. type: verbatim
7850 #: ../fish/guestfish-actions.pod:1269
7851 #, no-wrap
7852 msgid ""
7853 " find0 directory (files|-)\n"
7854 "\n"
7855 msgstr ""
7856
7857 #. type: textblock
7858 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
7859 msgid ""
7860 "This command lists out all files and directories, recursively, starting at "
7861 "C<directory>, placing the resulting list in the external file called "
7862 "C<files>."
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:1275
7867 msgid "This command works the same way as L</find> with the following exceptions:"
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
7872 msgid "The resulting list is written to an external file."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
7877 msgid ""
7878 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7879 "L<find(1)> option I<-print0>."
7880 msgstr ""
7881
7882 #. type: textblock
7883 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
7884 msgid "This command is not limited in the number of names that it can return."
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
7889 msgid "The result list is not sorted."
7890 msgstr ""
7891
7892 #. type: =head2
7893 #: ../fish/guestfish-actions.pod:1302
7894 msgid "findfs-label"
7895 msgstr ""
7896
7897 #. type: verbatim
7898 #: ../fish/guestfish-actions.pod:1304
7899 #, no-wrap
7900 msgid ""
7901 " findfs-label label\n"
7902 "\n"
7903 msgstr ""
7904
7905 #. type: textblock
7906 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
7907 msgid ""
7908 "This command searches the filesystems and returns the one which has the "
7909 "given label.  An error is returned if no such filesystem can be found."
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:1310
7914 msgid "To find the label of a filesystem, use L</vfs-label>."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:1312
7919 msgid "findfs-uuid"
7920 msgstr ""
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:1314
7924 #, no-wrap
7925 msgid ""
7926 " findfs-uuid uuid\n"
7927 "\n"
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
7932 msgid ""
7933 "This command searches the filesystems and returns the one which has the "
7934 "given UUID.  An error is returned if no such filesystem can be found."
7935 msgstr ""
7936
7937 #. type: textblock
7938 #: ../fish/guestfish-actions.pod:1320
7939 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7940 msgstr ""
7941
7942 #. type: =head2
7943 #: ../fish/guestfish-actions.pod:1322
7944 msgid "fsck"
7945 msgstr ""
7946
7947 #. type: verbatim
7948 #: ../fish/guestfish-actions.pod:1324
7949 #, no-wrap
7950 msgid ""
7951 " fsck fstype device\n"
7952 "\n"
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
7957 msgid ""
7958 "This runs the filesystem checker (fsck) on C<device> which should have "
7959 "filesystem type C<fstype>."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
7964 msgid ""
7965 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7966 "codes from C<fsck>."
7967 msgstr ""
7968
7969 #. type: textblock
7970 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
7971 msgid "Multiple status codes can be summed together."
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
7976 msgid ""
7977 "A non-zero return code can mean \"success\", for example if errors have been "
7978 "corrected on the filesystem."
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
7983 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
7988 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7989 msgstr ""
7990
7991 #. type: =head2
7992 #: ../fish/guestfish-actions.pod:1354
7993 msgid "get-append"
7994 msgstr ""
7995
7996 #. type: verbatim
7997 #: ../fish/guestfish-actions.pod:1356
7998 #, no-wrap
7999 msgid ""
8000 " get-append\n"
8001 "\n"
8002 msgstr ""
8003
8004 #. type: textblock
8005 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8006 msgid ""
8007 "Return the additional kernel options which are added to the guest kernel "
8008 "command line."
8009 msgstr ""
8010
8011 #. type: textblock
8012 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8013 msgid "If C<NULL> then no options are added."
8014 msgstr ""
8015
8016 #. type: =head2
8017 #: ../fish/guestfish-actions.pod:1363
8018 msgid "get-attach-method"
8019 msgstr ""
8020
8021 #. type: verbatim
8022 #: ../fish/guestfish-actions.pod:1365
8023 #, no-wrap
8024 msgid ""
8025 " get-attach-method\n"
8026 "\n"
8027 msgstr ""
8028
8029 #. type: textblock
8030 #: ../fish/guestfish-actions.pod:1367
8031 msgid "Return the current attach method.  See L</set-attach-method>."
8032 msgstr ""
8033
8034 #. type: =head2
8035 #: ../fish/guestfish-actions.pod:1369
8036 msgid "get-autosync"
8037 msgstr ""
8038
8039 #. type: verbatim
8040 #: ../fish/guestfish-actions.pod:1371
8041 #, no-wrap
8042 msgid ""
8043 " get-autosync\n"
8044 "\n"
8045 msgstr ""
8046
8047 #. type: textblock
8048 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8049 msgid "Get the autosync flag."
8050 msgstr ""
8051
8052 #. type: =head2
8053 #: ../fish/guestfish-actions.pod:1375
8054 msgid "get-direct"
8055 msgstr ""
8056
8057 #. type: verbatim
8058 #: ../fish/guestfish-actions.pod:1377
8059 #, no-wrap
8060 msgid ""
8061 " get-direct\n"
8062 "\n"
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8067 msgid "Return the direct appliance mode flag."
8068 msgstr ""
8069
8070 #. type: =head2
8071 #: ../fish/guestfish-actions.pod:1381
8072 msgid "get-e2label"
8073 msgstr ""
8074
8075 #. type: verbatim
8076 #: ../fish/guestfish-actions.pod:1383
8077 #, no-wrap
8078 msgid ""
8079 " get-e2label device\n"
8080 "\n"
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8085 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:1388
8090 msgid ""
8091 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8092 "instead."
8093 msgstr ""
8094
8095 #. type: =head2
8096 #: ../fish/guestfish-actions.pod:1395
8097 msgid "get-e2uuid"
8098 msgstr ""
8099
8100 #. type: verbatim
8101 #: ../fish/guestfish-actions.pod:1397
8102 #, no-wrap
8103 msgid ""
8104 " get-e2uuid device\n"
8105 "\n"
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8110 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1402
8115 msgid ""
8116 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8117 "instead."
8118 msgstr ""
8119
8120 #. type: =head2
8121 #: ../fish/guestfish-actions.pod:1409
8122 msgid "get-memsize"
8123 msgstr ""
8124
8125 #. type: verbatim
8126 #: ../fish/guestfish-actions.pod:1411
8127 #, no-wrap
8128 msgid ""
8129 " get-memsize\n"
8130 "\n"
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8135 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8136 msgstr ""
8137
8138 #. type: textblock
8139 #: ../fish/guestfish-actions.pod:1416
8140 msgid ""
8141 "If L</set-memsize> was not called on this handle, and if "
8142 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8143 "value for memsize."
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477 ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8148 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8149 msgstr ""
8150
8151 #. type: =head2
8152 #: ../fish/guestfish-actions.pod:1423
8153 msgid "get-network"
8154 msgstr ""
8155
8156 #. type: verbatim
8157 #: ../fish/guestfish-actions.pod:1425
8158 #, no-wrap
8159 msgid ""
8160 " get-network\n"
8161 "\n"
8162 msgstr ""
8163
8164 #. type: textblock
8165 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8166 msgid "This returns the enable network flag."
8167 msgstr ""
8168
8169 #. type: =head2
8170 #: ../fish/guestfish-actions.pod:1429
8171 msgid "get-path"
8172 msgstr ""
8173
8174 #. type: verbatim
8175 #: ../fish/guestfish-actions.pod:1431
8176 #, no-wrap
8177 msgid ""
8178 " get-path\n"
8179 "\n"
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8184 msgid "Return the current search path."
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8189 msgid ""
8190 "This is always non-NULL.  If it wasn't set already, then this will return "
8191 "the default path."
8192 msgstr ""
8193
8194 #. type: =head2
8195 #: ../fish/guestfish-actions.pod:1438
8196 msgid "get-pgroup"
8197 msgstr ""
8198
8199 #. type: verbatim
8200 #: ../fish/guestfish-actions.pod:1440
8201 #, no-wrap
8202 msgid ""
8203 " get-pgroup\n"
8204 "\n"
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8209 msgid "This returns the process group flag."
8210 msgstr ""
8211
8212 #. type: =head2
8213 #: ../fish/guestfish-actions.pod:1444
8214 msgid "get-pid"
8215 msgstr ""
8216
8217 #. type: =head2
8218 #: ../fish/guestfish-actions.pod:1446
8219 msgid "pid"
8220 msgstr ""
8221
8222 #. type: verbatim
8223 #: ../fish/guestfish-actions.pod:1448
8224 #, no-wrap
8225 msgid ""
8226 " get-pid\n"
8227 "\n"
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
8232 msgid ""
8233 "Return the process ID of the qemu subprocess.  If there is no qemu "
8234 "subprocess, then this will return an error."
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
8239 msgid "This is an internal call used for debugging and testing."
8240 msgstr ""
8241
8242 #. type: =head2
8243 #: ../fish/guestfish-actions.pod:1455
8244 msgid "get-qemu"
8245 msgstr ""
8246
8247 #. type: verbatim
8248 #: ../fish/guestfish-actions.pod:1457
8249 #, no-wrap
8250 msgid ""
8251 " get-qemu\n"
8252 "\n"
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
8257 msgid "Return the current qemu binary."
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
8262 msgid ""
8263 "This is always non-NULL.  If it wasn't set already, then this will return "
8264 "the default qemu binary name."
8265 msgstr ""
8266
8267 #. type: =head2
8268 #: ../fish/guestfish-actions.pod:1464
8269 msgid "get-recovery-proc"
8270 msgstr ""
8271
8272 #. type: verbatim
8273 #: ../fish/guestfish-actions.pod:1466
8274 #, no-wrap
8275 msgid ""
8276 " get-recovery-proc\n"
8277 "\n"
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
8282 msgid "Return the recovery process enabled flag."
8283 msgstr ""
8284
8285 #. type: =head2
8286 #: ../fish/guestfish-actions.pod:1470
8287 msgid "get-selinux"
8288 msgstr ""
8289
8290 #. type: verbatim
8291 #: ../fish/guestfish-actions.pod:1472
8292 #, no-wrap
8293 msgid ""
8294 " get-selinux\n"
8295 "\n"
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1474
8300 msgid ""
8301 "This returns the current setting of the selinux flag which is passed to the "
8302 "appliance at boot time.  See L</set-selinux>."
8303 msgstr ""
8304
8305 #. type: =head2
8306 #: ../fish/guestfish-actions.pod:1480
8307 msgid "get-smp"
8308 msgstr ""
8309
8310 #. type: verbatim
8311 #: ../fish/guestfish-actions.pod:1482
8312 #, no-wrap
8313 msgid ""
8314 " get-smp\n"
8315 "\n"
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
8320 msgid "This returns the number of virtual CPUs assigned to the appliance."
8321 msgstr ""
8322
8323 #. type: =head2
8324 #: ../fish/guestfish-actions.pod:1486
8325 msgid "get-state"
8326 msgstr ""
8327
8328 #. type: verbatim
8329 #: ../fish/guestfish-actions.pod:1488
8330 #, no-wrap
8331 msgid ""
8332 " get-state\n"
8333 "\n"
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
8338 msgid ""
8339 "This returns the current state as an opaque integer.  This is only useful "
8340 "for printing debug and internal error messages."
8341 msgstr ""
8342
8343 #. type: textblock
8344 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508 ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
8345 msgid "For more information on states, see L<guestfs(3)>."
8346 msgstr ""
8347
8348 #. type: =head2
8349 #: ../fish/guestfish-actions.pod:1495
8350 msgid "get-trace"
8351 msgstr ""
8352
8353 #. type: verbatim
8354 #: ../fish/guestfish-actions.pod:1497
8355 #, no-wrap
8356 msgid ""
8357 " get-trace\n"
8358 "\n"
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
8363 msgid "Return the command trace flag."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1501
8368 msgid "get-umask"
8369 msgstr ""
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1503
8373 #, no-wrap
8374 msgid ""
8375 " get-umask\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1505
8381 msgid ""
8382 "Return the current umask.  By default the umask is C<022> unless it has been "
8383 "set by calling L</umask>."
8384 msgstr ""
8385
8386 #. type: =head2
8387 #: ../fish/guestfish-actions.pod:1508
8388 msgid "get-verbose"
8389 msgstr ""
8390
8391 #. type: verbatim
8392 #: ../fish/guestfish-actions.pod:1510
8393 #, no-wrap
8394 msgid ""
8395 " get-verbose\n"
8396 "\n"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
8401 msgid "This returns the verbose messages flag."
8402 msgstr ""
8403
8404 #. type: =head2
8405 #: ../fish/guestfish-actions.pod:1514
8406 msgid "getcon"
8407 msgstr ""
8408
8409 #. type: verbatim
8410 #: ../fish/guestfish-actions.pod:1516
8411 #, no-wrap
8412 msgid ""
8413 " getcon\n"
8414 "\n"
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
8419 msgid "This gets the SELinux security context of the daemon."
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1520
8424 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8425 msgstr ""
8426
8427 #. type: =head2
8428 #: ../fish/guestfish-actions.pod:1523
8429 msgid "getxattr"
8430 msgstr ""
8431
8432 #. type: verbatim
8433 #: ../fish/guestfish-actions.pod:1525
8434 #, no-wrap
8435 msgid ""
8436 " getxattr path name\n"
8437 "\n"
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1527
8442 msgid ""
8443 "Get a single extended attribute from file C<path> named C<name>.  This call "
8444 "follows symlinks.  If you want to lookup an extended attribute for the "
8445 "symlink itself, use L</lgetxattr>."
8446 msgstr ""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
8450 msgid ""
8451 "Normally it is better to get all extended attributes from a file in one go "
8452 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8453 "buggy and do not provide a way to list out attributes.  For these "
8454 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8455 "attributes you want in advance and call this function."
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
8460 msgid ""
8461 "Extended attribute values are blobs of binary data.  If there is no extended "
8462 "attribute named C<name>, this returns an error."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1541
8467 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8468 msgstr ""
8469
8470 #. type: =head2
8471 #: ../fish/guestfish-actions.pod:1543
8472 msgid "getxattrs"
8473 msgstr ""
8474
8475 #. type: verbatim
8476 #: ../fish/guestfish-actions.pod:1545
8477 #, no-wrap
8478 msgid ""
8479 " getxattrs path\n"
8480 "\n"
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
8485 msgid "This call lists the extended attributes of the file or directory C<path>."
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
8490 msgid ""
8491 "At the system call level, this is a combination of the L<listxattr(2)> and "
8492 "L<getxattr(2)> calls."
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:1553
8497 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:1555
8502 msgid "glob-expand"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:1557
8507 #, no-wrap
8508 msgid ""
8509 " glob-expand pattern\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
8515 msgid ""
8516 "This command searches for all the pathnames matching C<pattern> according to "
8517 "the wildcard expansion rules used by the shell."
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
8522 msgid "If no paths match, then this returns an empty list (note: not an error)."
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
8527 msgid ""
8528 "It is just a wrapper around the C L<glob(3)> function with flags "
8529 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8530 msgstr ""
8531
8532 #. type: =head2
8533 #: ../fish/guestfish-actions.pod:1570
8534 msgid "grep"
8535 msgstr ""
8536
8537 #. type: verbatim
8538 #: ../fish/guestfish-actions.pod:1572
8539 #, no-wrap
8540 msgid ""
8541 " grep regex path\n"
8542 "\n"
8543 msgstr ""
8544
8545 #. type: textblock
8546 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
8547 msgid "This calls the external C<grep> program and returns the matching lines."
8548 msgstr ""
8549
8550 #. type: =head2
8551 #: ../fish/guestfish-actions.pod:1580
8552 msgid "grepi"
8553 msgstr ""
8554
8555 #. type: verbatim
8556 #: ../fish/guestfish-actions.pod:1582
8557 #, no-wrap
8558 msgid ""
8559 " grepi regex path\n"
8560 "\n"
8561 msgstr ""
8562
8563 #. type: textblock
8564 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
8565 msgid "This calls the external C<grep -i> program and returns the matching lines."
8566 msgstr ""
8567
8568 #. type: =head2
8569 #: ../fish/guestfish-actions.pod:1590
8570 msgid "grub-install"
8571 msgstr ""
8572
8573 #. type: verbatim
8574 #: ../fish/guestfish-actions.pod:1592
8575 #, no-wrap
8576 msgid ""
8577 " grub-install root device\n"
8578 "\n"
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
8583 msgid ""
8584 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8585 "with the root directory being C<root>."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
8590 msgid ""
8591 "There is currently no way in the API to install grub2, which is used by most "
8592 "modern Linux guests.  It is possible to run the grub2 command from the "
8593 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
8598 msgid ""
8599 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8600 "compatible with itself, so this only works in rather narrow circumstances.  "
8601 "Careful testing with each guest version is advisable."
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
8606 msgid ""
8607 "If grub-install reports the error \"No suitable drive was found in the "
8608 "generated device map.\" it may be that you need to create a "
8609 "C</boot/grub/device.map> file first that contains the mapping between grub "
8610 "device names and Linux device names.  It is usually sufficient to create a "
8611 "file containing:"
8612 msgstr ""
8613
8614 #. type: verbatim
8615 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
8616 #, no-wrap
8617 msgid ""
8618 " (hd0) /dev/vda\n"
8619 "\n"
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
8624 msgid "replacing C</dev/vda> with the name of the installation device."
8625 msgstr ""
8626
8627 #. type: =head2
8628 #: ../fish/guestfish-actions.pod:1630
8629 msgid "head"
8630 msgstr ""
8631
8632 #. type: verbatim
8633 #: ../fish/guestfish-actions.pod:1632
8634 #, no-wrap
8635 msgid ""
8636 " head path\n"
8637 "\n"
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
8642 msgid ""
8643 "This command returns up to the first 10 lines of a file as a list of "
8644 "strings."
8645 msgstr ""
8646
8647 #. type: =head2
8648 #: ../fish/guestfish-actions.pod:1640
8649 msgid "head-n"
8650 msgstr ""
8651
8652 #. type: verbatim
8653 #: ../fish/guestfish-actions.pod:1642
8654 #, no-wrap
8655 msgid ""
8656 " head-n nrlines path\n"
8657 "\n"
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
8662 msgid ""
8663 "If the parameter C<nrlines> is a positive number, this returns the first "
8664 "C<nrlines> lines of the file C<path>."
8665 msgstr ""
8666
8667 #. type: textblock
8668 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
8669 msgid ""
8670 "If the parameter C<nrlines> is a negative number, this returns lines from "
8671 "the file C<path>, excluding the last C<nrlines> lines."
8672 msgstr ""
8673
8674 #. type: textblock
8675 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
8676 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8677 msgstr ""
8678
8679 #. type: =head2
8680 #: ../fish/guestfish-actions.pod:1655
8681 msgid "hexdump"
8682 msgstr ""
8683
8684 #. type: verbatim
8685 #: ../fish/guestfish-actions.pod:1657
8686 #, no-wrap
8687 msgid ""
8688 " hexdump path\n"
8689 "\n"
8690 msgstr ""
8691
8692 #. type: textblock
8693 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
8694 msgid ""
8695 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8696 "human-readable, canonical hex dump of the file."
8697 msgstr ""
8698
8699 #. type: =head2
8700 #: ../fish/guestfish-actions.pod:1665
8701 msgid "initrd-cat"
8702 msgstr ""
8703
8704 #. type: verbatim
8705 #: ../fish/guestfish-actions.pod:1667
8706 #, no-wrap
8707 msgid ""
8708 " initrd-cat initrdpath filename\n"
8709 "\n"
8710 msgstr ""
8711
8712 #. type: textblock
8713 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
8714 msgid ""
8715 "This command unpacks the file C<filename> from the initrd file called "
8716 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8717 "character."
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
8722 msgid ""
8723 "For example, in guestfish you could use the following command to examine the "
8724 "boot script (usually called C</init>)  contained in a Linux initrd or "
8725 "initramfs image:"
8726 msgstr ""
8727
8728 #. type: verbatim
8729 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
8730 #, no-wrap
8731 msgid ""
8732 " initrd-cat /boot/initrd-<version>.img init\n"
8733 "\n"
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1679
8738 msgid "See also L</initrd-list>."
8739 msgstr ""
8740
8741 #. type: =head2
8742 #: ../fish/guestfish-actions.pod:1684
8743 msgid "initrd-list"
8744 msgstr ""
8745
8746 #. type: verbatim
8747 #: ../fish/guestfish-actions.pod:1686
8748 #, no-wrap
8749 msgid ""
8750 " initrd-list path\n"
8751 "\n"
8752 msgstr ""
8753
8754 #. type: textblock
8755 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
8756 msgid "This command lists out files contained in an initrd."
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
8761 msgid ""
8762 "The files are listed without any initial C</> character.  The files are "
8763 "listed in the order they appear (not necessarily alphabetical).  Directory "
8764 "names are listed as separate items."
8765 msgstr ""
8766
8767 #. type: textblock
8768 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
8769 msgid ""
8770 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8771 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8772 "files)."
8773 msgstr ""
8774
8775 #. type: =head2
8776 #: ../fish/guestfish-actions.pod:1698
8777 msgid "inotify-add-watch"
8778 msgstr ""
8779
8780 #. type: verbatim
8781 #: ../fish/guestfish-actions.pod:1700
8782 #, no-wrap
8783 msgid ""
8784 " inotify-add-watch path mask\n"
8785 "\n"
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
8790 msgid "Watch C<path> for the events listed in C<mask>."
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
8795 msgid ""
8796 "Note that if C<path> is a directory then events within that directory are "
8797 "watched, but this does I<not> happen recursively (in subdirectories)."
8798 msgstr ""
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
8802 msgid ""
8803 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8804 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8805 msgstr ""
8806
8807 #. type: =head2
8808 #: ../fish/guestfish-actions.pod:1712
8809 msgid "inotify-close"
8810 msgstr ""
8811
8812 #. type: verbatim
8813 #: ../fish/guestfish-actions.pod:1714
8814 #, no-wrap
8815 msgid ""
8816 " inotify-close\n"
8817 "\n"
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
8822 msgid ""
8823 "This closes the inotify handle which was previously opened by inotify_init.  "
8824 "It removes all watches, throws away any pending events, and deallocates all "
8825 "resources."
8826 msgstr ""
8827
8828 #. type: =head2
8829 #: ../fish/guestfish-actions.pod:1720
8830 msgid "inotify-files"
8831 msgstr ""
8832
8833 #. type: verbatim
8834 #: ../fish/guestfish-actions.pod:1722
8835 #, no-wrap
8836 msgid ""
8837 " inotify-files\n"
8838 "\n"
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:1724
8843 msgid ""
8844 "This function is a helpful wrapper around L</inotify-read> which just "
8845 "returns a list of pathnames of objects that were touched.  The returned "
8846 "pathnames are sorted and deduplicated."
8847 msgstr ""
8848
8849 #. type: =head2
8850 #: ../fish/guestfish-actions.pod:1728
8851 msgid "inotify-init"
8852 msgstr ""
8853
8854 #. type: verbatim
8855 #: ../fish/guestfish-actions.pod:1730
8856 #, no-wrap
8857 msgid ""
8858 " inotify-init maxevents\n"
8859 "\n"
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
8864 msgid ""
8865 "This command creates a new inotify handle.  The inotify subsystem can be "
8866 "used to notify events which happen to objects in the guest filesystem."
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1736
8871 msgid ""
8872 "C<maxevents> is the maximum number of events which will be queued up between "
8873 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8874 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8875 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8876 "but records the fact that it threw them away by setting a flag "
8877 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8878 msgstr ""
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1746
8882 msgid ""
8883 "Before any events are generated, you have to add some watches to the "
8884 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8885 "L</inotify-watch-all>."
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1752
8890 msgid ""
8891 "Queued up events should be read periodically by calling L</inotify-read> (or "
8892 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8893 "If you don't read the events out often enough then you risk the internal "
8894 "queue overflowing."
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:1759
8899 msgid ""
8900 "The handle should be closed after use by calling L</inotify-close>.  This "
8901 "also removes any watches automatically."
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
8906 msgid ""
8907 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8908 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8909 "that there is one global inotify handle per libguestfs instance."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:1768
8914 msgid "inotify-read"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:1770
8919 #, no-wrap
8920 msgid ""
8921 " inotify-read\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
8927 msgid ""
8928 "Return the complete queue of events that have happened since the previous "
8929 "read call."
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
8934 msgid "If no events have happened, this returns an empty list."
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
8939 msgid ""
8940 "I<Note>: In order to make sure that all events have been read, you must call "
8941 "this function repeatedly until it returns an empty list.  The reason is that "
8942 "the call will read events up to the maximum appliance-to-host message size "
8943 "and leave remaining events in the queue."
8944 msgstr ""
8945
8946 #. type: =head2
8947 #: ../fish/guestfish-actions.pod:1783
8948 msgid "inotify-rm-watch"
8949 msgstr ""
8950
8951 #. type: verbatim
8952 #: ../fish/guestfish-actions.pod:1785
8953 #, no-wrap
8954 msgid ""
8955 " inotify-rm-watch wd\n"
8956 "\n"
8957 msgstr ""
8958
8959 #. type: textblock
8960 #: ../fish/guestfish-actions.pod:1787
8961 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8962 msgstr ""
8963
8964 #. type: =head2
8965 #: ../fish/guestfish-actions.pod:1790
8966 msgid "inspect-get-arch"
8967 msgstr ""
8968
8969 #. type: verbatim
8970 #: ../fish/guestfish-actions.pod:1792
8971 #, no-wrap
8972 msgid ""
8973 " inspect-get-arch root\n"
8974 "\n"
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:1794
8979 msgid ""
8980 "This returns the architecture of the inspected operating system.  The "
8981 "possible return values are listed under L</file-architecture>."
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
8986 msgid ""
8987 "If the architecture could not be determined, then the string C<unknown> is "
8988 "returned."
8989 msgstr ""
8990
8991 #. type: textblock
8992 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987 ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168 ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244 ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270 ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290 ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959 ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359 ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
8993 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8994 msgstr ""
8995
8996 #. type: =head2
8997 #: ../fish/guestfish-actions.pod:1803
8998 msgid "inspect-get-distro"
8999 msgstr ""
9000
9001 #. type: verbatim
9002 #: ../fish/guestfish-actions.pod:1805
9003 #, no-wrap
9004 msgid ""
9005 " inspect-get-distro root\n"
9006 "\n"
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9011 msgid "This returns the distro (distribution) of the inspected operating system."
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9016 msgid "Currently defined distros are:"
9017 msgstr ""
9018
9019 #. type: =item
9020 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9021 msgid "\"archlinux\""
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9026 msgid "Arch Linux."
9027 msgstr ""
9028
9029 #. type: =item
9030 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9031 msgid "\"centos\""
9032 msgstr ""
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9036 msgid "CentOS."
9037 msgstr ""
9038
9039 #. type: =item
9040 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9041 msgid "\"debian\""
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9046 msgid "Debian."
9047 msgstr ""
9048
9049 #. type: =item
9050 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9051 msgid "\"fedora\""
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9056 msgid "Fedora."
9057 msgstr ""
9058
9059 #. type: =item
9060 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9061 msgid "\"gentoo\""
9062 msgstr ""
9063
9064 #. type: textblock
9065 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9066 msgid "Gentoo."
9067 msgstr ""
9068
9069 #. type: =item
9070 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9071 msgid "\"linuxmint\""
9072 msgstr ""
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9076 msgid "Linux Mint."
9077 msgstr ""
9078
9079 #. type: =item
9080 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9081 msgid "\"mageia\""
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9086 msgid "Mageia."
9087 msgstr ""
9088
9089 #. type: =item
9090 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9091 msgid "\"mandriva\""
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9096 msgid "Mandriva."
9097 msgstr ""
9098
9099 #. type: =item
9100 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9101 msgid "\"meego\""
9102 msgstr ""
9103
9104 #. type: textblock
9105 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9106 msgid "MeeGo."
9107 msgstr ""
9108
9109 #. type: =item
9110 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9111 msgid "\"opensuse\""
9112 msgstr ""
9113
9114 #. type: textblock
9115 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9116 msgid "OpenSUSE."
9117 msgstr ""
9118
9119 #. type: =item
9120 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9121 msgid "\"pardus\""
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9126 msgid "Pardus."
9127 msgstr ""
9128
9129 #. type: =item
9130 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9131 msgid "\"redhat-based\""
9132 msgstr ""
9133
9134 #. type: textblock
9135 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9136 msgid "Some Red Hat-derived distro."
9137 msgstr ""
9138
9139 #. type: =item
9140 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9141 msgid "\"rhel\""
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9146 msgid "Red Hat Enterprise Linux."
9147 msgstr ""
9148
9149 #. type: =item
9150 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9151 msgid "\"scientificlinux\""
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
9156 msgid "Scientific Linux."
9157 msgstr ""
9158
9159 #. type: =item
9160 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
9161 msgid "\"slackware\""
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
9166 msgid "Slackware."
9167 msgstr ""
9168
9169 #. type: =item
9170 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
9171 msgid "\"ttylinux\""
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
9176 msgid "ttylinux."
9177 msgstr ""
9178
9179 #. type: =item
9180 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
9181 msgid "\"ubuntu\""
9182 msgstr ""
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
9186 msgid "Ubuntu."
9187 msgstr ""
9188
9189 #. type: =item
9190 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966 ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9191 msgid "\"unknown\""
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
9196 msgid "The distro could not be determined."
9197 msgstr ""
9198
9199 #. type: =item
9200 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
9201 msgid "\"windows\""
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
9206 msgid ""
9207 "Windows does not have distributions.  This string is returned if the OS type "
9208 "is Windows."
9209 msgstr ""
9210
9211 #. type: textblock
9212 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972 ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
9213 msgid ""
9214 "Future versions of libguestfs may return other strings here.  The caller "
9215 "should be prepared to handle any string."
9216 msgstr ""
9217
9218 #. type: =head2
9219 #: ../fish/guestfish-actions.pod:1898
9220 msgid "inspect-get-drive-mappings"
9221 msgstr ""
9222
9223 #. type: verbatim
9224 #: ../fish/guestfish-actions.pod:1900
9225 #, no-wrap
9226 msgid ""
9227 " inspect-get-drive-mappings root\n"
9228 "\n"
9229 msgstr ""
9230
9231 #. type: textblock
9232 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
9233 msgid ""
9234 "This call is useful for Windows which uses a primitive system of assigning "
9235 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9236 "Windows Registry to find out how disks/partitions are mapped to drive "
9237 "letters, and returns a hash table as in the example below:"
9238 msgstr ""
9239
9240 #. type: verbatim
9241 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
9242 #, no-wrap
9243 msgid ""
9244 " C      =>     /dev/vda2\n"
9245 " E      =>     /dev/vdb1\n"
9246 " F      =>     /dev/vdc1\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
9252 msgid ""
9253 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9254 "and just contains the drive letter, without the customary colon separator "
9255 "character."
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
9260 msgid ""
9261 "In future we may support other operating systems that also used drive "
9262 "letters, but the keys for those might not be case insensitive and might be "
9263 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9264 "C<h1> etc."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
9269 msgid ""
9270 "For Windows guests, currently only hard drive mappings are returned.  "
9271 "Removable disks (eg. DVD-ROMs) are ignored."
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
9276 msgid ""
9277 "For guests that do not use drive mappings, or if the drive mappings could "
9278 "not be determined, this returns an empty hash table."
9279 msgstr ""
9280
9281 #. type: textblock
9282 #: ../fish/guestfish-actions.pod:1927
9283 msgid ""
9284 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9285 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
9286 msgstr ""
9287
9288 #. type: =head2
9289 #: ../fish/guestfish-actions.pod:1931
9290 msgid "inspect-get-filesystems"
9291 msgstr ""
9292
9293 #. type: verbatim
9294 #: ../fish/guestfish-actions.pod:1933
9295 #, no-wrap
9296 msgid ""
9297 " inspect-get-filesystems root\n"
9298 "\n"
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
9303 msgid ""
9304 "This returns a list of all the filesystems that we think are associated with "
9305 "this operating system.  This includes the root filesystem, other ordinary "
9306 "filesystems, and non-mounted devices like swap partitions."
9307 msgstr ""
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
9311 msgid ""
9312 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9313 "to be shared between operating systems."
9314 msgstr ""
9315
9316 #. type: textblock
9317 #: ../fish/guestfish-actions.pod:1943
9318 msgid ""
9319 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9320 "L</inspect-get-mountpoints>."
9321 msgstr ""
9322
9323 #. type: =head2
9324 #: ../fish/guestfish-actions.pod:1946
9325 msgid "inspect-get-format"
9326 msgstr ""
9327
9328 #. type: verbatim
9329 #: ../fish/guestfish-actions.pod:1948
9330 #, no-wrap
9331 msgid ""
9332 " inspect-get-format root\n"
9333 "\n"
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
9338 msgid ""
9339 "This returns the format of the inspected operating system.  You can use it "
9340 "to detect install images, live CDs and similar."
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
9345 msgid "Currently defined formats are:"
9346 msgstr ""
9347
9348 #. type: =item
9349 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
9350 msgid "\"installed\""
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
9355 msgid "This is an installed operating system."
9356 msgstr ""
9357
9358 #. type: =item
9359 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
9360 msgid "\"installer\""
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
9365 msgid ""
9366 "The disk image being inspected is not an installed operating system, but a "
9367 "I<bootable> install disk, live CD, or similar."
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9372 msgid "The format of this disk image is not known."
9373 msgstr ""
9374
9375 #. type: =head2
9376 #: ../fish/guestfish-actions.pod:1977
9377 msgid "inspect-get-hostname"
9378 msgstr ""
9379
9380 #. type: verbatim
9381 #: ../fish/guestfish-actions.pod:1979
9382 #, no-wrap
9383 msgid ""
9384 " inspect-get-hostname root\n"
9385 "\n"
9386 msgstr ""
9387
9388 #. type: textblock
9389 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
9390 msgid ""
9391 "This function returns the hostname of the operating system as found by "
9392 "inspection of the guest's configuration files."
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
9397 msgid ""
9398 "If the hostname could not be determined, then the string C<unknown> is "
9399 "returned."
9400 msgstr ""
9401
9402 #. type: =head2
9403 #: ../fish/guestfish-actions.pod:1989
9404 msgid "inspect-get-icon"
9405 msgstr ""
9406
9407 #. type: verbatim
9408 #: ../fish/guestfish-actions.pod:1991
9409 #, no-wrap
9410 msgid ""
9411 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9412 "\n"
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
9417 msgid ""
9418 "This function returns an icon corresponding to the inspected operating "
9419 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9420 "to PNG if necessary)."
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
9425 msgid ""
9426 "If it was not possible to get an icon this function returns a zero-length "
9427 "(non-NULL) buffer.  I<Callers must check for this case>."
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
9432 msgid ""
9433 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9434 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9435 "this file will be returned.  You can disable favicons by passing the "
9436 "optional C<favicon> boolean as false (default is true)."
9437 msgstr ""
9438
9439 #. type: textblock
9440 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
9441 msgid ""
9442 "If finding the favicon fails, then we look in other places in the guest for "
9443 "a suitable icon."
9444 msgstr ""
9445
9446 #. type: textblock
9447 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
9448 msgid ""
9449 "If the optional C<highquality> boolean is true then only high quality icons "
9450 "are returned, which means only icons of high resolution with an alpha "
9451 "channel.  The default (false) is to return any icon we can, even if it is of "
9452 "substandard quality."
9453 msgstr ""
9454
9455 #. type: textblock
9456 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
9457 msgid ""
9458 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9459 "before you call this, since it needs to read information from the guest "
9460 "filesystem during the call."
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
9465 msgid ""
9466 "B<Security:> The icon data comes from the untrusted guest, and should be "
9467 "treated with caution.  PNG files have been known to contain exploits.  "
9468 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9469 "trying to process or display the icon."
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
9474 msgid ""
9475 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9476 "tries to return the largest, highest quality icon available.  The "
9477 "application must scale the icon to the required size."
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
9482 msgid ""
9483 "Extracting icons from Windows guests requires the external C<wrestool> "
9484 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9485 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9486 "installed separately."
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
9491 msgid ""
9492 "Operating system icons are usually trademarks.  Seek legal advice before "
9493 "using trademarks in applications."
9494 msgstr ""
9495
9496 #. type: =head2
9497 #: ../fish/guestfish-actions.pod:2055
9498 msgid "inspect-get-major-version"
9499 msgstr ""
9500
9501 #. type: verbatim
9502 #: ../fish/guestfish-actions.pod:2057
9503 #, no-wrap
9504 msgid ""
9505 " inspect-get-major-version root\n"
9506 "\n"
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
9511 msgid "This returns the major version number of the inspected operating system."
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
9516 msgid ""
9517 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9518 "popular public names used by the operating system.  Notably the operating "
9519 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9520 "1).  You can find out the real versions corresponding to releases of Windows "
9521 "by consulting Wikipedia or MSDN."
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
9526 msgid "If the version could not be determined, then C<0> is returned."
9527 msgstr ""
9528
9529 #. type: =head2
9530 #: ../fish/guestfish-actions.pod:2073
9531 msgid "inspect-get-minor-version"
9532 msgstr ""
9533
9534 #. type: verbatim
9535 #: ../fish/guestfish-actions.pod:2075
9536 #, no-wrap
9537 msgid ""
9538 " inspect-get-minor-version root\n"
9539 "\n"
9540 msgstr ""
9541
9542 #. type: textblock
9543 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
9544 msgid "This returns the minor version number of the inspected operating system."
9545 msgstr ""
9546
9547 #. type: textblock
9548 #: ../fish/guestfish-actions.pod:2082
9549 msgid ""
9550 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9551 "L</inspect-get-major-version>."
9552 msgstr ""
9553
9554 #. type: =head2
9555 #: ../fish/guestfish-actions.pod:2085
9556 msgid "inspect-get-mountpoints"
9557 msgstr ""
9558
9559 #. type: verbatim
9560 #: ../fish/guestfish-actions.pod:2087
9561 #, no-wrap
9562 msgid ""
9563 " inspect-get-mountpoints root\n"
9564 "\n"
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
9569 msgid ""
9570 "This returns a hash of where we think the filesystems associated with this "
9571 "operating system should be mounted.  Callers should note that this is at "
9572 "best an educated guess made by reading configuration files such as "
9573 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9574 "are non-existent or not mountable and callers should be prepared to handle "
9575 "or ignore failures if they try to mount them."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
9580 msgid ""
9581 "Each element in the returned hashtable has a key which is the path of the "
9582 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9583 "mounted there (eg. C</dev/sda1>)."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
9588 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2106
9593 msgid ""
9594 "For operating systems like Windows which still use drive letters, this call "
9595 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9596 "information about the mapping of drive letters to partitions, see "
9597 "L</inspect-get-drive-mappings>."
9598 msgstr ""
9599
9600 #. type: textblock
9601 #: ../fish/guestfish-actions.pod:2112
9602 msgid ""
9603 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9604 "L</inspect-get-filesystems>."
9605 msgstr ""
9606
9607 #. type: =head2
9608 #: ../fish/guestfish-actions.pod:2115
9609 msgid "inspect-get-package-format"
9610 msgstr ""
9611
9612 #. type: verbatim
9613 #: ../fish/guestfish-actions.pod:2117
9614 #, no-wrap
9615 msgid ""
9616 " inspect-get-package-format root\n"
9617 "\n"
9618 msgstr ""
9619
9620 #. type: textblock
9621 #: ../fish/guestfish-actions.pod:2119
9622 msgid ""
9623 "This function and L</inspect-get-package-management> return the package "
9624 "format and package management tool used by the inspected operating system.  "
9625 "For example for Fedora these functions would return C<rpm> (package format) "
9626 "and C<yum> (package management)."
9627 msgstr ""
9628
9629 #. type: textblock
9630 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
9631 msgid ""
9632 "This returns the string C<unknown> if we could not determine the package "
9633 "format I<or> if the operating system does not have a real packaging system "
9634 "(eg. Windows)."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
9639 msgid ""
9640 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
9641 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
9642 msgstr ""
9643
9644 #. type: =head2
9645 #: ../fish/guestfish-actions.pod:2135
9646 msgid "inspect-get-package-management"
9647 msgstr ""
9648
9649 #. type: verbatim
9650 #: ../fish/guestfish-actions.pod:2137
9651 #, no-wrap
9652 msgid ""
9653 " inspect-get-package-management root\n"
9654 "\n"
9655 msgstr ""
9656
9657 #. type: textblock
9658 #: ../fish/guestfish-actions.pod:2139
9659 msgid ""
9660 "L</inspect-get-package-format> and this function return the package format "
9661 "and package management tool used by the inspected operating system.  For "
9662 "example for Fedora these functions would return C<rpm> (package format) and "
9663 "C<yum> (package management)."
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
9668 msgid ""
9669 "This returns the string C<unknown> if we could not determine the package "
9670 "management tool I<or> if the operating system does not have a real packaging "
9671 "system (eg. Windows)."
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
9676 msgid ""
9677 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9678 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
9679 "versions of libguestfs may return other strings."
9680 msgstr ""
9681
9682 #. type: =head2
9683 #: ../fish/guestfish-actions.pod:2156
9684 msgid "inspect-get-product-name"
9685 msgstr ""
9686
9687 #. type: verbatim
9688 #: ../fish/guestfish-actions.pod:2158
9689 #, no-wrap
9690 msgid ""
9691 " inspect-get-product-name root\n"
9692 "\n"
9693 msgstr ""
9694
9695 #. type: textblock
9696 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9697 msgid ""
9698 "This returns the product name of the inspected operating system.  The "
9699 "product name is generally some freeform string which can be displayed to the "
9700 "user, but should not be parsed by programs."
9701 msgstr ""
9702
9703 #. type: textblock
9704 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
9705 msgid ""
9706 "If the product name could not be determined, then the string C<unknown> is "
9707 "returned."
9708 msgstr ""
9709
9710 #. type: =head2
9711 #: ../fish/guestfish-actions.pod:2170
9712 msgid "inspect-get-product-variant"
9713 msgstr ""
9714
9715 #. type: verbatim
9716 #: ../fish/guestfish-actions.pod:2172
9717 #, no-wrap
9718 msgid ""
9719 " inspect-get-product-variant root\n"
9720 "\n"
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
9725 msgid "This returns the product variant of the inspected operating system."
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
9730 msgid ""
9731 "For Windows guests, this returns the contents of the Registry key "
9732 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9733 "which is usually a string such as C<Client> or C<Server> (other values are "
9734 "possible).  This can be used to distinguish consumer and enterprise versions "
9735 "of Windows that have the same version number (for example, Windows 7 and "
9736 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9737 "the latter is C<Server>)."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
9742 msgid ""
9743 "For enterprise Linux guests, in future we intend this to return the product "
9744 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9745 "implemented at present."
9746 msgstr ""
9747
9748 #. type: textblock
9749 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
9750 msgid ""
9751 "If the product variant could not be determined, then the string C<unknown> "
9752 "is returned."
9753 msgstr ""
9754
9755 #. type: textblock
9756 #: ../fish/guestfish-actions.pod:2193
9757 msgid ""
9758 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9759 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9760 msgstr ""
9761
9762 #. type: =head2
9763 #: ../fish/guestfish-actions.pod:2197
9764 msgid "inspect-get-roots"
9765 msgstr ""
9766
9767 #. type: verbatim
9768 #: ../fish/guestfish-actions.pod:2199
9769 #, no-wrap
9770 msgid ""
9771 " inspect-get-roots\n"
9772 "\n"
9773 msgstr ""
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:2201
9777 msgid ""
9778 "This function is a convenient way to get the list of root devices, as "
9779 "returned from a previous call to L</inspect-os>, but without redoing the "
9780 "whole inspection process."
9781 msgstr ""
9782
9783 #. type: textblock
9784 #: ../fish/guestfish-actions.pod:2205
9785 msgid ""
9786 "This returns an empty list if either no root devices were found or the "
9787 "caller has not called L</inspect-os>."
9788 msgstr ""
9789
9790 #. type: =head2
9791 #: ../fish/guestfish-actions.pod:2210
9792 msgid "inspect-get-type"
9793 msgstr ""
9794
9795 #. type: verbatim
9796 #: ../fish/guestfish-actions.pod:2212
9797 #, no-wrap
9798 msgid ""
9799 " inspect-get-type root\n"
9800 "\n"
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
9805 msgid ""
9806 "This returns the type of the inspected operating system.  Currently defined "
9807 "types are:"
9808 msgstr ""
9809
9810 #. type: =item
9811 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
9812 msgid "\"linux\""
9813 msgstr ""
9814
9815 #. type: textblock
9816 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
9817 msgid "Any Linux-based operating system."
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
9822 msgid "Any Microsoft Windows operating system."
9823 msgstr ""
9824
9825 #. type: =item
9826 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
9827 msgid "\"freebsd\""
9828 msgstr ""
9829
9830 #. type: textblock
9831 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
9832 msgid "FreeBSD."
9833 msgstr ""
9834
9835 #. type: =item
9836 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
9837 msgid "\"netbsd\""
9838 msgstr ""
9839
9840 #. type: textblock
9841 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
9842 msgid "NetBSD."
9843 msgstr ""
9844
9845 #. type: textblock
9846 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
9847 msgid "The operating system type could not be determined."
9848 msgstr ""
9849
9850 #. type: =head2
9851 #: ../fish/guestfish-actions.pod:2246
9852 msgid "inspect-get-windows-current-control-set"
9853 msgstr ""
9854
9855 #. type: verbatim
9856 #: ../fish/guestfish-actions.pod:2248
9857 #, no-wrap
9858 msgid ""
9859 " inspect-get-windows-current-control-set root\n"
9860 "\n"
9861 msgstr ""
9862
9863 #. type: textblock
9864 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
9865 msgid ""
9866 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9867 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9868 msgstr ""
9869
9870 #. type: textblock
9871 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
9872 msgid ""
9873 "This call assumes that the guest is Windows and that the Registry could be "
9874 "examined by inspection.  If this is not the case then an error is returned."
9875 msgstr ""
9876
9877 #. type: =head2
9878 #: ../fish/guestfish-actions.pod:2259
9879 msgid "inspect-get-windows-systemroot"
9880 msgstr ""
9881
9882 #. type: verbatim
9883 #: ../fish/guestfish-actions.pod:2261
9884 #, no-wrap
9885 msgid ""
9886 " inspect-get-windows-systemroot root\n"
9887 "\n"
9888 msgstr ""
9889
9890 #. type: textblock
9891 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
9892 msgid ""
9893 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9894 "is a directory path such as C</WINDOWS>."
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
9899 msgid ""
9900 "This call assumes that the guest is Windows and that the systemroot could be "
9901 "determined by inspection.  If this is not the case then an error is "
9902 "returned."
9903 msgstr ""
9904
9905 #. type: =head2
9906 #: ../fish/guestfish-actions.pod:2272
9907 msgid "inspect-is-live"
9908 msgstr ""
9909
9910 #. type: verbatim
9911 #: ../fish/guestfish-actions.pod:2274
9912 #, no-wrap
9913 msgid ""
9914 " inspect-is-live root\n"
9915 "\n"
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../fish/guestfish-actions.pod:2276
9920 msgid ""
9921 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9922 "then this returns true if a live image was detected on the disk."
9923 msgstr ""
9924
9925 #. type: =head2
9926 #: ../fish/guestfish-actions.pod:2282
9927 msgid "inspect-is-multipart"
9928 msgstr ""
9929
9930 #. type: verbatim
9931 #: ../fish/guestfish-actions.pod:2284
9932 #, no-wrap
9933 msgid ""
9934 " inspect-is-multipart root\n"
9935 "\n"
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:2286
9940 msgid ""
9941 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9942 "then this returns true if the disk is part of a set."
9943 msgstr ""
9944
9945 #. type: =head2
9946 #: ../fish/guestfish-actions.pod:2292
9947 msgid "inspect-is-netinst"
9948 msgstr ""
9949
9950 #. type: verbatim
9951 #: ../fish/guestfish-actions.pod:2294
9952 #, no-wrap
9953 msgid ""
9954 " inspect-is-netinst root\n"
9955 "\n"
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:2296
9960 msgid ""
9961 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9962 "then this returns true if the disk is a network installer, ie. not a "
9963 "self-contained install CD but one which is likely to require network access "
9964 "to complete the install."
9965 msgstr ""
9966
9967 #. type: =head2
9968 #: ../fish/guestfish-actions.pod:2304
9969 msgid "inspect-list-applications"
9970 msgstr ""
9971
9972 #. type: verbatim
9973 #: ../fish/guestfish-actions.pod:2306
9974 #, no-wrap
9975 msgid ""
9976 " inspect-list-applications root\n"
9977 "\n"
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
9982 msgid "Return the list of applications installed in the operating system."
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:2310
9987 msgid ""
9988 "I<Note:> This call works differently from other parts of the inspection "
9989 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9990 "then mount up the disks, before calling this.  Listing applications is a "
9991 "significantly more difficult operation which requires access to the full "
9992 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9993 "are just returning data cached in the libguestfs handle, this call actually "
9994 "reads parts of the mounted filesystems during the call."
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
9999 msgid ""
10000 "This returns an empty list if the inspection code was not able to determine "
10001 "the list of applications."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10006 msgid "The application structure contains the following fields:"
10007 msgstr ""
10008
10009 #. type: =item
10010 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10011 msgid "C<app_name>"
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10016 msgid ""
10017 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10018 "guests, this is the package name."
10019 msgstr ""
10020
10021 #. type: =item
10022 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10023 msgid "C<app_display_name>"
10024 msgstr ""
10025
10026 #. type: textblock
10027 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10028 msgid ""
10029 "The display name of the application, sometimes localized to the install "
10030 "language of the guest operating system."
10031 msgstr ""
10032
10033 #. type: textblock
10034 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10035 msgid ""
10036 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10037 "to display something can use C<app_name> instead."
10038 msgstr ""
10039
10040 #. type: =item
10041 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10042 msgid "C<app_epoch>"
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10047 msgid ""
10048 "For package managers which use epochs, this contains the epoch of the "
10049 "package (an integer).  If unavailable, this is returned as C<0>."
10050 msgstr ""
10051
10052 #. type: =item
10053 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10054 msgid "C<app_version>"
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10059 msgid ""
10060 "The version string of the application or package.  If unavailable this is "
10061 "returned as an empty string C<\"\">."
10062 msgstr ""
10063
10064 #. type: =item
10065 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10066 msgid "C<app_release>"
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10071 msgid ""
10072 "The release string of the application or package, for package managers that "
10073 "use this.  If unavailable this is returned as an empty string C<\"\">."
10074 msgstr ""
10075
10076 #. type: =item
10077 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10078 msgid "C<app_install_path>"
10079 msgstr ""
10080
10081 #. type: textblock
10082 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10083 msgid ""
10084 "The installation path of the application (on operating systems such as "
10085 "Windows which use installation paths).  This path is in the format used by "
10086 "the guest operating system, it is not a libguestfs path."
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10091 msgid "If unavailable this is returned as an empty string C<\"\">."
10092 msgstr ""
10093
10094 #. type: =item
10095 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10096 msgid "C<app_trans_path>"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10101 msgid ""
10102 "The install path translated into a libguestfs path.  If unavailable this is "
10103 "returned as an empty string C<\"\">."
10104 msgstr ""
10105
10106 #. type: =item
10107 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10108 msgid "C<app_publisher>"
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
10113 msgid ""
10114 "The name of the publisher of the application, for package managers that use "
10115 "this.  If unavailable this is returned as an empty string C<\"\">."
10116 msgstr ""
10117
10118 #. type: =item
10119 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
10120 msgid "C<app_url>"
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
10125 msgid ""
10126 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10127 "returned as an empty string C<\"\">."
10128 msgstr ""
10129
10130 #. type: =item
10131 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
10132 msgid "C<app_source_package>"
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
10137 msgid ""
10138 "For packaging systems which support this, the name of the source package.  "
10139 "If unavailable this is returned as an empty string C<\"\">."
10140 msgstr ""
10141
10142 #. type: =item
10143 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
10144 msgid "C<app_summary>"
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
10149 msgid ""
10150 "A short (usually one line) description of the application or package.  If "
10151 "unavailable this is returned as an empty string C<\"\">."
10152 msgstr ""
10153
10154 #. type: =item
10155 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
10156 msgid "C<app_description>"
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
10161 msgid ""
10162 "A longer description of the application or package.  If unavailable this is "
10163 "returned as an empty string C<\"\">."
10164 msgstr ""
10165
10166 #. type: =head2
10167 #: ../fish/guestfish-actions.pod:2400
10168 msgid "inspect-os"
10169 msgstr ""
10170
10171 #. type: verbatim
10172 #: ../fish/guestfish-actions.pod:2402
10173 #, no-wrap
10174 msgid ""
10175 " inspect-os\n"
10176 "\n"
10177 msgstr ""
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
10181 msgid ""
10182 "This function uses other libguestfs functions and certain heuristics to "
10183 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10184 "for operating systems."
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
10189 msgid "The list returned is empty if no operating systems were found."
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
10194 msgid ""
10195 "If one operating system was found, then this returns a list with a single "
10196 "element, which is the name of the root filesystem of this operating system.  "
10197 "It is also possible for this function to return a list containing more than "
10198 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10199 "element being the root filesystem of one of the operating systems."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2417
10204 msgid ""
10205 "You can pass the root string(s) returned to other L</inspect-get-*> "
10206 "functions in order to query further information about each operating system, "
10207 "such as the name and version."
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2422
10212 msgid ""
10213 "This function uses other libguestfs features such as L</mount-ro> and "
10214 "L</umount-all> in order to mount and unmount filesystems and look at the "
10215 "contents.  This should be called with no disks currently mounted.  The "
10216 "function may also use Augeas, so any existing Augeas handle will be closed."
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
10221 msgid ""
10222 "This function cannot decrypt encrypted disks.  The caller must do that first "
10223 "(supplying the necessary keys) if the disk is encrypted."
10224 msgstr ""
10225
10226 #. type: textblock
10227 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632 ../fish/guestfish-actions.pod:2691
10228 msgid "See also L</list-filesystems>."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:2436
10233 msgid "is-blockdev"
10234 msgstr ""
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:2438
10238 #, no-wrap
10239 msgid ""
10240 " is-blockdev path\n"
10241 "\n"
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
10246 msgid ""
10247 "This returns C<true> if and only if there is a block device with the given "
10248 "C<path> name."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461 ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489 ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533 ../fish/guestfish-actions.pod:2542
10253 msgid "See also L</stat>."
10254 msgstr ""
10255
10256 #. type: =head2
10257 #: ../fish/guestfish-actions.pod:2445
10258 msgid "is-busy"
10259 msgstr ""
10260
10261 #. type: verbatim
10262 #: ../fish/guestfish-actions.pod:2447
10263 #, no-wrap
10264 msgid ""
10265 " is-busy\n"
10266 "\n"
10267 msgstr ""
10268
10269 #. type: textblock
10270 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
10271 msgid ""
10272 "This returns true iff this handle is busy processing a command (in the "
10273 "C<BUSY> state)."
10274 msgstr ""
10275
10276 #. type: =head2
10277 #: ../fish/guestfish-actions.pod:2454
10278 msgid "is-chardev"
10279 msgstr ""
10280
10281 #. type: verbatim
10282 #: ../fish/guestfish-actions.pod:2456
10283 #, no-wrap
10284 msgid ""
10285 " is-chardev path\n"
10286 "\n"
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
10291 msgid ""
10292 "This returns C<true> if and only if there is a character device with the "
10293 "given C<path> name."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../fish/guestfish-actions.pod:2463
10298 msgid "is-config"
10299 msgstr ""
10300
10301 #. type: verbatim
10302 #: ../fish/guestfish-actions.pod:2465
10303 #, no-wrap
10304 msgid ""
10305 " is-config\n"
10306 "\n"
10307 msgstr ""
10308
10309 #. type: textblock
10310 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
10311 msgid ""
10312 "This returns true iff this handle is being configured (in the C<CONFIG> "
10313 "state)."
10314 msgstr ""
10315
10316 #. type: =head2
10317 #: ../fish/guestfish-actions.pod:2472
10318 msgid "is-dir"
10319 msgstr ""
10320
10321 #. type: verbatim
10322 #: ../fish/guestfish-actions.pod:2474
10323 #, no-wrap
10324 msgid ""
10325 " is-dir path\n"
10326 "\n"
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
10331 msgid ""
10332 "This returns C<true> if and only if there is a directory with the given "
10333 "C<path> name.  Note that it returns false for other objects like files."
10334 msgstr ""
10335
10336 #. type: =head2
10337 #: ../fish/guestfish-actions.pod:2482
10338 msgid "is-fifo"
10339 msgstr ""
10340
10341 #. type: verbatim
10342 #: ../fish/guestfish-actions.pod:2484
10343 #, no-wrap
10344 msgid ""
10345 " is-fifo path\n"
10346 "\n"
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
10351 msgid ""
10352 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10353 "given C<path> name."
10354 msgstr ""
10355
10356 #. type: =head2
10357 #: ../fish/guestfish-actions.pod:2491
10358 msgid "is-file"
10359 msgstr ""
10360
10361 #. type: verbatim
10362 #: ../fish/guestfish-actions.pod:2493
10363 #, no-wrap
10364 msgid ""
10365 " is-file path\n"
10366 "\n"
10367 msgstr ""
10368
10369 #. type: textblock
10370 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
10371 msgid ""
10372 "This returns C<true> if and only if there is a regular file with the given "
10373 "C<path> name.  Note that it returns false for other objects like "
10374 "directories."
10375 msgstr ""
10376
10377 #. type: =head2
10378 #: ../fish/guestfish-actions.pod:2501
10379 msgid "is-launching"
10380 msgstr ""
10381
10382 #. type: verbatim
10383 #: ../fish/guestfish-actions.pod:2503
10384 #, no-wrap
10385 msgid ""
10386 " is-launching\n"
10387 "\n"
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
10392 msgid ""
10393 "This returns true iff this handle is launching the subprocess (in the "
10394 "C<LAUNCHING> state)."
10395 msgstr ""
10396
10397 #. type: =head2
10398 #: ../fish/guestfish-actions.pod:2510
10399 msgid "is-lv"
10400 msgstr ""
10401
10402 #. type: verbatim
10403 #: ../fish/guestfish-actions.pod:2512
10404 #, no-wrap
10405 msgid ""
10406 " is-lv device\n"
10407 "\n"
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
10412 msgid ""
10413 "This command tests whether C<device> is a logical volume, and returns true "
10414 "iff this is the case."
10415 msgstr ""
10416
10417 #. type: =head2
10418 #: ../fish/guestfish-actions.pod:2517
10419 msgid "is-ready"
10420 msgstr ""
10421
10422 #. type: verbatim
10423 #: ../fish/guestfish-actions.pod:2519
10424 #, no-wrap
10425 msgid ""
10426 " is-ready\n"
10427 "\n"
10428 msgstr ""
10429
10430 #. type: textblock
10431 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
10432 msgid ""
10433 "This returns true iff this handle is ready to accept commands (in the "
10434 "C<READY> state)."
10435 msgstr ""
10436
10437 #. type: =head2
10438 #: ../fish/guestfish-actions.pod:2526
10439 msgid "is-socket"
10440 msgstr ""
10441
10442 #. type: verbatim
10443 #: ../fish/guestfish-actions.pod:2528
10444 #, no-wrap
10445 msgid ""
10446 " is-socket path\n"
10447 "\n"
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
10452 msgid ""
10453 "This returns C<true> if and only if there is a Unix domain socket with the "
10454 "given C<path> name."
10455 msgstr ""
10456
10457 #. type: =head2
10458 #: ../fish/guestfish-actions.pod:2535
10459 msgid "is-symlink"
10460 msgstr ""
10461
10462 #. type: verbatim
10463 #: ../fish/guestfish-actions.pod:2537
10464 #, no-wrap
10465 msgid ""
10466 " is-symlink path\n"
10467 "\n"
10468 msgstr ""
10469
10470 #. type: textblock
10471 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
10472 msgid ""
10473 "This returns C<true> if and only if there is a symbolic link with the given "
10474 "C<path> name."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:2544
10479 msgid "is-zero"
10480 msgstr ""
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:2546
10484 #, no-wrap
10485 msgid ""
10486 " is-zero path\n"
10487 "\n"
10488 msgstr ""
10489
10490 #. type: textblock
10491 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
10492 msgid ""
10493 "This returns true iff the file exists and the file is empty or it contains "
10494 "all zero bytes."
10495 msgstr ""
10496
10497 #. type: =head2
10498 #: ../fish/guestfish-actions.pod:2551
10499 msgid "is-zero-device"
10500 msgstr ""
10501
10502 #. type: verbatim
10503 #: ../fish/guestfish-actions.pod:2553
10504 #, no-wrap
10505 msgid ""
10506 " is-zero-device device\n"
10507 "\n"
10508 msgstr ""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
10512 msgid "This returns true iff the device exists and contains all zero bytes."
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
10517 msgid "Note that for large devices this can take a long time to run."
10518 msgstr ""
10519
10520 #. type: =head2
10521 #: ../fish/guestfish-actions.pod:2559
10522 msgid "kill-subprocess"
10523 msgstr ""
10524
10525 #. type: verbatim
10526 #: ../fish/guestfish-actions.pod:2561
10527 #, no-wrap
10528 msgid ""
10529 " kill-subprocess\n"
10530 "\n"
10531 msgstr ""
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
10535 msgid "This kills the qemu subprocess.  You should never need to call this."
10536 msgstr ""
10537
10538 #. type: =head2
10539 #: ../fish/guestfish-actions.pod:2565
10540 msgid "launch"
10541 msgstr ""
10542
10543 #. type: =head2
10544 #: ../fish/guestfish-actions.pod:2567
10545 msgid "run"
10546 msgstr ""
10547
10548 #. type: verbatim
10549 #: ../fish/guestfish-actions.pod:2569
10550 #, no-wrap
10551 msgid ""
10552 " launch\n"
10553 "\n"
10554 msgstr ""
10555
10556 #. type: textblock
10557 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
10558 msgid ""
10559 "Internally libguestfs is implemented by running a virtual machine using "
10560 "L<qemu(1)>."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
10565 msgid ""
10566 "You should call this after configuring the handle (eg. adding drives) but "
10567 "before performing any actions."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2577
10572 msgid "lchown"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2579
10577 #, no-wrap
10578 msgid ""
10579 " lchown owner group path\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2581
10585 msgid ""
10586 "Change the file owner to C<owner> and group to C<group>.  This is like "
10587 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10588 "the target."
10589 msgstr ""
10590
10591 #. type: =head2
10592 #: ../fish/guestfish-actions.pod:2589
10593 msgid "lgetxattr"
10594 msgstr ""
10595
10596 #. type: verbatim
10597 #: ../fish/guestfish-actions.pod:2591
10598 #, no-wrap
10599 msgid ""
10600 " lgetxattr path name\n"
10601 "\n"
10602 msgstr ""
10603
10604 #. type: textblock
10605 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
10606 msgid ""
10607 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10608 "is a symlink, then this call returns an extended attribute from the symlink."
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2607
10613 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10614 msgstr ""
10615
10616 #. type: =head2
10617 #: ../fish/guestfish-actions.pod:2609
10618 msgid "lgetxattrs"
10619 msgstr ""
10620
10621 #. type: verbatim
10622 #: ../fish/guestfish-actions.pod:2611
10623 #, no-wrap
10624 msgid ""
10625 " lgetxattrs path\n"
10626 "\n"
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2613
10631 msgid ""
10632 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10633 "it returns the extended attributes of the link itself."
10634 msgstr ""
10635
10636 #. type: =head2
10637 #: ../fish/guestfish-actions.pod:2617
10638 msgid "list-9p"
10639 msgstr ""
10640
10641 #. type: verbatim
10642 #: ../fish/guestfish-actions.pod:2619
10643 #, no-wrap
10644 msgid ""
10645 " list-9p\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
10651 msgid ""
10652 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10653 "returned."
10654 msgstr ""
10655
10656 #. type: =head2
10657 #: ../fish/guestfish-actions.pod:2624
10658 msgid "list-devices"
10659 msgstr ""
10660
10661 #. type: verbatim
10662 #: ../fish/guestfish-actions.pod:2626
10663 #, no-wrap
10664 msgid ""
10665 " list-devices\n"
10666 "\n"
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
10671 msgid "List all the block devices."
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
10676 msgid "The full block device names are returned, eg. C</dev/sda>."
10677 msgstr ""
10678
10679 #. type: =head2
10680 #: ../fish/guestfish-actions.pod:2634
10681 msgid "list-dm-devices"
10682 msgstr ""
10683
10684 #. type: verbatim
10685 #: ../fish/guestfish-actions.pod:2636
10686 #, no-wrap
10687 msgid ""
10688 " list-dm-devices\n"
10689 "\n"
10690 msgstr ""
10691
10692 #. type: textblock
10693 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
10694 msgid "List all device mapper devices."
10695 msgstr ""
10696
10697 #. type: textblock
10698 #: ../fish/guestfish-actions.pod:2640
10699 msgid ""
10700 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10701 "previous call to L</luks-open>."
10702 msgstr ""
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:2643
10706 msgid ""
10707 "Device mapper devices which correspond to logical volumes are I<not> "
10708 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10709 msgstr ""
10710
10711 #. type: =head2
10712 #: ../fish/guestfish-actions.pod:2647
10713 msgid "list-filesystems"
10714 msgstr ""
10715
10716 #. type: verbatim
10717 #: ../fish/guestfish-actions.pod:2649
10718 #, no-wrap
10719 msgid ""
10720 " list-filesystems\n"
10721 "\n"
10722 msgstr ""
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
10726 msgid ""
10727 "This inspection command looks for filesystems on partitions, block devices "
10728 "and logical volumes, returning a list of devices containing filesystems and "
10729 "their type."
10730 msgstr ""
10731
10732 #. type: textblock
10733 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
10734 msgid ""
10735 "The return value is a hash, where the keys are the devices containing "
10736 "filesystems, and the values are the filesystem types.  For example:"
10737 msgstr ""
10738
10739 #. type: verbatim
10740 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
10741 #, no-wrap
10742 msgid ""
10743 " \"/dev/sda1\" => \"ntfs\"\n"
10744 " \"/dev/sda2\" => \"ext2\"\n"
10745 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10746 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10747 "\n"
10748 msgstr ""
10749
10750 #. type: textblock
10751 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
10752 msgid ""
10753 "The value can have the special value \"unknown\", meaning the content of the "
10754 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10755 msgstr ""
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:2668
10759 msgid ""
10760 "This command runs other libguestfs commands, which might include L</mount> "
10761 "and L</umount>, and therefore you should use this soon after launch and only "
10762 "when nothing is mounted."
10763 msgstr ""
10764
10765 #. type: textblock
10766 #: ../fish/guestfish-actions.pod:2672
10767 msgid ""
10768 "Not all of the filesystems returned will be mountable.  In particular, swap "
10769 "partitions are returned in the list.  Also this command does not check that "
10770 "each filesystem found is valid and mountable, and some filesystems might be "
10771 "mountable but require special options.  Filesystems may not all belong to a "
10772 "single logical operating system (use L</inspect-os> to look for OSes)."
10773 msgstr ""
10774
10775 #. type: =head2
10776 #: ../fish/guestfish-actions.pod:2680
10777 msgid "list-partitions"
10778 msgstr ""
10779
10780 #. type: verbatim
10781 #: ../fish/guestfish-actions.pod:2682
10782 #, no-wrap
10783 msgid ""
10784 " list-partitions\n"
10785 "\n"
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
10790 msgid "List all the partitions detected on all block devices."
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
10795 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10796 msgstr ""
10797
10798 #. type: textblock
10799 #: ../fish/guestfish-actions.pod:2688
10800 msgid ""
10801 "This does not return logical volumes.  For that you will need to call "
10802 "L</lvs>."
10803 msgstr ""
10804
10805 #. type: =head2
10806 #: ../fish/guestfish-actions.pod:2693
10807 msgid "ll"
10808 msgstr ""
10809
10810 #. type: verbatim
10811 #: ../fish/guestfish-actions.pod:2695
10812 #, no-wrap
10813 msgid ""
10814 " ll directory\n"
10815 "\n"
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
10820 msgid ""
10821 "List the files in C<directory> (relative to the root directory, there is no "
10822 "cwd) in the format of 'ls -la'."
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
10827 msgid ""
10828 "This command is mostly useful for interactive sessions.  It is I<not> "
10829 "intended that you try to parse the output string."
10830 msgstr ""
10831
10832 #. type: =head2
10833 #: ../fish/guestfish-actions.pod:2703
10834 msgid "ln"
10835 msgstr ""
10836
10837 #. type: verbatim
10838 #: ../fish/guestfish-actions.pod:2705
10839 #, no-wrap
10840 msgid ""
10841 " ln target linkname\n"
10842 "\n"
10843 msgstr ""
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
10847 msgid "This command creates a hard link using the C<ln> command."
10848 msgstr ""
10849
10850 #. type: =head2
10851 #: ../fish/guestfish-actions.pod:2709
10852 msgid "ln-f"
10853 msgstr ""
10854
10855 #. type: verbatim
10856 #: ../fish/guestfish-actions.pod:2711
10857 #, no-wrap
10858 msgid ""
10859 " ln-f target linkname\n"
10860 "\n"
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
10865 msgid ""
10866 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10867 "option removes the link (C<linkname>) if it exists already."
10868 msgstr ""
10869
10870 #. type: =head2
10871 #: ../fish/guestfish-actions.pod:2716
10872 msgid "ln-s"
10873 msgstr ""
10874
10875 #. type: verbatim
10876 #: ../fish/guestfish-actions.pod:2718
10877 #, no-wrap
10878 msgid ""
10879 " ln-s target linkname\n"
10880 "\n"
10881 msgstr ""
10882
10883 #. type: textblock
10884 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
10885 msgid "This command creates a symbolic link using the C<ln -s> command."
10886 msgstr ""
10887
10888 #. type: =head2
10889 #: ../fish/guestfish-actions.pod:2722
10890 msgid "ln-sf"
10891 msgstr ""
10892
10893 #. type: verbatim
10894 #: ../fish/guestfish-actions.pod:2724
10895 #, no-wrap
10896 msgid ""
10897 " ln-sf target linkname\n"
10898 "\n"
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
10903 msgid ""
10904 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10905 "option removes the link (C<linkname>) if it exists already."
10906 msgstr ""
10907
10908 #. type: =head2
10909 #: ../fish/guestfish-actions.pod:2729
10910 msgid "lremovexattr"
10911 msgstr ""
10912
10913 #. type: verbatim
10914 #: ../fish/guestfish-actions.pod:2731
10915 #, no-wrap
10916 msgid ""
10917 " lremovexattr xattr path\n"
10918 "\n"
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:2733
10923 msgid ""
10924 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10925 "it removes an extended attribute of the link itself."
10926 msgstr ""
10927
10928 #. type: =head2
10929 #: ../fish/guestfish-actions.pod:2737
10930 msgid "ls"
10931 msgstr ""
10932
10933 #. type: verbatim
10934 #: ../fish/guestfish-actions.pod:2739
10935 #, no-wrap
10936 msgid ""
10937 " ls directory\n"
10938 "\n"
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
10943 msgid ""
10944 "List the files in C<directory> (relative to the root directory, there is no "
10945 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10946 "shown."
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2745
10951 msgid ""
10952 "This command is mostly useful for interactive sessions.  Programs should "
10953 "probably use L</readdir> instead."
10954 msgstr ""
10955
10956 #. type: =head2
10957 #: ../fish/guestfish-actions.pod:2748
10958 msgid "lsetxattr"
10959 msgstr ""
10960
10961 #. type: verbatim
10962 #: ../fish/guestfish-actions.pod:2750
10963 #, no-wrap
10964 msgid ""
10965 " lsetxattr xattr val vallen path\n"
10966 "\n"
10967 msgstr ""
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2752
10971 msgid ""
10972 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10973 "sets an extended attribute of the link itself."
10974 msgstr ""
10975
10976 #. type: =head2
10977 #: ../fish/guestfish-actions.pod:2756
10978 msgid "lstat"
10979 msgstr ""
10980
10981 #. type: verbatim
10982 #: ../fish/guestfish-actions.pod:2758
10983 #, no-wrap
10984 msgid ""
10985 " lstat path\n"
10986 "\n"
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
10991 msgid "Returns file information for the given C<path>."
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2762
10996 msgid ""
10997 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10998 "the link is stat-ed, not the file it refers to."
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11003 msgid "This is the same as the C<lstat(2)> system call."
11004 msgstr ""
11005
11006 #. type: =head2
11007 #: ../fish/guestfish-actions.pod:2768
11008 msgid "lstatlist"
11009 msgstr ""
11010
11011 #. type: verbatim
11012 #: ../fish/guestfish-actions.pod:2770
11013 #, no-wrap
11014 msgid ""
11015 " lstatlist path 'names ...'\n"
11016 "\n"
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../fish/guestfish-actions.pod:2772
11021 msgid ""
11022 "This call allows you to perform the L</lstat> operation on multiple files, "
11023 "where all files are in the directory C<path>.  C<names> is the list of files "
11024 "from this directory."
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11029 msgid ""
11030 "On return you get a list of stat structs, with a one-to-one correspondence "
11031 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11032 "then the C<ino> field of that structure is set to C<-1>."
11033 msgstr ""
11034
11035 #. type: textblock
11036 #: ../fish/guestfish-actions.pod:2781
11037 msgid ""
11038 "This call is intended for programs that want to efficiently list a directory "
11039 "contents without making many round-trips.  See also L</lxattrlist> for a "
11040 "similarly efficient call for getting extended attributes.  Very long "
11041 "directory listings might cause the protocol message size to be exceeded, "
11042 "causing this call to fail.  The caller must split up such requests into "
11043 "smaller groups of names."
11044 msgstr ""
11045
11046 #. type: =head2
11047 #: ../fish/guestfish-actions.pod:2789
11048 msgid "luks-add-key"
11049 msgstr ""
11050
11051 #. type: verbatim
11052 #: ../fish/guestfish-actions.pod:2791
11053 #, no-wrap
11054 msgid ""
11055 " luks-add-key device keyslot\n"
11056 "\n"
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
11061 msgid ""
11062 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11063 "existing key, and is used to access the device.  C<newkey> is the new key to "
11064 "add.  C<keyslot> is the key slot that will be replaced."
11065 msgstr ""
11066
11067 #. type: textblock
11068 #: ../fish/guestfish-actions.pod:2798
11069 msgid ""
11070 "Note that if C<keyslot> already contains a key, then this command will "
11071 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824 ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851 ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
11076 msgid ""
11077 "This command has one or more key or passphrase parameters.  Guestfish will "
11078 "prompt for these separately."
11079 msgstr ""
11080
11081 #. type: =head2
11082 #: ../fish/guestfish-actions.pod:2805
11083 msgid "luks-close"
11084 msgstr ""
11085
11086 #. type: verbatim
11087 #: ../fish/guestfish-actions.pod:2807
11088 #, no-wrap
11089 msgid ""
11090 " luks-close device\n"
11091 "\n"
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:2809
11096 msgid ""
11097 "This closes a LUKS device that was created earlier by L</luks-open> or "
11098 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11099 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11100 "underlying block device."
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../fish/guestfish-actions.pod:2815
11105 msgid "luks-format"
11106 msgstr ""
11107
11108 #. type: verbatim
11109 #: ../fish/guestfish-actions.pod:2817
11110 #, no-wrap
11111 msgid ""
11112 " luks-format device keyslot\n"
11113 "\n"
11114 msgstr ""
11115
11116 #. type: textblock
11117 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
11118 msgid ""
11119 "This command erases existing data on C<device> and formats the device as a "
11120 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11121 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11122 msgstr ""
11123
11124 #. type: textblock
11125 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840 ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578 ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441 ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486 ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225 ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
11126 msgid ""
11127 "B<This command is dangerous.  Without careful use you can easily destroy all "
11128 "your data>."
11129 msgstr ""
11130
11131 #. type: =head2
11132 #: ../fish/guestfish-actions.pod:2830
11133 msgid "luks-format-cipher"
11134 msgstr ""
11135
11136 #. type: verbatim
11137 #: ../fish/guestfish-actions.pod:2832
11138 #, no-wrap
11139 msgid ""
11140 " luks-format-cipher device keyslot cipher\n"
11141 "\n"
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2834
11146 msgid ""
11147 "This command is the same as L</luks-format> but it also allows you to set "
11148 "the C<cipher> used."
11149 msgstr ""
11150
11151 #. type: =head2
11152 #: ../fish/guestfish-actions.pod:2843
11153 msgid "luks-kill-slot"
11154 msgstr ""
11155
11156 #. type: verbatim
11157 #: ../fish/guestfish-actions.pod:2845
11158 #, no-wrap
11159 msgid ""
11160 " luks-kill-slot device keyslot\n"
11161 "\n"
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
11166 msgid ""
11167 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11168 "device C<device>.  C<key> must be one of the I<other> keys."
11169 msgstr ""
11170
11171 #. type: =head2
11172 #: ../fish/guestfish-actions.pod:2854
11173 msgid "luks-open"
11174 msgstr ""
11175
11176 #. type: verbatim
11177 #: ../fish/guestfish-actions.pod:2856
11178 #, no-wrap
11179 msgid ""
11180 " luks-open device mapname\n"
11181 "\n"
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
11186 msgid ""
11187 "This command opens a block device which has been encrypted according to the "
11188 "Linux Unified Key Setup (LUKS) standard."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
11193 msgid "C<device> is the encrypted block device or partition."
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
11198 msgid ""
11199 "The caller must supply one of the keys associated with the LUKS block "
11200 "device, in the C<key> parameter."
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
11205 msgid ""
11206 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11207 "writes to this block device are decrypted from and encrypted to the "
11208 "underlying C<device> respectively."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:2870
11213 msgid ""
11214 "If this block device contains LVM volume groups, then calling L</vgscan> "
11215 "followed by L</vg-activate-all> will make them visible."
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:2874
11220 msgid "Use L</list-dm-devices> to list all device mapper devices."
11221 msgstr ""
11222
11223 #. type: =head2
11224 #: ../fish/guestfish-actions.pod:2880
11225 msgid "luks-open-ro"
11226 msgstr ""
11227
11228 #. type: verbatim
11229 #: ../fish/guestfish-actions.pod:2882
11230 #, no-wrap
11231 msgid ""
11232 " luks-open-ro device mapname\n"
11233 "\n"
11234 msgstr ""
11235
11236 #. type: textblock
11237 #: ../fish/guestfish-actions.pod:2884
11238 msgid ""
11239 "This is the same as L</luks-open> except that a read-only mapping is "
11240 "created."
11241 msgstr ""
11242
11243 #. type: =head2
11244 #: ../fish/guestfish-actions.pod:2890
11245 msgid "lvcreate"
11246 msgstr ""
11247
11248 #. type: verbatim
11249 #: ../fish/guestfish-actions.pod:2892
11250 #, no-wrap
11251 msgid ""
11252 " lvcreate logvol volgroup mbytes\n"
11253 "\n"
11254 msgstr ""
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
11258 msgid ""
11259 "This creates an LVM logical volume called C<logvol> on the volume group "
11260 "C<volgroup>, with C<size> megabytes."
11261 msgstr ""
11262
11263 #. type: =head2
11264 #: ../fish/guestfish-actions.pod:2897
11265 msgid "lvm-canonical-lv-name"
11266 msgstr ""
11267
11268 #. type: verbatim
11269 #: ../fish/guestfish-actions.pod:2899
11270 #, no-wrap
11271 msgid ""
11272 " lvm-canonical-lv-name lvname\n"
11273 "\n"
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
11278 msgid ""
11279 "This converts alternative naming schemes for LVs that you might find to the "
11280 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11281 "C</dev/VG/LV>."
11282 msgstr ""
11283
11284 #. type: textblock
11285 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
11286 msgid ""
11287 "This command returns an error if the C<lvname> parameter does not refer to a "
11288 "logical volume."
11289 msgstr ""
11290
11291 #. type: textblock
11292 #: ../fish/guestfish-actions.pod:2908
11293 msgid "See also L</is-lv>."
11294 msgstr ""
11295
11296 #. type: =head2
11297 #: ../fish/guestfish-actions.pod:2910
11298 msgid "lvm-clear-filter"
11299 msgstr ""
11300
11301 #. type: verbatim
11302 #: ../fish/guestfish-actions.pod:2912
11303 #, no-wrap
11304 msgid ""
11305 " lvm-clear-filter\n"
11306 "\n"
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../fish/guestfish-actions.pod:2914
11311 msgid ""
11312 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11313 "block device."
11314 msgstr ""
11315
11316 #. type: textblock
11317 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
11318 msgid "This command also clears the LVM cache and performs a volume group scan."
11319 msgstr ""
11320
11321 #. type: =head2
11322 #: ../fish/guestfish-actions.pod:2920
11323 msgid "lvm-remove-all"
11324 msgstr ""
11325
11326 #. type: verbatim
11327 #: ../fish/guestfish-actions.pod:2922
11328 #, no-wrap
11329 msgid ""
11330 " lvm-remove-all\n"
11331 "\n"
11332 msgstr ""
11333
11334 #. type: textblock
11335 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
11336 msgid ""
11337 "This command removes all LVM logical volumes, volume groups and physical "
11338 "volumes."
11339 msgstr ""
11340
11341 #. type: =head2
11342 #: ../fish/guestfish-actions.pod:2930
11343 msgid "lvm-set-filter"
11344 msgstr ""
11345
11346 #. type: verbatim
11347 #: ../fish/guestfish-actions.pod:2932
11348 #, no-wrap
11349 msgid ""
11350 " lvm-set-filter 'devices ...'\n"
11351 "\n"
11352 msgstr ""
11353
11354 #. type: textblock
11355 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
11356 msgid ""
11357 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11358 "block devices in the list C<devices>, and will ignore all other attached "
11359 "block devices."
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
11364 msgid ""
11365 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11366 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11367 "there are two types of duplication possible: either cloned PVs/VGs which "
11368 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11369 "same name.  In normal operation you cannot create this situation, but you "
11370 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11371 "inside the LVM metadata."
11372 msgstr ""
11373
11374 #. type: textblock
11375 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
11376 msgid "You can filter whole block devices or individual partitions."
11377 msgstr ""
11378
11379 #. type: textblock
11380 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
11381 msgid ""
11382 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11383 "filesystem), even if you are not filtering out that VG."
11384 msgstr ""
11385
11386 #. type: =head2
11387 #: ../fish/guestfish-actions.pod:2957
11388 msgid "lvremove"
11389 msgstr ""
11390
11391 #. type: verbatim
11392 #: ../fish/guestfish-actions.pod:2959
11393 #, no-wrap
11394 msgid ""
11395 " lvremove device\n"
11396 "\n"
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
11401 msgid ""
11402 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11403 "LV, such as C</dev/VG/LV>."
11404 msgstr ""
11405
11406 #. type: textblock
11407 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
11408 msgid ""
11409 "You can also remove all LVs in a volume group by specifying the VG name, "
11410 "C</dev/VG>."
11411 msgstr ""
11412
11413 #. type: =head2
11414 #: ../fish/guestfish-actions.pod:2967
11415 msgid "lvrename"
11416 msgstr ""
11417
11418 #. type: verbatim
11419 #: ../fish/guestfish-actions.pod:2969
11420 #, no-wrap
11421 msgid ""
11422 " lvrename logvol newlogvol\n"
11423 "\n"
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
11428 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11429 msgstr ""
11430
11431 #. type: =head2
11432 #: ../fish/guestfish-actions.pod:2973
11433 msgid "lvresize"
11434 msgstr ""
11435
11436 #. type: verbatim
11437 #: ../fish/guestfish-actions.pod:2975
11438 #, no-wrap
11439 msgid ""
11440 " lvresize device mbytes\n"
11441 "\n"
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
11446 msgid ""
11447 "This resizes (expands or shrinks) an existing LVM logical volume to "
11448 "C<mbytes>.  When reducing, data in the reduced part is lost."
11449 msgstr ""
11450
11451 #. type: =head2
11452 #: ../fish/guestfish-actions.pod:2981
11453 msgid "lvresize-free"
11454 msgstr ""
11455
11456 #. type: verbatim
11457 #: ../fish/guestfish-actions.pod:2983
11458 #, no-wrap
11459 msgid ""
11460 " lvresize-free lv percent\n"
11461 "\n"
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
11466 msgid ""
11467 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11468 "remaining free space in the volume group.  Commonly you would call this with "
11469 "pc = 100 which expands the logical volume as much as possible, using all "
11470 "remaining free space in the volume group."
11471 msgstr ""
11472
11473 #. type: =head2
11474 #: ../fish/guestfish-actions.pod:2991
11475 msgid "lvs"
11476 msgstr ""
11477
11478 #. type: verbatim
11479 #: ../fish/guestfish-actions.pod:2993
11480 #, no-wrap
11481 msgid ""
11482 " lvs\n"
11483 "\n"
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
11488 msgid ""
11489 "List all the logical volumes detected.  This is the equivalent of the "
11490 "L<lvs(8)> command."
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
11495 msgid ""
11496 "This returns a list of the logical volume device names "
11497 "(eg. C</dev/VolGroup00/LogVol00>)."
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:3001
11502 msgid "See also L</lvs-full>, L</list-filesystems>."
11503 msgstr ""
11504
11505 #. type: =head2
11506 #: ../fish/guestfish-actions.pod:3003
11507 msgid "lvs-full"
11508 msgstr ""
11509
11510 #. type: verbatim
11511 #: ../fish/guestfish-actions.pod:3005
11512 #, no-wrap
11513 msgid ""
11514 " lvs-full\n"
11515 "\n"
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
11520 msgid ""
11521 "List all the logical volumes detected.  This is the equivalent of the "
11522 "L<lvs(8)> command.  The \"full\" version includes all fields."
11523 msgstr ""
11524
11525 #. type: =head2
11526 #: ../fish/guestfish-actions.pod:3010
11527 msgid "lvuuid"
11528 msgstr ""
11529
11530 #. type: verbatim
11531 #: ../fish/guestfish-actions.pod:3012
11532 #, no-wrap
11533 msgid ""
11534 " lvuuid device\n"
11535 "\n"
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
11540 msgid "This command returns the UUID of the LVM LV C<device>."
11541 msgstr ""
11542
11543 #. type: =head2
11544 #: ../fish/guestfish-actions.pod:3016
11545 msgid "lxattrlist"
11546 msgstr ""
11547
11548 #. type: verbatim
11549 #: ../fish/guestfish-actions.pod:3018
11550 #, no-wrap
11551 msgid ""
11552 " lxattrlist path 'names ...'\n"
11553 "\n"
11554 msgstr ""
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
11558 msgid ""
11559 "This call allows you to get the extended attributes of multiple files, where "
11560 "all files are in the directory C<path>.  C<names> is the list of files from "
11561 "this directory."
11562 msgstr ""
11563
11564 #. type: textblock
11565 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
11566 msgid ""
11567 "On return you get a flat list of xattr structs which must be interpreted "
11568 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11569 "C<attrval> in this struct is zero-length to indicate there was an error "
11570 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11571 "number (the number of following attributes for this file, which could be "
11572 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11573 "attributes for the first named file.  This repeats for the second and "
11574 "subsequent files."
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:3034
11579 msgid ""
11580 "This call is intended for programs that want to efficiently list a directory "
11581 "contents without making many round-trips.  See also L</lstatlist> for a "
11582 "similarly efficient call for getting standard stats.  Very long directory "
11583 "listings might cause the protocol message size to be exceeded, causing this "
11584 "call to fail.  The caller must split up such requests into smaller groups of "
11585 "names."
11586 msgstr ""
11587
11588 #. type: =head2
11589 #: ../fish/guestfish-actions.pod:3042
11590 msgid "mkdir"
11591 msgstr ""
11592
11593 #. type: verbatim
11594 #: ../fish/guestfish-actions.pod:3044
11595 #, no-wrap
11596 msgid ""
11597 " mkdir path\n"
11598 "\n"
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
11603 msgid "Create a directory named C<path>."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:3048
11608 msgid "mkdir-mode"
11609 msgstr ""
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:3050
11613 #, no-wrap
11614 msgid ""
11615 " mkdir-mode path mode\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
11621 msgid ""
11622 "This command creates a directory, setting the initial permissions of the "
11623 "directory to C<mode>."
11624 msgstr ""
11625
11626 #. type: textblock
11627 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
11628 msgid ""
11629 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11630 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11631 "other ways."
11632 msgstr ""
11633
11634 #. type: textblock
11635 #: ../fish/guestfish-actions.pod:3059
11636 msgid "See also L</mkdir>, L</umask>"
11637 msgstr ""
11638
11639 #. type: =head2
11640 #: ../fish/guestfish-actions.pod:3061
11641 msgid "mkdir-p"
11642 msgstr ""
11643
11644 #. type: verbatim
11645 #: ../fish/guestfish-actions.pod:3063
11646 #, no-wrap
11647 msgid ""
11648 " mkdir-p path\n"
11649 "\n"
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
11654 msgid ""
11655 "Create a directory named C<path>, creating any parent directories as "
11656 "necessary.  This is like the C<mkdir -p> shell command."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:3068
11661 msgid "mkdtemp"
11662 msgstr ""
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:3070
11666 #, no-wrap
11667 msgid ""
11668 " mkdtemp template\n"
11669 "\n"
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
11674 msgid ""
11675 "This command creates a temporary directory.  The C<template> parameter "
11676 "should be a full pathname for the temporary directory name with the final "
11677 "six characters being \"XXXXXX\"."
11678 msgstr ""
11679
11680 #. type: textblock
11681 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
11682 msgid ""
11683 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11684 "being suitable for Windows filesystems."
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
11689 msgid "The name of the temporary directory that was created is returned."
11690 msgstr ""
11691
11692 #. type: textblock
11693 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
11694 msgid "The temporary directory is created with mode 0700 and is owned by root."
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
11699 msgid ""
11700 "The caller is responsible for deleting the temporary directory and its "
11701 "contents after use."
11702 msgstr ""
11703
11704 #. type: textblock
11705 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
11706 msgid "See also: L<mkdtemp(3)>"
11707 msgstr ""
11708
11709 #. type: =head2
11710 #: ../fish/guestfish-actions.pod:3091
11711 msgid "mke2fs-J"
11712 msgstr ""
11713
11714 #. type: verbatim
11715 #: ../fish/guestfish-actions.pod:3093
11716 #, no-wrap
11717 msgid ""
11718 " mke2fs-J fstype blocksize device journal\n"
11719 "\n"
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
11724 msgid ""
11725 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11726 "C<journal>.  It is equivalent to the command:"
11727 msgstr ""
11728
11729 #. type: verbatim
11730 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
11731 #, no-wrap
11732 msgid ""
11733 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11734 "\n"
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:3101
11739 msgid "See also L</mke2journal>."
11740 msgstr ""
11741
11742 #. type: =head2
11743 #: ../fish/guestfish-actions.pod:3103
11744 msgid "mke2fs-JL"
11745 msgstr ""
11746
11747 #. type: verbatim
11748 #: ../fish/guestfish-actions.pod:3105
11749 #, no-wrap
11750 msgid ""
11751 " mke2fs-JL fstype blocksize device label\n"
11752 "\n"
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
11757 msgid ""
11758 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11759 "the journal labeled C<label>."
11760 msgstr ""
11761
11762 #. type: textblock
11763 #: ../fish/guestfish-actions.pod:3110
11764 msgid "See also L</mke2journal-L>."
11765 msgstr ""
11766
11767 #. type: =head2
11768 #: ../fish/guestfish-actions.pod:3112
11769 msgid "mke2fs-JU"
11770 msgstr ""
11771
11772 #. type: verbatim
11773 #: ../fish/guestfish-actions.pod:3114
11774 #, no-wrap
11775 msgid ""
11776 " mke2fs-JU fstype blocksize device uuid\n"
11777 "\n"
11778 msgstr ""
11779
11780 #. type: textblock
11781 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
11782 msgid ""
11783 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11784 "the journal with UUID C<uuid>."
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../fish/guestfish-actions.pod:3119
11789 msgid "See also L</mke2journal-U>."
11790 msgstr ""
11791
11792 #. type: =head2
11793 #: ../fish/guestfish-actions.pod:3121
11794 msgid "mke2journal"
11795 msgstr ""
11796
11797 #. type: verbatim
11798 #: ../fish/guestfish-actions.pod:3123
11799 #, no-wrap
11800 msgid ""
11801 " mke2journal blocksize device\n"
11802 "\n"
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
11807 msgid ""
11808 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11809 "command:"
11810 msgstr ""
11811
11812 #. type: verbatim
11813 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
11814 #, no-wrap
11815 msgid ""
11816 " mke2fs -O journal_dev -b blocksize device\n"
11817 "\n"
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:3130
11822 msgid "mke2journal-L"
11823 msgstr ""
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:3132
11827 #, no-wrap
11828 msgid ""
11829 " mke2journal-L blocksize label device\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
11835 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11836 msgstr ""
11837
11838 #. type: =head2
11839 #: ../fish/guestfish-actions.pod:3136
11840 msgid "mke2journal-U"
11841 msgstr ""
11842
11843 #. type: verbatim
11844 #: ../fish/guestfish-actions.pod:3138
11845 #, no-wrap
11846 msgid ""
11847 " mke2journal-U blocksize uuid device\n"
11848 "\n"
11849 msgstr ""
11850
11851 #. type: textblock
11852 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
11853 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11854 msgstr ""
11855
11856 #. type: =head2
11857 #: ../fish/guestfish-actions.pod:3142
11858 msgid "mkfifo"
11859 msgstr ""
11860
11861 #. type: verbatim
11862 #: ../fish/guestfish-actions.pod:3144
11863 #, no-wrap
11864 msgid ""
11865 " mkfifo mode path\n"
11866 "\n"
11867 msgstr ""
11868
11869 #. type: textblock
11870 #: ../fish/guestfish-actions.pod:3146
11871 msgid ""
11872 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11873 "is just a convenient wrapper around L</mknod>."
11874 msgstr ""
11875
11876 #. type: =head2
11877 #: ../fish/guestfish-actions.pod:3152
11878 msgid "mkfs"
11879 msgstr ""
11880
11881 #. type: verbatim
11882 #: ../fish/guestfish-actions.pod:3154
11883 #, no-wrap
11884 msgid ""
11885 " mkfs fstype device\n"
11886 "\n"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
11891 msgid ""
11892 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11893 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11894 msgstr ""
11895
11896 #. type: =head2
11897 #: ../fish/guestfish-actions.pod:3160
11898 msgid "mkfs-b"
11899 msgstr ""
11900
11901 #. type: verbatim
11902 #: ../fish/guestfish-actions.pod:3162
11903 #, no-wrap
11904 msgid ""
11905 " mkfs-b fstype blocksize device\n"
11906 "\n"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:3164
11911 msgid ""
11912 "This call is similar to L</mkfs>, but it allows you to control the block "
11913 "size of the resulting filesystem.  Supported block sizes depend on the "
11914 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
11919 msgid ""
11920 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11921 "cluster size."
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:3172
11926 msgid ""
11927 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11928 "instead."
11929 msgstr ""
11930
11931 #. type: =head2
11932 #: ../fish/guestfish-actions.pod:3179
11933 msgid "mkfs-opts"
11934 msgstr ""
11935
11936 #. type: verbatim
11937 #: ../fish/guestfish-actions.pod:3181
11938 #, no-wrap
11939 msgid ""
11940 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
11941 "[sectorsize:..]\n"
11942 "\n"
11943 msgstr ""
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
11947 msgid ""
11948 "This function creates a filesystem on C<device>.  The filesystem type is "
11949 "C<fstype>, for example C<ext3>."
11950 msgstr ""
11951
11952 #. type: =item
11953 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
11954 msgid "C<blocksize>"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
11959 msgid ""
11960 "The filesystem block size.  Supported block sizes depend on the filesystem "
11961 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11962 "filesystems."
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
11967 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11968 msgstr ""
11969
11970 #. type: =item
11971 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
11972 msgid "C<features>"
11973 msgstr ""
11974
11975 #. type: textblock
11976 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
11977 msgid "This passes the I<-O> parameter to the external mkfs program."
11978 msgstr ""
11979
11980 #. type: textblock
11981 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
11982 msgid ""
11983 "For certain filesystem types, this allows extra filesystem features to be "
11984 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
11989 msgid ""
11990 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11991 "type."
11992 msgstr ""
11993
11994 #. type: =item
11995 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
11996 msgid "C<inode>"
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12001 msgid ""
12002 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12003 "sets the inode size (only for ext2/3/4 filesystems at present)."
12004 msgstr ""
12005
12006 #. type: =item
12007 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12008 msgid "C<sectorsize>"
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
12013 msgid ""
12014 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12015 "sets sector size for ufs filesystem."
12016 msgstr ""
12017
12018 #. type: =head2
12019 #: ../fish/guestfish-actions.pod:3226
12020 msgid "mkmountpoint"
12021 msgstr ""
12022
12023 #. type: verbatim
12024 #: ../fish/guestfish-actions.pod:3228
12025 #, no-wrap
12026 msgid ""
12027 " mkmountpoint exemptpath\n"
12028 "\n"
12029 msgstr ""
12030
12031 #. type: textblock
12032 #: ../fish/guestfish-actions.pod:3230
12033 msgid ""
12034 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12035 "to create extra mountpoints before mounting the first filesystem."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
12040 msgid ""
12041 "These calls are I<only> necessary in some very limited circumstances, mainly "
12042 "the case where you want to mount a mix of unrelated and/or read-only "
12043 "filesystems together."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
12048 msgid ""
12049 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12050 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12051 "inside that.  You can unpack this as follows in guestfish:"
12052 msgstr ""
12053
12054 #. type: verbatim
12055 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
12056 #, no-wrap
12057 msgid ""
12058 " add-ro Fedora-11-i686-Live.iso\n"
12059 " run\n"
12060 " mkmountpoint /cd\n"
12061 " mkmountpoint /sqsh\n"
12062 " mkmountpoint /ext3fs\n"
12063 " mount /dev/sda /cd\n"
12064 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12065 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12066 "\n"
12067 msgstr ""
12068
12069 #. type: textblock
12070 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
12071 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12072 msgstr ""
12073
12074 #. type: textblock
12075 #: ../fish/guestfish-actions.pod:3254
12076 msgid ""
12077 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12078 "unexpected errors if you try to mix these calls.  It is safest to manually "
12079 "unmount filesystems and remove mountpoints after use."
12080 msgstr ""
12081
12082 #. type: textblock
12083 #: ../fish/guestfish-actions.pod:3258
12084 msgid ""
12085 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12086 "for this to work for manual mountpoints, you must ensure that the innermost "
12087 "mountpoints have the longest pathnames, as in the example code above."
12088 msgstr ""
12089
12090 #. type: textblock
12091 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
12092 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12093 msgstr ""
12094
12095 #. type: textblock
12096 #: ../fish/guestfish-actions.pod:3265
12097 msgid ""
12098 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12099 "L</umount-all> to be called when the handle is closed which can also trigger "
12100 "these issues."
12101 msgstr ""
12102
12103 #. type: =head2
12104 #: ../fish/guestfish-actions.pod:3269
12105 msgid "mknod"
12106 msgstr ""
12107
12108 #. type: verbatim
12109 #: ../fish/guestfish-actions.pod:3271
12110 #, no-wrap
12111 msgid ""
12112 " mknod mode devmajor devminor path\n"
12113 "\n"
12114 msgstr ""
12115
12116 #. type: textblock
12117 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
12118 msgid ""
12119 "This call creates block or character special devices, or named pipes "
12120 "(FIFOs)."
12121 msgstr ""
12122
12123 #. type: textblock
12124 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
12125 msgid ""
12126 "The C<mode> parameter should be the mode, using the standard constants.  "
12127 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12128 "used when creating block and character special devices."
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../fish/guestfish-actions.pod:3281
12133 msgid ""
12134 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12135 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12136 "regular file).  These constants are available in the standard Linux header "
12137 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12138 "wrappers around this command which bitwise OR in the appropriate constant "
12139 "for you."
12140 msgstr ""
12141
12142 #. type: =head2
12143 #: ../fish/guestfish-actions.pod:3291
12144 msgid "mknod-b"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../fish/guestfish-actions.pod:3293
12149 #, no-wrap
12150 msgid ""
12151 " mknod-b mode devmajor devminor path\n"
12152 "\n"
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:3295
12157 msgid ""
12158 "This call creates a block device node called C<path> with mode C<mode> and "
12159 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12160 "wrapper around L</mknod>."
12161 msgstr ""
12162
12163 #. type: =head2
12164 #: ../fish/guestfish-actions.pod:3301
12165 msgid "mknod-c"
12166 msgstr ""
12167
12168 #. type: verbatim
12169 #: ../fish/guestfish-actions.pod:3303
12170 #, no-wrap
12171 msgid ""
12172 " mknod-c mode devmajor devminor path\n"
12173 "\n"
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:3305
12178 msgid ""
12179 "This call creates a char device node called C<path> with mode C<mode> and "
12180 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12181 "wrapper around L</mknod>."
12182 msgstr ""
12183
12184 #. type: =head2
12185 #: ../fish/guestfish-actions.pod:3311
12186 msgid "mkswap"
12187 msgstr ""
12188
12189 #. type: verbatim
12190 #: ../fish/guestfish-actions.pod:3313
12191 #, no-wrap
12192 msgid ""
12193 " mkswap device\n"
12194 "\n"
12195 msgstr ""
12196
12197 #. type: textblock
12198 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
12199 msgid "Create a swap partition on C<device>."
12200 msgstr ""
12201
12202 #. type: =head2
12203 #: ../fish/guestfish-actions.pod:3317
12204 msgid "mkswap-L"
12205 msgstr ""
12206
12207 #. type: verbatim
12208 #: ../fish/guestfish-actions.pod:3319
12209 #, no-wrap
12210 msgid ""
12211 " mkswap-L label device\n"
12212 "\n"
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
12217 msgid "Create a swap partition on C<device> with label C<label>."
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
12222 msgid ""
12223 "Note that you cannot attach a swap label to a block device "
12224 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12225 "the kernel or swap tools."
12226 msgstr ""
12227
12228 #. type: =head2
12229 #: ../fish/guestfish-actions.pod:3327
12230 msgid "mkswap-U"
12231 msgstr ""
12232
12233 #. type: verbatim
12234 #: ../fish/guestfish-actions.pod:3329
12235 #, no-wrap
12236 msgid ""
12237 " mkswap-U uuid device\n"
12238 "\n"
12239 msgstr ""
12240
12241 #. type: textblock
12242 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
12243 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12244 msgstr ""
12245
12246 #. type: =head2
12247 #: ../fish/guestfish-actions.pod:3333
12248 msgid "mkswap-file"
12249 msgstr ""
12250
12251 #. type: verbatim
12252 #: ../fish/guestfish-actions.pod:3335
12253 #, no-wrap
12254 msgid ""
12255 " mkswap-file path\n"
12256 "\n"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
12261 msgid "Create a swap file."
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:3339
12266 msgid ""
12267 "This command just writes a swap file signature to an existing file.  To "
12268 "create the file itself, use something like L</fallocate>."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:3342
12273 msgid "modprobe"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:3344
12278 #, no-wrap
12279 msgid ""
12280 " modprobe modulename\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
12286 msgid "This loads a kernel module in the appliance."
12287 msgstr ""
12288
12289 #. type: textblock
12290 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12291 msgid ""
12292 "The kernel module must have been whitelisted when libguestfs was built (see "
12293 "C<appliance/kmod.whitelist.in> in the source)."
12294 msgstr ""
12295
12296 #. type: =head2
12297 #: ../fish/guestfish-actions.pod:3351
12298 msgid "mount"
12299 msgstr ""
12300
12301 #. type: verbatim
12302 #: ../fish/guestfish-actions.pod:3353
12303 #, no-wrap
12304 msgid ""
12305 " mount device mountpoint\n"
12306 "\n"
12307 msgstr ""
12308
12309 #. type: textblock
12310 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
12311 msgid ""
12312 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12313 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12314 "those block devices contain partitions, they will have the usual names "
12315 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12320 msgid ""
12321 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12322 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12323 "mounted on directories which already exist."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
12328 msgid ""
12329 "The mounted filesystem is writable, if we have sufficient permissions on the "
12330 "underlying device."
12331 msgstr ""
12332
12333 #. type: textblock
12334 #: ../fish/guestfish-actions.pod:3369
12335 msgid ""
12336 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12337 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12338 "problems for users.  If your program might need to work with older versions "
12339 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12340 "first parameter if you don't want any options)."
12341 msgstr ""
12342
12343 #. type: =head2
12344 #: ../fish/guestfish-actions.pod:3376
12345 msgid "mount-9p"
12346 msgstr ""
12347
12348 #. type: verbatim
12349 #: ../fish/guestfish-actions.pod:3378
12350 #, no-wrap
12351 msgid ""
12352 " mount-9p mounttag mountpoint [options:..]\n"
12353 "\n"
12354 msgstr ""
12355
12356 #. type: textblock
12357 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
12358 msgid ""
12359 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12360 "C<mountpoint>."
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
12365 msgid ""
12366 "If required, C<trans=virtio> will be automatically added to the options.  "
12367 "Any other options required can be passed in the optional C<options> "
12368 "parameter."
12369 msgstr ""
12370
12371 #. type: =head2
12372 #: ../fish/guestfish-actions.pod:3389
12373 msgid "mount-loop"
12374 msgstr ""
12375
12376 #. type: verbatim
12377 #: ../fish/guestfish-actions.pod:3391
12378 #, no-wrap
12379 msgid ""
12380 " mount-loop file mountpoint\n"
12381 "\n"
12382 msgstr ""
12383
12384 #. type: textblock
12385 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
12386 msgid ""
12387 "This command lets you mount C<file> (a filesystem image in a file) on a "
12388 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12389 "mountpoint>."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:3397
12394 msgid "mount-options"
12395 msgstr ""
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:3399
12399 #, no-wrap
12400 msgid ""
12401 " mount-options options device mountpoint\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3401
12407 msgid ""
12408 "This is the same as the L</mount> command, but it allows you to set the "
12409 "mount options as for the L<mount(8)> I<-o> flag."
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
12414 msgid ""
12415 "If the C<options> parameter is an empty string, then no options are passed "
12416 "(all options default to whatever the filesystem uses)."
12417 msgstr ""
12418
12419 #. type: =head2
12420 #: ../fish/guestfish-actions.pod:3409
12421 msgid "mount-ro"
12422 msgstr ""
12423
12424 #. type: verbatim
12425 #: ../fish/guestfish-actions.pod:3411
12426 #, no-wrap
12427 msgid ""
12428 " mount-ro device mountpoint\n"
12429 "\n"
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:3413
12434 msgid ""
12435 "This is the same as the L</mount> command, but it mounts the filesystem with "
12436 "the read-only (I<-o ro>) flag."
12437 msgstr ""
12438
12439 #. type: =head2
12440 #: ../fish/guestfish-actions.pod:3416
12441 msgid "mount-vfs"
12442 msgstr ""
12443
12444 #. type: verbatim
12445 #: ../fish/guestfish-actions.pod:3418
12446 #, no-wrap
12447 msgid ""
12448 " mount-vfs options vfstype device mountpoint\n"
12449 "\n"
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../fish/guestfish-actions.pod:3420
12454 msgid ""
12455 "This is the same as the L</mount> command, but it allows you to set both the "
12456 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12457 msgstr ""
12458
12459 #. type: =head2
12460 #: ../fish/guestfish-actions.pod:3424
12461 msgid "mountpoints"
12462 msgstr ""
12463
12464 #. type: verbatim
12465 #: ../fish/guestfish-actions.pod:3426
12466 #, no-wrap
12467 msgid ""
12468 " mountpoints\n"
12469 "\n"
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3428
12474 msgid ""
12475 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12476 "This one returns a hash table (map) of device name to directory where the "
12477 "device is mounted."
12478 msgstr ""
12479
12480 #. type: =head2
12481 #: ../fish/guestfish-actions.pod:3432
12482 msgid "mounts"
12483 msgstr ""
12484
12485 #. type: verbatim
12486 #: ../fish/guestfish-actions.pod:3434
12487 #, no-wrap
12488 msgid ""
12489 " mounts\n"
12490 "\n"
12491 msgstr ""
12492
12493 #. type: textblock
12494 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
12495 msgid ""
12496 "This returns the list of currently mounted filesystems.  It returns the list "
12497 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
12502 msgid "Some internal mounts are not shown."
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../fish/guestfish-actions.pod:3441
12507 msgid "See also: L</mountpoints>"
12508 msgstr ""
12509
12510 #. type: =head2
12511 #: ../fish/guestfish-actions.pod:3443
12512 msgid "mv"
12513 msgstr ""
12514
12515 #. type: verbatim
12516 #: ../fish/guestfish-actions.pod:3445
12517 #, no-wrap
12518 msgid ""
12519 " mv src dest\n"
12520 "\n"
12521 msgstr ""
12522
12523 #. type: textblock
12524 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
12525 msgid ""
12526 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12527 "destination filename or destination directory."
12528 msgstr ""
12529
12530 #. type: =head2
12531 #: ../fish/guestfish-actions.pod:3450
12532 msgid "ntfs-3g-probe"
12533 msgstr ""
12534
12535 #. type: verbatim
12536 #: ../fish/guestfish-actions.pod:3452
12537 #, no-wrap
12538 msgid ""
12539 " ntfs-3g-probe true|false device\n"
12540 "\n"
12541 msgstr ""
12542
12543 #. type: textblock
12544 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
12545 msgid ""
12546 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12547 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12548 "read-write, and some cannot be mounted at all)."
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
12553 msgid ""
12554 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12555 "can be mounted read-write.  Set it to false if you want to test if the "
12556 "volume can be mounted read-only."
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
12561 msgid ""
12562 "The return value is an integer which C<0> if the operation would succeed, or "
12563 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12564 msgstr ""
12565
12566 #. type: =head2
12567 #: ../fish/guestfish-actions.pod:3466
12568 msgid "ntfsresize"
12569 msgstr ""
12570
12571 #. type: verbatim
12572 #: ../fish/guestfish-actions.pod:3468
12573 #, no-wrap
12574 msgid ""
12575 " ntfsresize device\n"
12576 "\n"
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
12581 msgid ""
12582 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12583 "size of the underlying device."
12584 msgstr ""
12585
12586 #. type: textblock
12587 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
12588 msgid ""
12589 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12590 "consistency check (for safety).  You have to boot into Windows to perform "
12591 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12592 "resize filesystems which have been marked in this way.  So in effect it is "
12593 "not possible to call ntfsresize multiple times on a single filesystem "
12594 "without booting into Windows between each resize."
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
12599 msgid "See also L<ntfsresize(8)>."
12600 msgstr ""
12601
12602 #. type: textblock
12603 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
12604 msgid ""
12605 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12606 "call instead."
12607 msgstr ""
12608
12609 #. type: =head2
12610 #: ../fish/guestfish-actions.pod:3490
12611 msgid "ntfsresize-opts"
12612 msgstr ""
12613
12614 #. type: verbatim
12615 #: ../fish/guestfish-actions.pod:3492
12616 #, no-wrap
12617 msgid ""
12618 " ntfsresize-opts device [size:..] [force:..]\n"
12619 "\n"
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
12624 msgid ""
12625 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12626 "resized to fit the container (eg. partition)."
12627 msgstr ""
12628
12629 #. type: =item
12630 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
12631 msgid "C<force>"
12632 msgstr ""
12633
12634 #. type: textblock
12635 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
12636 msgid ""
12637 "If this option is true, then force the resize of the filesystem even if the "
12638 "filesystem is marked as requiring a consistency check."
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../fish/guestfish-actions.pod:3511
12643 msgid ""
12644 "After the resize operation, the filesystem is always marked as requiring a "
12645 "consistency check (for safety).  You have to boot into Windows to perform "
12646 "this check and clear this condition.  If you I<don't> set the C<force> "
12647 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12648 "a single filesystem without booting into Windows between each resize."
12649 msgstr ""
12650
12651 #. type: =head2
12652 #: ../fish/guestfish-actions.pod:3524
12653 msgid "ntfsresize-size"
12654 msgstr ""
12655
12656 #. type: verbatim
12657 #: ../fish/guestfish-actions.pod:3526
12658 #, no-wrap
12659 msgid ""
12660 " ntfsresize-size device size\n"
12661 "\n"
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3528
12666 msgid ""
12667 "This command is the same as L</ntfsresize> except that it allows you to "
12668 "specify the new size (in bytes) explicitly."
12669 msgstr ""
12670
12671 #. type: =head2
12672 #: ../fish/guestfish-actions.pod:3538
12673 msgid "part-add"
12674 msgstr ""
12675
12676 #. type: verbatim
12677 #: ../fish/guestfish-actions.pod:3540
12678 #, no-wrap
12679 msgid ""
12680 " part-add device prlogex startsect endsect\n"
12681 "\n"
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:3542
12686 msgid ""
12687 "This command adds a partition to C<device>.  If there is no partition table "
12688 "on the device, call L</part-init> first."
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
12693 msgid ""
12694 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12695 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12696 "C<logical>) and C<e> (or C<extended>) partition types."
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
12701 msgid ""
12702 "C<startsect> and C<endsect> are the start and end of the partition in "
12703 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12704 "from the end of the disk (C<-1> is the last sector)."
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:3554
12709 msgid ""
12710 "Creating a partition which covers the whole disk is not so easy.  Use "
12711 "L</part-disk> to do that."
12712 msgstr ""
12713
12714 #. type: =head2
12715 #: ../fish/guestfish-actions.pod:3557
12716 msgid "part-del"
12717 msgstr ""
12718
12719 #. type: verbatim
12720 #: ../fish/guestfish-actions.pod:3559
12721 #, no-wrap
12722 msgid ""
12723 " part-del device partnum\n"
12724 "\n"
12725 msgstr ""
12726
12727 #. type: textblock
12728 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
12729 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12730 msgstr ""
12731
12732 #. type: textblock
12733 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
12734 msgid ""
12735 "Note that in the case of MBR partitioning, deleting an extended partition "
12736 "also deletes any logical partitions it contains."
12737 msgstr ""
12738
12739 #. type: =head2
12740 #: ../fish/guestfish-actions.pod:3567
12741 msgid "part-disk"
12742 msgstr ""
12743
12744 #. type: verbatim
12745 #: ../fish/guestfish-actions.pod:3569
12746 #, no-wrap
12747 msgid ""
12748 " part-disk device parttype\n"
12749 "\n"
12750 msgstr ""
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:3571
12754 msgid ""
12755 "This command is simply a combination of L</part-init> followed by "
12756 "L</part-add> to create a single primary partition covering the whole disk."
12757 msgstr ""
12758
12759 #. type: textblock
12760 #: ../fish/guestfish-actions.pod:3575
12761 msgid ""
12762 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12763 "possible values are described in L</part-init>."
12764 msgstr ""
12765
12766 #. type: =head2
12767 #: ../fish/guestfish-actions.pod:3581
12768 msgid "part-get-bootable"
12769 msgstr ""
12770
12771 #. type: verbatim
12772 #: ../fish/guestfish-actions.pod:3583
12773 #, no-wrap
12774 msgid ""
12775 " part-get-bootable device partnum\n"
12776 "\n"
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
12781 msgid ""
12782 "This command returns true if the partition C<partnum> on C<device> has the "
12783 "bootable flag set."
12784 msgstr ""
12785
12786 #. type: textblock
12787 #: ../fish/guestfish-actions.pod:3588
12788 msgid "See also L</part-set-bootable>."
12789 msgstr ""
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:3590
12793 msgid "part-get-mbr-id"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:3592
12798 #, no-wrap
12799 msgid ""
12800 " part-get-mbr-id device partnum\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
12806 msgid ""
12807 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12808 "partition C<partnum>."
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
12813 msgid ""
12814 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12815 "undefined results for other partition table types (see "
12816 "L</part-get-parttype>)."
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:3601
12821 msgid "part-get-parttype"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:3603
12826 #, no-wrap
12827 msgid ""
12828 " part-get-parttype device\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
12834 msgid ""
12835 "This command examines the partition table on C<device> and returns the "
12836 "partition table type (format) being used."
12837 msgstr ""
12838
12839 #. type: textblock
12840 #: ../fish/guestfish-actions.pod:3608
12841 msgid ""
12842 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12843 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12844 "possible, although unusual.  See L</part-init> for a full list."
12845 msgstr ""
12846
12847 #. type: =head2
12848 #: ../fish/guestfish-actions.pod:3613
12849 msgid "part-init"
12850 msgstr ""
12851
12852 #. type: verbatim
12853 #: ../fish/guestfish-actions.pod:3615
12854 #, no-wrap
12855 msgid ""
12856 " part-init device parttype\n"
12857 "\n"
12858 msgstr ""
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
12862 msgid ""
12863 "This creates an empty partition table on C<device> of one of the partition "
12864 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12865 "(for large disks)."
12866 msgstr ""
12867
12868 #. type: textblock
12869 #: ../fish/guestfish-actions.pod:3621
12870 msgid ""
12871 "Initially there are no partitions.  Following this, you should call "
12872 "L</part-add> for each partition required."
12873 msgstr ""
12874
12875 #. type: textblock
12876 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
12877 msgid "Possible values for C<parttype> are:"
12878 msgstr ""
12879
12880 #. type: =item
12881 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
12882 msgid "B<efi>"
12883 msgstr ""
12884
12885 #. type: =item
12886 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
12887 msgid "B<gpt>"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
12892 msgid "Intel EFI / GPT partition table."
12893 msgstr ""
12894
12895 #. type: textblock
12896 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
12897 msgid ""
12898 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12899 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12900 "the C<mbr> format."
12901 msgstr ""
12902
12903 #. type: =item
12904 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
12905 msgid "B<mbr>"
12906 msgstr ""
12907
12908 #. type: =item
12909 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
12910 msgid "B<msdos>"
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
12915 msgid ""
12916 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12917 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12918 "TB.  For large disks we recommend using C<gpt>."
12919 msgstr ""
12920
12921 #. type: textblock
12922 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
12923 msgid "Other partition table types that may work but are not supported include:"
12924 msgstr ""
12925
12926 #. type: =item
12927 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
12928 msgid "B<aix>"
12929 msgstr ""
12930
12931 #. type: textblock
12932 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
12933 msgid "AIX disk labels."
12934 msgstr ""
12935
12936 #. type: =item
12937 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
12938 msgid "B<amiga>"
12939 msgstr ""
12940
12941 #. type: =item
12942 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
12943 msgid "B<rdb>"
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
12948 msgid "Amiga \"Rigid Disk Block\" format."
12949 msgstr ""
12950
12951 #. type: =item
12952 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
12953 msgid "B<bsd>"
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
12958 msgid "BSD disk labels."
12959 msgstr ""
12960
12961 #. type: =item
12962 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
12963 msgid "B<dasd>"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
12968 msgid "DASD, used on IBM mainframes."
12969 msgstr ""
12970
12971 #. type: =item
12972 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
12973 msgid "B<dvh>"
12974 msgstr ""
12975
12976 #. type: textblock
12977 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
12978 msgid "MIPS/SGI volumes."
12979 msgstr ""
12980
12981 #. type: =item
12982 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
12983 msgid "B<mac>"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
12988 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12989 msgstr ""
12990
12991 #. type: =item
12992 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
12993 msgid "B<pc98>"
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
12998 msgid "NEC PC-98 format, common in Japan apparently."
12999 msgstr ""
13000
13001 #. type: =item
13002 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
13003 msgid "B<sun>"
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
13008 msgid "Sun disk labels."
13009 msgstr ""
13010
13011 #. type: =head2
13012 #: ../fish/guestfish-actions.pod:3690
13013 msgid "part-list"
13014 msgstr ""
13015
13016 #. type: verbatim
13017 #: ../fish/guestfish-actions.pod:3692
13018 #, no-wrap
13019 msgid ""
13020 " part-list device\n"
13021 "\n"
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
13026 msgid ""
13027 "This command parses the partition table on C<device> and returns the list of "
13028 "partitions found."
13029 msgstr ""
13030
13031 #. type: textblock
13032 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
13033 msgid "The fields in the returned structure are:"
13034 msgstr ""
13035
13036 #. type: =item
13037 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
13038 msgid "B<part_num>"
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
13043 msgid "Partition number, counting from 1."
13044 msgstr ""
13045
13046 #. type: =item
13047 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
13048 msgid "B<part_start>"
13049 msgstr ""
13050
13051 #. type: textblock
13052 #: ../fish/guestfish-actions.pod:3707
13053 msgid ""
13054 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13055 "the device's sector size, see L</blockdev-getss>."
13056 msgstr ""
13057
13058 #. type: =item
13059 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
13060 msgid "B<part_end>"
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
13065 msgid "End of the partition in bytes."
13066 msgstr ""
13067
13068 #. type: =item
13069 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
13070 msgid "B<part_size>"
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
13075 msgid "Size of the partition in bytes."
13076 msgstr ""
13077
13078 #. type: =head2
13079 #: ../fish/guestfish-actions.pod:3720
13080 msgid "part-set-bootable"
13081 msgstr ""
13082
13083 #. type: verbatim
13084 #: ../fish/guestfish-actions.pod:3722
13085 #, no-wrap
13086 msgid ""
13087 " part-set-bootable device partnum true|false\n"
13088 "\n"
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
13093 msgid ""
13094 "This sets the bootable flag on partition numbered C<partnum> on device "
13095 "C<device>.  Note that partitions are numbered from 1."
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
13100 msgid ""
13101 "The bootable flag is used by some operating systems (notably Windows) to "
13102 "determine which partition to boot from.  It is by no means universally "
13103 "recognized."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:3731
13108 msgid "part-set-mbr-id"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:3733
13113 #, no-wrap
13114 msgid ""
13115 " part-set-mbr-id device partnum idbyte\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
13121 msgid ""
13122 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13123 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13124 "documentation are in fact hexadecimal numbers, but usually documented "
13125 "without any leading \"0x\" which might be confusing."
13126 msgstr ""
13127
13128 #. type: =head2
13129 #: ../fish/guestfish-actions.pod:3745
13130 msgid "part-set-name"
13131 msgstr ""
13132
13133 #. type: verbatim
13134 #: ../fish/guestfish-actions.pod:3747
13135 #, no-wrap
13136 msgid ""
13137 " part-set-name device partnum name\n"
13138 "\n"
13139 msgstr ""
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
13143 msgid ""
13144 "This sets the partition name on partition numbered C<partnum> on device "
13145 "C<device>.  Note that partitions are numbered from 1."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
13150 msgid ""
13151 "The partition name can only be set on certain types of partition table.  "
13152 "This works on C<gpt> but not on C<mbr> partitions."
13153 msgstr ""
13154
13155 #. type: =head2
13156 #: ../fish/guestfish-actions.pod:3755
13157 msgid "part-to-dev"
13158 msgstr ""
13159
13160 #. type: verbatim
13161 #: ../fish/guestfish-actions.pod:3757
13162 #, no-wrap
13163 msgid ""
13164 " part-to-dev partition\n"
13165 "\n"
13166 msgstr ""
13167
13168 #. type: textblock
13169 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
13170 msgid ""
13171 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13172 "partition number, returning the device name (eg. \"/dev/sdb\")."
13173 msgstr ""
13174
13175 #. type: textblock
13176 #: ../fish/guestfish-actions.pod:3763
13177 msgid ""
13178 "The named partition must exist, for example as a string returned from "
13179 "L</list-partitions>."
13180 msgstr ""
13181
13182 #. type: =head2
13183 #: ../fish/guestfish-actions.pod:3766
13184 msgid "ping-daemon"
13185 msgstr ""
13186
13187 #. type: verbatim
13188 #: ../fish/guestfish-actions.pod:3768
13189 #, no-wrap
13190 msgid ""
13191 " ping-daemon\n"
13192 "\n"
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
13197 msgid ""
13198 "This is a test probe into the guestfs daemon running inside the qemu "
13199 "subprocess.  Calling this function checks that the daemon responds to the "
13200 "ping message, without affecting the daemon or attached block device(s) in "
13201 "any other way."
13202 msgstr ""
13203
13204 #. type: =head2
13205 #: ../fish/guestfish-actions.pod:3775
13206 msgid "pread"
13207 msgstr ""
13208
13209 #. type: verbatim
13210 #: ../fish/guestfish-actions.pod:3777
13211 #, no-wrap
13212 msgid ""
13213 " pread path count offset\n"
13214 "\n"
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
13219 msgid ""
13220 "This command lets you read part of a file.  It reads C<count> bytes of the "
13221 "file, starting at C<offset>, from file C<path>."
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
13226 msgid ""
13227 "This may read fewer bytes than requested.  For further details see the "
13228 "L<pread(2)> system call."
13229 msgstr ""
13230
13231 #. type: textblock
13232 #: ../fish/guestfish-actions.pod:3785
13233 msgid "See also L</pwrite>, L</pread-device>."
13234 msgstr ""
13235
13236 #. type: =head2
13237 #: ../fish/guestfish-actions.pod:3790
13238 msgid "pread-device"
13239 msgstr ""
13240
13241 #. type: verbatim
13242 #: ../fish/guestfish-actions.pod:3792
13243 #, no-wrap
13244 msgid ""
13245 " pread-device device count offset\n"
13246 "\n"
13247 msgstr ""
13248
13249 #. type: textblock
13250 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
13251 msgid ""
13252 "This command lets you read part of a file.  It reads C<count> bytes of "
13253 "C<device>, starting at C<offset>."
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3800
13258 msgid "See also L</pread>."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:3805
13263 msgid "pvcreate"
13264 msgstr ""
13265
13266 #. type: verbatim
13267 #: ../fish/guestfish-actions.pod:3807
13268 #, no-wrap
13269 msgid ""
13270 " pvcreate device\n"
13271 "\n"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
13276 msgid ""
13277 "This creates an LVM physical volume on the named C<device>, where C<device> "
13278 "should usually be a partition name such as C</dev/sda1>."
13279 msgstr ""
13280
13281 #. type: =head2
13282 #: ../fish/guestfish-actions.pod:3813
13283 msgid "pvremove"
13284 msgstr ""
13285
13286 #. type: verbatim
13287 #: ../fish/guestfish-actions.pod:3815
13288 #, no-wrap
13289 msgid ""
13290 " pvremove device\n"
13291 "\n"
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
13296 msgid ""
13297 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13298 "it."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
13303 msgid ""
13304 "The implementation uses the C<pvremove> command which refuses to wipe "
13305 "physical volumes that contain any volume groups, so you have to remove those "
13306 "first."
13307 msgstr ""
13308
13309 #. type: =head2
13310 #: ../fish/guestfish-actions.pod:3824
13311 msgid "pvresize"
13312 msgstr ""
13313
13314 #. type: verbatim
13315 #: ../fish/guestfish-actions.pod:3826
13316 #, no-wrap
13317 msgid ""
13318 " pvresize device\n"
13319 "\n"
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
13324 msgid ""
13325 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13326 "the new size of the underlying device."
13327 msgstr ""
13328
13329 #. type: =head2
13330 #: ../fish/guestfish-actions.pod:3831
13331 msgid "pvresize-size"
13332 msgstr ""
13333
13334 #. type: verbatim
13335 #: ../fish/guestfish-actions.pod:3833
13336 #, no-wrap
13337 msgid ""
13338 " pvresize-size device size\n"
13339 "\n"
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3835
13344 msgid ""
13345 "This command is the same as L</pvresize> except that it allows you to "
13346 "specify the new size (in bytes) explicitly."
13347 msgstr ""
13348
13349 #. type: =head2
13350 #: ../fish/guestfish-actions.pod:3838
13351 msgid "pvs"
13352 msgstr ""
13353
13354 #. type: verbatim
13355 #: ../fish/guestfish-actions.pod:3840
13356 #, no-wrap
13357 msgid ""
13358 " pvs\n"
13359 "\n"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
13364 msgid ""
13365 "List all the physical volumes detected.  This is the equivalent of the "
13366 "L<pvs(8)> command."
13367 msgstr ""
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
13371 msgid ""
13372 "This returns a list of just the device names that contain PVs "
13373 "(eg. C</dev/sda2>)."
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:3848
13378 msgid "See also L</pvs-full>."
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:3850
13383 msgid "pvs-full"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:3852
13388 #, no-wrap
13389 msgid ""
13390 " pvs-full\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
13396 msgid ""
13397 "List all the physical volumes detected.  This is the equivalent of the "
13398 "L<pvs(8)> command.  The \"full\" version includes all fields."
13399 msgstr ""
13400
13401 #. type: =head2
13402 #: ../fish/guestfish-actions.pod:3857
13403 msgid "pvuuid"
13404 msgstr ""
13405
13406 #. type: verbatim
13407 #: ../fish/guestfish-actions.pod:3859
13408 #, no-wrap
13409 msgid ""
13410 " pvuuid device\n"
13411 "\n"
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
13416 msgid "This command returns the UUID of the LVM PV C<device>."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../fish/guestfish-actions.pod:3863
13421 msgid "pwrite"
13422 msgstr ""
13423
13424 #. type: verbatim
13425 #: ../fish/guestfish-actions.pod:3865
13426 #, no-wrap
13427 msgid ""
13428 " pwrite path content offset\n"
13429 "\n"
13430 msgstr ""
13431
13432 #. type: textblock
13433 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
13434 msgid ""
13435 "This command writes to part of a file.  It writes the data buffer C<content> "
13436 "to the file C<path> starting at offset C<offset>."
13437 msgstr ""
13438
13439 #. type: textblock
13440 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
13441 msgid ""
13442 "This command implements the L<pwrite(2)> system call, and like that system "
13443 "call it may not write the full data requested.  The return value is the "
13444 "number of bytes that were actually written to the file.  This could even be "
13445 "0, although short writes are unlikely for regular files in ordinary "
13446 "circumstances."
13447 msgstr ""
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:3876
13451 msgid "See also L</pread>, L</pwrite-device>."
13452 msgstr ""
13453
13454 #. type: =head2
13455 #: ../fish/guestfish-actions.pod:3881
13456 msgid "pwrite-device"
13457 msgstr ""
13458
13459 #. type: verbatim
13460 #: ../fish/guestfish-actions.pod:3883
13461 #, no-wrap
13462 msgid ""
13463 " pwrite-device device content offset\n"
13464 "\n"
13465 msgstr ""
13466
13467 #. type: textblock
13468 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
13469 msgid ""
13470 "This command writes to part of a device.  It writes the data buffer "
13471 "C<content> to C<device> starting at offset C<offset>."
13472 msgstr ""
13473
13474 #. type: textblock
13475 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
13476 msgid ""
13477 "This command implements the L<pwrite(2)> system call, and like that system "
13478 "call it may not write the full data requested (although short writes to disk "
13479 "devices and partitions are probably impossible with standard Linux kernels)."
13480 msgstr ""
13481
13482 #. type: textblock
13483 #: ../fish/guestfish-actions.pod:3893
13484 msgid "See also L</pwrite>."
13485 msgstr ""
13486
13487 #. type: =head2
13488 #: ../fish/guestfish-actions.pod:3898
13489 msgid "read-file"
13490 msgstr ""
13491
13492 #. type: verbatim
13493 #: ../fish/guestfish-actions.pod:3900
13494 #, no-wrap
13495 msgid ""
13496 " read-file path\n"
13497 "\n"
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
13502 msgid "This calls returns the contents of the file C<path> as a buffer."
13503 msgstr ""
13504
13505 #. type: textblock
13506 #: ../fish/guestfish-actions.pod:3905
13507 msgid ""
13508 "Unlike L</cat>, this function can correctly handle files that contain "
13509 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13510 "is limited in the total size of file that can be handled."
13511 msgstr ""
13512
13513 #. type: =head2
13514 #: ../fish/guestfish-actions.pod:3913
13515 msgid "read-lines"
13516 msgstr ""
13517
13518 #. type: verbatim
13519 #: ../fish/guestfish-actions.pod:3915
13520 #, no-wrap
13521 msgid ""
13522 " read-lines path\n"
13523 "\n"
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
13528 msgid ""
13529 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13530 "C<CRLF> character sequences are I<not> returned."
13531 msgstr ""
13532
13533 #. type: textblock
13534 #: ../fish/guestfish-actions.pod:3922
13535 msgid ""
13536 "Note that this function cannot correctly handle binary files (specifically, "
13537 "files containing C<\\0> character which is treated as end of line).  For "
13538 "those you need to use the L</read-file> function which has a more complex "
13539 "interface."
13540 msgstr ""
13541
13542 #. type: =head2
13543 #: ../fish/guestfish-actions.pod:3927
13544 msgid "readdir"
13545 msgstr ""
13546
13547 #. type: verbatim
13548 #: ../fish/guestfish-actions.pod:3929
13549 #, no-wrap
13550 msgid ""
13551 " readdir dir\n"
13552 "\n"
13553 msgstr ""
13554
13555 #. type: textblock
13556 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
13557 msgid "This returns the list of directory entries in directory C<dir>."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
13562 msgid ""
13563 "All entries in the directory are returned, including C<.> and C<..>.  The "
13564 "entries are I<not> sorted, but returned in the same order as the underlying "
13565 "filesystem."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
13570 msgid ""
13571 "Also this call returns basic file type information about each file.  The "
13572 "C<ftyp> field will contain one of the following characters:"
13573 msgstr ""
13574
13575 #. type: =item
13576 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
13577 msgid "'b'"
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
13582 msgid "Block special"
13583 msgstr ""
13584
13585 #. type: =item
13586 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
13587 msgid "'c'"
13588 msgstr ""
13589
13590 #. type: textblock
13591 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
13592 msgid "Char special"
13593 msgstr ""
13594
13595 #. type: =item
13596 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
13597 msgid "'d'"
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
13602 msgid "Directory"
13603 msgstr ""
13604
13605 #. type: =item
13606 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
13607 msgid "'f'"
13608 msgstr ""
13609
13610 #. type: textblock
13611 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
13612 msgid "FIFO (named pipe)"
13613 msgstr ""
13614
13615 #. type: =item
13616 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
13617 msgid "'l'"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
13622 msgid "Symbolic link"
13623 msgstr ""
13624
13625 #. type: =item
13626 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
13627 msgid "'r'"
13628 msgstr ""
13629
13630 #. type: textblock
13631 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
13632 msgid "Regular file"
13633 msgstr ""
13634
13635 #. type: =item
13636 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
13637 msgid "'s'"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
13642 msgid "Socket"
13643 msgstr ""
13644
13645 #. type: =item
13646 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
13647 msgid "'u'"
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
13652 msgid "Unknown file type"
13653 msgstr ""
13654
13655 #. type: =item
13656 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
13657 msgid "'?'"
13658 msgstr ""
13659
13660 #. type: textblock
13661 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
13662 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3981
13667 msgid ""
13668 "This function is primarily intended for use by programs.  To get a simple "
13669 "list of names, use L</ls>.  To get a printable directory for human "
13670 "consumption, use L</ll>."
13671 msgstr ""
13672
13673 #. type: =head2
13674 #: ../fish/guestfish-actions.pod:3985
13675 msgid "readlink"
13676 msgstr ""
13677
13678 #. type: verbatim
13679 #: ../fish/guestfish-actions.pod:3987
13680 #, no-wrap
13681 msgid ""
13682 " readlink path\n"
13683 "\n"
13684 msgstr ""
13685
13686 #. type: textblock
13687 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
13688 msgid "This command reads the target of a symbolic link."
13689 msgstr ""
13690
13691 #. type: =head2
13692 #: ../fish/guestfish-actions.pod:3991
13693 msgid "readlinklist"
13694 msgstr ""
13695
13696 #. type: verbatim
13697 #: ../fish/guestfish-actions.pod:3993
13698 #, no-wrap
13699 msgid ""
13700 " readlinklist path 'names ...'\n"
13701 "\n"
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
13706 msgid ""
13707 "This call allows you to do a C<readlink> operation on multiple files, where "
13708 "all files are in the directory C<path>.  C<names> is the list of files from "
13709 "this directory."
13710 msgstr ""
13711
13712 #. type: textblock
13713 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
13714 msgid ""
13715 "On return you get a list of strings, with a one-to-one correspondence to the "
13716 "C<names> list.  Each string is the value of the symbolic link."
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
13721 msgid ""
13722 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13723 "result string is the empty string C<\"\">.  However the whole operation is "
13724 "completed even if there were C<readlink(2)> errors, and so you can call this "
13725 "function with names where you don't know if they are symbolic links already "
13726 "(albeit slightly less efficient)."
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
13731 msgid ""
13732 "This call is intended for programs that want to efficiently list a directory "
13733 "contents without making many round-trips.  Very long directory listings "
13734 "might cause the protocol message size to be exceeded, causing this call to "
13735 "fail.  The caller must split up such requests into smaller groups of names."
13736 msgstr ""
13737
13738 #. type: =head2
13739 #: ../fish/guestfish-actions.pod:4017
13740 msgid "realpath"
13741 msgstr ""
13742
13743 #. type: verbatim
13744 #: ../fish/guestfish-actions.pod:4019
13745 #, no-wrap
13746 msgid ""
13747 " realpath path\n"
13748 "\n"
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
13753 msgid ""
13754 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13755 "has no C<.>, C<..> or symbolic link path elements."
13756 msgstr ""
13757
13758 #. type: =head2
13759 #: ../fish/guestfish-actions.pod:4024
13760 msgid "removexattr"
13761 msgstr ""
13762
13763 #. type: verbatim
13764 #: ../fish/guestfish-actions.pod:4026
13765 #, no-wrap
13766 msgid ""
13767 " removexattr xattr path\n"
13768 "\n"
13769 msgstr ""
13770
13771 #. type: textblock
13772 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
13773 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:4031
13778 msgid "See also: L</lremovexattr>, L<attr(5)>."
13779 msgstr ""
13780
13781 #. type: =head2
13782 #: ../fish/guestfish-actions.pod:4033
13783 msgid "resize2fs"
13784 msgstr ""
13785
13786 #. type: verbatim
13787 #: ../fish/guestfish-actions.pod:4035
13788 #, no-wrap
13789 msgid ""
13790 " resize2fs device\n"
13791 "\n"
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
13796 msgid ""
13797 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13798 "underlying device."
13799 msgstr ""
13800
13801 #. type: textblock
13802 #: ../fish/guestfish-actions.pod:4040
13803 msgid ""
13804 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13805 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13806 "gives an error about this and sometimes not.  In any case, it is always safe "
13807 "to call L</e2fsck-f> before calling this function."
13808 msgstr ""
13809
13810 #. type: =head2
13811 #: ../fish/guestfish-actions.pod:4046
13812 msgid "resize2fs-M"
13813 msgstr ""
13814
13815 #. type: verbatim
13816 #: ../fish/guestfish-actions.pod:4048
13817 #, no-wrap
13818 msgid ""
13819 " resize2fs-M device\n"
13820 "\n"
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:4050
13825 msgid ""
13826 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13827 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13828 "command."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:4054
13833 msgid ""
13834 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13835 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13836 "multiplied together, give the resulting size of the minimal filesystem in "
13837 "bytes."
13838 msgstr ""
13839
13840 #. type: =head2
13841 #: ../fish/guestfish-actions.pod:4059
13842 msgid "resize2fs-size"
13843 msgstr ""
13844
13845 #. type: verbatim
13846 #: ../fish/guestfish-actions.pod:4061
13847 #, no-wrap
13848 msgid ""
13849 " resize2fs-size device size\n"
13850 "\n"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:4063
13855 msgid ""
13856 "This command is the same as L</resize2fs> except that it allows you to "
13857 "specify the new size (in bytes) explicitly."
13858 msgstr ""
13859
13860 #. type: =head2
13861 #: ../fish/guestfish-actions.pod:4066
13862 msgid "rm"
13863 msgstr ""
13864
13865 #. type: verbatim
13866 #: ../fish/guestfish-actions.pod:4068
13867 #, no-wrap
13868 msgid ""
13869 " rm path\n"
13870 "\n"
13871 msgstr ""
13872
13873 #. type: textblock
13874 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
13875 msgid "Remove the single file C<path>."
13876 msgstr ""
13877
13878 #. type: =head2
13879 #: ../fish/guestfish-actions.pod:4072
13880 msgid "rm-rf"
13881 msgstr ""
13882
13883 #. type: verbatim
13884 #: ../fish/guestfish-actions.pod:4074
13885 #, no-wrap
13886 msgid ""
13887 " rm-rf path\n"
13888 "\n"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
13893 msgid ""
13894 "Remove the file or directory C<path>, recursively removing the contents if "
13895 "its a directory.  This is like the C<rm -rf> shell command."
13896 msgstr ""
13897
13898 #. type: =head2
13899 #: ../fish/guestfish-actions.pod:4080
13900 msgid "rmdir"
13901 msgstr ""
13902
13903 #. type: verbatim
13904 #: ../fish/guestfish-actions.pod:4082
13905 #, no-wrap
13906 msgid ""
13907 " rmdir path\n"
13908 "\n"
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
13913 msgid "Remove the single directory C<path>."
13914 msgstr ""
13915
13916 #. type: =head2
13917 #: ../fish/guestfish-actions.pod:4086
13918 msgid "rmmountpoint"
13919 msgstr ""
13920
13921 #. type: verbatim
13922 #: ../fish/guestfish-actions.pod:4088
13923 #, no-wrap
13924 msgid ""
13925 " rmmountpoint exemptpath\n"
13926 "\n"
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:4090
13931 msgid ""
13932 "This calls removes a mountpoint that was previously created with "
13933 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
13934 msgstr ""
13935
13936 #. type: =head2
13937 #: ../fish/guestfish-actions.pod:4094
13938 msgid "scrub-device"
13939 msgstr ""
13940
13941 #. type: verbatim
13942 #: ../fish/guestfish-actions.pod:4096
13943 #, no-wrap
13944 msgid ""
13945 " scrub-device device\n"
13946 "\n"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
13951 msgid ""
13952 "This command writes patterns over C<device> to make data retrieval more "
13953 "difficult."
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116 ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
13958 msgid ""
13959 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13960 "more details."
13961 msgstr ""
13962
13963 #. type: =head2
13964 #: ../fish/guestfish-actions.pod:4107
13965 msgid "scrub-file"
13966 msgstr ""
13967
13968 #. type: verbatim
13969 #: ../fish/guestfish-actions.pod:4109
13970 #, no-wrap
13971 msgid ""
13972 " scrub-file file\n"
13973 "\n"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
13978 msgid ""
13979 "This command writes patterns over a file to make data retrieval more "
13980 "difficult."
13981 msgstr ""
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
13985 msgid "The file is I<removed> after scrubbing."
13986 msgstr ""
13987
13988 #. type: =head2
13989 #: ../fish/guestfish-actions.pod:4119
13990 msgid "scrub-freespace"
13991 msgstr ""
13992
13993 #. type: verbatim
13994 #: ../fish/guestfish-actions.pod:4121
13995 #, no-wrap
13996 msgid ""
13997 " scrub-freespace dir\n"
13998 "\n"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:4123
14003 msgid ""
14004 "This command creates the directory C<dir> and then fills it with files until "
14005 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14006 "deletes them.  The intention is to scrub any free space on the partition "
14007 "containing C<dir>."
14008 msgstr ""
14009
14010 #. type: =head2
14011 #: ../fish/guestfish-actions.pod:4132
14012 msgid "set-append"
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../fish/guestfish-actions.pod:4134
14017 msgid "append"
14018 msgstr ""
14019
14020 #. type: verbatim
14021 #: ../fish/guestfish-actions.pod:4136
14022 #, no-wrap
14023 msgid ""
14024 " set-append append\n"
14025 "\n"
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
14030 msgid ""
14031 "This function is used to add additional options to the guest kernel command "
14032 "line."
14033 msgstr ""
14034
14035 #. type: textblock
14036 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
14037 msgid ""
14038 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14039 "environment variable."
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
14044 msgid ""
14045 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14046 "(libguestfs always adds a few of its own)."
14047 msgstr ""
14048
14049 #. type: =head2
14050 #: ../fish/guestfish-actions.pod:4147
14051 msgid "set-attach-method"
14052 msgstr ""
14053
14054 #. type: =head2
14055 #: ../fish/guestfish-actions.pod:4149
14056 msgid "attach-method"
14057 msgstr ""
14058
14059 #. type: verbatim
14060 #: ../fish/guestfish-actions.pod:4151
14061 #, no-wrap
14062 msgid ""
14063 " set-attach-method attachmethod\n"
14064 "\n"
14065 msgstr ""
14066
14067 #. type: textblock
14068 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
14069 msgid ""
14070 "Set the method that libguestfs uses to connect to the back end guestfsd "
14071 "daemon.  Possible methods are:"
14072 msgstr ""
14073
14074 #. type: =item
14075 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344 ../src/guestfs.pod:2901
14076 msgid "C<appliance>"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
14081 msgid ""
14082 "Launch an appliance and connect to it.  This is the ordinary method and the "
14083 "default."
14084 msgstr ""
14085
14086 #. type: =item
14087 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
14088 msgid "C<unix:I<path>>"
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
14093 msgid "Connect to the Unix domain socket I<path>."
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
14098 msgid ""
14099 "This method lets you connect to an existing daemon or (using virtio-serial) "
14100 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14101 "RUNNING DAEMONS>."
14102 msgstr ""
14103
14104 #. type: =head2
14105 #: ../fish/guestfish-actions.pod:4173
14106 msgid "set-autosync"
14107 msgstr ""
14108
14109 #. type: =head2
14110 #: ../fish/guestfish-actions.pod:4175
14111 msgid "autosync"
14112 msgstr ""
14113
14114 #. type: verbatim
14115 #: ../fish/guestfish-actions.pod:4177
14116 #, no-wrap
14117 msgid ""
14118 " set-autosync true|false\n"
14119 "\n"
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
14124 msgid ""
14125 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14126 "effort attempt to make filesystems consistent and synchronized when the "
14127 "handle is closed (also if the program exits without closing handles)."
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
14132 msgid ""
14133 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14134 "disabled by default)."
14135 msgstr ""
14136
14137 #. type: =head2
14138 #: ../fish/guestfish-actions.pod:4187
14139 msgid "set-direct"
14140 msgstr ""
14141
14142 #. type: =head2
14143 #: ../fish/guestfish-actions.pod:4189
14144 msgid "direct"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:4191
14149 #, no-wrap
14150 msgid ""
14151 " set-direct true|false\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
14157 msgid ""
14158 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14159 "passed directly through to the appliance once it is launched."
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:4197
14164 msgid ""
14165 "One consequence of this is that log messages aren't caught by the library "
14166 "and handled by L</set-log-message-callback>, but go straight to stdout."
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
14171 msgid "You probably don't want to use this unless you know what you are doing."
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
14176 msgid "The default is disabled."
14177 msgstr ""
14178
14179 #. type: =head2
14180 #: ../fish/guestfish-actions.pod:4206
14181 msgid "set-e2label"
14182 msgstr ""
14183
14184 #. type: verbatim
14185 #: ../fish/guestfish-actions.pod:4208
14186 #, no-wrap
14187 msgid ""
14188 " set-e2label device label\n"
14189 "\n"
14190 msgstr ""
14191
14192 #. type: textblock
14193 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
14194 msgid ""
14195 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14196 "C<label>.  Filesystem labels are limited to 16 characters."
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:4214
14201 msgid ""
14202 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14203 "label on a filesystem."
14204 msgstr ""
14205
14206 #. type: =head2
14207 #: ../fish/guestfish-actions.pod:4217
14208 msgid "set-e2uuid"
14209 msgstr ""
14210
14211 #. type: verbatim
14212 #: ../fish/guestfish-actions.pod:4219
14213 #, no-wrap
14214 msgid ""
14215 " set-e2uuid device uuid\n"
14216 "\n"
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
14221 msgid ""
14222 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14223 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14224 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:4226
14229 msgid ""
14230 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14231 "UUID of a filesystem."
14232 msgstr ""
14233
14234 #. type: =head2
14235 #: ../fish/guestfish-actions.pod:4229
14236 msgid "set-memsize"
14237 msgstr ""
14238
14239 #. type: =head2
14240 #: ../fish/guestfish-actions.pod:4231
14241 msgid "memsize"
14242 msgstr ""
14243
14244 #. type: verbatim
14245 #: ../fish/guestfish-actions.pod:4233
14246 #, no-wrap
14247 msgid ""
14248 " set-memsize memsize\n"
14249 "\n"
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../fish/guestfish-actions.pod:4235
14254 msgid ""
14255 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14256 "This only has any effect if called before L</launch>."
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
14261 msgid ""
14262 "You can also change this by setting the environment variable "
14263 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14264 msgstr ""
14265
14266 #. type: =head2
14267 #: ../fish/guestfish-actions.pod:4246
14268 msgid "set-network"
14269 msgstr ""
14270
14271 #. type: =head2
14272 #: ../fish/guestfish-actions.pod:4248
14273 msgid "network"
14274 msgstr ""
14275
14276 #. type: verbatim
14277 #: ../fish/guestfish-actions.pod:4250
14278 #, no-wrap
14279 msgid ""
14280 " set-network true|false\n"
14281 "\n"
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
14286 msgid ""
14287 "If C<network> is true, then the network is enabled in the libguestfs "
14288 "appliance.  The default is false."
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
14293 msgid ""
14294 "This affects whether commands are able to access the network (see "
14295 "L<guestfs(3)/RUNNING COMMANDS>)."
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:4258
14300 msgid "You must call this before calling L</launch>, otherwise it has no effect."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:4261
14305 msgid "set-path"
14306 msgstr ""
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:4265
14310 #, no-wrap
14311 msgid ""
14312 " set-path searchpath\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
14318 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14319 msgstr ""
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
14323 msgid ""
14324 "The default is C<$libdir/guestfs> unless overridden by setting "
14325 "C<LIBGUESTFS_PATH> environment variable."
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
14330 msgid "Setting C<path> to C<NULL> restores the default path."
14331 msgstr ""
14332
14333 #. type: =head2
14334 #: ../fish/guestfish-actions.pod:4274
14335 msgid "set-pgroup"
14336 msgstr ""
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:4276
14340 msgid "pgroup"
14341 msgstr ""
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:4278
14345 #, no-wrap
14346 msgid ""
14347 " set-pgroup true|false\n"
14348 "\n"
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
14353 msgid ""
14354 "If C<pgroup> is true, child processes are placed into their own process "
14355 "group."
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
14360 msgid ""
14361 "The practical upshot of this is that signals like C<SIGINT> (from users "
14362 "pressing C<^C>) won't be received by the child process."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
14367 msgid ""
14368 "The default for this flag is false, because usually you want C<^C> to kill "
14369 "the subprocess."
14370 msgstr ""
14371
14372 #. type: =head2
14373 #: ../fish/guestfish-actions.pod:4289
14374 msgid "set-qemu"
14375 msgstr ""
14376
14377 #. type: =head2
14378 #: ../fish/guestfish-actions.pod:4291
14379 msgid "qemu"
14380 msgstr ""
14381
14382 #. type: verbatim
14383 #: ../fish/guestfish-actions.pod:4293
14384 #, no-wrap
14385 msgid ""
14386 " set-qemu qemu\n"
14387 "\n"
14388 msgstr ""
14389
14390 #. type: textblock
14391 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
14392 msgid "Set the qemu binary that we will use."
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
14397 msgid "The default is chosen when the library was compiled by the configure script."
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
14402 msgid ""
14403 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14404 "variable."
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
14409 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
14414 msgid ""
14415 "Note that you should call this function as early as possible after creating "
14416 "the handle.  This is because some pre-launch operations depend on testing "
14417 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14418 "don't retest features, and so you might see inconsistent results.  Using the "
14419 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14420 "the qemu binary at the same time as the handle is created."
14421 msgstr ""
14422
14423 #. type: =head2
14424 #: ../fish/guestfish-actions.pod:4313
14425 msgid "set-recovery-proc"
14426 msgstr ""
14427
14428 #. type: =head2
14429 #: ../fish/guestfish-actions.pod:4315
14430 msgid "recovery-proc"
14431 msgstr ""
14432
14433 #. type: verbatim
14434 #: ../fish/guestfish-actions.pod:4317
14435 #, no-wrap
14436 msgid ""
14437 " set-recovery-proc true|false\n"
14438 "\n"
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:4319
14443 msgid ""
14444 "If this is called with the parameter C<false> then L</launch> does not "
14445 "create a recovery process.  The purpose of the recovery process is to stop "
14446 "runaway qemu processes in the case where the main program aborts abruptly."
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4324
14451 msgid ""
14452 "This only has any effect if called before L</launch>, and the default is "
14453 "true."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
14458 msgid ""
14459 "About the only time when you would want to disable this is if the main "
14460 "process will fork itself into the background (\"daemonize\" itself).  In "
14461 "this case the recovery process thinks that the main program has disappeared "
14462 "and so kills qemu, which is not very helpful."
14463 msgstr ""
14464
14465 #. type: =head2
14466 #: ../fish/guestfish-actions.pod:4333
14467 msgid "set-selinux"
14468 msgstr ""
14469
14470 #. type: =head2
14471 #: ../fish/guestfish-actions.pod:4335
14472 msgid "selinux"
14473 msgstr ""
14474
14475 #. type: verbatim
14476 #: ../fish/guestfish-actions.pod:4337
14477 #, no-wrap
14478 msgid ""
14479 " set-selinux true|false\n"
14480 "\n"
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
14485 msgid ""
14486 "This sets the selinux flag that is passed to the appliance at boot time.  "
14487 "The default is C<selinux=0> (disabled)."
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
14492 msgid ""
14493 "Note that if SELinux is enabled, it is always in Permissive mode "
14494 "(C<enforcing=0>)."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:4348
14499 msgid "set-smp"
14500 msgstr ""
14501
14502 #. type: =head2
14503 #: ../fish/guestfish-actions.pod:4350
14504 msgid "smp"
14505 msgstr ""
14506
14507 #. type: verbatim
14508 #: ../fish/guestfish-actions.pod:4352
14509 #, no-wrap
14510 msgid ""
14511 " set-smp smp\n"
14512 "\n"
14513 msgstr ""
14514
14515 #. type: textblock
14516 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
14517 msgid ""
14518 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14519 "C<1>.  Increasing this may improve performance, though often it has no "
14520 "effect."
14521 msgstr ""
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:4358
14525 msgid "This function must be called before L</launch>."
14526 msgstr ""
14527
14528 #. type: =head2
14529 #: ../fish/guestfish-actions.pod:4360
14530 msgid "set-trace"
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../fish/guestfish-actions.pod:4362
14535 msgid "trace"
14536 msgstr ""
14537
14538 #. type: verbatim
14539 #: ../fish/guestfish-actions.pod:4364
14540 #, no-wrap
14541 msgid ""
14542 " set-trace true|false\n"
14543 "\n"
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
14548 msgid ""
14549 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14550 "return values are traced."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
14555 msgid ""
14556 "If you want to trace C API calls into libguestfs (and other libraries) then "
14557 "possibly a better way is to use the external ltrace(1) command."
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
14562 msgid ""
14563 "Command traces are disabled unless the environment variable "
14564 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14565 msgstr ""
14566
14567 #. type: textblock
14568 #: ../fish/guestfish-actions.pod:4376
14569 msgid ""
14570 "Trace messages are normally sent to C<stderr>, unless you register a "
14571 "callback to send them somewhere else (see L</set-event-callback>)."
14572 msgstr ""
14573
14574 #. type: =head2
14575 #: ../fish/guestfish-actions.pod:4380
14576 msgid "set-verbose"
14577 msgstr ""
14578
14579 #. type: =head2
14580 #: ../fish/guestfish-actions.pod:4382
14581 msgid "verbose"
14582 msgstr ""
14583
14584 #. type: verbatim
14585 #: ../fish/guestfish-actions.pod:4384
14586 #, no-wrap
14587 msgid ""
14588 " set-verbose true|false\n"
14589 "\n"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
14594 msgid "If C<verbose> is true, this turns on verbose messages."
14595 msgstr ""
14596
14597 #. type: textblock
14598 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
14599 msgid ""
14600 "Verbose messages are disabled unless the environment variable "
14601 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14602 msgstr ""
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:4391
14606 msgid ""
14607 "Verbose messages are normally sent to C<stderr>, unless you register a "
14608 "callback to send them somewhere else (see L</set-event-callback>)."
14609 msgstr ""
14610
14611 #. type: =head2
14612 #: ../fish/guestfish-actions.pod:4395
14613 msgid "setcon"
14614 msgstr ""
14615
14616 #. type: verbatim
14617 #: ../fish/guestfish-actions.pod:4397
14618 #, no-wrap
14619 msgid ""
14620 " setcon context\n"
14621 "\n"
14622 msgstr ""
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
14626 msgid ""
14627 "This sets the SELinux security context of the daemon to the string "
14628 "C<context>."
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
14633 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14634 msgstr ""
14635
14636 #. type: =head2
14637 #: ../fish/guestfish-actions.pod:4404
14638 msgid "setxattr"
14639 msgstr ""
14640
14641 #. type: verbatim
14642 #: ../fish/guestfish-actions.pod:4406
14643 #, no-wrap
14644 msgid ""
14645 " setxattr xattr val vallen path\n"
14646 "\n"
14647 msgstr ""
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
14651 msgid ""
14652 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14653 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../fish/guestfish-actions.pod:4412
14658 msgid "See also: L</lsetxattr>, L<attr(5)>."
14659 msgstr ""
14660
14661 #. type: =head2
14662 #: ../fish/guestfish-actions.pod:4414
14663 msgid "sfdisk"
14664 msgstr ""
14665
14666 #. type: verbatim
14667 #: ../fish/guestfish-actions.pod:4416
14668 #, no-wrap
14669 msgid ""
14670 " sfdisk device cyls heads sectors 'lines ...'\n"
14671 "\n"
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
14676 msgid ""
14677 "This is a direct interface to the L<sfdisk(8)> program for creating "
14678 "partitions on block devices."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
14683 msgid "C<device> should be a block device, for example C</dev/sda>."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
14688 msgid ""
14689 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14690 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14691 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14692 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14693 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14694 "the kernel) cannot work out the right geometry and you will need to tell it."
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
14699 msgid ""
14700 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14701 "refer to the L<sfdisk(8)> manpage."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
14706 msgid ""
14707 "To create a single partition occupying the whole disk, you would pass "
14708 "C<lines> as a single element list, when the single element being the string "
14709 "C<,> (comma)."
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4438
14714 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467 ../fish/guestfish-actions.pod:4489
14719 msgid ""
14720 "I<This function is deprecated.> In new code, use the L</part_add> call "
14721 "instead."
14722 msgstr ""
14723
14724 #. type: =head2
14725 #: ../fish/guestfish-actions.pod:4451
14726 msgid "sfdiskM"
14727 msgstr ""
14728
14729 #. type: verbatim
14730 #: ../fish/guestfish-actions.pod:4453
14731 #, no-wrap
14732 msgid ""
14733 " sfdiskM device 'lines ...'\n"
14734 "\n"
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:4455
14739 msgid ""
14740 "This is a simplified interface to the L</sfdisk> command, where partition "
14741 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14742 "you don't need to specify the cyls, heads and sectors parameters which were "
14743 "rarely if ever used anyway."
14744 msgstr ""
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:4461
14748 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4474
14753 msgid "sfdisk-N"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:4476
14758 #, no-wrap
14759 msgid ""
14760 " sfdisk-N device partnum cyls heads sectors line\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
14766 msgid ""
14767 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14768 "(note: C<n> counts from 1)."
14769 msgstr ""
14770
14771 #. type: textblock
14772 #: ../fish/guestfish-actions.pod:4481
14773 msgid ""
14774 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14775 "cyls/heads/sectors parameters."
14776 msgstr ""
14777
14778 #. type: textblock
14779 #: ../fish/guestfish-actions.pod:4484
14780 msgid "See also: L</part-add>"
14781 msgstr ""
14782
14783 #. type: =head2
14784 #: ../fish/guestfish-actions.pod:4496
14785 msgid "sfdisk-disk-geometry"
14786 msgstr ""
14787
14788 #. type: verbatim
14789 #: ../fish/guestfish-actions.pod:4498
14790 #, no-wrap
14791 msgid ""
14792 " sfdisk-disk-geometry device\n"
14793 "\n"
14794 msgstr ""
14795
14796 #. type: textblock
14797 #: ../fish/guestfish-actions.pod:4500
14798 msgid ""
14799 "This displays the disk geometry of C<device> read from the partition table.  "
14800 "Especially in the case where the underlying block device has been resized, "
14801 "this can be different from the kernel's idea of the geometry (see "
14802 "L</sfdisk-kernel-geometry>)."
14803 msgstr ""
14804
14805 #. type: textblock
14806 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
14807 msgid "The result is in human-readable format, and not designed to be parsed."
14808 msgstr ""
14809
14810 #. type: =head2
14811 #: ../fish/guestfish-actions.pod:4508
14812 msgid "sfdisk-kernel-geometry"
14813 msgstr ""
14814
14815 #. type: verbatim
14816 #: ../fish/guestfish-actions.pod:4510
14817 #, no-wrap
14818 msgid ""
14819 " sfdisk-kernel-geometry device\n"
14820 "\n"
14821 msgstr ""
14822
14823 #. type: textblock
14824 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
14825 msgid "This displays the kernel's idea of the geometry of C<device>."
14826 msgstr ""
14827
14828 #. type: =head2
14829 #: ../fish/guestfish-actions.pod:4517
14830 msgid "sfdisk-l"
14831 msgstr ""
14832
14833 #. type: verbatim
14834 #: ../fish/guestfish-actions.pod:4519
14835 #, no-wrap
14836 msgid ""
14837 " sfdisk-l device\n"
14838 "\n"
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
14843 msgid ""
14844 "This displays the partition table on C<device>, in the human-readable output "
14845 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14846 msgstr ""
14847
14848 #. type: textblock
14849 #: ../fish/guestfish-actions.pod:4525
14850 msgid "See also: L</part-list>"
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4527
14855 msgid ""
14856 "I<This function is deprecated.> In new code, use the L</part_list> call "
14857 "instead."
14858 msgstr ""
14859
14860 #. type: =head2
14861 #: ../fish/guestfish-actions.pod:4534
14862 msgid "sh"
14863 msgstr ""
14864
14865 #. type: verbatim
14866 #: ../fish/guestfish-actions.pod:4536
14867 #, no-wrap
14868 msgid ""
14869 " sh command\n"
14870 "\n"
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
14875 msgid ""
14876 "This call runs a command from the guest filesystem via the guest's "
14877 "C</bin/sh>."
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../fish/guestfish-actions.pod:4541
14882 msgid "This is like L</command>, but passes the command to:"
14883 msgstr ""
14884
14885 #. type: verbatim
14886 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
14887 #, no-wrap
14888 msgid ""
14889 " /bin/sh -c \"command\"\n"
14890 "\n"
14891 msgstr ""
14892
14893 #. type: textblock
14894 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
14895 msgid ""
14896 "Depending on the guest's shell, this usually results in wildcards being "
14897 "expanded, shell expressions being interpolated and so on."
14898 msgstr ""
14899
14900 #. type: textblock
14901 #: ../fish/guestfish-actions.pod:4549
14902 msgid "All the provisos about L</command> apply to this call."
14903 msgstr ""
14904
14905 #. type: =head2
14906 #: ../fish/guestfish-actions.pod:4551
14907 msgid "sh-lines"
14908 msgstr ""
14909
14910 #. type: verbatim
14911 #: ../fish/guestfish-actions.pod:4553
14912 #, no-wrap
14913 msgid ""
14914 " sh-lines command\n"
14915 "\n"
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4555
14920 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4558
14925 msgid "See also: L</command-lines>"
14926 msgstr ""
14927
14928 #. type: =head2
14929 #: ../fish/guestfish-actions.pod:4560
14930 msgid "sleep"
14931 msgstr ""
14932
14933 #. type: verbatim
14934 #: ../fish/guestfish-actions.pod:4562
14935 #, no-wrap
14936 msgid ""
14937 " sleep secs\n"
14938 "\n"
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
14943 msgid "Sleep for C<secs> seconds."
14944 msgstr ""
14945
14946 #. type: =head2
14947 #: ../fish/guestfish-actions.pod:4566
14948 msgid "stat"
14949 msgstr ""
14950
14951 #. type: verbatim
14952 #: ../fish/guestfish-actions.pod:4568
14953 #, no-wrap
14954 msgid ""
14955 " stat path\n"
14956 "\n"
14957 msgstr ""
14958
14959 #. type: textblock
14960 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
14961 msgid "This is the same as the C<stat(2)> system call."
14962 msgstr ""
14963
14964 #. type: =head2
14965 #: ../fish/guestfish-actions.pod:4574
14966 msgid "statvfs"
14967 msgstr ""
14968
14969 #. type: verbatim
14970 #: ../fish/guestfish-actions.pod:4576
14971 #, no-wrap
14972 msgid ""
14973 " statvfs path\n"
14974 "\n"
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
14979 msgid ""
14980 "Returns file system statistics for any mounted file system.  C<path> should "
14981 "be a file or directory in the mounted file system (typically it is the mount "
14982 "point itself, but it doesn't need to be)."
14983 msgstr ""
14984
14985 #. type: textblock
14986 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
14987 msgid "This is the same as the C<statvfs(2)> system call."
14988 msgstr ""
14989
14990 #. type: =head2
14991 #: ../fish/guestfish-actions.pod:4584
14992 msgid "strings"
14993 msgstr ""
14994
14995 #. type: verbatim
14996 #: ../fish/guestfish-actions.pod:4586
14997 #, no-wrap
14998 msgid ""
14999 " strings path\n"
15000 "\n"
15001 msgstr ""
15002
15003 #. type: textblock
15004 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15005 msgid ""
15006 "This runs the L<strings(1)> command on a file and returns the list of "
15007 "printable strings found."
15008 msgstr ""
15009
15010 #. type: =head2
15011 #: ../fish/guestfish-actions.pod:4594
15012 msgid "strings-e"
15013 msgstr ""
15014
15015 #. type: verbatim
15016 #: ../fish/guestfish-actions.pod:4596
15017 #, no-wrap
15018 msgid ""
15019 " strings-e encoding path\n"
15020 "\n"
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../fish/guestfish-actions.pod:4598
15025 msgid ""
15026 "This is like the L</strings> command, but allows you to specify the encoding "
15027 "of strings that are looked for in the source file C<path>."
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
15032 msgid "Allowed encodings are:"
15033 msgstr ""
15034
15035 #. type: =item
15036 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
15037 msgid "s"
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4608
15042 msgid ""
15043 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15044 "ISO-8859-X (this is what L</strings> uses)."
15045 msgstr ""
15046
15047 #. type: =item
15048 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
15049 msgid "S"
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
15054 msgid "Single 8-bit-byte characters."
15055 msgstr ""
15056
15057 #. type: =item
15058 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
15059 msgid "b"
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
15064 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15065 msgstr ""
15066
15067 #. type: =item
15068 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
15069 msgid "l (lower case letter L)"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
15074 msgid ""
15075 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15076 "examining binaries in Windows guests."
15077 msgstr ""
15078
15079 #. type: =item
15080 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
15081 msgid "B"
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
15086 msgid "32-bit big endian such as UCS-4BE."
15087 msgstr ""
15088
15089 #. type: =item
15090 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
15091 msgid "L"
15092 msgstr ""
15093
15094 #. type: textblock
15095 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
15096 msgid "32-bit little endian such as UCS-4LE."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
15101 msgid "The returned strings are transcoded to UTF-8."
15102 msgstr ""
15103
15104 #. type: =head2
15105 #: ../fish/guestfish-actions.pod:4640
15106 msgid "swapoff-device"
15107 msgstr ""
15108
15109 #. type: verbatim
15110 #: ../fish/guestfish-actions.pod:4642
15111 #, no-wrap
15112 msgid ""
15113 " swapoff-device device\n"
15114 "\n"
15115 msgstr ""
15116
15117 #. type: textblock
15118 #: ../fish/guestfish-actions.pod:4644
15119 msgid ""
15120 "This command disables the libguestfs appliance swap device or partition "
15121 "named C<device>.  See L</swapon-device>."
15122 msgstr ""
15123
15124 #. type: =head2
15125 #: ../fish/guestfish-actions.pod:4648
15126 msgid "swapoff-file"
15127 msgstr ""
15128
15129 #. type: verbatim
15130 #: ../fish/guestfish-actions.pod:4650
15131 #, no-wrap
15132 msgid ""
15133 " swapoff-file file\n"
15134 "\n"
15135 msgstr ""
15136
15137 #. type: textblock
15138 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
15139 msgid "This command disables the libguestfs appliance swap on file."
15140 msgstr ""
15141
15142 #. type: =head2
15143 #: ../fish/guestfish-actions.pod:4654
15144 msgid "swapoff-label"
15145 msgstr ""
15146
15147 #. type: verbatim
15148 #: ../fish/guestfish-actions.pod:4656
15149 #, no-wrap
15150 msgid ""
15151 " swapoff-label label\n"
15152 "\n"
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
15157 msgid ""
15158 "This command disables the libguestfs appliance swap on labeled swap "
15159 "partition."
15160 msgstr ""
15161
15162 #. type: =head2
15163 #: ../fish/guestfish-actions.pod:4661
15164 msgid "swapoff-uuid"
15165 msgstr ""
15166
15167 #. type: verbatim
15168 #: ../fish/guestfish-actions.pod:4663
15169 #, no-wrap
15170 msgid ""
15171 " swapoff-uuid uuid\n"
15172 "\n"
15173 msgstr ""
15174
15175 #. type: textblock
15176 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
15177 msgid ""
15178 "This command disables the libguestfs appliance swap partition with the given "
15179 "UUID."
15180 msgstr ""
15181
15182 #. type: =head2
15183 #: ../fish/guestfish-actions.pod:4668
15184 msgid "swapon-device"
15185 msgstr ""
15186
15187 #. type: verbatim
15188 #: ../fish/guestfish-actions.pod:4670
15189 #, no-wrap
15190 msgid ""
15191 " swapon-device device\n"
15192 "\n"
15193 msgstr ""
15194
15195 #. type: textblock
15196 #: ../fish/guestfish-actions.pod:4672
15197 msgid ""
15198 "This command enables the libguestfs appliance to use the swap device or "
15199 "partition named C<device>.  The increased memory is made available for all "
15200 "commands, for example those run using L</command> or L</sh>."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
15205 msgid ""
15206 "Note that you should not swap to existing guest swap partitions unless you "
15207 "know what you are doing.  They may contain hibernation information, or other "
15208 "information that the guest doesn't want you to trash.  You also risk leaking "
15209 "information about the host to the guest this way.  Instead, attach a new "
15210 "host device to the guest and swap on that."
15211 msgstr ""
15212
15213 #. type: =head2
15214 #: ../fish/guestfish-actions.pod:4684
15215 msgid "swapon-file"
15216 msgstr ""
15217
15218 #. type: verbatim
15219 #: ../fish/guestfish-actions.pod:4686
15220 #, no-wrap
15221 msgid ""
15222 " swapon-file file\n"
15223 "\n"
15224 msgstr ""
15225
15226 #. type: textblock
15227 #: ../fish/guestfish-actions.pod:4688
15228 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:4691
15233 msgid "swapon-label"
15234 msgstr ""
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:4693
15238 #, no-wrap
15239 msgid ""
15240 " swapon-label label\n"
15241 "\n"
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:4695
15246 msgid ""
15247 "This command enables swap to a labeled swap partition.  See "
15248 "L</swapon-device> for other notes."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../fish/guestfish-actions.pod:4698
15253 msgid "swapon-uuid"
15254 msgstr ""
15255
15256 #. type: verbatim
15257 #: ../fish/guestfish-actions.pod:4700
15258 #, no-wrap
15259 msgid ""
15260 " swapon-uuid uuid\n"
15261 "\n"
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4702
15266 msgid ""
15267 "This command enables swap to a swap partition with the given UUID.  See "
15268 "L</swapon-device> for other notes."
15269 msgstr ""
15270
15271 #. type: =head2
15272 #: ../fish/guestfish-actions.pod:4705
15273 msgid "sync"
15274 msgstr ""
15275
15276 #. type: verbatim
15277 #: ../fish/guestfish-actions.pod:4707
15278 #, no-wrap
15279 msgid ""
15280 " sync\n"
15281 "\n"
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
15286 msgid ""
15287 "This syncs the disk, so that any writes are flushed through to the "
15288 "underlying disk image."
15289 msgstr ""
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
15293 msgid ""
15294 "You should always call this if you have modified a disk image, before "
15295 "closing the handle."
15296 msgstr ""
15297
15298 #. type: =head2
15299 #: ../fish/guestfish-actions.pod:4715
15300 msgid "tail"
15301 msgstr ""
15302
15303 #. type: verbatim
15304 #: ../fish/guestfish-actions.pod:4717
15305 #, no-wrap
15306 msgid ""
15307 " tail path\n"
15308 "\n"
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
15313 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15314 msgstr ""
15315
15316 #. type: =head2
15317 #: ../fish/guestfish-actions.pod:4725
15318 msgid "tail-n"
15319 msgstr ""
15320
15321 #. type: verbatim
15322 #: ../fish/guestfish-actions.pod:4727
15323 #, no-wrap
15324 msgid ""
15325 " tail-n nrlines path\n"
15326 "\n"
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
15331 msgid ""
15332 "If the parameter C<nrlines> is a positive number, this returns the last "
15333 "C<nrlines> lines of the file C<path>."
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
15338 msgid ""
15339 "If the parameter C<nrlines> is a negative number, this returns lines from "
15340 "the file C<path>, starting with the C<-nrlines>th line."
15341 msgstr ""
15342
15343 #. type: =head2
15344 #: ../fish/guestfish-actions.pod:4740
15345 msgid "tar-in"
15346 msgstr ""
15347
15348 #. type: verbatim
15349 #: ../fish/guestfish-actions.pod:4742
15350 #, no-wrap
15351 msgid ""
15352 " tar-in (tarfile|-) directory\n"
15353 "\n"
15354 msgstr ""
15355
15356 #. type: textblock
15357 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
15358 msgid ""
15359 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15360 "tar file) into C<directory>."
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4747
15365 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15366 msgstr ""
15367
15368 #. type: =head2
15369 #: ../fish/guestfish-actions.pod:4752
15370 msgid "tar-out"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-actions.pod:4754
15375 #, no-wrap
15376 msgid ""
15377 " tar-out directory (tarfile|-)\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
15383 msgid ""
15384 "This command packs the contents of C<directory> and downloads it to local "
15385 "file C<tarfile>."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4759
15390 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15391 msgstr ""
15392
15393 #. type: =head2
15394 #: ../fish/guestfish-actions.pod:4764
15395 msgid "tgz-in"
15396 msgstr ""
15397
15398 #. type: verbatim
15399 #: ../fish/guestfish-actions.pod:4766
15400 #, no-wrap
15401 msgid ""
15402 " tgz-in (tarball|-) directory\n"
15403 "\n"
15404 msgstr ""
15405
15406 #. type: textblock
15407 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
15408 msgid ""
15409 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15410 "tar file) into C<directory>."
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../fish/guestfish-actions.pod:4771
15415 msgid "To upload an uncompressed tarball, use L</tar-in>."
15416 msgstr ""
15417
15418 #. type: =head2
15419 #: ../fish/guestfish-actions.pod:4775
15420 msgid "tgz-out"
15421 msgstr ""
15422
15423 #. type: verbatim
15424 #: ../fish/guestfish-actions.pod:4777
15425 #, no-wrap
15426 msgid ""
15427 " tgz-out directory (tarball|-)\n"
15428 "\n"
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
15433 msgid ""
15434 "This command packs the contents of C<directory> and downloads it to local "
15435 "file C<tarball>."
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../fish/guestfish-actions.pod:4782
15440 msgid "To download an uncompressed tarball, use L</tar-out>."
15441 msgstr ""
15442
15443 #. type: =head2
15444 #: ../fish/guestfish-actions.pod:4786
15445 msgid "touch"
15446 msgstr ""
15447
15448 #. type: verbatim
15449 #: ../fish/guestfish-actions.pod:4788
15450 #, no-wrap
15451 msgid ""
15452 " touch path\n"
15453 "\n"
15454 msgstr ""
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
15458 msgid ""
15459 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15460 "timestamps on a file, or, if the file does not exist, to create a new "
15461 "zero-length file."
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
15466 msgid ""
15467 "This command only works on regular files, and will fail on other file types "
15468 "such as directories, symbolic links, block special etc."
15469 msgstr ""
15470
15471 #. type: =head2
15472 #: ../fish/guestfish-actions.pod:4797
15473 msgid "truncate"
15474 msgstr ""
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish-actions.pod:4799
15478 #, no-wrap
15479 msgid ""
15480 " truncate path\n"
15481 "\n"
15482 msgstr ""
15483
15484 #. type: textblock
15485 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
15486 msgid ""
15487 "This command truncates C<path> to a zero-length file.  The file must exist "
15488 "already."
15489 msgstr ""
15490
15491 #. type: =head2
15492 #: ../fish/guestfish-actions.pod:4804
15493 msgid "truncate-size"
15494 msgstr ""
15495
15496 #. type: verbatim
15497 #: ../fish/guestfish-actions.pod:4806
15498 #, no-wrap
15499 msgid ""
15500 " truncate-size path size\n"
15501 "\n"
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
15506 msgid ""
15507 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15508 "already."
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-actions.pod:4811
15513 msgid ""
15514 "If the current file size is less than C<size> then the file is extended to "
15515 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15516 "blocks are not allocated for the file until you write to it).  To create a "
15517 "non-sparse file of zeroes, use L</fallocate64> instead."
15518 msgstr ""
15519
15520 #. type: =head2
15521 #: ../fish/guestfish-actions.pod:4817
15522 msgid "tune2fs-l"
15523 msgstr ""
15524
15525 #. type: verbatim
15526 #: ../fish/guestfish-actions.pod:4819
15527 #, no-wrap
15528 msgid ""
15529 " tune2fs-l device\n"
15530 "\n"
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
15535 msgid ""
15536 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15537 "C<device>."
15538 msgstr ""
15539
15540 #. type: textblock
15541 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
15542 msgid ""
15543 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15544 "for more details.  The list of fields returned isn't clearly defined, and "
15545 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15546 "and the filesystem itself."
15547 msgstr ""
15548
15549 #. type: =head2
15550 #: ../fish/guestfish-actions.pod:4829
15551 msgid "txz-in"
15552 msgstr ""
15553
15554 #. type: verbatim
15555 #: ../fish/guestfish-actions.pod:4831
15556 #, no-wrap
15557 msgid ""
15558 " txz-in (tarball|-) directory\n"
15559 "\n"
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
15564 msgid ""
15565 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15566 "tar file) into C<directory>."
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4838
15571 msgid "txz-out"
15572 msgstr ""
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4840
15576 #, no-wrap
15577 msgid ""
15578 " txz-out directory (tarball|-)\n"
15579 "\n"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
15584 msgid ""
15585 "This command packs the contents of C<directory> and downloads it to local "
15586 "file C<tarball> (as an xz compressed tar archive)."
15587 msgstr ""
15588
15589 #. type: =head2
15590 #: ../fish/guestfish-actions.pod:4847
15591 msgid "umask"
15592 msgstr ""
15593
15594 #. type: verbatim
15595 #: ../fish/guestfish-actions.pod:4849
15596 #, no-wrap
15597 msgid ""
15598 " umask mask\n"
15599 "\n"
15600 msgstr ""
15601
15602 #. type: textblock
15603 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
15604 msgid ""
15605 "This function sets the mask used for creating new files and device nodes to "
15606 "C<mask & 0777>."
15607 msgstr ""
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
15611 msgid ""
15612 "Typical umask values would be C<022> which creates new files with "
15613 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15614 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
15619 msgid ""
15620 "The default umask is C<022>.  This is important because it means that "
15621 "directories and device nodes will be created with C<0644> or C<0755> mode "
15622 "even if you specify C<0777>."
15623 msgstr ""
15624
15625 #. type: textblock
15626 #: ../fish/guestfish-actions.pod:4863
15627 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15628 msgstr ""
15629
15630 #. type: textblock
15631 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
15632 msgid "This call returns the previous umask."
15633 msgstr ""
15634
15635 #. type: =head2
15636 #: ../fish/guestfish-actions.pod:4868
15637 msgid "umount"
15638 msgstr ""
15639
15640 #. type: =head2
15641 #: ../fish/guestfish-actions.pod:4870
15642 msgid "unmount"
15643 msgstr ""
15644
15645 #. type: verbatim
15646 #: ../fish/guestfish-actions.pod:4872
15647 #, no-wrap
15648 msgid ""
15649 " umount pathordevice\n"
15650 "\n"
15651 msgstr ""
15652
15653 #. type: textblock
15654 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
15655 msgid ""
15656 "This unmounts the given filesystem.  The filesystem may be specified either "
15657 "by its mountpoint (path) or the device which contains the filesystem."
15658 msgstr ""
15659
15660 #. type: =head2
15661 #: ../fish/guestfish-actions.pod:4878
15662 msgid "umount-all"
15663 msgstr ""
15664
15665 #. type: =head2
15666 #: ../fish/guestfish-actions.pod:4880
15667 msgid "unmount-all"
15668 msgstr ""
15669
15670 #. type: verbatim
15671 #: ../fish/guestfish-actions.pod:4882
15672 #, no-wrap
15673 msgid ""
15674 " umount-all\n"
15675 "\n"
15676 msgstr ""
15677
15678 #. type: textblock
15679 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
15680 msgid "This unmounts all mounted filesystems."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
15685 msgid "Some internal mounts are not unmounted by this call."
15686 msgstr ""
15687
15688 #. type: =head2
15689 #: ../fish/guestfish-actions.pod:4888
15690 msgid "upload"
15691 msgstr ""
15692
15693 #. type: verbatim
15694 #: ../fish/guestfish-actions.pod:4890
15695 #, no-wrap
15696 msgid ""
15697 " upload (filename|-) remotefilename\n"
15698 "\n"
15699 msgstr ""
15700
15701 #. type: textblock
15702 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
15703 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15704 msgstr ""
15705
15706 #. type: textblock
15707 #: ../fish/guestfish-actions.pod:4897
15708 msgid "See also L</download>."
15709 msgstr ""
15710
15711 #. type: =head2
15712 #: ../fish/guestfish-actions.pod:4901
15713 msgid "upload-offset"
15714 msgstr ""
15715
15716 #. type: verbatim
15717 #: ../fish/guestfish-actions.pod:4903
15718 #, no-wrap
15719 msgid ""
15720 " upload-offset (filename|-) remotefilename offset\n"
15721 "\n"
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
15726 msgid ""
15727 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15728 "The intention is to overwrite parts of existing files or devices, although "
15729 "if a non-existant file is specified then it is created with a \"hole\" "
15730 "before C<offset>.  The size of the data written is implicit in the size of "
15731 "the source C<filename>."
15732 msgstr ""
15733
15734 #. type: textblock
15735 #: ../fish/guestfish-actions.pod:4915
15736 msgid ""
15737 "Note that there is no limit on the amount of data that can be uploaded with "
15738 "this call, unlike with L</pwrite>, and this call always writes the full "
15739 "amount unless an error occurs."
15740 msgstr ""
15741
15742 #. type: textblock
15743 #: ../fish/guestfish-actions.pod:4920
15744 msgid "See also L</upload>, L</pwrite>."
15745 msgstr ""
15746
15747 #. type: =head2
15748 #: ../fish/guestfish-actions.pod:4924
15749 msgid "utimens"
15750 msgstr ""
15751
15752 #. type: verbatim
15753 #: ../fish/guestfish-actions.pod:4926
15754 #, no-wrap
15755 msgid ""
15756 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15757 "\n"
15758 msgstr ""
15759
15760 #. type: textblock
15761 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
15762 msgid "This command sets the timestamps of a file with nanosecond precision."
15763 msgstr ""
15764
15765 #. type: textblock
15766 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
15767 msgid ""
15768 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15769 "from the epoch."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
15774 msgid ""
15775 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15776 "nanoseconds from the epoch."
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
15781 msgid ""
15782 "If the C<*nsecs> field contains the special value C<-1> then the "
15783 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15784 "ignored in this case)."
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
15789 msgid ""
15790 "If the C<*nsecs> field contains the special value C<-2> then the "
15791 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15792 "in this case)."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4945
15797 msgid "version"
15798 msgstr ""
15799
15800 #. type: verbatim
15801 #: ../fish/guestfish-actions.pod:4947
15802 #, no-wrap
15803 msgid ""
15804 " version\n"
15805 "\n"
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
15810 msgid "Return the libguestfs version number that the program is linked against."
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
15815 msgid ""
15816 "Note that because of dynamic linking this is not necessarily the version of "
15817 "libguestfs that you compiled against.  You can compile the program, and then "
15818 "at runtime dynamically link against a completely different C<libguestfs.so> "
15819 "library."
15820 msgstr ""
15821
15822 #. type: textblock
15823 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
15824 msgid ""
15825 "This call was added in version C<1.0.58>.  In previous versions of "
15826 "libguestfs there was no way to get the version number.  From C code you can "
15827 "use dynamic linker functions to find out if this symbol exists (if it "
15828 "doesn't, then it's an earlier version)."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
15833 msgid ""
15834 "The call returns a structure with four elements.  The first three (C<major>, "
15835 "C<minor> and C<release>) are numbers and correspond to the usual version "
15836 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15837 "but may be used for distro-specific information."
15838 msgstr ""
15839
15840 #. type: textblock
15841 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
15842 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15843 msgstr ""
15844
15845 #. type: textblock
15846 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
15847 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:4974
15852 msgid ""
15853 "I<Note:> Don't use this call to test for availability of features.  In "
15854 "enterprise distributions we backport features from later versions into "
15855 "earlier versions, making this an unreliable way to test for features.  Use "
15856 "L</available> instead."
15857 msgstr ""
15858
15859 #. type: =head2
15860 #: ../fish/guestfish-actions.pod:4980
15861 msgid "vfs-label"
15862 msgstr ""
15863
15864 #. type: verbatim
15865 #: ../fish/guestfish-actions.pod:4982
15866 #, no-wrap
15867 msgid ""
15868 " vfs-label device\n"
15869 "\n"
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
15874 msgid "This returns the filesystem label of the filesystem on C<device>."
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
15879 msgid "If the filesystem is unlabeled, this returns the empty string."
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-actions.pod:4989
15884 msgid "To find a filesystem from the label, use L</findfs-label>."
15885 msgstr ""
15886
15887 #. type: =head2
15888 #: ../fish/guestfish-actions.pod:4991
15889 msgid "vfs-type"
15890 msgstr ""
15891
15892 #. type: verbatim
15893 #: ../fish/guestfish-actions.pod:4993
15894 #, no-wrap
15895 msgid ""
15896 " vfs-type device\n"
15897 "\n"
15898 msgstr ""
15899
15900 #. type: textblock
15901 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
15902 msgid ""
15903 "This command gets the filesystem type corresponding to the filesystem on "
15904 "C<device>."
15905 msgstr ""
15906
15907 #. type: textblock
15908 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
15909 msgid ""
15910 "For most filesystems, the result is the name of the Linux VFS module which "
15911 "would be used to mount this filesystem if you mounted it without specifying "
15912 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15913 msgstr ""
15914
15915 #. type: =head2
15916 #: ../fish/guestfish-actions.pod:5003
15917 msgid "vfs-uuid"
15918 msgstr ""
15919
15920 #. type: verbatim
15921 #: ../fish/guestfish-actions.pod:5005
15922 #, no-wrap
15923 msgid ""
15924 " vfs-uuid device\n"
15925 "\n"
15926 msgstr ""
15927
15928 #. type: textblock
15929 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
15930 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15931 msgstr ""
15932
15933 #. type: textblock
15934 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
15935 msgid "If the filesystem does not have a UUID, this returns the empty string."
15936 msgstr ""
15937
15938 #. type: textblock
15939 #: ../fish/guestfish-actions.pod:5012
15940 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15941 msgstr ""
15942
15943 #. type: =head2
15944 #: ../fish/guestfish-actions.pod:5014
15945 msgid "vg-activate"
15946 msgstr ""
15947
15948 #. type: verbatim
15949 #: ../fish/guestfish-actions.pod:5016
15950 #, no-wrap
15951 msgid ""
15952 " vg-activate true|false 'volgroups ...'\n"
15953 "\n"
15954 msgstr ""
15955
15956 #. type: textblock
15957 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
15958 msgid ""
15959 "This command activates or (if C<activate> is false) deactivates all logical "
15960 "volumes in the listed volume groups C<volgroups>."
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
15965 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15966 msgstr ""
15967
15968 #. type: textblock
15969 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
15970 msgid ""
15971 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15972 "activated or deactivated."
15973 msgstr ""
15974
15975 #. type: =head2
15976 #: ../fish/guestfish-actions.pod:5026
15977 msgid "vg-activate-all"
15978 msgstr ""
15979
15980 #. type: verbatim
15981 #: ../fish/guestfish-actions.pod:5028
15982 #, no-wrap
15983 msgid ""
15984 " vg-activate-all true|false\n"
15985 "\n"
15986 msgstr ""
15987
15988 #. type: textblock
15989 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
15990 msgid ""
15991 "This command activates or (if C<activate> is false) deactivates all logical "
15992 "volumes in all volume groups."
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
15997 msgid "This command is the same as running C<vgchange -a y|n>"
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-actions.pod:5035
16002 msgid "vgcreate"
16003 msgstr ""
16004
16005 #. type: verbatim
16006 #: ../fish/guestfish-actions.pod:5037
16007 #, no-wrap
16008 msgid ""
16009 " vgcreate volgroup 'physvols ...'\n"
16010 "\n"
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
16015 msgid ""
16016 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16017 "of physical volumes C<physvols>."
16018 msgstr ""
16019
16020 #. type: =head2
16021 #: ../fish/guestfish-actions.pod:5042
16022 msgid "vglvuuids"
16023 msgstr ""
16024
16025 #. type: verbatim
16026 #: ../fish/guestfish-actions.pod:5044
16027 #, no-wrap
16028 msgid ""
16029 " vglvuuids vgname\n"
16030 "\n"
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
16035 msgid ""
16036 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16037 "volumes created in this volume group."
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish-actions.pod:5049
16042 msgid ""
16043 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16044 "logical volumes and volume groups."
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-actions.pod:5052
16049 msgid "See also L</vgpvuuids>."
16050 msgstr ""
16051
16052 #. type: =head2
16053 #: ../fish/guestfish-actions.pod:5054
16054 msgid "vgpvuuids"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish-actions.pod:5056
16059 #, no-wrap
16060 msgid ""
16061 " vgpvuuids vgname\n"
16062 "\n"
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
16067 msgid ""
16068 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16069 "volumes that this volume group resides on."
16070 msgstr ""
16071
16072 #. type: textblock
16073 #: ../fish/guestfish-actions.pod:5061
16074 msgid ""
16075 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16076 "physical volumes and volume groups."
16077 msgstr ""
16078
16079 #. type: textblock
16080 #: ../fish/guestfish-actions.pod:5064
16081 msgid "See also L</vglvuuids>."
16082 msgstr ""
16083
16084 #. type: =head2
16085 #: ../fish/guestfish-actions.pod:5066
16086 msgid "vgremove"
16087 msgstr ""
16088
16089 #. type: verbatim
16090 #: ../fish/guestfish-actions.pod:5068
16091 #, no-wrap
16092 msgid ""
16093 " vgremove vgname\n"
16094 "\n"
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
16099 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16100 msgstr ""
16101
16102 #. type: textblock
16103 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
16104 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16105 msgstr ""
16106
16107 #. type: =head2
16108 #: ../fish/guestfish-actions.pod:5075
16109 msgid "vgrename"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:5077
16114 #, no-wrap
16115 msgid ""
16116 " vgrename volgroup newvolgroup\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
16122 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16123 msgstr ""
16124
16125 #. type: =head2
16126 #: ../fish/guestfish-actions.pod:5081
16127 msgid "vgs"
16128 msgstr ""
16129
16130 #. type: verbatim
16131 #: ../fish/guestfish-actions.pod:5083
16132 #, no-wrap
16133 msgid ""
16134 " vgs\n"
16135 "\n"
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
16140 msgid ""
16141 "List all the volumes groups detected.  This is the equivalent of the "
16142 "L<vgs(8)> command."
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
16147 msgid ""
16148 "This returns a list of just the volume group names that were detected "
16149 "(eg. C<VolGroup00>)."
16150 msgstr ""
16151
16152 #. type: textblock
16153 #: ../fish/guestfish-actions.pod:5091
16154 msgid "See also L</vgs-full>."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../fish/guestfish-actions.pod:5093
16159 msgid "vgs-full"
16160 msgstr ""
16161
16162 #. type: verbatim
16163 #: ../fish/guestfish-actions.pod:5095
16164 #, no-wrap
16165 msgid ""
16166 " vgs-full\n"
16167 "\n"
16168 msgstr ""
16169
16170 #. type: textblock
16171 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
16172 msgid ""
16173 "List all the volumes groups detected.  This is the equivalent of the "
16174 "L<vgs(8)> command.  The \"full\" version includes all fields."
16175 msgstr ""
16176
16177 #. type: =head2
16178 #: ../fish/guestfish-actions.pod:5100
16179 msgid "vgscan"
16180 msgstr ""
16181
16182 #. type: verbatim
16183 #: ../fish/guestfish-actions.pod:5102
16184 #, no-wrap
16185 msgid ""
16186 " vgscan\n"
16187 "\n"
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
16192 msgid ""
16193 "This rescans all block devices and rebuilds the list of LVM physical "
16194 "volumes, volume groups and logical volumes."
16195 msgstr ""
16196
16197 #. type: =head2
16198 #: ../fish/guestfish-actions.pod:5107
16199 msgid "vguuid"
16200 msgstr ""
16201
16202 #. type: verbatim
16203 #: ../fish/guestfish-actions.pod:5109
16204 #, no-wrap
16205 msgid ""
16206 " vguuid vgname\n"
16207 "\n"
16208 msgstr ""
16209
16210 #. type: textblock
16211 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
16212 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16213 msgstr ""
16214
16215 #. type: =head2
16216 #: ../fish/guestfish-actions.pod:5113
16217 msgid "wc-c"
16218 msgstr ""
16219
16220 #. type: verbatim
16221 #: ../fish/guestfish-actions.pod:5115
16222 #, no-wrap
16223 msgid ""
16224 " wc-c path\n"
16225 "\n"
16226 msgstr ""
16227
16228 #. type: textblock
16229 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
16230 msgid ""
16231 "This command counts the characters in a file, using the C<wc -c> external "
16232 "command."
16233 msgstr ""
16234
16235 #. type: =head2
16236 #: ../fish/guestfish-actions.pod:5120
16237 msgid "wc-l"
16238 msgstr ""
16239
16240 #. type: verbatim
16241 #: ../fish/guestfish-actions.pod:5122
16242 #, no-wrap
16243 msgid ""
16244 " wc-l path\n"
16245 "\n"
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
16250 msgid ""
16251 "This command counts the lines in a file, using the C<wc -l> external "
16252 "command."
16253 msgstr ""
16254
16255 #. type: =head2
16256 #: ../fish/guestfish-actions.pod:5127
16257 msgid "wc-w"
16258 msgstr ""
16259
16260 #. type: verbatim
16261 #: ../fish/guestfish-actions.pod:5129
16262 #, no-wrap
16263 msgid ""
16264 " wc-w path\n"
16265 "\n"
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
16270 msgid ""
16271 "This command counts the words in a file, using the C<wc -w> external "
16272 "command."
16273 msgstr ""
16274
16275 #. type: =head2
16276 #: ../fish/guestfish-actions.pod:5134
16277 msgid "write"
16278 msgstr ""
16279
16280 #. type: verbatim
16281 #: ../fish/guestfish-actions.pod:5136
16282 #, no-wrap
16283 msgid ""
16284 " write path content\n"
16285 "\n"
16286 msgstr ""
16287
16288 #. type: textblock
16289 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
16290 msgid ""
16291 "This call creates a file called C<path>.  The content of the file is the "
16292 "string C<content> (which can contain any 8 bit data)."
16293 msgstr ""
16294
16295 #. type: textblock
16296 #: ../fish/guestfish-actions.pod:5141
16297 msgid "See also L</write-append>."
16298 msgstr ""
16299
16300 #. type: =head2
16301 #: ../fish/guestfish-actions.pod:5146
16302 msgid "write-append"
16303 msgstr ""
16304
16305 #. type: verbatim
16306 #: ../fish/guestfish-actions.pod:5148
16307 #, no-wrap
16308 msgid ""
16309 " write-append path content\n"
16310 "\n"
16311 msgstr ""
16312
16313 #. type: textblock
16314 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
16315 msgid ""
16316 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16317 "not exist, then a new file is created."
16318 msgstr ""
16319
16320 #. type: textblock
16321 #: ../fish/guestfish-actions.pod:5153
16322 msgid "See also L</write>."
16323 msgstr ""
16324
16325 #. type: =head2
16326 #: ../fish/guestfish-actions.pod:5158
16327 msgid "write-file"
16328 msgstr ""
16329
16330 #. type: verbatim
16331 #: ../fish/guestfish-actions.pod:5160
16332 #, no-wrap
16333 msgid ""
16334 " write-file path content size\n"
16335 "\n"
16336 msgstr ""
16337
16338 #. type: textblock
16339 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
16340 msgid ""
16341 "This call creates a file called C<path>.  The contents of the file is the "
16342 "string C<content> (which can contain any 8 bit data), with length C<size>."
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
16347 msgid ""
16348 "As a special case, if C<size> is C<0> then the length is calculated using "
16349 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
16354 msgid ""
16355 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16356 "I<not> work, even if the length is specified."
16357 msgstr ""
16358
16359 #. type: textblock
16360 #: ../fish/guestfish-actions.pod:5176
16361 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16362 msgstr ""
16363
16364 #. type: =head2
16365 #: ../fish/guestfish-actions.pod:5183
16366 msgid "zegrep"
16367 msgstr ""
16368
16369 #. type: verbatim
16370 #: ../fish/guestfish-actions.pod:5185
16371 #, no-wrap
16372 msgid ""
16373 " zegrep regex path\n"
16374 "\n"
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
16379 msgid "This calls the external C<zegrep> program and returns the matching lines."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../fish/guestfish-actions.pod:5193
16384 msgid "zegrepi"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish-actions.pod:5195
16389 #, no-wrap
16390 msgid ""
16391 " zegrepi regex path\n"
16392 "\n"
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
16397 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16398 msgstr ""
16399
16400 #. type: =head2
16401 #: ../fish/guestfish-actions.pod:5203
16402 msgid "zero"
16403 msgstr ""
16404
16405 #. type: verbatim
16406 #: ../fish/guestfish-actions.pod:5205
16407 #, no-wrap
16408 msgid ""
16409 " zero device\n"
16410 "\n"
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
16415 msgid "This command writes zeroes over the first few blocks of C<device>."
16416 msgstr ""
16417
16418 #. type: textblock
16419 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
16420 msgid ""
16421 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16422 "securely wipe the device).  It should be sufficient to remove any partition "
16423 "tables, filesystem superblocks and so on."
16424 msgstr ""
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
16428 msgid ""
16429 "If blocks are already zero, then this command avoids writing zeroes.  This "
16430 "prevents the underlying device from becoming non-sparse or growing "
16431 "unnecessarily."
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:5217
16436 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16437 msgstr ""
16438
16439 #. type: =head2
16440 #: ../fish/guestfish-actions.pod:5220
16441 msgid "zero-device"
16442 msgstr ""
16443
16444 #. type: verbatim
16445 #: ../fish/guestfish-actions.pod:5222
16446 #, no-wrap
16447 msgid ""
16448 " zero-device device\n"
16449 "\n"
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:5224
16454 msgid ""
16455 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16456 "which just zeroes the first few blocks of a device."
16457 msgstr ""
16458
16459 #. type: =head2
16460 #: ../fish/guestfish-actions.pod:5235
16461 msgid "zerofree"
16462 msgstr ""
16463
16464 #. type: verbatim
16465 #: ../fish/guestfish-actions.pod:5237
16466 #, no-wrap
16467 msgid ""
16468 " zerofree device\n"
16469 "\n"
16470 msgstr ""
16471
16472 #. type: textblock
16473 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
16474 msgid ""
16475 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16476 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16477 "possible to compress the filesystem more effectively."
16478 msgstr ""
16479
16480 #. type: textblock
16481 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
16482 msgid "You should B<not> run this program if the filesystem is mounted."
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
16487 msgid ""
16488 "It is possible that using this program can damage the filesystem or data on "
16489 "the filesystem."
16490 msgstr ""
16491
16492 #. type: =head2
16493 #: ../fish/guestfish-actions.pod:5250
16494 msgid "zfgrep"
16495 msgstr ""
16496
16497 #. type: verbatim
16498 #: ../fish/guestfish-actions.pod:5252
16499 #, no-wrap
16500 msgid ""
16501 " zfgrep pattern path\n"
16502 "\n"
16503 msgstr ""
16504
16505 #. type: textblock
16506 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
16507 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16508 msgstr ""
16509
16510 #. type: =head2
16511 #: ../fish/guestfish-actions.pod:5260
16512 msgid "zfgrepi"
16513 msgstr ""
16514
16515 #. type: verbatim
16516 #: ../fish/guestfish-actions.pod:5262
16517 #, no-wrap
16518 msgid ""
16519 " zfgrepi pattern path\n"
16520 "\n"
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
16525 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16526 msgstr ""
16527
16528 #. type: =head2
16529 #: ../fish/guestfish-actions.pod:5270
16530 msgid "zfile"
16531 msgstr ""
16532
16533 #. type: verbatim
16534 #: ../fish/guestfish-actions.pod:5272
16535 #, no-wrap
16536 msgid ""
16537 " zfile meth path\n"
16538 "\n"
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
16543 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
16548 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../fish/guestfish-actions.pod:5279
16553 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish-actions.pod:5282
16558 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
16559 msgstr ""
16560
16561 #. type: =head2
16562 #: ../fish/guestfish-actions.pod:5289
16563 msgid "zgrep"
16564 msgstr ""
16565
16566 #. type: verbatim
16567 #: ../fish/guestfish-actions.pod:5291
16568 #, no-wrap
16569 msgid ""
16570 " zgrep regex path\n"
16571 "\n"
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
16576 msgid "This calls the external C<zgrep> program and returns the matching lines."
16577 msgstr ""
16578
16579 #. type: =head2
16580 #: ../fish/guestfish-actions.pod:5299
16581 msgid "zgrepi"
16582 msgstr ""
16583
16584 #. type: verbatim
16585 #: ../fish/guestfish-actions.pod:5301
16586 #, no-wrap
16587 msgid ""
16588 " zgrepi regex path\n"
16589 "\n"
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
16594 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16595 msgstr ""
16596
16597 #. type: =head2
16598 #: ../fish/guestfish-commands.pod:1
16599 msgid "alloc"
16600 msgstr ""
16601
16602 #. type: =head2
16603 #: ../fish/guestfish-commands.pod:3
16604 msgid "allocate"
16605 msgstr ""
16606
16607 #. type: verbatim
16608 #: ../fish/guestfish-commands.pod:5
16609 #, no-wrap
16610 msgid ""
16611 " alloc filename size\n"
16612 "\n"
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-commands.pod:7
16617 msgid ""
16618 "This creates an empty (zeroed) file of the given size, and then adds so it "
16619 "can be further examined."
16620 msgstr ""
16621
16622 #. type: textblock
16623 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16624 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16625 msgstr ""
16626
16627 #. type: textblock
16628 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16629 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16630 msgstr ""
16631
16632 #. type: textblock
16633 #: ../fish/guestfish-commands.pod:14
16634 msgid ""
16635 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16636 "image, see L</PREPARED DISK IMAGES>."
16637 msgstr ""
16638
16639 #. type: =head2
16640 #: ../fish/guestfish-commands.pod:17
16641 msgid "copy-in"
16642 msgstr ""
16643
16644 #. type: verbatim
16645 #: ../fish/guestfish-commands.pod:19
16646 #, no-wrap
16647 msgid ""
16648 " copy-in local [local ...] /remotedir\n"
16649 "\n"
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../fish/guestfish-commands.pod:21
16654 msgid ""
16655 "C<copy-in> copies local files or directories recursively into the disk "
16656 "image, placing them in the directory called C</remotedir> (which must "
16657 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16658 "other commands as necessary."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-commands.pod:26
16663 msgid ""
16664 "Multiple local files and directories can be specified, but the last "
16665 "parameter must always be a remote directory.  Wildcards cannot be used."
16666 msgstr ""
16667
16668 #. type: =head2
16669 #: ../fish/guestfish-commands.pod:30
16670 msgid "copy-out"
16671 msgstr ""
16672
16673 #. type: verbatim
16674 #: ../fish/guestfish-commands.pod:32
16675 #, no-wrap
16676 msgid ""
16677 " copy-out remote [remote ...] localdir\n"
16678 "\n"
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-commands.pod:34
16683 msgid ""
16684 "C<copy-out> copies remote files or directories recursively out of the disk "
16685 "image, placing them on the host disk in a local directory called C<localdir> "
16686 "(which must exist).  This guestfish meta-command turns into a sequence of "
16687 "L</download>, L</tar-out> and other commands as necessary."
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-commands.pod:40
16692 msgid ""
16693 "Multiple remote files and directories can be specified, but the last "
16694 "parameter must always be a local directory.  To download to the current "
16695 "directory, use C<.> as in:"
16696 msgstr ""
16697
16698 #. type: verbatim
16699 #: ../fish/guestfish-commands.pod:44
16700 #, no-wrap
16701 msgid ""
16702 " copy-out /home .\n"
16703 "\n"
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish-commands.pod:46
16708 msgid ""
16709 "Wildcards cannot be used in the ordinary command, but you can use them with "
16710 "the help of L</glob> like this:"
16711 msgstr ""
16712
16713 #. type: verbatim
16714 #: ../fish/guestfish-commands.pod:49
16715 #, no-wrap
16716 msgid ""
16717 " glob copy-out /home/* .\n"
16718 "\n"
16719 msgstr ""
16720
16721 #. type: =head2
16722 #: ../fish/guestfish-commands.pod:51
16723 msgid "display"
16724 msgstr ""
16725
16726 #. type: verbatim
16727 #: ../fish/guestfish-commands.pod:53
16728 #, no-wrap
16729 msgid ""
16730 " display filename\n"
16731 "\n"
16732 msgstr ""
16733
16734 #. type: textblock
16735 #: ../fish/guestfish-commands.pod:55
16736 msgid ""
16737 "Use C<display> (a graphical display program) to display an image file.  It "
16738 "downloads the file, and runs C<display> on it."
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish-commands.pod:58
16743 msgid ""
16744 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16745 "environment variable.  For example to use the GNOME display program:"
16746 msgstr ""
16747
16748 #. type: verbatim
16749 #: ../fish/guestfish-commands.pod:61
16750 #, no-wrap
16751 msgid ""
16752 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16753 "\n"
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-commands.pod:63
16758 msgid "See also L<display(1)>."
16759 msgstr ""
16760
16761 #. type: =head2
16762 #: ../fish/guestfish-commands.pod:65
16763 msgid "echo"
16764 msgstr ""
16765
16766 #. type: verbatim
16767 #: ../fish/guestfish-commands.pod:67
16768 #, no-wrap
16769 msgid ""
16770 " echo [params ...]\n"
16771 "\n"
16772 msgstr ""
16773
16774 #. type: textblock
16775 #: ../fish/guestfish-commands.pod:69
16776 msgid "This echos the parameters to the terminal."
16777 msgstr ""
16778
16779 #. type: =head2
16780 #: ../fish/guestfish-commands.pod:71
16781 msgid "edit"
16782 msgstr ""
16783
16784 #. type: =head2
16785 #: ../fish/guestfish-commands.pod:73
16786 msgid "vi"
16787 msgstr ""
16788
16789 #. type: =head2
16790 #: ../fish/guestfish-commands.pod:75
16791 msgid "emacs"
16792 msgstr ""
16793
16794 #. type: verbatim
16795 #: ../fish/guestfish-commands.pod:77
16796 #, no-wrap
16797 msgid ""
16798 " edit filename\n"
16799 "\n"
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-commands.pod:79
16804 msgid ""
16805 "This is used to edit a file.  It downloads the file, edits it locally using "
16806 "your editor, then uploads the result."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-commands.pod:82
16811 msgid ""
16812 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16813 "or C<emacs> you will get those corresponding editors."
16814 msgstr ""
16815
16816 #. type: =head2
16817 #: ../fish/guestfish-commands.pod:86
16818 msgid "glob"
16819 msgstr ""
16820
16821 #. type: verbatim
16822 #: ../fish/guestfish-commands.pod:88
16823 #, no-wrap
16824 msgid ""
16825 " glob command args...\n"
16826 "\n"
16827 msgstr ""
16828
16829 #. type: textblock
16830 #: ../fish/guestfish-commands.pod:90
16831 msgid ""
16832 "Expand wildcards in any paths in the args list, and run C<command> "
16833 "repeatedly on each matching path."
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish-commands.pod:93
16838 msgid "See L</WILDCARDS AND GLOBBING>."
16839 msgstr ""
16840
16841 #. type: =head2
16842 #: ../fish/guestfish-commands.pod:95
16843 msgid "hexedit"
16844 msgstr ""
16845
16846 #. type: verbatim
16847 #: ../fish/guestfish-commands.pod:97
16848 #, no-wrap
16849 msgid ""
16850 " hexedit <filename|device>\n"
16851 " hexedit <filename|device> <max>\n"
16852 " hexedit <filename|device> <start> <max>\n"
16853 "\n"
16854 msgstr ""
16855
16856 #. type: textblock
16857 #: ../fish/guestfish-commands.pod:101
16858 msgid ""
16859 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16860 "device."
16861 msgstr ""
16862
16863 #. type: textblock
16864 #: ../fish/guestfish-commands.pod:104
16865 msgid ""
16866 "This command works by downloading potentially the whole file or device, "
16867 "editing it locally, then uploading it.  If the file or device is large, you "
16868 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16869 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16870 "usual modifiers allowed such as C<1M> (1 megabyte)."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish-commands.pod:111
16875 msgid "For example to edit the first few sectors of a disk you might do:"
16876 msgstr ""
16877
16878 #. type: verbatim
16879 #: ../fish/guestfish-commands.pod:114
16880 #, no-wrap
16881 msgid ""
16882 " hexedit /dev/sda 1M\n"
16883 "\n"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish-commands.pod:116
16888 msgid ""
16889 "which would allow you to edit anywhere within the first megabyte of the "
16890 "disk."
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-commands.pod:119
16895 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16896 msgstr ""
16897
16898 #. type: verbatim
16899 #: ../fish/guestfish-commands.pod:121
16900 #, no-wrap
16901 msgid ""
16902 " hexedit /dev/sda1 0x400 0x400\n"
16903 "\n"
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-commands.pod:123
16908 msgid "(assuming the superblock is in the standard location)."
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish-commands.pod:125
16913 msgid ""
16914 "This command requires the external L<hexedit(1)> program.  You can specify "
16915 "another program to use by setting the C<HEXEDITOR> environment variable."
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish-commands.pod:129
16920 msgid "See also L</hexdump>."
16921 msgstr ""
16922
16923 #. type: =head2
16924 #: ../fish/guestfish-commands.pod:131
16925 msgid "lcd"
16926 msgstr ""
16927
16928 #. type: verbatim
16929 #: ../fish/guestfish-commands.pod:133
16930 #, no-wrap
16931 msgid ""
16932 " lcd directory\n"
16933 "\n"
16934 msgstr ""
16935
16936 #. type: textblock
16937 #: ../fish/guestfish-commands.pod:135
16938 msgid "Change the local directory, ie. the current directory of guestfish itself."
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish-commands.pod:138
16943 msgid "Note that C<!cd> won't do what you might expect."
16944 msgstr ""
16945
16946 #. type: =head2
16947 #: ../fish/guestfish-commands.pod:140
16948 msgid "man"
16949 msgstr ""
16950
16951 #. type: =head2
16952 #: ../fish/guestfish-commands.pod:142
16953 msgid "manual"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish-commands.pod:144
16958 #, no-wrap
16959 msgid ""
16960 "  man\n"
16961 "\n"
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish-commands.pod:146
16966 msgid "Opens the manual page for guestfish."
16967 msgstr ""
16968
16969 #. type: =head2
16970 #: ../fish/guestfish-commands.pod:148
16971 msgid "more"
16972 msgstr ""
16973
16974 #. type: =head2
16975 #: ../fish/guestfish-commands.pod:150
16976 msgid "less"
16977 msgstr ""
16978
16979 #. type: verbatim
16980 #: ../fish/guestfish-commands.pod:152
16981 #, no-wrap
16982 msgid ""
16983 " more filename\n"
16984 "\n"
16985 msgstr ""
16986
16987 #. type: verbatim
16988 #: ../fish/guestfish-commands.pod:154
16989 #, no-wrap
16990 msgid ""
16991 " less filename\n"
16992 "\n"
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../fish/guestfish-commands.pod:156
16997 msgid "This is used to view a file."
16998 msgstr ""
16999
17000 #. type: textblock
17001 #: ../fish/guestfish-commands.pod:158
17002 msgid ""
17003 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17004 "C<less> you will get the C<less> command specifically."
17005 msgstr ""
17006
17007 #. type: =head2
17008 #: ../fish/guestfish-commands.pod:161
17009 msgid "reopen"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../fish/guestfish-commands.pod:163
17014 #, no-wrap
17015 msgid ""
17016 "  reopen\n"
17017 "\n"
17018 msgstr ""
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-commands.pod:165
17022 msgid ""
17023 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17024 "normally, because the handle is closed properly when guestfish exits.  "
17025 "However this is occasionally useful for testing."
17026 msgstr ""
17027
17028 #. type: =head2
17029 #: ../fish/guestfish-commands.pod:169
17030 msgid "setenv"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../fish/guestfish-commands.pod:171
17035 #, no-wrap
17036 msgid ""
17037 "  setenv VAR value\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish-commands.pod:173
17043 msgid "Set the environment variable C<VAR> to the string C<value>."
17044 msgstr ""
17045
17046 #. type: textblock
17047 #: ../fish/guestfish-commands.pod:175
17048 msgid "To print the value of an environment variable use a shell command such as:"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish-commands.pod:178
17053 #, no-wrap
17054 msgid ""
17055 " !echo $VAR\n"
17056 "\n"
17057 msgstr ""
17058
17059 #. type: =head2
17060 #: ../fish/guestfish-commands.pod:180
17061 msgid "sparse"
17062 msgstr ""
17063
17064 #. type: verbatim
17065 #: ../fish/guestfish-commands.pod:182
17066 #, no-wrap
17067 msgid ""
17068 " sparse filename size\n"
17069 "\n"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish-commands.pod:184
17074 msgid ""
17075 "This creates an empty sparse file of the given size, and then adds so it can "
17076 "be further examined."
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-commands.pod:187
17081 msgid ""
17082 "In all respects it works the same as the L</alloc> command, except that the "
17083 "image file is allocated sparsely, which means that disk blocks are not "
17084 "assigned to the file until they are needed.  Sparse disk files only use "
17085 "space when written to, but they are slower and there is a danger you could "
17086 "run out of real disk space during a write operation."
17087 msgstr ""
17088
17089 #. type: =head2
17090 #: ../fish/guestfish-commands.pod:197
17091 msgid "supported"
17092 msgstr ""
17093
17094 #. type: verbatim
17095 #: ../fish/guestfish-commands.pod:199
17096 #, no-wrap
17097 msgid ""
17098 " supported\n"
17099 "\n"
17100 msgstr ""
17101
17102 #. type: textblock
17103 #: ../fish/guestfish-commands.pod:201
17104 msgid ""
17105 "This command returns a list of the optional groups known to the daemon, and "
17106 "indicates which ones are supported by this build of the libguestfs "
17107 "appliance."
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../fish/guestfish-commands.pod:205
17112 msgid "See also L<guestfs(3)/AVAILABILITY>."
17113 msgstr ""
17114
17115 #. type: =head2
17116 #: ../fish/guestfish-commands.pod:207
17117 msgid "time"
17118 msgstr ""
17119
17120 #. type: verbatim
17121 #: ../fish/guestfish-commands.pod:209
17122 #, no-wrap
17123 msgid ""
17124 " time command args...\n"
17125 "\n"
17126 msgstr ""
17127
17128 #. type: textblock
17129 #: ../fish/guestfish-commands.pod:211
17130 msgid ""
17131 "Run the command as usual, but print the elapsed time afterwards.  This can "
17132 "be useful for benchmarking operations."
17133 msgstr ""
17134
17135 #. type: =head2
17136 #: ../fish/guestfish-commands.pod:214
17137 msgid "unsetenv"
17138 msgstr ""
17139
17140 #. type: verbatim
17141 #: ../fish/guestfish-commands.pod:216
17142 #, no-wrap
17143 msgid ""
17144 "  unsetenv VAR\n"
17145 "\n"
17146 msgstr ""
17147
17148 #. type: textblock
17149 #: ../fish/guestfish-commands.pod:218
17150 msgid "Remove C<VAR> from the environment."
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish.pod:5
17155 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17156 msgstr ""
17157
17158 #. type: verbatim
17159 #: ../fish/guestfish.pod:9
17160 #, no-wrap
17161 msgid ""
17162 " guestfish [--options] [commands]\n"
17163 "\n"
17164 msgstr ""
17165
17166 #. type: verbatim
17167 #: ../fish/guestfish.pod:11
17168 #, no-wrap
17169 msgid ""
17170 " guestfish\n"
17171 "\n"
17172 msgstr ""
17173
17174 #. type: verbatim
17175 #: ../fish/guestfish.pod:13
17176 #, no-wrap
17177 msgid ""
17178 " guestfish [--ro|--rw] -a disk.img\n"
17179 "\n"
17180 msgstr ""
17181
17182 #. type: verbatim
17183 #: ../fish/guestfish.pod:15
17184 #, no-wrap
17185 msgid ""
17186 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17187 "\n"
17188 msgstr ""
17189
17190 #. type: verbatim
17191 #: ../fish/guestfish.pod:17
17192 #, no-wrap
17193 msgid ""
17194 " guestfish -d libvirt-domain\n"
17195 "\n"
17196 msgstr ""
17197
17198 #. type: verbatim
17199 #: ../fish/guestfish.pod:19
17200 #, no-wrap
17201 msgid ""
17202 " guestfish [--ro|--rw] -a disk.img -i\n"
17203 "\n"
17204 msgstr ""
17205
17206 #. type: verbatim
17207 #: ../fish/guestfish.pod:21
17208 #, no-wrap
17209 msgid ""
17210 " guestfish -d libvirt-domain -i\n"
17211 "\n"
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish.pod:25
17216 msgid ""
17217 "Using guestfish in read/write mode on live virtual machines can be "
17218 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17219 "option to use guestfish safely if the disk image or virtual machine might be "
17220 "live."
17221 msgstr ""
17222
17223 #. type: textblock
17224 #: ../fish/guestfish.pod:32
17225 msgid ""
17226 "Guestfish is a shell and command-line tool for examining and modifying "
17227 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17228 "functionality of the guestfs API, see L<guestfs(3)>."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish.pod:36
17233 msgid ""
17234 "Guestfish gives you structured access to the libguestfs API, from shell "
17235 "scripts or the command line or interactively.  If you want to rescue a "
17236 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17237 "command."
17238 msgstr ""
17239
17240 #. type: =head2
17241 #: ../fish/guestfish.pod:43
17242 msgid "As an interactive shell"
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish.pod:45
17247 #, no-wrap
17248 msgid ""
17249 " $ guestfish\n"
17250 " \n"
17251 msgstr ""
17252
17253 #. type: verbatim
17254 #: ../fish/guestfish.pod:47
17255 #, no-wrap
17256 msgid ""
17257 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17258 " editing virtual machine filesystems.\n"
17259 " \n"
17260 msgstr ""
17261
17262 #. type: verbatim
17263 #: ../fish/guestfish.pod:50
17264 #, no-wrap
17265 msgid ""
17266 " Type: 'help' for a list of commands\n"
17267 "       'man' to read the manual\n"
17268 "       'quit' to quit the shell\n"
17269 " \n"
17270 msgstr ""
17271
17272 #. type: verbatim
17273 #: ../fish/guestfish.pod:54
17274 #, no-wrap
17275 msgid ""
17276 " ><fs> add-ro disk.img\n"
17277 " ><fs> run\n"
17278 " ><fs> list-filesystems\n"
17279 " /dev/sda1: ext4\n"
17280 " /dev/vg_guest/lv_root: ext4\n"
17281 " /dev/vg_guest/lv_swap: swap\n"
17282 " ><fs> mount /dev/vg_guest/lv_root /\n"
17283 " ><fs> cat /etc/fstab\n"
17284 " # /etc/fstab\n"
17285 " # Created by anaconda\n"
17286 " [...]\n"
17287 " ><fs> exit\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: =head2
17292 #: ../fish/guestfish.pod:67
17293 msgid "From shell scripts"
17294 msgstr ""
17295
17296 #. type: textblock
17297 #: ../fish/guestfish.pod:69
17298 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17299 msgstr ""
17300
17301 #. type: verbatim
17302 #: ../fish/guestfish.pod:71
17303 #, no-wrap
17304 msgid ""
17305 " guestfish <<_EOF_\n"
17306 " add disk.img\n"
17307 " run\n"
17308 " mount /dev/vg_guest/lv_root /\n"
17309 " write /etc/motd \"Welcome, new users\"\n"
17310 " _EOF_\n"
17311 "\n"
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish.pod:78
17316 msgid "List the LVM logical volumes in a disk image:"
17317 msgstr ""
17318
17319 #. type: verbatim
17320 #: ../fish/guestfish.pod:80
17321 #, no-wrap
17322 msgid ""
17323 " guestfish -a disk.img --ro <<_EOF_\n"
17324 " run\n"
17325 " lvs\n"
17326 " _EOF_\n"
17327 "\n"
17328 msgstr ""
17329
17330 #. type: textblock
17331 #: ../fish/guestfish.pod:85
17332 msgid "List all the filesystems in a disk image:"
17333 msgstr ""
17334
17335 #. type: verbatim
17336 #: ../fish/guestfish.pod:87
17337 #, no-wrap
17338 msgid ""
17339 " guestfish -a disk.img --ro <<_EOF_\n"
17340 " run\n"
17341 " list-filesystems\n"
17342 " _EOF_\n"
17343 "\n"
17344 msgstr ""
17345
17346 #. type: =head2
17347 #: ../fish/guestfish.pod:92
17348 msgid "On one command line"
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17353 msgid "Update C</etc/resolv.conf> in a guest:"
17354 msgstr ""
17355
17356 #. type: verbatim
17357 #: ../fish/guestfish.pod:96
17358 #, no-wrap
17359 msgid ""
17360 " guestfish \\\n"
17361 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17362 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17363 "\n"
17364 msgstr ""
17365
17366 #. type: textblock
17367 #: ../fish/guestfish.pod:100
17368 msgid "Edit C</boot/grub/grub.conf> interactively:"
17369 msgstr ""
17370
17371 #. type: verbatim
17372 #: ../fish/guestfish.pod:102
17373 #, no-wrap
17374 msgid ""
17375 " guestfish --rw --add disk.img \\\n"
17376 "   --mount /dev/vg_guest/lv_root \\\n"
17377 "   --mount /dev/sda1:/boot \\\n"
17378 "   edit /boot/grub/grub.conf\n"
17379 "\n"
17380 msgstr ""
17381
17382 #. type: =head2
17383 #: ../fish/guestfish.pod:107
17384 msgid "Mount disks automatically"
17385 msgstr ""
17386
17387 #. type: textblock
17388 #: ../fish/guestfish.pod:109
17389 msgid ""
17390 "Use the I<-i> option to automatically mount the disks from a virtual "
17391 "machine:"
17392 msgstr ""
17393
17394 #. type: verbatim
17395 #: ../fish/guestfish.pod:112
17396 #, no-wrap
17397 msgid ""
17398 " guestfish --ro -a disk.img -i cat /etc/group\n"
17399 "\n"
17400 msgstr ""
17401
17402 #. type: verbatim
17403 #: ../fish/guestfish.pod:114
17404 #, no-wrap
17405 msgid ""
17406 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17407 "\n"
17408 msgstr ""
17409
17410 #. type: textblock
17411 #: ../fish/guestfish.pod:116
17412 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17413 msgstr ""
17414
17415 #. type: verbatim
17416 #: ../fish/guestfish.pod:118
17417 #, no-wrap
17418 msgid ""
17419 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17420 "\n"
17421 msgstr ""
17422
17423 #. type: =head2
17424 #: ../fish/guestfish.pod:120
17425 msgid "As a script interpreter"
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish.pod:122
17430 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish.pod:124
17435 #, no-wrap
17436 msgid ""
17437 " #!/usr/bin/guestfish -f\n"
17438 " sparse test1.img 100M\n"
17439 " run\n"
17440 " part-disk /dev/sda mbr\n"
17441 " mkfs ext2 /dev/sda1\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: =head2
17446 #: ../fish/guestfish.pod:130
17447 msgid "Start with a prepared disk"
17448 msgstr ""
17449
17450 #. type: textblock
17451 #: ../fish/guestfish.pod:132
17452 msgid ""
17453 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17454 "single ext2-formatted partition:"
17455 msgstr ""
17456
17457 #. type: verbatim
17458 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
17459 #, no-wrap
17460 msgid ""
17461 " guestfish -N fs\n"
17462 "\n"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish.pod:137
17467 msgid "To list what is available do:"
17468 msgstr ""
17469
17470 #. type: verbatim
17471 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17472 #, no-wrap
17473 msgid ""
17474 " guestfish -N help | less\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: =head2
17479 #: ../fish/guestfish.pod:141
17480 msgid "Remote control"
17481 msgstr ""
17482
17483 #. type: verbatim
17484 #: ../fish/guestfish.pod:143
17485 #, no-wrap
17486 msgid ""
17487 " eval \"`guestfish --listen`\"\n"
17488 " guestfish --remote add-ro disk.img\n"
17489 " guestfish --remote run\n"
17490 " guestfish --remote lvs\n"
17491 "\n"
17492 msgstr ""
17493
17494 #. type: textblock
17495 #: ../fish/guestfish.pod:154
17496 msgid "Displays general help on options."
17497 msgstr ""
17498
17499 #. type: =item
17500 #: ../fish/guestfish.pod:158
17501 msgid "B<--cmd-help>"
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish.pod:160
17506 msgid "Lists all available guestfish commands."
17507 msgstr ""
17508
17509 #. type: =item
17510 #: ../fish/guestfish.pod:162
17511 msgid "B<-h cmd>"
17512 msgstr ""
17513
17514 #. type: =item
17515 #: ../fish/guestfish.pod:164
17516 msgid "B<--cmd-help cmd>"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:166
17521 msgid "Displays detailed help on a single command C<cmd>."
17522 msgstr ""
17523
17524 #. type: =item
17525 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17526 msgid "B<-a image>"
17527 msgstr ""
17528
17529 #. type: =item
17530 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17531 msgid "B<--add image>"
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish.pod:172
17536 msgid "Add a block device or virtual machine image to the shell."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish.pod:177
17541 msgid ""
17542 "Using this flag is mostly equivalent to using the C<add> command, with "
17543 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17544 "the I<--format=...> flag was given."
17545 msgstr ""
17546
17547 #. type: textblock
17548 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17549 msgid ""
17550 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17551 "URI to use.  The default is to use the default libvirt connection."
17552 msgstr ""
17553
17554 #. type: =item
17555 #: ../fish/guestfish.pod:189
17556 msgid "B<--csh>"
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish.pod:191
17561 msgid ""
17562 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17563 "section L</REMOTE CONTROL AND CSH> below."
17564 msgstr ""
17565
17566 #. type: =item
17567 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17568 msgid "B<-d libvirt-domain>"
17569 msgstr ""
17570
17571 #. type: =item
17572 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17573 msgid "B<--domain libvirt-domain>"
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17578 msgid ""
17579 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17580 "used, then any libvirt domain can be used.  However in write mode, only "
17581 "libvirt domains which are shut down can be named here."
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17586 msgid "Domain UUIDs can be used instead of names."
17587 msgstr ""
17588
17589 #. type: textblock
17590 #: ../fish/guestfish.pod:204
17591 msgid ""
17592 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17593 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17594 "if the I<--format:...> flag was given."
17595 msgstr ""
17596
17597 #. type: =item
17598 #: ../fish/guestfish.pod:208
17599 msgid "B<-D>"
17600 msgstr ""
17601
17602 #. type: =item
17603 #: ../fish/guestfish.pod:210
17604 msgid "B<--no-dest-paths>"
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish.pod:212
17609 msgid ""
17610 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17611 "to hit the tab key to complete paths on the guest filesystem, but this "
17612 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17613 "allow this feature to be disabled."
17614 msgstr ""
17615
17616 #. type: textblock
17617 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17618 msgid ""
17619 "When prompting for keys and passphrases, guestfish normally turns echoing "
17620 "off so you cannot see what you are typing.  If you are not worried about "
17621 "Tempest attacks and there is no one else in the room you can specify this "
17622 "flag to see what you are typing."
17623 msgstr ""
17624
17625 #. type: =item
17626 #: ../fish/guestfish.pod:224
17627 msgid "B<-f file>"
17628 msgstr ""
17629
17630 #. type: =item
17631 #: ../fish/guestfish.pod:226
17632 msgid "B<--file file>"
17633 msgstr ""
17634
17635 #. type: textblock
17636 #: ../fish/guestfish.pod:228
17637 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17638 msgstr ""
17639
17640 #. type: verbatim
17641 #: ../fish/guestfish.pod:231
17642 #, no-wrap
17643 msgid ""
17644 " #!/usr/bin/guestfish -f\n"
17645 "\n"
17646 msgstr ""
17647
17648 #. type: verbatim
17649 #: ../fish/guestfish.pod:244
17650 #, no-wrap
17651 msgid ""
17652 " guestfish --format=raw -a disk.img\n"
17653 "\n"
17654 msgstr ""
17655
17656 #. type: verbatim
17657 #: ../fish/guestfish.pod:248
17658 #, no-wrap
17659 msgid ""
17660 " guestfish --format=raw -a disk.img --format -a another.img\n"
17661 "\n"
17662 msgstr ""
17663
17664 #. type: textblock
17665 #: ../fish/guestfish.pod:253
17666 msgid ""
17667 "If you have untrusted raw-format guest disk images, you should use this "
17668 "option to specify the disk format.  This avoids a possible security problem "
17669 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17670 msgstr ""
17671
17672 #. type: =item
17673 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17674 msgid "B<--inspector>"
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17679 msgid ""
17680 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17681 "system and mount filesystems as they would be mounted on the real virtual "
17682 "machine."
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:266
17687 msgid "Typical usage is either:"
17688 msgstr ""
17689
17690 #. type: verbatim
17691 #: ../fish/guestfish.pod:268
17692 #, no-wrap
17693 msgid ""
17694 " guestfish -d myguest -i\n"
17695 "\n"
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish.pod:270
17700 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17701 msgstr ""
17702
17703 #. type: verbatim
17704 #: ../fish/guestfish.pod:272
17705 #, no-wrap
17706 msgid ""
17707 " guestfish --ro -d myguest -i\n"
17708 "\n"
17709 msgstr ""
17710
17711 #. type: textblock
17712 #: ../fish/guestfish.pod:274
17713 msgid "(for active domains, readonly), or specify the block device directly:"
17714 msgstr ""
17715
17716 #. type: verbatim
17717 #: ../fish/guestfish.pod:276
17718 #, no-wrap
17719 msgid ""
17720 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17721 "\n"
17722 msgstr ""
17723
17724 #. type: textblock
17725 #: ../fish/guestfish.pod:278
17726 msgid ""
17727 "Note that the command line syntax changed slightly over older versions of "
17728 "guestfish.  You can still use the old syntax:"
17729 msgstr ""
17730
17731 #. type: verbatim
17732 #: ../fish/guestfish.pod:281
17733 #, no-wrap
17734 msgid ""
17735 " guestfish [--ro] -i disk.img\n"
17736 "\n"
17737 msgstr ""
17738
17739 #. type: verbatim
17740 #: ../fish/guestfish.pod:283
17741 #, no-wrap
17742 msgid ""
17743 " guestfish [--ro] -i libvirt-domain\n"
17744 "\n"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:285
17749 msgid ""
17750 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17751 "then using other commands to mount the filesystems that were found."
17752 msgstr ""
17753
17754 #. type: =item
17755 #: ../fish/guestfish.pod:294
17756 msgid "B<--listen>"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish.pod:296
17761 msgid ""
17762 "Fork into the background and listen for remote commands.  See section "
17763 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17764 msgstr ""
17765
17766 #. type: =item
17767 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17768 msgid "B<--live>"
17769 msgstr ""
17770
17771 #. type: textblock
17772 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17773 msgid ""
17774 "Connect to a live virtual machine.  (Experimental, see "
17775 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
17776 msgstr ""
17777
17778 #. type: =item
17779 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
17780 msgid "B<-m dev[:mountpoint[:options]]>"
17781 msgstr ""
17782
17783 #. type: =item
17784 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
17785 msgid "B<--mount dev[:mountpoint[:options]]>"
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish.pod:308
17790 msgid "Mount the named partition or logical volume on the given mountpoint."
17791 msgstr ""
17792
17793 #. type: textblock
17794 #: ../fish/guestfish.pod:310
17795 msgid "If the mountpoint is omitted, it defaults to C</>."
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../fish/guestfish.pod:312
17800 msgid "You have to mount something on C</> before most commands will work."
17801 msgstr ""
17802
17803 #. type: textblock
17804 #: ../fish/guestfish.pod:314
17805 msgid ""
17806 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17807 "launched."
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../fish/guestfish.pod:317
17812 msgid ""
17813 "If you don't know what filesystems a disk image contains, you can either run "
17814 "guestfish without this option, then list the partitions, filesystems and LVs "
17815 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17816 "commands), or you can use the L<virt-filesystems(1)> program."
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
17821 msgid ""
17822 "The third (and rarely used) part of the mount parameter is the list of mount "
17823 "options used to mount the underlying filesystem.  If this is not given, then "
17824 "the mount options are either the empty string or C<ro> (the latter if the "
17825 "I<--ro> flag is used).  By specifying the mount options, you override this "
17826 "default choice.  Probably the only time you would use this is to enable ACLs "
17827 "and/or extended attributes if the filesystem can support them:"
17828 msgstr ""
17829
17830 #. type: verbatim
17831 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
17832 #, no-wrap
17833 msgid ""
17834 " -m /dev/sda1:/:acl,user_xattr\n"
17835 "\n"
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish.pod:333
17840 msgid "Using this flag is equivalent to using the C<mount-options> command."
17841 msgstr ""
17842
17843 #. type: =item
17844 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:358
17845 msgid "B<-n>"
17846 msgstr ""
17847
17848 #. type: =item
17849 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
17850 msgid "B<--no-sync>"
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../fish/guestfish.pod:339
17855 msgid ""
17856 "Disable autosync.  This is enabled by default.  See the discussion of "
17857 "autosync in the L<guestfs(3)> manpage."
17858 msgstr ""
17859
17860 #. type: =item
17861 #: ../fish/guestfish.pod:342
17862 msgid "B<-N type>"
17863 msgstr ""
17864
17865 #. type: =item
17866 #: ../fish/guestfish.pod:344
17867 msgid "B<--new type>"
17868 msgstr ""
17869
17870 #. type: =item
17871 #: ../fish/guestfish.pod:346
17872 msgid "B<-N help>"
17873 msgstr ""
17874
17875 #. type: textblock
17876 #: ../fish/guestfish.pod:348
17877 msgid ""
17878 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17879 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17880 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17881 "IMAGES> below."
17882 msgstr ""
17883
17884 #. type: =item
17885 #: ../fish/guestfish.pod:353
17886 msgid "B<--progress-bars>"
17887 msgstr ""
17888
17889 #. type: textblock
17890 #: ../fish/guestfish.pod:355
17891 msgid "Enable progress bars, even when guestfish is used non-interactively."
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:357
17896 msgid ""
17897 "Progress bars are enabled by default when guestfish is used as an "
17898 "interactive shell."
17899 msgstr ""
17900
17901 #. type: =item
17902 #: ../fish/guestfish.pod:360
17903 msgid "B<--no-progress-bars>"
17904 msgstr ""
17905
17906 #. type: textblock
17907 #: ../fish/guestfish.pod:362
17908 msgid "Disable progress bars."
17909 msgstr ""
17910
17911 #. type: =item
17912 #: ../fish/guestfish.pod:364
17913 msgid "B<--remote[=pid]>"
17914 msgstr ""
17915
17916 #. type: textblock
17917 #: ../fish/guestfish.pod:366
17918 msgid ""
17919 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17920 "CONTROL GUESTFISH OVER A SOCKET> below."
17921 msgstr ""
17922
17923 #. type: =item
17924 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
17925 msgid "B<-r>"
17926 msgstr ""
17927
17928 #. type: =item
17929 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
17930 msgid "B<--ro>"
17931 msgstr ""
17932
17933 #. type: textblock
17934 #: ../fish/guestfish.pod:373
17935 msgid ""
17936 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17937 "mounts are done read-only."
17938 msgstr ""
17939
17940 #. type: textblock
17941 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17942 msgid ""
17943 "The option must always be used if the disk image or virtual machine might be "
17944 "running, and is generally recommended in cases where you don't need write "
17945 "access to the disk."
17946 msgstr ""
17947
17948 #. type: textblock
17949 #: ../fish/guestfish.pod:380
17950 msgid ""
17951 "Note that prepared disk images created with I<-N> are not affected by this "
17952 "option.  Also commands like C<add> are not affected - you have to specify "
17953 "the C<readonly:true> option explicitly if you need it."
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish.pod:384
17958 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17959 msgstr ""
17960
17961 #. type: =item
17962 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
17963 msgid "B<--selinux>"
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish.pod:388
17968 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../fish/guestfish.pod:394
17973 msgid ""
17974 "Enable very verbose messages.  This is particularly useful if you find a "
17975 "bug."
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish.pod:401
17980 msgid "Display the guestfish / libguestfs version number and exit."
17981 msgstr ""
17982
17983 #. type: =item
17984 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
17985 msgid "B<-w>"
17986 msgstr ""
17987
17988 #. type: =item
17989 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
17990 msgid "B<--rw>"
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
17995 msgid ""
17996 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17997 "mounts are done read-write."
17998 msgstr ""
17999
18000 #. type: textblock
18001 #: ../fish/guestfish.pod:410
18002 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18003 msgstr ""
18004
18005 #. type: textblock
18006 #: ../fish/guestfish.pod:414
18007 msgid "Echo each command before executing it."
18008 msgstr ""
18009
18010 #. type: =head1
18011 #: ../fish/guestfish.pod:418
18012 msgid "COMMANDS ON COMMAND LINE"
18013 msgstr ""
18014
18015 #. type: textblock
18016 #: ../fish/guestfish.pod:420
18017 msgid "Any additional (non-option) arguments are treated as commands to execute."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:423
18022 msgid ""
18023 "Commands to execute should be separated by a colon (C<:>), where the colon "
18024 "is a separate parameter.  Thus:"
18025 msgstr ""
18026
18027 #. type: verbatim
18028 #: ../fish/guestfish.pod:426
18029 #, no-wrap
18030 msgid ""
18031 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18032 "\n"
18033 msgstr ""
18034
18035 #. type: textblock
18036 #: ../fish/guestfish.pod:428
18037 msgid ""
18038 "If there are no additional arguments, then we enter a shell, either an "
18039 "interactive shell with a prompt (if the input is a terminal) or a "
18040 "non-interactive shell."
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../fish/guestfish.pod:432
18045 msgid ""
18046 "In either command line mode or non-interactive shell, the first command that "
18047 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18048 "prompt) if a command fails, you can continue to enter commands."
18049 msgstr ""
18050
18051 #. type: =head1
18052 #: ../fish/guestfish.pod:437
18053 msgid "USING launch (OR run)"
18054 msgstr ""
18055
18056 #. type: textblock
18057 #: ../fish/guestfish.pod:439
18058 msgid ""
18059 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18060 "then launch it, then mount any disks you need, and finally issue "
18061 "actions/commands.  So the general order of the day is:"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:447
18066 msgid "add or -a/--add"
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:451
18071 msgid "launch (aka run)"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:455
18076 msgid "mount or -m/--mount"
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish.pod:459
18081 msgid "any other commands"
18082 msgstr ""
18083
18084 #. type: textblock
18085 #: ../fish/guestfish.pod:463
18086 msgid ""
18087 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18088 "guest before mounting or performing any other commands."
18089 msgstr ""
18090
18091 #. type: textblock
18092 #: ../fish/guestfish.pod:466
18093 msgid ""
18094 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18095 "I<--new> options were given then C<run> is done automatically, simply "
18096 "because guestfish can't perform the action you asked for without doing this."
18097 msgstr ""
18098
18099 #. type: =head1
18100 #: ../fish/guestfish.pod:471
18101 msgid "OPENING DISKS FOR READ AND WRITE"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish.pod:473
18106 msgid ""
18107 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18108 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18109 "I<-i> and I<-m> open disk images read-only or for writing."
18110 msgstr ""
18111
18112 #. type: textblock
18113 #: ../fish/guestfish.pod:478
18114 msgid ""
18115 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18116 "opening disk images supplied on the command line for write.  To open a disk "
18117 "image read-only you have to do I<-a image --ro>."
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:482
18122 msgid ""
18123 "This matters: If you accidentally open a live VM disk image writable then "
18124 "you will cause irreversible disk corruption."
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish.pod:485
18129 msgid ""
18130 "In a future libguestfs we intend to change the default the other way.  Disk "
18131 "images will be opened read-only.  You will have to either specify "
18132 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18133 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18134 "access for disk images specified by those other command line options."
18135 msgstr ""
18136
18137 #. type: textblock
18138 #: ../fish/guestfish.pod:492
18139 msgid ""
18140 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18141 "which does nothing (it is already the default).  However it is highly "
18142 "recommended that you use this option to indicate that you need write access, "
18143 "and prepare your scripts for the day when this option will be required for "
18144 "write access."
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:498
18149 msgid ""
18150 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18151 "other libguestfs program apart from guestfish and guestmount."
18152 msgstr ""
18153
18154 #. type: =head1
18155 #: ../fish/guestfish.pod:501
18156 msgid "QUOTING"
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:503
18161 msgid ""
18162 "You can quote ordinary parameters using either single or double quotes.  For "
18163 "example:"
18164 msgstr ""
18165
18166 #. type: verbatim
18167 #: ../fish/guestfish.pod:506
18168 #, no-wrap
18169 msgid ""
18170 " add \"file with a space.img\"\n"
18171 "\n"
18172 msgstr ""
18173
18174 #. type: verbatim
18175 #: ../fish/guestfish.pod:508
18176 #, no-wrap
18177 msgid ""
18178 " rm '/file name'\n"
18179 "\n"
18180 msgstr ""
18181
18182 #. type: verbatim
18183 #: ../fish/guestfish.pod:510
18184 #, no-wrap
18185 msgid ""
18186 " rm '/\"'\n"
18187 "\n"
18188 msgstr ""
18189
18190 #. type: textblock
18191 #: ../fish/guestfish.pod:512
18192 msgid ""
18193 "A few commands require a list of strings to be passed.  For these, use a "
18194 "whitespace-separated list, enclosed in quotes.  Strings containing "
18195 "whitespace to be passed through must be enclosed in single quotes.  A "
18196 "literal single quote must be escaped with a backslash."
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/guestfish.pod:517
18201 #, no-wrap
18202 msgid ""
18203 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18204 " command \"/bin/echo 'foo      bar'\"\n"
18205 " command \"/bin/echo \\'foo\\'\"\n"
18206 "\n"
18207 msgstr ""
18208
18209 #. type: =head2
18210 #: ../fish/guestfish.pod:521
18211 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18212 msgstr ""
18213
18214 #. type: textblock
18215 #: ../fish/guestfish.pod:523
18216 msgid ""
18217 "In double-quoted arguments (only) use backslash to insert special "
18218 "characters:"
18219 msgstr ""
18220
18221 #. type: =item
18222 #: ../fish/guestfish.pod:528
18223 msgid "C<\\a>"
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:530
18228 msgid "Alert (bell) character."
18229 msgstr ""
18230
18231 #. type: =item
18232 #: ../fish/guestfish.pod:532
18233 msgid "C<\\b>"
18234 msgstr ""
18235
18236 #. type: textblock
18237 #: ../fish/guestfish.pod:534
18238 msgid "Backspace character."
18239 msgstr ""
18240
18241 #. type: =item
18242 #: ../fish/guestfish.pod:536
18243 msgid "C<\\f>"
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:538
18248 msgid "Form feed character."
18249 msgstr ""
18250
18251 #. type: =item
18252 #: ../fish/guestfish.pod:540
18253 msgid "C<\\n>"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:542
18258 msgid "Newline character."
18259 msgstr ""
18260
18261 #. type: =item
18262 #: ../fish/guestfish.pod:544
18263 msgid "C<\\r>"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:546
18268 msgid "Carriage return character."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish.pod:548
18273 msgid "C<\\t>"
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:550
18278 msgid "Horizontal tab character."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:552
18283 msgid "C<\\v>"
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:554
18288 msgid "Vertical tab character."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:556
18293 msgid "C<\\\">"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:558
18298 msgid "A literal double quote character."
18299 msgstr ""
18300
18301 #. type: =item
18302 #: ../fish/guestfish.pod:560
18303 msgid "C<\\ooo>"
18304 msgstr ""
18305
18306 #. type: textblock
18307 #: ../fish/guestfish.pod:562
18308 msgid ""
18309 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18310 "(unlike C)."
18311 msgstr ""
18312
18313 #. type: =item
18314 #: ../fish/guestfish.pod:565
18315 msgid "C<\\xhh>"
18316 msgstr ""
18317
18318 #. type: textblock
18319 #: ../fish/guestfish.pod:567
18320 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/guestfish.pod:570
18325 msgid ""
18326 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18327 "strings."
18328 msgstr ""
18329
18330 #. type: =item
18331 #: ../fish/guestfish.pod:573
18332 msgid "C<\\\\>"
18333 msgstr ""
18334
18335 #. type: textblock
18336 #: ../fish/guestfish.pod:575
18337 msgid "A literal backslash character."
18338 msgstr ""
18339
18340 #. type: =head1
18341 #: ../fish/guestfish.pod:579
18342 msgid "OPTIONAL ARGUMENTS"
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish.pod:581
18347 msgid ""
18348 "Some commands take optional arguments.  These arguments appear in this "
18349 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18350 msgstr ""
18351
18352 #. type: verbatim
18353 #: ../fish/guestfish.pod:585
18354 #, no-wrap
18355 msgid ""
18356 " add-drive-opts filename\n"
18357 "\n"
18358 msgstr ""
18359
18360 #. type: verbatim
18361 #: ../fish/guestfish.pod:587
18362 #, no-wrap
18363 msgid ""
18364 " add-drive-opts filename readonly:true\n"
18365 "\n"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish.pod:589
18370 #, no-wrap
18371 msgid ""
18372 " add-drive-opts filename format:qcow2 readonly:false\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:591
18378 msgid ""
18379 "Each optional argument can appear at most once.  All optional arguments must "
18380 "appear after the required ones."
18381 msgstr ""
18382
18383 #. type: =head1
18384 #: ../fish/guestfish.pod:594
18385 msgid "NUMBERS"
18386 msgstr ""
18387
18388 #. type: textblock
18389 #: ../fish/guestfish.pod:596
18390 msgid "This section applies to all commands which can take integers as parameters."
18391 msgstr ""
18392
18393 #. type: =head2
18394 #: ../fish/guestfish.pod:599
18395 msgid "SIZE SUFFIX"
18396 msgstr ""
18397
18398 #. type: textblock
18399 #: ../fish/guestfish.pod:601
18400 msgid ""
18401 "When the command takes a parameter measured in bytes, you can use one of the "
18402 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18403 msgstr ""
18404
18405 #. type: =item
18406 #: ../fish/guestfish.pod:607
18407 msgid "B<k> or B<K> or B<KiB>"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:609
18412 msgid "The size in kilobytes (multiplied by 1024)."
18413 msgstr ""
18414
18415 #. type: =item
18416 #: ../fish/guestfish.pod:611
18417 msgid "B<KB>"
18418 msgstr ""
18419
18420 #. type: textblock
18421 #: ../fish/guestfish.pod:613
18422 msgid "The size in SI 1000 byte units."
18423 msgstr ""
18424
18425 #. type: =item
18426 #: ../fish/guestfish.pod:615
18427 msgid "B<M> or B<MiB>"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish.pod:617
18432 msgid "The size in megabytes (multiplied by 1048576)."
18433 msgstr ""
18434
18435 #. type: =item
18436 #: ../fish/guestfish.pod:619
18437 msgid "B<MB>"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish.pod:621
18442 msgid "The size in SI 1000000 byte units."
18443 msgstr ""
18444
18445 #. type: =item
18446 #: ../fish/guestfish.pod:623
18447 msgid "B<G> or B<GiB>"
18448 msgstr ""
18449
18450 #. type: textblock
18451 #: ../fish/guestfish.pod:625
18452 msgid "The size in gigabytes (multiplied by 2**30)."
18453 msgstr ""
18454
18455 #. type: =item
18456 #: ../fish/guestfish.pod:627
18457 msgid "B<GB>"
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fish/guestfish.pod:629
18462 msgid "The size in SI 10**9 byte units."
18463 msgstr ""
18464
18465 #. type: =item
18466 #: ../fish/guestfish.pod:631
18467 msgid "B<T> or B<TiB>"
18468 msgstr ""
18469
18470 #. type: textblock
18471 #: ../fish/guestfish.pod:633
18472 msgid "The size in terabytes (multiplied by 2**40)."
18473 msgstr ""
18474
18475 #. type: =item
18476 #: ../fish/guestfish.pod:635
18477 msgid "B<TB>"
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../fish/guestfish.pod:637
18482 msgid "The size in SI 10**12 byte units."
18483 msgstr ""
18484
18485 #. type: =item
18486 #: ../fish/guestfish.pod:639
18487 msgid "B<P> or B<PiB>"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fish/guestfish.pod:641
18492 msgid "The size in petabytes (multiplied by 2**50)."
18493 msgstr ""
18494
18495 #. type: =item
18496 #: ../fish/guestfish.pod:643
18497 msgid "B<PB>"
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../fish/guestfish.pod:645
18502 msgid "The size in SI 10**15 byte units."
18503 msgstr ""
18504
18505 #. type: =item
18506 #: ../fish/guestfish.pod:647
18507 msgid "B<E> or B<EiB>"
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish.pod:649
18512 msgid "The size in exabytes (multiplied by 2**60)."
18513 msgstr ""
18514
18515 #. type: =item
18516 #: ../fish/guestfish.pod:651
18517 msgid "B<EB>"
18518 msgstr ""
18519
18520 #. type: textblock
18521 #: ../fish/guestfish.pod:653
18522 msgid "The size in SI 10**18 byte units."
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:655
18527 msgid "B<Z> or B<ZiB>"
18528 msgstr ""
18529
18530 #. type: textblock
18531 #: ../fish/guestfish.pod:657
18532 msgid "The size in zettabytes (multiplied by 2**70)."
18533 msgstr ""
18534
18535 #. type: =item
18536 #: ../fish/guestfish.pod:659
18537 msgid "B<ZB>"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:661
18542 msgid "The size in SI 10**21 byte units."
18543 msgstr ""
18544
18545 #. type: =item
18546 #: ../fish/guestfish.pod:663
18547 msgid "B<Y> or B<YiB>"
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:665
18552 msgid "The size in yottabytes (multiplied by 2**80)."
18553 msgstr ""
18554
18555 #. type: =item
18556 #: ../fish/guestfish.pod:667
18557 msgid "B<YB>"
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fish/guestfish.pod:669
18562 msgid "The size in SI 10**24 byte units."
18563 msgstr ""
18564
18565 #. type: verbatim
18566 #: ../fish/guestfish.pod:675
18567 #, no-wrap
18568 msgid ""
18569 " truncate-size /file 1G\n"
18570 "\n"
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:677
18575 msgid "would truncate the file to 1 gigabyte."
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../fish/guestfish.pod:679
18580 msgid ""
18581 "Be careful because a few commands take sizes in kilobytes or megabytes "
18582 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18583 "Adding a suffix will probably not do what you expect."
18584 msgstr ""
18585
18586 #. type: =head2
18587 #: ../fish/guestfish.pod:683
18588 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18589 msgstr ""
18590
18591 #. type: textblock
18592 #: ../fish/guestfish.pod:685
18593 msgid ""
18594 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18595 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18596 msgstr ""
18597
18598 #. type: verbatim
18599 #: ../fish/guestfish.pod:688
18600 #, no-wrap
18601 msgid ""
18602 " 1234      decimal number 1234\n"
18603 " 02322     octal number, equivalent to decimal 1234\n"
18604 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18605 "\n"
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:692
18610 msgid ""
18611 "When using the C<chmod> command, you almost always want to specify an octal "
18612 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18613 "L<chmod(1)> program):"
18614 msgstr ""
18615
18616 #. type: verbatim
18617 #: ../fish/guestfish.pod:696
18618 #, no-wrap
18619 msgid ""
18620 " chmod 0777 /public  # OK\n"
18621 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: textblock
18626 #: ../fish/guestfish.pod:699
18627 msgid ""
18628 "Commands that return numbers usually print them in decimal, but some "
18629 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18630 "octal, preceeded by C<0>)."
18631 msgstr ""
18632
18633 #. type: =head1
18634 #: ../fish/guestfish.pod:703
18635 msgid "WILDCARDS AND GLOBBING"
18636 msgstr ""
18637
18638 #. type: textblock
18639 #: ../fish/guestfish.pod:705
18640 msgid ""
18641 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18642 "(globbing) by default.  So for example the following will not do what you "
18643 "expect:"
18644 msgstr ""
18645
18646 #. type: verbatim
18647 #: ../fish/guestfish.pod:709
18648 #, no-wrap
18649 msgid ""
18650 " rm-rf /home/*\n"
18651 "\n"
18652 msgstr ""
18653
18654 #. type: textblock
18655 #: ../fish/guestfish.pod:711
18656 msgid ""
18657 "Assuming you don't have a directory called literally C</home/*> then the "
18658 "above command will return an error."
18659 msgstr ""
18660
18661 #. type: textblock
18662 #: ../fish/guestfish.pod:714
18663 msgid "To perform wildcard expansion, use the C<glob> command."
18664 msgstr ""
18665
18666 #. type: verbatim
18667 #: ../fish/guestfish.pod:716
18668 #, no-wrap
18669 msgid ""
18670 " glob rm-rf /home/*\n"
18671 "\n"
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:718
18676 msgid ""
18677 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18678 "many times), equivalent to:"
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:721
18683 #, no-wrap
18684 msgid ""
18685 " rm-rf /home/jim\n"
18686 " rm-rf /home/joe\n"
18687 " rm-rf /home/mary\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:725
18693 msgid "C<glob> only works on simple guest paths and not on device names."
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:727
18698 msgid ""
18699 "If you have several parameters, each containing a wildcard, then glob will "
18700 "perform a Cartesian product."
18701 msgstr ""
18702
18703 #. type: =head1
18704 #: ../fish/guestfish.pod:730
18705 msgid "COMMENTS"
18706 msgstr ""
18707
18708 #. type: textblock
18709 #: ../fish/guestfish.pod:732
18710 msgid ""
18711 "Any line which starts with a I<#> character is treated as a comment and "
18712 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18713 "a command.  For example:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/guestfish.pod:736
18718 #, no-wrap
18719 msgid ""
18720 " # this is a comment\n"
18721 "         # this is a comment\n"
18722 " foo # NOT a comment\n"
18723 "\n"
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:740
18728 msgid "Blank lines are also ignored."
18729 msgstr ""
18730
18731 #. type: =head1
18732 #: ../fish/guestfish.pod:742
18733 msgid "RUNNING COMMANDS LOCALLY"
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/guestfish.pod:744
18738 msgid ""
18739 "Any line which starts with a I<!> character is treated as a command sent to "
18740 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18741 msgstr ""
18742
18743 #. type: verbatim
18744 #: ../fish/guestfish.pod:748
18745 #, no-wrap
18746 msgid ""
18747 " !mkdir local\n"
18748 " tgz-out /remote local/remote-data.tar.gz\n"
18749 "\n"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:751
18754 msgid ""
18755 "will create a directory C<local> on the host, and then export the contents "
18756 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18757 "(See C<tgz-out>)."
18758 msgstr ""
18759
18760 #. type: textblock
18761 #: ../fish/guestfish.pod:755
18762 msgid ""
18763 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18764 "effect, due to the way that subprocesses work in Unix."
18765 msgstr ""
18766
18767 #. type: =head2
18768 #: ../fish/guestfish.pod:758
18769 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18770 msgstr ""
18771
18772 #. type: textblock
18773 #: ../fish/guestfish.pod:760
18774 msgid ""
18775 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18776 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18777 "and executed as guestfish commands."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/guestfish.pod:764
18782 msgid ""
18783 "Thus you can use shell script to construct arbitrary guestfish commands "
18784 "which are then parsed by guestfish."
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/guestfish.pod:767
18789 msgid ""
18790 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18791 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18792 "if we use a shell script to create the guestfish commands for us:"
18793 msgstr ""
18794
18795 #. type: verbatim
18796 #: ../fish/guestfish.pod:772
18797 #, no-wrap
18798 msgid ""
18799 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18800 "\n"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish.pod:774
18805 msgid "or with names like C</foo.001>:"
18806 msgstr ""
18807
18808 #. type: verbatim
18809 #: ../fish/guestfish.pod:776
18810 #, no-wrap
18811 msgid ""
18812 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18813 "\n"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/guestfish.pod:778
18818 msgid ""
18819 "When using guestfish interactively it can be helpful to just run the shell "
18820 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18821 "ordinary I<!> local command), see what guestfish commands it would run, and "
18822 "when you are happy with those prepend the C<E<lt>> character to run the "
18823 "guestfish commands for real."
18824 msgstr ""
18825
18826 #. type: =head1
18827 #: ../fish/guestfish.pod:784
18828 msgid "PIPES"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:786
18833 msgid ""
18834 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18835 "command (a guestfish command) to the second command (any host command).  For "
18836 "example:"
18837 msgstr ""
18838
18839 #. type: verbatim
18840 #: ../fish/guestfish.pod:790
18841 #, no-wrap
18842 msgid ""
18843 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18844 "\n"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:792
18849 msgid ""
18850 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18851 "program).  The above command would list all accounts in the guest filesystem "
18852 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18853 msgstr ""
18854
18855 #. type: verbatim
18856 #: ../fish/guestfish.pod:797
18857 #, no-wrap
18858 msgid ""
18859 " hexdump /bin/ls | head\n"
18860 " list-devices | tail -1\n"
18861 " tgz-out / - | tar ztf -\n"
18862 "\n"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:801
18867 msgid ""
18868 "The space before the pipe symbol is required, any space after the pipe "
18869 "symbol is optional.  Everything after the pipe symbol is just passed "
18870 "straight to the host shell, so it can contain redirections, globs and "
18871 "anything else that makes sense on the host side."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:806
18876 msgid ""
18877 "To use a literal argument which begins with a pipe symbol, you have to quote "
18878 "it, eg:"
18879 msgstr ""
18880
18881 #. type: verbatim
18882 #: ../fish/guestfish.pod:809
18883 #, no-wrap
18884 msgid ""
18885 " echo \"|\"\n"
18886 "\n"
18887 msgstr ""
18888
18889 #. type: =head1
18890 #: ../fish/guestfish.pod:811
18891 msgid "HOME DIRECTORIES"
18892 msgstr ""
18893
18894 #. type: textblock
18895 #: ../fish/guestfish.pod:813
18896 msgid ""
18897 "If a parameter starts with the character C<~> then the tilde may be expanded "
18898 "as a home directory path (either C<~> for the current user's home directory, "
18899 "or C<~user> for another user)."
18900 msgstr ""
18901
18902 #. type: textblock
18903 #: ../fish/guestfish.pod:817
18904 msgid ""
18905 "Note that home directory expansion happens for users known I<on the host>, "
18906 "not in the guest filesystem."
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:820
18911 msgid ""
18912 "To use a literal argument which begins with a tilde, you have to quote it, "
18913 "eg:"
18914 msgstr ""
18915
18916 #. type: verbatim
18917 #: ../fish/guestfish.pod:823
18918 #, no-wrap
18919 msgid ""
18920 " echo \"~\"\n"
18921 "\n"
18922 msgstr ""
18923
18924 #. type: =head2
18925 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18926 msgid "ENCRYPTED DISKS"
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish.pod:827
18931 msgid ""
18932 "Libguestfs has some support for Linux guests encrypted according to the "
18933 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18934 "disk encryption systems used by modern Linux guests.  Currently only "
18935 "LVM-on-LUKS is supported."
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:832
18940 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fish/guestfish.pod:834
18945 #, no-wrap
18946 msgid ""
18947 " ><fs> vfs-type /dev/sda2\n"
18948 " crypto_LUKS\n"
18949 "\n"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:837
18954 msgid ""
18955 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18956 "device called C</dev/mapper/luksdev>."
18957 msgstr ""
18958
18959 #. type: verbatim
18960 #: ../fish/guestfish.pod:840
18961 #, no-wrap
18962 msgid ""
18963 " ><fs> luks-open /dev/sda2 luksdev\n"
18964 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18965 "\n"
18966 msgstr ""
18967
18968 #. type: textblock
18969 #: ../fish/guestfish.pod:843
18970 msgid ""
18971 "Finally you have to tell LVM to scan for volume groups on the newly created "
18972 "mapper device:"
18973 msgstr ""
18974
18975 #. type: verbatim
18976 #: ../fish/guestfish.pod:846
18977 #, no-wrap
18978 msgid ""
18979 " vgscan\n"
18980 " vg-activate-all true\n"
18981 "\n"
18982 msgstr ""
18983
18984 #. type: textblock
18985 #: ../fish/guestfish.pod:849
18986 msgid "The logical volume(s) can now be mounted in the usual way."
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../fish/guestfish.pod:851
18991 msgid ""
18992 "Before closing a LUKS device you must unmount any logical volumes on it and "
18993 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18994 "one.  Then you can close the mapper device:"
18995 msgstr ""
18996
18997 #. type: verbatim
18998 #: ../fish/guestfish.pod:855
18999 #, no-wrap
19000 msgid ""
19001 " vg-activate false /dev/VG\n"
19002 " luks-close /dev/mapper/luksdev\n"
19003 "\n"
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:860
19008 msgid ""
19009 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19010 "letters and paths (with some limitations).  The following commands are "
19011 "equivalent:"
19012 msgstr ""
19013
19014 #. type: verbatim
19015 #: ../fish/guestfish.pod:864
19016 #, no-wrap
19017 msgid ""
19018 " file /WINDOWS/system32/config/system.LOG\n"
19019 "\n"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../fish/guestfish.pod:866
19024 #, no-wrap
19025 msgid ""
19026 " file win:\\windows\\system32\\config\\system.log\n"
19027 "\n"
19028 msgstr ""
19029
19030 #. type: verbatim
19031 #: ../fish/guestfish.pod:868
19032 #, no-wrap
19033 msgid ""
19034 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19035 "\n"
19036 msgstr ""
19037
19038 #. type: textblock
19039 #: ../fish/guestfish.pod:870
19040 msgid ""
19041 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19042 "where the drive is mounted, prepending that to the path, changing all "
19043 "backslash characters to forward slash, then resolving the result using "
19044 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
19045 "then the parameter might be rewritten like this:"
19046 msgstr ""
19047
19048 #. type: verbatim
19049 #: ../fish/guestfish.pod:876
19050 #, no-wrap
19051 msgid ""
19052 " win:e:\\foo\\bar => /e/FOO/bar\n"
19053 "\n"
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:878
19058 msgid "This only works in argument positions that expect a path."
19059 msgstr ""
19060
19061 #. type: =head1
19062 #: ../fish/guestfish.pod:880
19063 msgid "UPLOADING AND DOWNLOADING FILES"
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:882
19068 msgid ""
19069 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19070 "others which upload from or download to a local file, you can use the "
19071 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19072 msgstr ""
19073
19074 #. type: verbatim
19075 #: ../fish/guestfish.pod:886
19076 #, no-wrap
19077 msgid ""
19078 " upload - /foo\n"
19079 "\n"
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish.pod:888
19084 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19085 msgstr ""
19086
19087 #. type: verbatim
19088 #: ../fish/guestfish.pod:891
19089 #, no-wrap
19090 msgid ""
19091 " tar-out /etc - | tar tf -\n"
19092 "\n"
19093 msgstr ""
19094
19095 #. type: textblock
19096 #: ../fish/guestfish.pod:893
19097 msgid ""
19098 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19099 "command (see L</PIPES>)."
19100 msgstr ""
19101
19102 #. type: textblock
19103 #: ../fish/guestfish.pod:896
19104 msgid ""
19105 "When using C<-> to read from stdin, the input is read up to the end of "
19106 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19107 "some arbitrary end marker:"
19108 msgstr ""
19109
19110 #. type: verbatim
19111 #: ../fish/guestfish.pod:900
19112 #, no-wrap
19113 msgid ""
19114 " upload -<<END /foo\n"
19115 " input line 1\n"
19116 " input line 2\n"
19117 " input line 3\n"
19118 " END\n"
19119 "\n"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fish/guestfish.pod:906
19124 msgid ""
19125 "Any string of characters can be used instead of C<END>.  The end marker must "
19126 "appear on a line of its own, without any preceeding or following characters "
19127 "(not even spaces)."
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fish/guestfish.pod:910
19132 msgid ""
19133 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19134 "upload local files (so-called \"FileIn\" parameters in the generator)."
19135 msgstr ""
19136
19137 #. type: =head1
19138 #: ../fish/guestfish.pod:913
19139 msgid "EXIT ON ERROR BEHAVIOUR"
19140 msgstr ""
19141
19142 #. type: textblock
19143 #: ../fish/guestfish.pod:915
19144 msgid ""
19145 "By default, guestfish will ignore any errors when in interactive mode "
19146 "(ie. taking commands from a human over a tty), and will exit on the first "
19147 "error in non-interactive mode (scripts, commands given on the command line)."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:920
19152 msgid ""
19153 "If you prefix a command with a I<-> character, then that command will not "
19154 "cause guestfish to exit, even if that (one) command returns an error."
19155 msgstr ""
19156
19157 #. type: =head1
19158 #: ../fish/guestfish.pod:924
19159 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:926
19164 msgid ""
19165 "Guestfish can be remote-controlled over a socket.  This is useful "
19166 "particularly in shell scripts where you want to make several different "
19167 "changes to a filesystem, but you don't want the overhead of starting up a "
19168 "guestfish process each time."
19169 msgstr ""
19170
19171 #. type: textblock
19172 #: ../fish/guestfish.pod:931
19173 msgid "Start a guestfish server process using:"
19174 msgstr ""
19175
19176 #. type: verbatim
19177 #: ../fish/guestfish.pod:933
19178 #, no-wrap
19179 msgid ""
19180 " eval \"`guestfish --listen`\"\n"
19181 "\n"
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fish/guestfish.pod:935
19186 msgid "and then send it commands by doing:"
19187 msgstr ""
19188
19189 #. type: verbatim
19190 #: ../fish/guestfish.pod:937
19191 #, no-wrap
19192 msgid ""
19193 " guestfish --remote cmd [...]\n"
19194 "\n"
19195 msgstr ""
19196
19197 #. type: textblock
19198 #: ../fish/guestfish.pod:939
19199 msgid "To cause the server to exit, send it the exit command:"
19200 msgstr ""
19201
19202 #. type: textblock
19203 #: ../fish/guestfish.pod:943
19204 msgid ""
19205 "Note that the server will normally exit if there is an error in a command.  "
19206 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19207 "BEHAVIOUR>."
19208 msgstr ""
19209
19210 #. type: =head2
19211 #: ../fish/guestfish.pod:947
19212 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:949
19217 msgid ""
19218 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19219 "is how the I<--remote> option knows where to send the commands.  You can "
19220 "have several guestfish listener processes running using:"
19221 msgstr ""
19222
19223 #. type: verbatim
19224 #: ../fish/guestfish.pod:953
19225 #, no-wrap
19226 msgid ""
19227 " eval \"`guestfish --listen`\"\n"
19228 " pid1=$GUESTFISH_PID\n"
19229 " eval \"`guestfish --listen`\"\n"
19230 " pid2=$GUESTFISH_PID\n"
19231 " ...\n"
19232 " guestfish --remote=$pid1 cmd\n"
19233 " guestfish --remote=$pid2 cmd\n"
19234 "\n"
19235 msgstr ""
19236
19237 #. type: =head2
19238 #: ../fish/guestfish.pod:961
19239 msgid "REMOTE CONTROL AND CSH"
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:963
19244 msgid ""
19245 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19246 "option:"
19247 msgstr ""
19248
19249 #. type: verbatim
19250 #: ../fish/guestfish.pod:966
19251 #, no-wrap
19252 msgid ""
19253 " eval \"`guestfish --listen --csh`\"\n"
19254 "\n"
19255 msgstr ""
19256
19257 #. type: =head2
19258 #: ../fish/guestfish.pod:968
19259 msgid "REMOTE CONTROL DETAILS"
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:970
19264 msgid ""
19265 "Remote control happens over a Unix domain socket called "
19266 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19267 "of the process, and C<$PID> is the process ID of the server."
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:974
19272 msgid "Guestfish client and server versions must match exactly."
19273 msgstr ""
19274
19275 #. type: =head2
19276 #: ../fish/guestfish.pod:976
19277 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:978
19282 msgid ""
19283 "From Bash, you can use the following code which creates a guestfish "
19284 "instance, correctly quotes the command line, handles failure to start, and "
19285 "cleans up guestfish when the script exits:"
19286 msgstr ""
19287
19288 #. type: verbatim
19289 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19290 #, no-wrap
19291 msgid ""
19292 " #!/bin/bash -\n"
19293 " \n"
19294 msgstr ""
19295
19296 #. type: verbatim
19297 #: ../fish/guestfish.pod:986
19298 #, no-wrap
19299 msgid ""
19300 " guestfish[0]=\"guestfish\"\n"
19301 " guestfish[1]=\"--listen\"\n"
19302 " guestfish[2]=\"--ro\"\n"
19303 " guestfish[3]=\"-a\"\n"
19304 " guestfish[4]=\"disk.img\"\n"
19305 " \n"
19306 msgstr ""
19307
19308 #. type: verbatim
19309 #: ../fish/guestfish.pod:992
19310 #, no-wrap
19311 msgid ""
19312 " GUESTFISH_PID=\n"
19313 " eval $(\"${guestfish[@]}\")\n"
19314 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19315 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19316 "     exit 1\n"
19317 " fi\n"
19318 " \n"
19319 msgstr ""
19320
19321 #. type: verbatim
19322 #: ../fish/guestfish.pod:999
19323 #, no-wrap
19324 msgid ""
19325 " cleanup_guestfish ()\n"
19326 " {\n"
19327 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19328 " }\n"
19329 " trap cleanup_guestfish EXIT ERR\n"
19330 " \n"
19331 msgstr ""
19332
19333 #. type: verbatim
19334 #: ../fish/guestfish.pod:1005
19335 #, no-wrap
19336 msgid ""
19337 " guestfish --remote -- run\n"
19338 " \n"
19339 msgstr ""
19340
19341 #. type: verbatim
19342 #: ../fish/guestfish.pod:1007
19343 #, no-wrap
19344 msgid ""
19345 " # ...\n"
19346 "\n"
19347 msgstr ""
19348
19349 #. type: =head2
19350 #: ../fish/guestfish.pod:1009
19351 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:1011
19356 msgid ""
19357 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19358 "context hangs, ie. don't do (note the backquotes):"
19359 msgstr ""
19360
19361 #. type: verbatim
19362 #: ../fish/guestfish.pod:1014
19363 #, no-wrap
19364 msgid ""
19365 " a=`guestfish --remote run`\n"
19366 "\n"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:1016
19371 msgid ""
19372 "Since the C<run> command produces no output on stdout, this is not useful "
19373 "anyway.  For further information see "
19374 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19375 msgstr ""
19376
19377 #. type: =head1
19378 #: ../fish/guestfish.pod:1020
19379 msgid "PREPARED DISK IMAGES"
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:1022
19384 msgid ""
19385 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19386 "preformatted disk images that guestfish can make for you to save typing.  "
19387 "This is particularly useful for testing purposes.  This option is used "
19388 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19389 "can be mixed with I<-a>)."
19390 msgstr ""
19391
19392 #. type: textblock
19393 #: ../fish/guestfish.pod:1028
19394 msgid ""
19395 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19396 "the second and so on.  Existing files in the current directory are "
19397 "I<overwritten>."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:1032
19402 msgid ""
19403 "The type briefly describes how the disk should be sized, partitioned, how "
19404 "filesystem(s) should be created, and how content should be added.  "
19405 "Optionally the type can be followed by extra parameters, separated by C<:> "
19406 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19407 "sparsely-allocated disk, containing a single partition, with the partition "
19408 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19409 "on a 1GB disk instead."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:1040
19414 msgid "To list the available types and any extra parameters they take, run:"
19415 msgstr ""
19416
19417 #. type: textblock
19418 #: ../fish/guestfish.pod:1044
19419 msgid ""
19420 "Note that the prepared filesystem is not mounted.  You would usually have to "
19421 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:1048
19426 msgid ""
19427 "If any I<-N> or I<--new> options are given, the guest is automatically "
19428 "launched."
19429 msgstr ""
19430
19431 #. type: textblock
19432 #: ../fish/guestfish.pod:1053
19433 msgid "Create a 100MB disk with an ext4-formatted partition:"
19434 msgstr ""
19435
19436 #. type: verbatim
19437 #: ../fish/guestfish.pod:1055
19438 #, no-wrap
19439 msgid ""
19440 " guestfish -N fs:ext4\n"
19441 "\n"
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:1057
19446 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:1059
19451 #, no-wrap
19452 msgid ""
19453 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19454 "\n"
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../fish/guestfish.pod:1061
19459 msgid "Create a blank 200MB disk:"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../fish/guestfish.pod:1063
19464 #, no-wrap
19465 msgid ""
19466 " guestfish -N disk:200M\n"
19467 "\n"
19468 msgstr ""
19469
19470 #. type: =head1
19471 #: ../fish/guestfish.pod:1065
19472 msgid "PROGRESS BARS"
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../fish/guestfish.pod:1067
19477 msgid ""
19478 "Some (not all) long-running commands send progress notification messages as "
19479 "they are running.  Guestfish turns these messages into progress bars."
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:1071
19484 msgid ""
19485 "When a command that supports progress bars takes longer than two seconds to "
19486 "run, and if progress bars are enabled, then you will see one appearing below "
19487 "the command:"
19488 msgstr ""
19489
19490 #. type: verbatim
19491 #: ../fish/guestfish.pod:1075
19492 #, no-wrap
19493 msgid ""
19494 " ><fs> copy-size /large-file /another-file 2048M\n"
19495 " / 10% [#####-----------------------------------------] 00:30\n"
19496 "\n"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:1078
19501 msgid ""
19502 "The spinner on the left hand side moves round once for every progress "
19503 "notification received from the backend.  This is a (reasonably) golden "
19504 "assurance that the command is \"doing something\" even if the progress bar "
19505 "is not moving, because the command is able to send the progress "
19506 "notifications.  When the bar reaches 100% and the command finishes, the "
19507 "spinner disappears."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../fish/guestfish.pod:1085
19512 msgid ""
19513 "Progress bars are enabled by default when guestfish is used interactively.  "
19514 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19515 "and you can disable them completely using I<--no-progress-bars>."
19516 msgstr ""
19517
19518 #. type: =head1
19519 #: ../fish/guestfish.pod:1090
19520 msgid "GUESTFISH COMMANDS"
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:1092
19525 msgid ""
19526 "The commands in this section are guestfish convenience commands, in other "
19527 "words, they are not part of the L<guestfs(3)> API."
19528 msgstr ""
19529
19530 #. type: =head2
19531 #: ../fish/guestfish.pod:1095
19532 msgid "help"
19533 msgstr ""
19534
19535 #. type: verbatim
19536 #: ../fish/guestfish.pod:1097
19537 #, no-wrap
19538 msgid ""
19539 " help\n"
19540 " help cmd\n"
19541 "\n"
19542 msgstr ""
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:1100
19546 msgid "Without any parameter, this provides general help."
19547 msgstr ""
19548
19549 #. type: textblock
19550 #: ../fish/guestfish.pod:1102
19551 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19552 msgstr ""
19553
19554 #. type: =head2
19555 #: ../fish/guestfish.pod:1104
19556 msgid "quit | exit"
19557 msgstr ""
19558
19559 #. type: textblock
19560 #: ../fish/guestfish.pod:1106
19561 msgid "This exits guestfish.  You can also use C<^D> key."
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:1108
19566 msgid "@FISH_COMMANDS@"
19567 msgstr ""
19568
19569 #. type: =head1
19570 #: ../fish/guestfish.pod:1110
19571 msgid "COMMANDS"
19572 msgstr ""
19573
19574 #. type: textblock
19575 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
19576 msgid "@ACTIONS@"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:1116
19581 msgid ""
19582 "guestfish returns 0 if the commands completed without error, or 1 if there "
19583 "was an error."
19584 msgstr ""
19585
19586 #. type: =item
19587 #: ../fish/guestfish.pod:1123
19588 msgid "EDITOR"
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:1125
19593 msgid ""
19594 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19595 "C<vi>."
19596 msgstr ""
19597
19598 #. type: =item
19599 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
19600 msgid "FEBOOTSTRAP_KERNEL"
19601 msgstr ""
19602
19603 #. type: =item
19604 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
19605 msgid "FEBOOTSTRAP_MODULES"
19606 msgstr ""
19607
19608 #. type: textblock
19609 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
19610 msgid ""
19611 "These two environment variables allow the kernel that libguestfs uses in the "
19612 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19613 "most recent host kernel is chosen.  For more information about kernel "
19614 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19615 "available in febootstrap E<ge> 3.8."
19616 msgstr ""
19617
19618 #. type: =item
19619 #: ../fish/guestfish.pod:1138
19620 msgid "GUESTFISH_DISPLAY_IMAGE"
19621 msgstr ""
19622
19623 #. type: textblock
19624 #: ../fish/guestfish.pod:1140
19625 msgid ""
19626 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19627 "If not set, it uses L<display(1)>."
19628 msgstr ""
19629
19630 #. type: =item
19631 #: ../fish/guestfish.pod:1143
19632 msgid "GUESTFISH_PID"
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:1145
19637 msgid ""
19638 "Used with the I<--remote> option to specify the remote guestfish process to "
19639 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19640 msgstr ""
19641
19642 #. type: =item
19643 #: ../fish/guestfish.pod:1149
19644 msgid "HEXEDITOR"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:1151
19649 msgid ""
19650 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19651 "not specified, the external L<hexedit(1)> program is used."
19652 msgstr ""
19653
19654 #. type: =item
19655 #: ../fish/guestfish.pod:1155
19656 msgid "HOME"
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../fish/guestfish.pod:1157
19661 msgid ""
19662 "If compiled with GNU readline support, various files in the home directory "
19663 "can be used.  See L</FILES>."
19664 msgstr ""
19665
19666 #. type: =item
19667 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
19668 msgid "LIBGUESTFS_APPEND"
19669 msgstr ""
19670
19671 #. type: textblock
19672 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
19673 msgid "Pass additional options to the guest kernel."
19674 msgstr ""
19675
19676 #. type: =item
19677 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
19678 msgid "LIBGUESTFS_DEBUG"
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/guestfish.pod:1166
19683 msgid ""
19684 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19685 "effect as using the B<-v> option."
19686 msgstr ""
19687
19688 #. type: =item
19689 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
19690 msgid "LIBGUESTFS_MEMSIZE"
19691 msgstr ""
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
19695 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
19696 msgstr ""
19697
19698 #. type: verbatim
19699 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
19700 #, no-wrap
19701 msgid ""
19702 " LIBGUESTFS_MEMSIZE=700\n"
19703 "\n"
19704 msgstr ""
19705
19706 #. type: =item
19707 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
19708 msgid "LIBGUESTFS_PATH"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/guestfish.pod:1178
19713 msgid ""
19714 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19715 "the discussion of paths in L<guestfs(3)>."
19716 msgstr ""
19717
19718 #. type: =item
19719 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
19720 msgid "LIBGUESTFS_QEMU"
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
19725 msgid ""
19726 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19727 "which was found at compile time by the configure script is used."
19728 msgstr ""
19729
19730 #. type: =item
19731 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
19732 msgid "LIBGUESTFS_TRACE"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:1189
19737 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19738 msgstr ""
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:1191
19742 msgid "PAGER"
19743 msgstr ""
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:1193
19747 msgid ""
19748 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19749 "C<more>."
19750 msgstr ""
19751
19752 #. type: =item
19753 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3242
19754 msgid "TMPDIR"
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
19759 msgid ""
19760 "Location of temporary directory, defaults to C</tmp> except for the cached "
19761 "supermin appliance which defaults to C</var/tmp>."
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
19766 msgid ""
19767 "If libguestfs was compiled to use the supermin appliance then the real "
19768 "appliance is cached in this directory, shared between all handles belonging "
19769 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19770 "use in case C</var/tmp> is not large enough."
19771 msgstr ""
19772
19773 #. type: =head1
19774 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
19775 msgid "FILES"
19776 msgstr ""
19777
19778 #. type: =item
19779 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
19780 msgid "$HOME/.libguestfs-tools.rc"
19781 msgstr ""
19782
19783 #. type: =item
19784 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
19785 msgid "/etc/libguestfs-tools.conf"
19786 msgstr ""
19787
19788 #. type: textblock
19789 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
19790 msgid ""
19791 "This configuration file controls the default read-only or read-write mode "
19792 "(I<--ro> or I<--rw>)."
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:1220
19797 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19798 msgstr ""
19799
19800 #. type: =item
19801 #: ../fish/guestfish.pod:1222
19802 msgid "$HOME/.guestfish"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/guestfish.pod:1224
19807 msgid ""
19808 "If compiled with GNU readline support, then the command history is saved in "
19809 "this file."
19810 msgstr ""
19811
19812 #. type: =item
19813 #: ../fish/guestfish.pod:1227
19814 msgid "$HOME/.inputrc"
19815 msgstr ""
19816
19817 #. type: =item
19818 #: ../fish/guestfish.pod:1229
19819 msgid "/etc/inputrc"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../fish/guestfish.pod:1231
19824 msgid ""
19825 "If compiled with GNU readline support, then these files can be used to "
19826 "configure readline.  For further information, please see "
19827 "L<readline(3)/INITIALIZATION FILE>."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish.pod:1235
19832 msgid "To write rules which only apply to guestfish, use:"
19833 msgstr ""
19834
19835 #. type: verbatim
19836 #: ../fish/guestfish.pod:1237
19837 #, no-wrap
19838 msgid ""
19839 " $if guestfish\n"
19840 " ...\n"
19841 " $endif\n"
19842 "\n"
19843 msgstr ""
19844
19845 #. type: textblock
19846 #: ../fish/guestfish.pod:1241
19847 msgid ""
19848 "Variables that you can set in inputrc that change the behaviour of guestfish "
19849 "in useful ways include:"
19850 msgstr ""
19851
19852 #. type: =item
19853 #: ../fish/guestfish.pod:1246
19854 msgid "completion-ignore-case (default: on)"
19855 msgstr ""
19856
19857 #. type: textblock
19858 #: ../fish/guestfish.pod:1248
19859 msgid ""
19860 "By default, guestfish will ignore case when tab-completing paths on the "
19861 "disk.  Use:"
19862 msgstr ""
19863
19864 #. type: verbatim
19865 #: ../fish/guestfish.pod:1251
19866 #, no-wrap
19867 msgid ""
19868 " set completion-ignore-case off\n"
19869 "\n"
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../fish/guestfish.pod:1253
19874 msgid "to make guestfish case sensitive."
19875 msgstr ""
19876
19877 #. type: =item
19878 #: ../fish/guestfish.pod:1257
19879 msgid "test1.img"
19880 msgstr ""
19881
19882 #. type: =item
19883 #: ../fish/guestfish.pod:1259
19884 msgid "test2.img (etc)"
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:1261
19889 msgid ""
19890 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19891 "will be created in the file C<test1.img> in the current directory.  The "
19892 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19893 "the same name will be overwritten."
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:1270
19898 msgid ""
19899 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
19900 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
19901 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19902 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19903 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19904 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
19905 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
19906 "L<febootstrap-supermin-helper(8)>."
19907 msgstr ""
19908
19909 #. type: textblock
19910 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339 ../test-tool/libguestfs-test-tool.pod:112
19911 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/virt-copy-in.pod:5
19916 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
19917 msgstr ""
19918
19919 #. type: verbatim
19920 #: ../fish/virt-copy-in.pod:9
19921 #, no-wrap
19922 msgid ""
19923 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19924 "\n"
19925 msgstr ""
19926
19927 #. type: verbatim
19928 #: ../fish/virt-copy-in.pod:11
19929 #, no-wrap
19930 msgid ""
19931 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19932 "\n"
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../fish/virt-copy-in.pod:15
19937 msgid ""
19938 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19939 "causing disk corruption.  The virtual machine must be shut down before you "
19940 "use this command."
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/virt-copy-in.pod:21
19945 msgid ""
19946 "C<virt-copy-in> copies files and directories from the local disk into a "
19947 "virtual machine disk image or named libvirt domain."
19948 msgstr ""
19949
19950 #. type: textblock
19951 #: ../fish/virt-copy-in.pod:24
19952 msgid ""
19953 "You can give one of more filenames and directories on the command line.  "
19954 "Directories are copied in recursively.  The final parameter must be the "
19955 "destination directory in the disk image which must be an absolute path "
19956 "starting with a C</> character."
19957 msgstr ""
19958
19959 #. type: verbatim
19960 #: ../fish/virt-copy-in.pod:33
19961 #, no-wrap
19962 msgid ""
19963 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19964 "\n"
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19969 msgid "Upload a home directory to a guest:"
19970 msgstr ""
19971
19972 #. type: verbatim
19973 #: ../fish/virt-copy-in.pod:37
19974 #, no-wrap
19975 msgid ""
19976 " virt-copy-in -d MyGuest skel /home\n"
19977 "\n"
19978 msgstr ""
19979
19980 #. type: =head1
19981 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19982 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19983 msgstr ""
19984
19985 #. type: textblock
19986 #: ../fish/virt-copy-in.pod:41
19987 msgid ""
19988 "This command is just a simple shell script wrapper around the "
19989 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
19990 "trivial copy, you are probably better off using guestfish directly."
19991 msgstr ""
19992
19993 #. type: textblock
19994 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19995 msgid ""
19996 "Since the shell script just passes options straight to guestfish, read "
19997 "L<guestfish(1)> to see the full list of options."
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fish/virt-copy-in.pod:52
20002 msgid ""
20003 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20004 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20005 msgstr ""
20006
20007 #. type: textblock
20008 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20009 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/virt-copy-out.pod:5
20014 msgid ""
20015 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20016 "image."
20017 msgstr ""
20018
20019 #. type: verbatim
20020 #: ../fish/virt-copy-out.pod:9
20021 #, no-wrap
20022 msgid ""
20023 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20024 "\n"
20025 msgstr ""
20026
20027 #. type: verbatim
20028 #: ../fish/virt-copy-out.pod:11
20029 #, no-wrap
20030 msgid ""
20031 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20032 "\n"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/virt-copy-out.pod:15
20037 msgid ""
20038 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20039 "image or named libvirt domain."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/virt-copy-out.pod:18
20044 msgid ""
20045 "You can give one of more filenames and directories on the command line.  "
20046 "Directories are copied out recursively."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/virt-copy-out.pod:23
20051 msgid "Download the home directories from a virtual machine:"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../fish/virt-copy-out.pod:25
20056 #, no-wrap
20057 msgid ""
20058 " mkdir homes\n"
20059 " virt-copy-out -d MyGuest /home homes\n"
20060 "\n"
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fish/virt-copy-out.pod:30
20065 msgid ""
20066 "This command is just a simple shell script wrapper around the "
20067 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
20068 "trivial copy, you are probably better off using guestfish directly."
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../fish/virt-copy-out.pod:41
20073 msgid ""
20074 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
20075 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20076 msgstr ""
20077
20078 #. type: textblock
20079 #: ../fish/virt-tar-in.pod:5
20080 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20081 msgstr ""
20082
20083 #. type: verbatim
20084 #: ../fish/virt-tar-in.pod:9
20085 #, no-wrap
20086 msgid ""
20087 " virt-tar-in -a disk.img data.tar /destination\n"
20088 "\n"
20089 msgstr ""
20090
20091 #. type: verbatim
20092 #: ../fish/virt-tar-in.pod:11
20093 #, no-wrap
20094 msgid ""
20095 " virt-tar-in -d domain data.tar /destination\n"
20096 "\n"
20097 msgstr ""
20098
20099 #. type: verbatim
20100 #: ../fish/virt-tar-in.pod:13
20101 #, no-wrap
20102 msgid ""
20103 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20104 "\n"
20105 msgstr ""
20106
20107 #. type: textblock
20108 #: ../fish/virt-tar-in.pod:17
20109 msgid ""
20110 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20111 "causing disk corruption.  The virtual machine must be shut down before you "
20112 "use this command."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/virt-tar-in.pod:23
20117 msgid ""
20118 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20119 "image or named libvirt domain."
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/virt-tar-in.pod:26
20124 msgid ""
20125 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20126 "standard input.  The second parameter is the absolute target directory to "
20127 "unpack into."
20128 msgstr ""
20129
20130 #. type: verbatim
20131 #: ../fish/virt-tar-in.pod:34
20132 #, no-wrap
20133 msgid ""
20134 " virt-tar-in -d MyGuest homes.tar /home\n"
20135 "\n"
20136 msgstr ""
20137
20138 #. type: textblock
20139 #: ../fish/virt-tar-in.pod:38
20140 msgid ""
20141 "This command is just a simple shell script wrapper around the "
20142 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
20143 "copy, you are probably better off using guestfish directly."
20144 msgstr ""
20145
20146 #. type: textblock
20147 #: ../fish/virt-tar-in.pod:49
20148 msgid ""
20149 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20150 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
20151 "L<http://libguestfs.org/>."
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../fish/virt-tar-out.pod:5
20156 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20157 msgstr ""
20158
20159 #. type: verbatim
20160 #: ../fish/virt-tar-out.pod:9
20161 #, no-wrap
20162 msgid ""
20163 " virt-tar-out -a disk.img /dir files.tar\n"
20164 "\n"
20165 msgstr ""
20166
20167 #. type: verbatim
20168 #: ../fish/virt-tar-out.pod:11
20169 #, no-wrap
20170 msgid ""
20171 " virt-tar-out -d domain /dir files.tar\n"
20172 "\n"
20173 msgstr ""
20174
20175 #. type: verbatim
20176 #: ../fish/virt-tar-out.pod:13
20177 #, no-wrap
20178 msgid ""
20179 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20180 "\n"
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../fish/virt-tar-out.pod:17
20185 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../fish/virt-tar-out.pod:20
20190 msgid ""
20191 "The first parameter is the absolute path of the virtual machine directory.  "
20192 "The second parameter is the tar file to write.  Use C<-> to write to "
20193 "standard output."
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/virt-tar-out.pod:26
20198 msgid "Download the home directories from a guest:"
20199 msgstr ""
20200
20201 #. type: verbatim
20202 #: ../fish/virt-tar-out.pod:28
20203 #, no-wrap
20204 msgid ""
20205 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20206 "\n"
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../fish/virt-tar-out.pod:32
20211 msgid ""
20212 "This command is just a simple shell script wrapper around the "
20213 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
20214 "trivial copy, you are probably better off using guestfish directly."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/virt-tar-out.pod:43
20219 msgid ""
20220 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20221 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../fuse/guestmount.pod:5
20226 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20227 msgstr ""
20228
20229 #. type: verbatim
20230 #: ../fuse/guestmount.pod:9
20231 #, no-wrap
20232 msgid ""
20233 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20234 "\n"
20235 msgstr ""
20236
20237 #. type: verbatim
20238 #: ../fuse/guestmount.pod:11
20239 #, no-wrap
20240 msgid ""
20241 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20242 "\n"
20243 msgstr ""
20244
20245 #. type: verbatim
20246 #: ../fuse/guestmount.pod:13
20247 #, no-wrap
20248 msgid ""
20249 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20250 "\n"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../fuse/guestmount.pod:17
20255 msgid ""
20256 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20257 "machines.  If you do this, you risk disk corruption in the VM."
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../fuse/guestmount.pod:22
20262 msgid ""
20263 "The guestmount program can be used to mount virtual machine filesystems and "
20264 "other disk images on the host.  It uses libguestfs for access to the guest "
20265 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20266 "a mountable device."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fuse/guestmount.pod:27
20271 msgid ""
20272 "Along with other options, you have to give at least one device (I<-a> "
20273 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20274 "option) or use the I<-i> inspection option.  How this works is better "
20275 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20276 "below."
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fuse/guestmount.pod:33
20281 msgid ""
20282 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20283 "by you, and the filesystem will not be visible to any other users unless you "
20284 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20285 "the filesystem, use the C<fusermount -u> command."
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fuse/guestmount.pod:41
20290 msgid ""
20291 "For a typical Windows guest which has its main filesystem on the first "
20292 "partition:"
20293 msgstr ""
20294
20295 #. type: verbatim
20296 #: ../fuse/guestmount.pod:44
20297 #, no-wrap
20298 msgid ""
20299 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20300 "\n"
20301 msgstr ""
20302
20303 #. type: textblock
20304 #: ../fuse/guestmount.pod:46
20305 msgid ""
20306 "For a typical Linux guest which has a /boot filesystem on the first "
20307 "partition, and the root filesystem on a logical volume:"
20308 msgstr ""
20309
20310 #. type: verbatim
20311 #: ../fuse/guestmount.pod:49
20312 #, no-wrap
20313 msgid ""
20314 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fuse/guestmount.pod:51
20320 msgid "To get libguestfs to detect guest mountpoints for you:"
20321 msgstr ""
20322
20323 #. type: verbatim
20324 #: ../fuse/guestmount.pod:53
20325 #, no-wrap
20326 msgid ""
20327 " guestmount -a guest.img -i --ro /mnt\n"
20328 "\n"
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fuse/guestmount.pod:55
20333 msgid "For a libvirt guest called \"Guest\" you could do:"
20334 msgstr ""
20335
20336 #. type: verbatim
20337 #: ../fuse/guestmount.pod:57
20338 #, no-wrap
20339 msgid ""
20340 " guestmount -d Guest -i --ro /mnt\n"
20341 "\n"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fuse/guestmount.pod:59
20346 msgid ""
20347 "If you don't know what filesystems are contained in a guest or disk image, "
20348 "use L<virt-filesystems(1)> first:"
20349 msgstr ""
20350
20351 #. type: verbatim
20352 #: ../fuse/guestmount.pod:62
20353 #, no-wrap
20354 msgid ""
20355 " virt-filesystems MyGuest\n"
20356 "\n"
20357 msgstr ""
20358
20359 #. type: textblock
20360 #: ../fuse/guestmount.pod:64
20361 msgid ""
20362 "If you want to trace the libguestfs calls but without excessive debugging "
20363 "information, we recommend:"
20364 msgstr ""
20365
20366 #. type: verbatim
20367 #: ../fuse/guestmount.pod:67
20368 #, no-wrap
20369 msgid ""
20370 " guestmount [...] --trace /mnt\n"
20371 "\n"
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../fuse/guestmount.pod:69
20376 msgid "If you want to debug the program, we recommend:"
20377 msgstr ""
20378
20379 #. type: verbatim
20380 #: ../fuse/guestmount.pod:71
20381 #, no-wrap
20382 msgid ""
20383 " guestmount [...] --trace --verbose /mnt\n"
20384 "\n"
20385 msgstr ""
20386
20387 #. type: =head1
20388 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
20389 msgid "NOTES"
20390 msgstr ""
20391
20392 #. type: =head2
20393 #: ../fuse/guestmount.pod:75
20394 msgid "Other users cannot see the filesystem by default"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fuse/guestmount.pod:77
20399 msgid ""
20400 "If you mount a filesystem as one user (eg. root), then other users will not "
20401 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20402 "option when mounting:"
20403 msgstr ""
20404
20405 #. type: verbatim
20406 #: ../fuse/guestmount.pod:81
20407 #, no-wrap
20408 msgid ""
20409 " sudo guestmount [...] -o allow_other /mnt\n"
20410 "\n"
20411 msgstr ""
20412
20413 #. type: =head2
20414 #: ../fuse/guestmount.pod:83
20415 msgid "Enabling FUSE"
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../fuse/guestmount.pod:85
20420 msgid ""
20421 "On some distros, you may need to add yourself to a special group "
20422 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20423 "Debian and derivatives."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fuse/guestmount.pod:89
20428 msgid ""
20429 "On other distros, no special group is required.  It is not necessary on "
20430 "Fedora or Red Hat Enterprise Linux."
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../fuse/guestmount.pod:100
20435 msgid "Add a block device or virtual machine image."
20436 msgstr ""
20437
20438 #. type: =item
20439 #: ../fuse/guestmount.pod:123
20440 msgid "B<--dir-cache-timeout N>"
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fuse/guestmount.pod:125
20445 msgid ""
20446 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20447 "seconds.  The readdir cache [actually, there are several semi-independent "
20448 "caches] is populated after a readdir(2) call with the stat and extended "
20449 "attributes of the files in the directory, in anticipation that they will be "
20450 "requested soon after."
20451 msgstr ""
20452
20453 #. type: textblock
20454 #: ../fuse/guestmount.pod:131
20455 msgid ""
20456 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20457 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20458 "requests, only cache existing ones."
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../fuse/guestmount.pod:151
20463 msgid ""
20464 "If you have untrusted raw-format guest disk images, you should use this "
20465 "option to specify the disk format.  This avoids a possible security problem "
20466 "with malicious guests (CVE-2010-3851).  See also "
20467 "L<guestfs(3)/guestfs_add_drive_opts>."
20468 msgstr ""
20469
20470 #. type: =item
20471 #: ../fuse/guestmount.pod:156
20472 msgid "B<--fuse-help>"
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fuse/guestmount.pod:158
20477 msgid "Display help on special FUSE options (see I<-o> below)."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fuse/guestmount.pod:162
20482 msgid "Display brief help and exit."
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../fuse/guestmount.pod:186
20487 msgid ""
20488 "Mount the named partition or logical volume on the given mountpoint B<in the "
20489 "guest> (this has nothing to do with mountpoints in the host)."
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fuse/guestmount.pod:189
20494 msgid ""
20495 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20496 "something on C</>."
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fuse/guestmount.pod:206
20501 msgid ""
20502 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20503 "unmounted.  If you specify this option, then we don't attempt to sync the "
20504 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20505 msgstr ""
20506
20507 #. type: =item
20508 #: ../fuse/guestmount.pod:211
20509 msgid "B<-o option>"
20510 msgstr ""
20511
20512 #. type: =item
20513 #: ../fuse/guestmount.pod:213
20514 msgid "B<--option option>"
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../fuse/guestmount.pod:215
20519 msgid "Pass extra options to FUSE."
20520 msgstr ""
20521
20522 #. type: textblock
20523 #: ../fuse/guestmount.pod:217
20524 msgid ""
20525 "To get a list of all the extra options supported by FUSE, use the command "
20526 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20527 "of them are a good idea."
20528 msgstr ""
20529
20530 #. type: verbatim
20531 #: ../fuse/guestmount.pod:221
20532 #, no-wrap
20533 msgid ""
20534 " guestmount --fuse-help\n"
20535 "\n"
20536 msgstr ""
20537
20538 #. type: textblock
20539 #: ../fuse/guestmount.pod:223
20540 msgid "Some potentially useful FUSE options:"
20541 msgstr ""
20542
20543 #. type: =item
20544 #: ../fuse/guestmount.pod:227
20545 msgid "B<-o allow_other>"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fuse/guestmount.pod:229
20550 msgid "Allow other users to see the filesystem."
20551 msgstr ""
20552
20553 #. type: =item
20554 #: ../fuse/guestmount.pod:231
20555 msgid "B<-o attr_timeout=N>"
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../fuse/guestmount.pod:233
20560 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20561 msgstr ""
20562
20563 #. type: =item
20564 #: ../fuse/guestmount.pod:235
20565 msgid "B<-o kernel_cache>"
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../fuse/guestmount.pod:237
20570 msgid ""
20571 "Allow the kernel to cache files (reduces the number of reads that have to go "
20572 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20573 "afford the extra memory usage."
20574 msgstr ""
20575
20576 #. type: =item
20577 #: ../fuse/guestmount.pod:241
20578 msgid "B<-o uid=N> B<-o gid=N>"
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fuse/guestmount.pod:243
20583 msgid ""
20584 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20585 "the chosen values."
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../fuse/guestmount.pod:252
20590 msgid ""
20591 "Add devices and mount everything read-only.  Also disallow writes and make "
20592 "the disk appear read-only to FUSE."
20593 msgstr ""
20594
20595 #. type: textblock
20596 #: ../fuse/guestmount.pod:255
20597 msgid ""
20598 "This is highly recommended if you are not going to edit the guest disk.  If "
20599 "the guest is running and this option is I<not> supplied, then there is a "
20600 "strong risk of disk corruption in the guest.  We try to prevent this from "
20601 "happening, but it is not always possible."
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20606 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fuse/guestmount.pod:264
20611 msgid "Enable SELinux support for the guest."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fuse/guestmount.pod:270
20616 msgid "Enable verbose messages from underlying libguestfs."
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../fuse/guestmount.pod:276
20621 msgid "Display the program version and exit."
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20626 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20627 msgstr ""
20628
20629 #. type: =item
20630 #: ../fuse/guestmount.pod:289
20631 msgid "B<--trace>"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fuse/guestmount.pod:291
20636 msgid "Trace libguestfs calls and entry into each FUSE function."
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../fuse/guestmount.pod:293
20641 msgid "This also stops the daemon from forking into the background."
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fuse/guestmount.pod:319
20646 msgid ""
20647 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20648 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
20649 "L<http://fuse.sf.net/>."
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fuse/guestmount.pod:334
20654 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../inspector/virt-inspector.pod:5
20659 msgid ""
20660 "virt-inspector - Display operating system version and other information "
20661 "about a virtual machine"
20662 msgstr ""
20663
20664 #. type: verbatim
20665 #: ../inspector/virt-inspector.pod:9
20666 #, no-wrap
20667 msgid ""
20668 " virt-inspector [--options] -d domname\n"
20669 "\n"
20670 msgstr ""
20671
20672 #. type: verbatim
20673 #: ../inspector/virt-inspector.pod:11
20674 #, no-wrap
20675 msgid ""
20676 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20677 "\n"
20678 msgstr ""
20679
20680 #. type: verbatim
20681 #: ../inspector/virt-inspector.pod:15
20682 #, no-wrap
20683 msgid ""
20684 " virt-inspector domname\n"
20685 "\n"
20686 msgstr ""
20687
20688 #. type: verbatim
20689 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20690 #, no-wrap
20691 msgid ""
20692 " virt-inspector disk.img [disk.img ...]\n"
20693 "\n"
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../inspector/virt-inspector.pod:21
20698 msgid ""
20699 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20700 "determine the version of the operating system and other information about "
20701 "the virtual machine."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../inspector/virt-inspector.pod:25
20706 msgid "Virt-inspector produces XML output for feeding into other programs."
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../inspector/virt-inspector.pod:27
20711 msgid ""
20712 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20713 "the libvirt domain (see: C<virsh list --all>)."
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../inspector/virt-inspector.pod:30
20718 msgid ""
20719 "You can also run virt-inspector directly on disk images from a single "
20720 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20721 "has several block devices, in which case you should list several I<-a> "
20722 "options one after another, with the first corresponding to the guest's "
20723 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
20724 msgstr ""
20725
20726 #. type: textblock
20727 #: ../inspector/virt-inspector.pod:37
20728 msgid ""
20729 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20730 "keys and similar."
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../inspector/virt-inspector.pod:40
20735 msgid ""
20736 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20737 "inspect several virtual machines, you have to run virt-inspector several "
20738 "times (for example, from a shell script for-loop)."
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../inspector/virt-inspector.pod:45
20743 msgid ""
20744 "Because virt-inspector needs direct access to guest images, it won't "
20745 "normally work over remote libvirt connections."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../inspector/virt-inspector.pod:48
20750 msgid ""
20751 "All of the information available from virt-inspector is also available "
20752 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20753 "The same information can also be fetched using guestfish or via libguestfs "
20754 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20755 "WITH OTHER PROGRAMMING LANGUAGES>)."
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../inspector/virt-inspector.pod:81
20760 msgid ""
20761 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20762 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20763 "at all."
20764 msgstr ""
20765
20766 #. type: textblock
20767 #: ../inspector/virt-inspector.pod:94
20768 msgid ""
20769 "When prompting for keys and passphrases, virt-inspector normally turns "
20770 "echoing off so you cannot see what you are typing.  If you are not worried "
20771 "about Tempest attacks and there is no one else in the room you can specify "
20772 "this flag to see what you are typing."
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../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
20777 msgid ""
20778 "Specify the format of disk images given on the command line.  If this is "
20779 "omitted then the format is autodetected from the content of the disk image."
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../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
20784 msgid ""
20785 "If disk images are requested from libvirt, then this program asks libvirt "
20786 "for this information.  In this case, the value of the format parameter is "
20787 "ignored."
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20792 msgid ""
20793 "If working with untrusted raw-format guest disk images, you should ensure "
20794 "the format is always specified."
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../inspector/virt-inspector.pod:139
20799 msgid "Previous versions of virt-inspector allowed you to write either:"
20800 msgstr ""
20801
20802 #. type: verbatim
20803 #: ../inspector/virt-inspector.pod:145
20804 #, no-wrap
20805 msgid ""
20806 " virt-inspector guestname\n"
20807 "\n"
20808 msgstr ""
20809
20810 #. type: =head1
20811 #: ../inspector/virt-inspector.pod:153
20812 msgid "XML FORMAT"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../inspector/virt-inspector.pod:155
20817 msgid ""
20818 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20819 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20820 "just an overview."
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../inspector/virt-inspector.pod:159
20825 msgid ""
20826 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20827 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20828 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20829 "which is vanishingly rare in real world VMs."
20830 msgstr ""
20831
20832 #. type: =head2
20833 #: ../inspector/virt-inspector.pod:164
20834 msgid "E<lt>operatingsystemE<gt>"
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../inspector/virt-inspector.pod:166
20839 msgid ""
20840 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20841 "describe the operating system, its architecture, the descriptive \"product "
20842 "name\" string, the type of OS and so on, as in this example:"
20843 msgstr ""
20844
20845 #. type: verbatim
20846 #: ../inspector/virt-inspector.pod:170
20847 #, no-wrap
20848 msgid ""
20849 " <operatingsystems>\n"
20850 "   <operatingsystem>\n"
20851 "     <root>/dev/sda2</root>\n"
20852 "     <name>windows</name>\n"
20853 "     <arch>i386</arch>\n"
20854 "     <distro>windows</distro>\n"
20855 "     <product_name>Windows 7 Enterprise</product_name>\n"
20856 "     <product_variant>Client</product_variant>\n"
20857 "     <major_version>6</major_version>\n"
20858 "     <minor_version>1</minor_version>\n"
20859 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20860 "     <format>installed</format>\n"
20861 "\n"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../inspector/virt-inspector.pod:183
20866 msgid ""
20867 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20868 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20869 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20870 "architecture.  The other fields are fairly self-explanatory, but because "
20871 "these fields are taken directly from the libguestfs inspection API you can "
20872 "find precise information from L<guestfs(3)/INSPECTION>."
20873 msgstr ""
20874
20875 #. type: textblock
20876 #: ../inspector/virt-inspector.pod:191
20877 msgid ""
20878 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20879 "of view of libguestfs (block devices may have completely different names "
20880 "inside the VM itself)."
20881 msgstr ""
20882
20883 #. type: =head2
20884 #: ../inspector/virt-inspector.pod:195
20885 msgid "E<lt>mountpointsE<gt>"
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../inspector/virt-inspector.pod:197
20890 msgid ""
20891 "Un*x-like guests typically have multiple filesystems which are mounted at "
20892 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20893 "element which looks like this:"
20894 msgstr ""
20895
20896 #. type: verbatim
20897 #: ../inspector/virt-inspector.pod:201
20898 #, no-wrap
20899 msgid ""
20900 " <operatingsystems>\n"
20901 "   <operatingsystem>\n"
20902 "     ...\n"
20903 "     <mountpoints>\n"
20904 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20905 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20906 "     </mountpoints>\n"
20907 "\n"
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../inspector/virt-inspector.pod:209
20912 msgid ""
20913 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20914 "and may have completely different names inside the guest.  Only mountable "
20915 "filesystems appear in this list, not things like swap devices."
20916 msgstr ""
20917
20918 #. type: =head2
20919 #: ../inspector/virt-inspector.pod:214
20920 msgid "E<lt>filesystemsE<gt>"
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../inspector/virt-inspector.pod:216
20925 msgid ""
20926 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20927 "filesystems belonging to the guest, including swap and empty partitions.  "
20928 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20929 "this OS or shared with this OS and other OSes)."
20930 msgstr ""
20931
20932 #. type: textblock
20933 #: ../inspector/virt-inspector.pod:222
20934 msgid "You might see something like this:"
20935 msgstr ""
20936
20937 #. type: verbatim
20938 #: ../inspector/virt-inspector.pod:224
20939 #, no-wrap
20940 msgid ""
20941 " <operatingsystems>\n"
20942 "   <operatingsystem>\n"
20943 "     ...\n"
20944 "     <filesystems>\n"
20945 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20946 "         <type>ext4</type>\n"
20947 "         <label>Fedora-13-x86_64</label>\n"
20948 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20949 "       </filesystem>\n"
20950 "\n"
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../inspector/virt-inspector.pod:234
20955 msgid ""
20956 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20957 "the label, and the UUID."
20958 msgstr ""
20959
20960 #. type: =head2
20961 #: ../inspector/virt-inspector.pod:237
20962 msgid "E<lt>applicationsE<gt>"
20963 msgstr ""
20964
20965 #. type: textblock
20966 #: ../inspector/virt-inspector.pod:239
20967 msgid ""
20968 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20969 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20970 "machine."
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../inspector/virt-inspector.pod:243
20975 msgid ""
20976 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20977 "Typical values would be C<rpm> and C<deb>."
20978 msgstr ""
20979
20980 #. type: textblock
20981 #: ../inspector/virt-inspector.pod:246
20982 msgid ""
20983 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20984 "Typical values include C<yum>, C<up2date> and C<apt>"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../inspector/virt-inspector.pod:249
20989 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../inspector/virt-inspector.pod:252
20994 #, no-wrap
20995 msgid ""
20996 " <operatingsystems>\n"
20997 "   <operatingsystem>\n"
20998 "     ...\n"
20999 "     <applications>\n"
21000 "       <application>\n"
21001 "         <name>coreutils</name>\n"
21002 "         <version>8.5</version>\n"
21003 "         <release>1</release>\n"
21004 "       </application>\n"
21005 "\n"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../inspector/virt-inspector.pod:262
21010 msgid ""
21011 "The version and release fields may not be available for some types guests.  "
21012 "Other fields are possible, see "
21013 "L<guestfs(3)/guestfs_inspect_list_applications>."
21014 msgstr ""
21015
21016 #. type: =head2
21017 #: ../inspector/virt-inspector.pod:266
21018 msgid "E<lt>drive_mappingsE<gt>"
21019 msgstr ""
21020
21021 #. type: textblock
21022 #: ../inspector/virt-inspector.pod:268
21023 msgid ""
21024 "For operating systems like Windows which use drive letters, virt-inspector "
21025 "is able to find out how drive letters map to filesystems."
21026 msgstr ""
21027
21028 #. type: verbatim
21029 #: ../inspector/virt-inspector.pod:272
21030 #, no-wrap
21031 msgid ""
21032 " <operatingsystems>\n"
21033 "   <operatingsystem>\n"
21034 "     ...\n"
21035 "     <drive_mappings>\n"
21036 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21037 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21038 "     </drive_mappings>\n"
21039 "\n"
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../inspector/virt-inspector.pod:280
21044 msgid ""
21045 "In the example above, drive C maps to the filesystem on the second partition "
21046 "on the first disk, and drive E maps to the filesystem on the first partition "
21047 "on the second disk."
21048 msgstr ""
21049
21050 #. type: textblock
21051 #: ../inspector/virt-inspector.pod:284
21052 msgid ""
21053 "Note that this only covers permanent local filesystem mappings, not things "
21054 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21055 "here."
21056 msgstr ""
21057
21058 #. type: =head2
21059 #: ../inspector/virt-inspector.pod:288
21060 msgid "E<lt>iconE<gt>"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../inspector/virt-inspector.pod:290
21065 msgid ""
21066 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21067 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21068 "very large and high quality."
21069 msgstr ""
21070
21071 #. type: verbatim
21072 #: ../inspector/virt-inspector.pod:294
21073 #, no-wrap
21074 msgid ""
21075 " <operatingsystems>\n"
21076 "   <operatingsystem>\n"
21077 "     ...\n"
21078 "     <icon>\n"
21079 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21080 "       [... many lines of base64 data ...]\n"
21081 "     </icon>\n"
21082 "\n"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../inspector/virt-inspector.pod:302
21087 msgid ""
21088 "To display the icon, you have to extract it and convert the base64 data back "
21089 "to a binary file.  Use an XPath query or simply an editor to extract the "
21090 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21091 "to a PNG file:"
21092 msgstr ""
21093
21094 #. type: verbatim
21095 #: ../inspector/virt-inspector.pod:307
21096 #, no-wrap
21097 msgid ""
21098 " base64 -i -d < icon.data > icon.png\n"
21099 "\n"
21100 msgstr ""
21101
21102 #. type: =head2
21103 #: ../inspector/virt-inspector.pod:309
21104 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21105 msgstr ""
21106
21107 #. type: textblock
21108 #: ../inspector/virt-inspector.pod:311
21109 msgid ""
21110 "Virt-inspector can detect some operating system installers on install disks, "
21111 "live CDs, bootable USB keys and more."
21112 msgstr ""
21113
21114 #. type: textblock
21115 #: ../inspector/virt-inspector.pod:314
21116 msgid ""
21117 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21118 "fields may be present to indicate a live CD, network installer, or one part "
21119 "of a multipart CD.  For example:"
21120 msgstr ""
21121
21122 #. type: verbatim
21123 #: ../inspector/virt-inspector.pod:318
21124 #, no-wrap
21125 msgid ""
21126 " <operatingsystems>\n"
21127 "   <operatingsystem>\n"
21128 "     <root>/dev/sda</root>\n"
21129 "     <name>linux</name>\n"
21130 "     <arch>i386</arch>\n"
21131 "     <distro>ubuntu</distro>\n"
21132 "     <product_name>Ubuntu 10.10 &quot;Maverick "
21133 "Meerkat&quot;</product_name>\n"
21134 "     <major_version>10</major_version>\n"
21135 "     <minor_version>10</minor_version>\n"
21136 "     <format>installer</format>\n"
21137 "     <live/>\n"
21138 "\n"
21139 msgstr ""
21140
21141 #. type: =head1
21142 #: ../inspector/virt-inspector.pod:330
21143 msgid "USING XPATH"
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../inspector/virt-inspector.pod:332
21148 msgid ""
21149 "You can use the XPath query language to select parts of the XML.  We "
21150 "recommend using C<xmlstarlet> to perform XPath queries from the command "
21151 "line."
21152 msgstr ""
21153
21154 #. type: verbatim
21155 #: ../inspector/virt-inspector.pod:338
21156 #, no-wrap
21157 msgid ""
21158 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21159 " <filesystems>\n"
21160 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21161 "        <type>ext4</type>\n"
21162 " [...]\n"
21163 "\n"
21164 msgstr ""
21165
21166 #. type: verbatim
21167 #: ../inspector/virt-inspector.pod:344
21168 #, no-wrap
21169 msgid ""
21170 " $ virt-inspector -d Guest | \\\n"
21171 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21172 " ext4\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: verbatim
21177 #: ../inspector/virt-inspector.pod:348
21178 #, no-wrap
21179 msgid ""
21180 " $ virt-inspector -d Guest | \\\n"
21181 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21182 " [displays the guest icon, if there is one]\n"
21183 "\n"
21184 msgstr ""
21185
21186 #. type: =head1
21187 #: ../inspector/virt-inspector.pod:359
21188 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../inspector/virt-inspector.pod:361
21193 msgid ""
21194 "Early versions of libguestfs shipped with a different virt-inspector program "
21195 "written in Perl (the current version is written in C).  The XML output of "
21196 "the Perl virt-inspector was different and it could also output in other "
21197 "formats like text."
21198 msgstr ""
21199
21200 #. type: textblock
21201 #: ../inspector/virt-inspector.pod:366
21202 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
21203 msgstr ""
21204
21205 #. type: textblock
21206 #: ../inspector/virt-inspector.pod:369
21207 msgid ""
21208 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21209 "versions of virt-inspector with different names:"
21210 msgstr ""
21211
21212 #. type: verbatim
21213 #: ../inspector/virt-inspector.pod:372
21214 #, no-wrap
21215 msgid ""
21216 " virt-inspector     Old Perl version.\n"
21217 " virt-inspector2    New C version.\n"
21218 "\n"
21219 msgstr ""
21220
21221 #. type: textblock
21222 #: ../inspector/virt-inspector.pod:382
21223 msgid ""
21224 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
21225 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21226 msgstr ""
21227
21228 #. type: textblock
21229 #: ../inspector/virt-inspector.pod:399
21230 msgid "Matthew Booth L<mbooth@redhat.com>"
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../java/examples/guestfs-java.pod:5
21235 msgid "guestfs-java - How to use libguestfs from Java"
21236 msgstr ""
21237
21238 #. type: verbatim
21239 #: ../java/examples/guestfs-java.pod:9
21240 #, no-wrap
21241 msgid ""
21242 " import com.redhat.et.libguestfs.*;\n"
21243 " \n"
21244 msgstr ""
21245
21246 #. type: verbatim
21247 #: ../java/examples/guestfs-java.pod:11
21248 #, no-wrap
21249 msgid ""
21250 " GuestFS g = new GuestFS ();\n"
21251 " g.add_drive_opts (\"disk.img\", null);\n"
21252 " g.launch ();\n"
21253 "\n"
21254 msgstr ""
21255
21256 #. type: textblock
21257 #: ../java/examples/guestfs-java.pod:17
21258 msgid ""
21259 "This manual page documents how to call libguestfs from the Java programming "
21260 "language.  This page just documents the differences from the C API and gives "
21261 "some examples.  If you are not familiar with using libguestfs, you also need "
21262 "to read L<guestfs(3)>."
21263 msgstr ""
21264
21265 #. type: =head2
21266 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21267 msgid "CLOSING THE HANDLE"
21268 msgstr ""
21269
21270 #. type: textblock
21271 #: ../java/examples/guestfs-java.pod:24
21272 msgid ""
21273 "The handle is closed when it is reaped by the garbage collector.  Because "
21274 "libguestfs handles include a lot of state, it is also possible to close (and "
21275 "hence free) them explicitly by calling the C<close> method."
21276 msgstr ""
21277
21278 #. type: =head2
21279 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
21280 msgid "EXCEPTIONS"
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../java/examples/guestfs-java.pod:31
21285 msgid ""
21286 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21287 "exception.  This has a single parameter which is the error message (a "
21288 "C<String>)."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../java/examples/guestfs-java.pod:35
21293 msgid "Calling any method on a closed handle raises the same exception."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../java/examples/guestfs-java.pod:47
21298 msgid ""
21299 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21300 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21301 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21302 "L<http://caml.inria.fr/>."
21303 msgstr ""
21304
21305 #. type: textblock
21306 #: ../ocaml/examples/guestfs-ocaml.pod:5
21307 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21308 msgstr ""
21309
21310 #. type: textblock
21311 #: ../ocaml/examples/guestfs-ocaml.pod:9
21312 msgid "Module style:"
21313 msgstr ""
21314
21315 #. type: verbatim
21316 #: ../ocaml/examples/guestfs-ocaml.pod:11
21317 #, no-wrap
21318 msgid ""
21319 " let g = Guestfs.create () in\n"
21320 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21321 " Guestfs.launch g;\n"
21322 "\n"
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../ocaml/examples/guestfs-ocaml.pod:15
21327 msgid "Object-oriented style:"
21328 msgstr ""
21329
21330 #. type: verbatim
21331 #: ../ocaml/examples/guestfs-ocaml.pod:17
21332 #, no-wrap
21333 msgid ""
21334 " let g = new Guestfs.guestfs () in\n"
21335 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21336 " g#launch ();\n"
21337 "\n"
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../ocaml/examples/guestfs-ocaml.pod:21
21342 #, no-wrap
21343 msgid ""
21344 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21345 "or:\n"
21346 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21347 "\n"
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../ocaml/examples/guestfs-ocaml.pod:27
21352 msgid ""
21353 "This manual page documents how to call libguestfs from the OCaml programming "
21354 "language.  This page just documents the differences from the C API and gives "
21355 "some examples.  If you are not familiar with using libguestfs, you also need "
21356 "to read L<guestfs(3)>."
21357 msgstr ""
21358
21359 #. type: =head2
21360 #: ../ocaml/examples/guestfs-ocaml.pod:32
21361 msgid "PROGRAMMING STYLES"
21362 msgstr ""
21363
21364 #. type: textblock
21365 #: ../ocaml/examples/guestfs-ocaml.pod:34
21366 msgid ""
21367 "There are two different programming styles supported by the OCaml bindings.  "
21368 "You can use a module style, with each C function mapped to an OCaml "
21369 "function:"
21370 msgstr ""
21371
21372 #. type: verbatim
21373 #: ../ocaml/examples/guestfs-ocaml.pod:38
21374 #, no-wrap
21375 msgid ""
21376 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21377 "\n"
21378 msgstr ""
21379
21380 #. type: textblock
21381 #: ../ocaml/examples/guestfs-ocaml.pod:40
21382 msgid "becomes:"
21383 msgstr ""
21384
21385 #. type: verbatim
21386 #: ../ocaml/examples/guestfs-ocaml.pod:42
21387 #, no-wrap
21388 msgid ""
21389 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21390 "\n"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../ocaml/examples/guestfs-ocaml.pod:44
21395 msgid ""
21396 "Alternately you can use an object-oriented style, calling methods on the "
21397 "class C<Guestfs.guestfs>:"
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../ocaml/examples/guestfs-ocaml.pod:47
21402 #, no-wrap
21403 msgid ""
21404 " method set_verbose : bool -> unit\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: textblock
21409 #: ../ocaml/examples/guestfs-ocaml.pod:49
21410 msgid ""
21411 "The object-oriented style is usually briefer, and the minor performance "
21412 "penalty isn't noticable in the general overhead of performing libguestfs "
21413 "functions."
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../ocaml/examples/guestfs-ocaml.pod:55
21418 msgid ""
21419 "The handle is closed when it is reaped by the garbage collector.  Because "
21420 "libguestfs handles include a lot of state, it is also possible to close (and "
21421 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21422 "method."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../ocaml/examples/guestfs-ocaml.pod:62
21427 msgid ""
21428 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21429 "exception.  This has a single parameter which is the error message (a "
21430 "string)."
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../ocaml/examples/guestfs-ocaml.pod:66
21435 msgid ""
21436 "Calling any function/method on a closed handle raises "
21437 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
21438 "that you called."
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../ocaml/examples/guestfs-ocaml.pod:80
21443 msgid ""
21444 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21445 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21446 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21447 "L<http://caml.inria.fr/>."
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../perl/examples/guestfs-perl.pod:5
21452 msgid "guestfs-perl - How to use libguestfs from Perl"
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../perl/examples/guestfs-perl.pod:9
21457 #, no-wrap
21458 msgid ""
21459 " use Sys::Guestfs;\n"
21460 " \n"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../perl/examples/guestfs-perl.pod:11
21465 #, no-wrap
21466 msgid ""
21467 " my $h = Sys::Guestfs->new ();\n"
21468 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21469 " $h->launch ();\n"
21470 " $h->mount_options ('', '/dev/sda1', '/');\n"
21471 " $h->touch ('/hello');\n"
21472 " $h->sync ();\n"
21473 "\n"
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../perl/examples/guestfs-perl.pod:20
21478 msgid ""
21479 "This manual page documents how to call libguestfs from the Perl programming "
21480 "language.  This page just documents the differences from the C API and gives "
21481 "some examples.  If you are not familiar with using libguestfs, you also need "
21482 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21483 msgstr ""
21484
21485 #. type: =head2
21486 #: ../perl/examples/guestfs-perl.pod:26
21487 msgid "ERRORS"
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../perl/examples/guestfs-perl.pod:28
21492 msgid ""
21493 "Errors from libguestfs functions turn into calls to C<croak> (see "
21494 "L<Carp(3)>)."
21495 msgstr ""
21496
21497 #. type: textblock
21498 #: ../perl/examples/guestfs-perl.pod:41
21499 msgid ""
21500 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
21501 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
21502 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
21503 "L<http://libguestfs.org/>."
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../python/examples/guestfs-python.pod:5
21508 msgid "guestfs-python - How to use libguestfs from Python"
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../python/examples/guestfs-python.pod:9
21513 #, no-wrap
21514 msgid ""
21515 " import guestfs\n"
21516 " g = guestfs.GuestFS ()\n"
21517 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21518 " g.launch\n"
21519 "\n"
21520 msgstr ""
21521
21522 #. type: textblock
21523 #: ../python/examples/guestfs-python.pod:16
21524 msgid ""
21525 "This manual page documents how to call libguestfs from the Python "
21526 "programming language.  This page just documents the differences from the C "
21527 "API and gives some examples.  If you are not familiar with using libguestfs, "
21528 "you also need to read L<guestfs(3)>."
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../python/examples/guestfs-python.pod:23
21533 msgid ""
21534 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21535 "single string argument which is the error message."
21536 msgstr ""
21537
21538 #. type: =head2
21539 #: ../python/examples/guestfs-python.pod:26
21540 msgid "MORE DOCUMENTATION"
21541 msgstr ""
21542
21543 #. type: textblock
21544 #: ../python/examples/guestfs-python.pod:28
21545 msgid "Type:"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../python/examples/guestfs-python.pod:30
21550 #, no-wrap
21551 msgid ""
21552 " $ python\n"
21553 " >>> import guestfs\n"
21554 " >>> help (guestfs)\n"
21555 "\n"
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../python/examples/guestfs-python.pod:44
21560 msgid ""
21561 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21562 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21563 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../rescue/virt-rescue.pod:5
21568 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21569 msgstr ""
21570
21571 #. type: verbatim
21572 #: ../rescue/virt-rescue.pod:9
21573 #, no-wrap
21574 msgid ""
21575 " virt-rescue [--options] -d domname\n"
21576 "\n"
21577 msgstr ""
21578
21579 #. type: verbatim
21580 #: ../rescue/virt-rescue.pod:11
21581 #, no-wrap
21582 msgid ""
21583 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21584 "\n"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../rescue/virt-rescue.pod:15
21589 #, no-wrap
21590 msgid ""
21591 " virt-rescue [--options] domname\n"
21592 "\n"
21593 msgstr ""
21594
21595 #. type: verbatim
21596 #: ../rescue/virt-rescue.pod:17
21597 #, no-wrap
21598 msgid ""
21599 " virt-rescue [--options] disk.img [disk.img ...]\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../rescue/virt-rescue.pod:21
21605 msgid ""
21606 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21607 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21608 "you from doing this, but doesn't catch all cases."
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../rescue/virt-rescue.pod:25
21613 msgid ""
21614 "However if you use the I<--ro> (read only) option, then you can attach a "
21615 "shell to a live virtual machine.  The results might be strange or "
21616 "inconsistent at times but you won't get disk corruption."
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../rescue/virt-rescue.pod:31
21621 msgid ""
21622 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21623 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21624 "recovery tools which you can use to examine or rescue a virtual machine or "
21625 "disk image."
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../rescue/virt-rescue.pod:36
21630 msgid ""
21631 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21632 "on disk image(s):"
21633 msgstr ""
21634
21635 #. type: verbatim
21636 #: ../rescue/virt-rescue.pod:39
21637 #, no-wrap
21638 msgid ""
21639 " virt-rescue -d GuestName\n"
21640 "\n"
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../rescue/virt-rescue.pod:41
21645 #, no-wrap
21646 msgid ""
21647 " virt-rescue --ro -a /path/to/disk.img\n"
21648 "\n"
21649 msgstr ""
21650
21651 #. type: verbatim
21652 #: ../rescue/virt-rescue.pod:43
21653 #, no-wrap
21654 msgid ""
21655 " virt-rescue -a /dev/sdc\n"
21656 "\n"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../rescue/virt-rescue.pod:45
21661 msgid "For live VMs you I<must> use the --ro option."
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../rescue/virt-rescue.pod:47
21666 msgid ""
21667 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21668 "in an interactive bash shell where you can use many ordinary Linux "
21669 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21670 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21671 "is an empty directory called C</sysroot> where you can mount filesystems."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../rescue/virt-rescue.pod:54
21676 msgid ""
21677 "In the example below, we list logical volumes, then choose one to mount "
21678 "under C</sysroot>:"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../rescue/virt-rescue.pod:57
21683 #, no-wrap
21684 msgid ""
21685 " ><rescue> lvs\n"
21686 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21687 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21688 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21689 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21690 " ><rescue> ls /sysroot\n"
21691 "\n"
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../rescue/virt-rescue.pod:64
21696 msgid ""
21697 "If you don't know what filesystems are available on the virtual machine then "
21698 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../rescue/virt-rescue.pod:70
21703 msgid ""
21704 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21705 "virtual machine.  For example you can use it on a blank file if you want to "
21706 "partition that file (although we would recommend using L<guestfish(1)> "
21707 "instead as it is more suitable for this purpose).  You can even use "
21708 "virt-rescue on things like SD cards."
21709 msgstr ""
21710
21711 #. type: textblock
21712 #: ../rescue/virt-rescue.pod:76
21713 msgid ""
21714 "Virt-rescue does not require root.  You only need to run it as root if you "
21715 "need root to open the disk image."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../rescue/virt-rescue.pod:79
21720 msgid ""
21721 "This tool is just designed for quick interactive hacking on a virtual "
21722 "machine.  For more structured access to a virtual machine disk image, you "
21723 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21724 "make scripted changes to guests, use L<guestfish(1)>."
21725 msgstr ""
21726
21727 #. type: =item
21728 #: ../rescue/virt-rescue.pod:103
21729 msgid "B<--append kernelopts>"
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../rescue/virt-rescue.pod:105
21734 msgid "Pass additional options to the rescue kernel."
21735 msgstr ""
21736
21737 #. type: verbatim
21738 #: ../rescue/virt-rescue.pod:135
21739 #, no-wrap
21740 msgid ""
21741 " virt-rescue --format=raw -a disk.img\n"
21742 "\n"
21743 msgstr ""
21744
21745 #. type: verbatim
21746 #: ../rescue/virt-rescue.pod:139
21747 #, no-wrap
21748 msgid ""
21749 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21750 "\n"
21751 msgstr ""
21752
21753 #. type: =item
21754 #: ../rescue/virt-rescue.pod:148
21755 msgid "B<-m MB>"
21756 msgstr ""
21757
21758 #. type: =item
21759 #: ../rescue/virt-rescue.pod:150
21760 msgid "B<--memsize MB>"
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../rescue/virt-rescue.pod:152
21765 msgid ""
21766 "Change the amount of memory allocated to the rescue system.  The default is "
21767 "set by libguestfs and is small but adequate for running system tools.  The "
21768 "occasional program might need more memory.  The parameter is specified in "
21769 "megabytes."
21770 msgstr ""
21771
21772 #. type: =item
21773 #: ../rescue/virt-rescue.pod:157
21774 msgid "B<--network>"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../rescue/virt-rescue.pod:159
21779 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../rescue/virt-rescue.pod:165
21784 msgid "Open the image read-only."
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../rescue/virt-rescue.pod:175
21789 msgid ""
21790 "Enable SELinux in the rescue appliance.  You should read "
21791 "L<guestfs(3)/SELINUX> before using this option."
21792 msgstr ""
21793
21794 #. type: =item
21795 #: ../rescue/virt-rescue.pod:178
21796 msgid "B<--smp> N"
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../rescue/virt-rescue.pod:180
21801 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
21802 msgstr ""
21803
21804 #. type: textblock
21805 #: ../rescue/virt-rescue.pod:198
21806 msgid ""
21807 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21808 "are done read-write."
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../rescue/virt-rescue.pod:211
21813 msgid "Previous versions of virt-rescue allowed you to write either:"
21814 msgstr ""
21815
21816 #. type: verbatim
21817 #: ../rescue/virt-rescue.pod:213
21818 #, no-wrap
21819 msgid ""
21820 " virt-rescue disk.img [disk.img ...]\n"
21821 "\n"
21822 msgstr ""
21823
21824 #. type: verbatim
21825 #: ../rescue/virt-rescue.pod:217
21826 #, no-wrap
21827 msgid ""
21828 " virt-rescue guestname\n"
21829 "\n"
21830 msgstr ""
21831
21832 #. type: =head1
21833 #: ../rescue/virt-rescue.pod:225
21834 msgid "NETWORK"
21835 msgstr ""
21836
21837 #. type: textblock
21838 #: ../rescue/virt-rescue.pod:227
21839 msgid ""
21840 "Adding the I<--network> option enables QEMU user networking in the rescue "
21841 "appliance.  There are some differences between user networking and ordinary "
21842 "networking:"
21843 msgstr ""
21844
21845 #. type: =item
21846 #: ../rescue/virt-rescue.pod:233
21847 msgid "ping does not work"
21848 msgstr ""
21849
21850 #. type: textblock
21851 #: ../rescue/virt-rescue.pod:235
21852 msgid ""
21853 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21854 "send the ping packets, and because virt-rescue must be able to run as "
21855 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
21856 "command.  The ping command will appear to resolve addresses but will not be "
21857 "able to send or receive any packets.  This does not mean that the network is "
21858 "not working."
21859 msgstr ""
21860
21861 #. type: =item
21862 #: ../rescue/virt-rescue.pod:242
21863 msgid "cannot receive connections"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../rescue/virt-rescue.pod:244
21868 msgid "QEMU user networking cannot receive incoming connections."
21869 msgstr ""
21870
21871 #. type: =item
21872 #: ../rescue/virt-rescue.pod:246
21873 msgid "making TCP connections"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../rescue/virt-rescue.pod:248
21878 msgid ""
21879 "The virt-rescue appliance needs to be small and so does not include many "
21880 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21881 "make TCP connections from the shell using the magical "
21882 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21883 msgstr ""
21884
21885 #. type: verbatim
21886 #: ../rescue/virt-rescue.pod:253
21887 #, no-wrap
21888 msgid ""
21889 " exec 3<>/dev/tcp/redhat.com/80\n"
21890 " echo \"GET /\" >&3\n"
21891 " cat <&3\n"
21892 "\n"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../rescue/virt-rescue.pod:257
21897 msgid "See L<bash(1)> for more details."
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../rescue/virt-rescue.pod:263
21902 msgid ""
21903 "Several environment variables affect virt-rescue.  See "
21904 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../rescue/virt-rescue.pod:290
21909 msgid ""
21910 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21911 "L<http://libguestfs.org/>."
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../resize/virt-resize.pod:5
21916 msgid "virt-resize - Resize a virtual machine disk"
21917 msgstr ""
21918
21919 #. type: verbatim
21920 #: ../resize/virt-resize.pod:9
21921 #, no-wrap
21922 msgid ""
21923 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21924 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21925 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21926 "\n"
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../resize/virt-resize.pod:15
21931 msgid ""
21932 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21933 "larger or smaller overall, and resizing or deleting any partitions contained "
21934 "within."
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../resize/virt-resize.pod:19
21939 msgid ""
21940 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21941 "not> be used on live virtual machines - for consistent results, shut the "
21942 "virtual machine down before resizing it."
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../resize/virt-resize.pod:23
21947 msgid ""
21948 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21949 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21950 msgstr ""
21951
21952 #. type: =item
21953 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520 ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
21954 msgid "1."
21955 msgstr ""
21956
21957 #. type: textblock
21958 #: ../resize/virt-resize.pod:33
21959 msgid ""
21960 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21961 "fill the extra 5GB of space."
21962 msgstr ""
21963
21964 #. type: verbatim
21965 #: ../resize/virt-resize.pod:36
21966 #, no-wrap
21967 msgid ""
21968 " virt-filesystems --long -h --all -a olddisk\n"
21969 " \n"
21970 msgstr ""
21971
21972 #. type: verbatim
21973 #: ../resize/virt-resize.pod:38
21974 #, no-wrap
21975 msgid ""
21976 " truncate -r olddisk newdisk\n"
21977 " truncate -s +5G newdisk\n"
21978 " \n"
21979 msgstr ""
21980
21981 #. type: verbatim
21982 #: ../resize/virt-resize.pod:41
21983 #, no-wrap
21984 msgid ""
21985 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21986 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: =item
21991 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527 ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
21992 msgid "2."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../resize/virt-resize.pod:46
21997 msgid ""
21998 "As above, but make the /boot partition 200MB bigger, while giving the "
21999 "remaining space to /dev/sda2:"
22000 msgstr ""
22001
22002 #. type: verbatim
22003 #: ../resize/virt-resize.pod:49
22004 #, no-wrap
22005 msgid ""
22006 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22007 "   olddisk newdisk\n"
22008 "\n"
22009 msgstr ""
22010
22011 #. type: =item
22012 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
22013 msgid "3."
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../resize/virt-resize.pod:54
22018 msgid ""
22019 "As in the first example, but expand a logical volume as the final step.  "
22020 "This is what you would typically use for Linux guests that use LVM:"
22021 msgstr ""
22022
22023 #. type: verbatim
22024 #: ../resize/virt-resize.pod:58
22025 #, no-wrap
22026 msgid ""
22027 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22028 "   olddisk newdisk\n"
22029 "\n"
22030 msgstr ""
22031
22032 #. type: =item
22033 #: ../resize/virt-resize.pod:61
22034 msgid "4."
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../resize/virt-resize.pod:63
22039 msgid ""
22040 "As in the first example, but the output format will be qcow2 instead of a "
22041 "raw disk:"
22042 msgstr ""
22043
22044 #. type: verbatim
22045 #: ../resize/virt-resize.pod:66
22046 #, no-wrap
22047 msgid ""
22048 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22049 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22050 "\n"
22051 msgstr ""
22052
22053 #. type: =head1
22054 #: ../resize/virt-resize.pod:71
22055 msgid "DETAILED USAGE"
22056 msgstr ""
22057
22058 #. type: =head2
22059 #: ../resize/virt-resize.pod:73
22060 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22061 msgstr ""
22062
22063 #. type: =item
22064 #: ../resize/virt-resize.pod:77
22065 msgid "1. Shut down the virtual machine"
22066 msgstr ""
22067
22068 #. type: =item
22069 #: ../resize/virt-resize.pod:79
22070 msgid "2. Locate input disk image"
22071 msgstr ""
22072
22073 #. type: textblock
22074 #: ../resize/virt-resize.pod:81
22075 msgid ""
22076 "Locate the input disk image (ie. the file or device on the host containing "
22077 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22078 "dumpxml> like this to find the disk image name:"
22079 msgstr ""
22080
22081 #. type: verbatim
22082 #: ../resize/virt-resize.pod:85
22083 #, no-wrap
22084 msgid ""
22085 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22086 " Found 1 nodes:\n"
22087 " -- NODE --\n"
22088 " <source dev=\"/dev/vg/lv_guest\" />\n"
22089 "\n"
22090 msgstr ""
22091
22092 #. type: =item
22093 #: ../resize/virt-resize.pod:90
22094 msgid "3. Look at current sizing"
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../resize/virt-resize.pod:92
22099 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../resize/virt-resize.pod:95
22104 #, no-wrap
22105 msgid ""
22106 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22107 " Name       Type       Size  Parent\n"
22108 " /dev/sda1  partition  101M  /dev/sda\n"
22109 " /dev/sda2  partition  7.9G  /dev/sda\n"
22110 " /dev/sda   device     8.0G  -\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../resize/virt-resize.pod:101
22116 msgid ""
22117 "(This example is a virtual machine with an 8 GB disk which we would like to "
22118 "expand up to 10 GB)."
22119 msgstr ""
22120
22121 #. type: =item
22122 #: ../resize/virt-resize.pod:104
22123 msgid "4. Create output disk"
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../resize/virt-resize.pod:106
22128 msgid ""
22129 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22130 "to store the resized output disk."
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../resize/virt-resize.pod:109
22135 msgid "To store the resized disk image in a file, create a file of a suitable size:"
22136 msgstr ""
22137
22138 #. type: verbatim
22139 #: ../resize/virt-resize.pod:112
22140 #, no-wrap
22141 msgid ""
22142 " # rm -f outdisk\n"
22143 " # truncate -s 10G outdisk\n"
22144 "\n"
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../resize/virt-resize.pod:115
22149 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22150 msgstr ""
22151
22152 #. type: verbatim
22153 #: ../resize/virt-resize.pod:117
22154 #, no-wrap
22155 msgid ""
22156 " # lvcreate -L 10G -n lv_name vg_name\n"
22157 "\n"
22158 msgstr ""
22159
22160 #. type: textblock
22161 #: ../resize/virt-resize.pod:119
22162 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22163 msgstr ""
22164
22165 #. type: verbatim
22166 #: ../resize/virt-resize.pod:121
22167 #, no-wrap
22168 msgid ""
22169 " # virsh pool-list\n"
22170 " # virsh vol-create-as poolname newvol 10G\n"
22171 "\n"
22172 msgstr ""
22173
22174 #. type: =item
22175 #: ../resize/virt-resize.pod:124
22176 msgid "5. Resize"
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../resize/virt-resize.pod:126
22181 msgid ""
22182 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22183 "file) and the output disk.  The output disk is the one created in the "
22184 "previous step."
22185 msgstr ""
22186
22187 #. type: verbatim
22188 #: ../resize/virt-resize.pod:130
22189 #, no-wrap
22190 msgid ""
22191 " # virt-resize indisk outdisk\n"
22192 "\n"
22193 msgstr ""
22194
22195 #. type: textblock
22196 #: ../resize/virt-resize.pod:132
22197 msgid ""
22198 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22199 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22200 "larger, then an extra, empty partition is created at the end of the disk "
22201 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22202 "error."
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../resize/virt-resize.pod:138
22207 msgid ""
22208 "More realistically you'd want to expand existing partitions in the disk "
22209 "image by passing extra options (for the full list see the L</OPTIONS> "
22210 "section below)."
22211 msgstr ""
22212
22213 #. type: textblock
22214 #: ../resize/virt-resize.pod:142
22215 msgid ""
22216 "L</--expand> is the most useful option.  It expands the named partition "
22217 "within the disk to fill any extra space:"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../resize/virt-resize.pod:145
22222 #, no-wrap
22223 msgid ""
22224 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../resize/virt-resize.pod:147
22230 msgid ""
22231 "(In this case, an extra partition is I<not> created at the end of the disk, "
22232 "because there will be no unused space)."
22233 msgstr ""
22234
22235 #. type: textblock
22236 #: ../resize/virt-resize.pod:150
22237 msgid ""
22238 "L</--resize> is the other commonly used option.  The following would "
22239 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22240 "rest of the available space:"
22241 msgstr ""
22242
22243 #. type: verbatim
22244 #: ../resize/virt-resize.pod:154
22245 #, no-wrap
22246 msgid ""
22247 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22248 "     indisk outdisk\n"
22249 "\n"
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../resize/virt-resize.pod:157
22254 msgid ""
22255 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22256 "if virt-resize knows how, it will resize the contents, the equivalent of "
22257 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22258 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22259 "filesystems, so you would have to online resize them after booting the "
22260 "guest."
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../resize/virt-resize.pod:164
22265 msgid "Other options are covered below."
22266 msgstr ""
22267
22268 #. type: =item
22269 #: ../resize/virt-resize.pod:166
22270 msgid "6. Test"
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../resize/virt-resize.pod:168
22275 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../resize/virt-resize.pod:170
22280 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22281 msgstr ""
22282
22283 #. type: verbatim
22284 #: ../resize/virt-resize.pod:172
22285 #, no-wrap
22286 msgid ""
22287 " # virsh edit guestname\n"
22288 "\n"
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../resize/virt-resize.pod:174
22293 msgid ""
22294 "Change E<lt>source ...E<gt>, see "
22295 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
22296 msgstr ""
22297
22298 #. type: textblock
22299 #: ../resize/virt-resize.pod:177
22300 msgid "Then start up the domain with the new, resized disk:"
22301 msgstr ""
22302
22303 #. type: verbatim
22304 #: ../resize/virt-resize.pod:179
22305 #, no-wrap
22306 msgid ""
22307 " # virsh start guestname\n"
22308 "\n"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../resize/virt-resize.pod:181
22313 msgid ""
22314 "and check that it still works.  See also the L</NOTES> section below for "
22315 "additional information."
22316 msgstr ""
22317
22318 #. type: =item
22319 #: ../resize/virt-resize.pod:184
22320 msgid "7. Resize LVs etc inside the guest"
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../resize/virt-resize.pod:186
22325 msgid "(This can also be done offline using L<guestfish(1)>)"
22326 msgstr ""
22327
22328 #. type: textblock
22329 #: ../resize/virt-resize.pod:188
22330 msgid ""
22331 "Once the guest has booted you should see the new space available, at least "
22332 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22333 "may need to resize LVs inside PVs, and also resize filesystem types that "
22334 "virt-resize does not know how to expand."
22335 msgstr ""
22336
22337 #. type: =head2
22338 #: ../resize/virt-resize.pod:195
22339 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../resize/virt-resize.pod:197
22344 msgid ""
22345 "Shrinking is somewhat more complex than expanding, and only an overview is "
22346 "given here."
22347 msgstr ""
22348
22349 #. type: textblock
22350 #: ../resize/virt-resize.pod:200
22351 msgid ""
22352 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22353 "filesystems).  The user has to shrink content before passing the disk image "
22354 "to virt-resize, and virt-resize will check that the content has been shrunk "
22355 "properly."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../resize/virt-resize.pod:205
22360 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../resize/virt-resize.pod:207
22365 msgid ""
22366 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22367 "steps 3 and 4 above to allocate a new disk image."
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../resize/virt-resize.pod:210
22372 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22373 msgstr ""
22374
22375 #. type: =head2
22376 #: ../resize/virt-resize.pod:213
22377 msgid "IGNORING OR DELETING PARTITIONS"
22378 msgstr ""
22379
22380 #. type: textblock
22381 #: ../resize/virt-resize.pod:215
22382 msgid ""
22383 "virt-resize also gives a convenient way to ignore or delete partitions when "
22384 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22385 "up the copy where you don't care about the existing contents of a "
22386 "partition.  Deleting a partition removes it completely, but note that it "
22387 "also renumbers any partitions after the one which is deleted, which can "
22388 "leave some guests unbootable."
22389 msgstr ""
22390
22391 #. type: =head2
22392 #: ../resize/virt-resize.pod:222
22393 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../resize/virt-resize.pod:224
22398 msgid ""
22399 "If the input disk is in qcow2 format, then you may prefer that the output is "
22400 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22401 "the fly.  The output format is simply determined by the format of the empty "
22402 "output container that you provide.  Thus to create qcow2 output, use:"
22403 msgstr ""
22404
22405 #. type: verbatim
22406 #: ../resize/virt-resize.pod:230
22407 #, no-wrap
22408 msgid ""
22409 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22410 "\n"
22411 msgstr ""
22412
22413 #. type: textblock
22414 #: ../resize/virt-resize.pod:232
22415 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../resize/virt-resize.pod:234
22420 msgid "Similarly, to get non-sparse raw output use:"
22421 msgstr ""
22422
22423 #. type: verbatim
22424 #: ../resize/virt-resize.pod:236
22425 #, no-wrap
22426 msgid ""
22427 " fallocate -l size outdisk\n"
22428 "\n"
22429 msgstr ""
22430
22431 #. type: textblock
22432 #: ../resize/virt-resize.pod:238
22433 msgid ""
22434 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
22435 "if=/dev/zero of=outdisk bs=1M count=..>)"
22436 msgstr ""
22437
22438 #. type: textblock
22439 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22440 msgid "Display help."
22441 msgstr ""
22442
22443 #. type: =item
22444 #: ../resize/virt-resize.pod:249
22445 msgid "B<-d>"
22446 msgstr ""
22447
22448 #. type: =item
22449 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
22450 msgid "B<--debug>"
22451 msgstr ""
22452
22453 #. type: textblock
22454 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22455 msgid "Enable debugging messages."
22456 msgstr ""
22457
22458 #. type: =item
22459 #: ../resize/virt-resize.pod:255
22460 msgid "B<--delete part>"
22461 msgstr ""
22462
22463 #. type: textblock
22464 #: ../resize/virt-resize.pod:257
22465 msgid ""
22466 "Delete the named partition.  It would be more accurate to describe this as "
22467 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22468 "the original disk image is left intact."
22469 msgstr ""
22470
22471 #. type: textblock
22472 #: ../resize/virt-resize.pod:261
22473 msgid ""
22474 "Note that when you delete a partition, then anything contained in the "
22475 "partition is also deleted.  Furthermore, this causes any partitions that "
22476 "come after to be I<renumbered>, which can easily make your guest unbootable."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22481 msgid "You can give this option multiple times."
22482 msgstr ""
22483
22484 #. type: =item
22485 #: ../resize/virt-resize.pod:268
22486 msgid "B<--expand part>"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../resize/virt-resize.pod:270
22491 msgid ""
22492 "Expand the named partition so it uses up all extra space (space left over "
22493 "after any other resize changes that you request have been done)."
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../resize/virt-resize.pod:273
22498 msgid ""
22499 "If virt-resize knows how, it will expand the direct content of the "
22500 "partition.  For example, if the partition is an LVM PV, it will expand the "
22501 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22502 "content it doesn't know about alone."
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../resize/virt-resize.pod:278
22507 msgid "Currently virt-resize can resize:"
22508 msgstr ""
22509
22510 #. type: textblock
22511 #: ../resize/virt-resize.pod:284
22512 msgid "ext2, ext3 and ext4 filesystems."
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../resize/virt-resize.pod:288
22517 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../resize/virt-resize.pod:290
22522 msgid ""
22523 "The filesystem must have been shut down consistently last time it was used.  "
22524 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22525 "consistency check, so at the first boot after resizing Windows will check "
22526 "the disk."
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../resize/virt-resize.pod:297
22531 msgid ""
22532 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22533 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22534 "resize LVs as desired after boot."
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../resize/virt-resize.pod:303
22539 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22544 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22545 msgstr ""
22546
22547 #. type: =item
22548 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22549 msgid "B<--format> raw"
22550 msgstr ""
22551
22552 #. type: textblock
22553 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22554 msgid ""
22555 "Specify the format of the input disk image.  If this flag is not given then "
22556 "it is auto-detected from the image itself."
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../resize/virt-resize.pod:317
22561 msgid ""
22562 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22563 "AND NON-SPARSE RAW FORMATS>."
22564 msgstr ""
22565
22566 #. type: =item
22567 #: ../resize/virt-resize.pod:320
22568 msgid "B<--ignore part>"
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../resize/virt-resize.pod:322
22573 msgid ""
22574 "Ignore the named partition.  Effectively this means the partition is "
22575 "allocated on the destination disk, but the content is not copied across from "
22576 "the source disk.  The content of the partition will be blank (all zero "
22577 "bytes)."
22578 msgstr ""
22579
22580 #. type: =item
22581 #: ../resize/virt-resize.pod:329
22582 msgid "B<--LV-expand logvol>"
22583 msgstr ""
22584
22585 #. type: textblock
22586 #: ../resize/virt-resize.pod:331
22587 msgid ""
22588 "This takes the logical volume and, as a final step, expands it to fill all "
22589 "the space available in its volume group.  A typical usage, assuming a Linux "
22590 "guest with a single PV C</dev/sda2> and a root device called "
22591 "C</dev/vg_guest/lv_root> would be:"
22592 msgstr ""
22593
22594 #. type: verbatim
22595 #: ../resize/virt-resize.pod:336
22596 #, no-wrap
22597 msgid ""
22598 " virt-resize indisk outdisk \\\n"
22599 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22600 "\n"
22601 msgstr ""
22602
22603 #. type: textblock
22604 #: ../resize/virt-resize.pod:339
22605 msgid ""
22606 "This would first expand the partition (and PV), and then expand the root "
22607 "device to fill the extra space in the PV."
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../resize/virt-resize.pod:342
22612 msgid ""
22613 "The contents of the LV are also resized if virt-resize knows how to do "
22614 "that.  You can stop virt-resize from trying to expand the content by using "
22615 "the option I<--no-expand-content>."
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../resize/virt-resize.pod:346
22620 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22621 msgstr ""
22622
22623 #. type: textblock
22624 #: ../resize/virt-resize.pod:348
22625 msgid ""
22626 "You can give this option multiple times, I<but> it doesn't make sense to do "
22627 "this unless the logical volumes you specify are all in different volume "
22628 "groups."
22629 msgstr ""
22630
22631 #. type: =item
22632 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22633 msgid "B<--machine-readable>"
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22638 msgid ""
22639 "This option is used to make the output more machine friendly when being "
22640 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22641 msgstr ""
22642
22643 #. type: =item
22644 #: ../resize/virt-resize.pod:360
22645 msgid "B<--dryrun>"
22646 msgstr ""
22647
22648 #. type: textblock
22649 #: ../resize/virt-resize.pod:362
22650 msgid "Print a summary of what would be done, but don't do anything."
22651 msgstr ""
22652
22653 #. type: =item
22654 #: ../resize/virt-resize.pod:364
22655 msgid "B<--no-copy-boot-loader>"
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../resize/virt-resize.pod:366
22660 msgid ""
22661 "By default, virt-resize copies over some sectors at the start of the disk "
22662 "(up to the beginning of the first partition).  Commonly these sectors "
22663 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22664 "in order for the guest to boot correctly."
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../resize/virt-resize.pod:371
22669 msgid ""
22670 "If you specify this flag, then this initial copy is not done.  You may need "
22671 "to reinstall the boot loader in this case."
22672 msgstr ""
22673
22674 #. type: =item
22675 #: ../resize/virt-resize.pod:374
22676 msgid "B<--no-extra-partition>"
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../resize/virt-resize.pod:376
22681 msgid ""
22682 "By default, virt-resize creates an extra partition if there is any extra, "
22683 "unused space after all resizing has happened.  Use this option to prevent "
22684 "the extra partition from being created.  If you do this then the extra space "
22685 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22686 "tool in the guest."
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../resize/virt-resize.pod:382
22691 msgid ""
22692 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22693 "will be created."
22694 msgstr ""
22695
22696 #. type: =item
22697 #: ../resize/virt-resize.pod:385
22698 msgid "B<--no-expand-content>"
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../resize/virt-resize.pod:387
22703 msgid ""
22704 "By default, virt-resize will try to expand the direct contents of "
22705 "partitions, if it knows how (see I<--expand> option above)."
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../resize/virt-resize.pod:390
22710 msgid ""
22711 "If you give the I<--no-expand-content> option then virt-resize will not "
22712 "attempt this."
22713 msgstr ""
22714
22715 #. type: =item
22716 #: ../resize/virt-resize.pod:393
22717 msgid "B<--ntfsresize-force>"
22718 msgstr ""
22719
22720 #. type: textblock
22721 #: ../resize/virt-resize.pod:395
22722 msgid ""
22723 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22724 "the NTFS disk is marked as needing a consistency check.  You have to use "
22725 "this option if you want to resize a Windows guest multiple times without "
22726 "booting into Windows between each resize."
22727 msgstr ""
22728
22729 #. type: =item
22730 #: ../resize/virt-resize.pod:401
22731 msgid "B<--output-format> raw"
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../resize/virt-resize.pod:403
22736 msgid ""
22737 "Specify the format of the output disk image.  If this flag is not given then "
22738 "it is auto-detected from the image itself."
22739 msgstr ""
22740
22741 #. type: textblock
22742 #: ../resize/virt-resize.pod:409
22743 msgid ""
22744 "Note that this option I<does not create> the output format.  This option "
22745 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22746 "need to create the output disk with the right format.  See L</QCOW2 AND "
22747 "NON-SPARSE RAW FORMATS>."
22748 msgstr ""
22749
22750 #. type: textblock
22751 #: ../resize/virt-resize.pod:418
22752 msgid "Don't print the summary."
22753 msgstr ""
22754
22755 #. type: =item
22756 #: ../resize/virt-resize.pod:420
22757 msgid "B<--resize part=size>"
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../resize/virt-resize.pod:422
22762 msgid ""
22763 "Resize the named partition (expanding or shrinking it) so that it has the "
22764 "given size."
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../resize/virt-resize.pod:425
22769 msgid ""
22770 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22771 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22772 "size; or as a relative number or percentage.  For example:"
22773 msgstr ""
22774
22775 #. type: verbatim
22776 #: ../resize/virt-resize.pod:431
22777 #, no-wrap
22778 msgid ""
22779 " --resize /dev/sda2=10G\n"
22780 "\n"
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../resize/virt-resize.pod:433
22785 #, no-wrap
22786 msgid ""
22787 " --resize /dev/sda4=90%\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../resize/virt-resize.pod:435
22793 #, no-wrap
22794 msgid ""
22795 " --resize /dev/sda2=+1G\n"
22796 "\n"
22797 msgstr ""
22798
22799 #. type: verbatim
22800 #: ../resize/virt-resize.pod:437
22801 #, no-wrap
22802 msgid ""
22803 " --resize /dev/sda2=-200M\n"
22804 "\n"
22805 msgstr ""
22806
22807 #. type: verbatim
22808 #: ../resize/virt-resize.pod:439
22809 #, no-wrap
22810 msgid ""
22811 " --resize /dev/sda1=+128K\n"
22812 "\n"
22813 msgstr ""
22814
22815 #. type: verbatim
22816 #: ../resize/virt-resize.pod:441
22817 #, no-wrap
22818 msgid ""
22819 " --resize /dev/sda1=+10%\n"
22820 "\n"
22821 msgstr ""
22822
22823 #. type: verbatim
22824 #: ../resize/virt-resize.pod:443
22825 #, no-wrap
22826 msgid ""
22827 " --resize /dev/sda1=-10%\n"
22828 "\n"
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../resize/virt-resize.pod:445
22833 msgid ""
22834 "You can increase the size of any partition.  Virt-resize will expand the "
22835 "direct content of the partition if it knows how (see I<--expand> below)."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../resize/virt-resize.pod:449
22840 msgid ""
22841 "You can only I<decrease> the size of partitions that contain filesystems or "
22842 "PVs which have already been shrunk.  Virt-resize will check this has been "
22843 "done before proceeding, or else will print an error (see also "
22844 "I<--resize-force>)."
22845 msgstr ""
22846
22847 #. type: =item
22848 #: ../resize/virt-resize.pod:456
22849 msgid "B<--resize-force part=size>"
22850 msgstr ""
22851
22852 #. type: textblock
22853 #: ../resize/virt-resize.pod:458
22854 msgid ""
22855 "This is the same as I<--resize> except that it will let you decrease the "
22856 "size of any partition.  Generally this means you will lose any data which "
22857 "was at the end of the partition you shrink, but you may not care about that "
22858 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22859 "as a swap partition)."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../resize/virt-resize.pod:464
22864 msgid "See also the I<--ignore> option."
22865 msgstr ""
22866
22867 #. type: =item
22868 #: ../resize/virt-resize.pod:466
22869 msgid "B<--shrink part>"
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../resize/virt-resize.pod:468
22874 msgid ""
22875 "Shrink the named partition until the overall disk image fits in the "
22876 "destination.  The named partition B<must> contain a filesystem or PV which "
22877 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22878 "online tools).  Virt-resize will check this and give an error if it has not "
22879 "been done."
22880 msgstr ""
22881
22882 #. type: textblock
22883 #: ../resize/virt-resize.pod:474
22884 msgid ""
22885 "The amount by which the overall disk must be shrunk (after carrying out all "
22886 "other operations requested by the user) is called the \"deficit\".  For "
22887 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22888 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22889 "would give an error unless the user specified a partition to shrink and that "
22890 "partition had more than a gigabyte of free space."
22891 msgstr ""
22892
22893 #. type: =head1
22894 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
22895 msgid "MACHINE READABLE OUTPUT"
22896 msgstr ""
22897
22898 #. type: textblock
22899 #: ../resize/virt-resize.pod:494
22900 msgid ""
22901 "The I<--machine-readable> option can be used to make the output more machine "
22902 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22903 "etc."
22904 msgstr ""
22905
22906 #. type: textblock
22907 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
22908 msgid "There are two ways to use this option."
22909 msgstr ""
22910
22911 #. type: textblock
22912 #: ../resize/virt-resize.pod:500
22913 msgid ""
22914 "Firstly use the option on its own to query the capabilities of the "
22915 "virt-resize binary.  Typical output looks like this:"
22916 msgstr ""
22917
22918 #. type: verbatim
22919 #: ../resize/virt-resize.pod:503
22920 #, no-wrap
22921 msgid ""
22922 " $ virt-resize --machine-readable\n"
22923 " virt-resize\n"
22924 " ntfsresize-force\n"
22925 " 32bitok\n"
22926 " ntfs\n"
22927 " btrfs\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
22933 msgid ""
22934 "A list of features is printed, one per line, and the program exits with "
22935 "status 0."
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
22940 msgid ""
22941 "Secondly use the option in conjunction with other options to make the "
22942 "regular program output more machine friendly."
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
22947 msgid "At the moment this means:"
22948 msgstr ""
22949
22950 #. type: textblock
22951 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
22952 msgid ""
22953 "Progress bar messages can be parsed from stdout by looking for this regular "
22954 "expression:"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
22959 #, no-wrap
22960 msgid ""
22961 " ^[0-9]+/[0-9]+$\n"
22962 "\n"
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
22967 msgid ""
22968 "The calling program should treat messages sent to stdout (except for "
22969 "progress bar messages) as status messages.  They can be logged and/or "
22970 "displayed to the user."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../resize/virt-resize.pod:535
22975 msgid ""
22976 "The calling program should treat messages sent to stderr as error messages.  "
22977 "In addition, virt-resize exits with a non-zero status code if there was a "
22978 "fatal error."
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../resize/virt-resize.pod:541
22983 msgid ""
22984 "Versions of the program prior to 1.13.9 did not support the "
22985 "I<--machine-readable> option and will return an error."
22986 msgstr ""
22987
22988 #. type: =head2
22989 #: ../resize/virt-resize.pod:546
22990 msgid "\"Partition 1 does not end on cylinder boundary.\""
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../resize/virt-resize.pod:548
22995 msgid ""
22996 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22997 "means the partitions will not be aligned to the ancient CHS geometry.  "
22998 "However CHS geometry is meaningless for disks manufactured since the early "
22999 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23000 "cylinders is not required by any modern operating system."
23001 msgstr ""
23002
23003 #. type: =head2
23004 #: ../resize/virt-resize.pod:555
23005 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../resize/virt-resize.pod:557
23010 msgid ""
23011 "In Windows Vista and later versions, Microsoft switched to using a separate "
23012 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23013 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23014 "the boot partition.  Doing so seems to break the guest completely.  However "
23015 "expanding the second partition (ie. C: drive) should work."
23016 msgstr ""
23017
23018 #. type: textblock
23019 #: ../resize/virt-resize.pod:564
23020 msgid ""
23021 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23022 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23023 "it find errors) is nothing to worry about."
23024 msgstr ""
23025
23026 #. type: =head2
23027 #: ../resize/virt-resize.pod:568
23028 msgid "GUEST BOOT STUCK AT \"GRUB\""
23029 msgstr ""
23030
23031 #. type: textblock
23032 #: ../resize/virt-resize.pod:570
23033 msgid ""
23034 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23035 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23036 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23037 "although we think is to do with partition alignment."
23038 msgstr ""
23039
23040 #. type: verbatim
23041 #: ../resize/virt-resize.pod:575
23042 #, no-wrap
23043 msgid ""
23044 " guestfish -i -a newdisk\n"
23045 " ><fs> cat /boot/grub/device.map\n"
23046 " # check the contents of this file are sensible or\n"
23047 " # edit the file if necessary\n"
23048 " ><fs> grub-install / /dev/vda\n"
23049 " ><fs> exit\n"
23050 "\n"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../resize/virt-resize.pod:582
23055 msgid ""
23056 "For more flexible guest reconfiguration, including if you need to specify "
23057 "other parameters to grub-install, use L<virt-rescue(1)>."
23058 msgstr ""
23059
23060 #. type: =head1
23061 #: ../resize/virt-resize.pod:585
23062 msgid "ALTERNATIVE TOOLS"
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../resize/virt-resize.pod:587
23067 msgid ""
23068 "There are several proprietary tools for resizing partitions.  We won't "
23069 "mention any here."
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../resize/virt-resize.pod:590
23074 msgid ""
23075 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23076 "operations on disk images.  They can resize and move partitions, but I don't "
23077 "think they can do anything with the contents, and they certainly don't "
23078 "understand LVM."
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../resize/virt-resize.pod:595
23083 msgid ""
23084 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23085 "but at a much lower level.  You will probably end up hand-calculating sector "
23086 "offsets, which is something that virt-resize was designed to avoid.  If you "
23087 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23088 "I<--debug> flag."
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../resize/virt-resize.pod:615
23093 msgid ""
23094 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
23095 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
23096 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
23097 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
23098 "L<virt-sparsify(1)>, L<http://libguestfs.org/>."
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../ruby/examples/guestfs-ruby.pod:5
23103 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23104 msgstr ""
23105
23106 #. type: verbatim
23107 #: ../ruby/examples/guestfs-ruby.pod:9
23108 #, no-wrap
23109 msgid ""
23110 " require 'guestfs'\n"
23111 " g = Guestfs::Guestfs.new()\n"
23112 " g.add_drive_opts(\"disk.img\",\n"
23113 "                  :readonly => 1, :format => \"raw\")\n"
23114 " g.launch()\n"
23115 "\n"
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../ruby/examples/guestfs-ruby.pod:17
23120 msgid ""
23121 "This manual page documents how to call libguestfs from the Ruby programming "
23122 "language.  This page just documents the differences from the C API and gives "
23123 "some examples.  If you are not familiar with using libguestfs, you also need "
23124 "to read L<guestfs(3)>."
23125 msgstr ""
23126
23127 #. type: textblock
23128 #: ../ruby/examples/guestfs-ruby.pod:24
23129 msgid ""
23130 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23131 "This has a single parameter which is the error message (a string)."
23132 msgstr ""
23133
23134 #. type: textblock
23135 #: ../ruby/examples/guestfs-ruby.pod:38
23136 msgid ""
23137 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23138 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23139 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23140 msgstr ""
23141
23142 #. type: textblock
23143 #: ../sparsify/virt-sparsify.pod:5
23144 msgid "virt-sparsify - Make a virtual machine disk sparse"
23145 msgstr ""
23146
23147 #. type: verbatim
23148 #: ../sparsify/virt-sparsify.pod:9
23149 #, no-wrap
23150 msgid ""
23151 " virt-sparsify [--options] indisk outdisk\n"
23152 "\n"
23153 msgstr ""
23154
23155 #. type: textblock
23156 #: ../sparsify/virt-sparsify.pod:13
23157 msgid ""
23158 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23159 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23160 "the disk image can be converted back to free space on the host."
23161 msgstr ""
23162
23163 #. type: textblock
23164 #: ../sparsify/virt-sparsify.pod:18
23165 msgid ""
23166 "Virt-sparsify can locate and sparsify free space in most filesystems "
23167 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23168 msgstr ""
23169
23170 #. type: textblock
23171 #: ../sparsify/virt-sparsify.pod:21
23172 msgid ""
23173 "Virt-sparsify can also convert between some disk formats, for example "
23174 "converting a raw disk image to a thin-provisioned qcow2 image."
23175 msgstr ""
23176
23177 #. type: textblock
23178 #: ../sparsify/virt-sparsify.pod:24
23179 msgid ""
23180 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23181 "machines.  If a virtual machine has more than one attached disk, you must "
23182 "sparsify each one separately."
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../sparsify/virt-sparsify.pod:28
23187 msgid "IMPORTANT LIMITATIONS"
23188 msgstr ""
23189
23190 #. type: textblock
23191 #: ../sparsify/virt-sparsify.pod:34
23192 msgid ""
23193 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23194 "image to a destination image, leaving the source unchanged.  I<Check that "
23195 "the sparsification was successful before deleting the source image>."
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../sparsify/virt-sparsify.pod:41
23200 msgid "The virtual machine I<must be shut down> before using this tool."
23201 msgstr ""
23202
23203 #. type: textblock
23204 #: ../sparsify/virt-sparsify.pod:45
23205 msgid ""
23206 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23207 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23208 "usually much less space is required."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../sparsify/virt-sparsify.pod:51
23213 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../sparsify/virt-sparsify.pod:56
23218 msgid "Virt-sparsify cannot handle encrypted disks."
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../sparsify/virt-sparsify.pod:60
23223 msgid ""
23224 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23225 "this space is often used for critical items like bootloaders so it's not "
23226 "really unused."
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../sparsify/virt-sparsify.pod:66
23231 msgid ""
23232 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23233 "to do this unless we can be sure there is no hibernation data, so at the "
23234 "moment swap partitions are ignored."
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../sparsify/virt-sparsify.pod:72
23239 msgid ""
23240 "You may also want to read the manual pages for the associated tools "
23241 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../sparsify/virt-sparsify.pod:77
23246 msgid "Typical usage is:"
23247 msgstr ""
23248
23249 #. type: verbatim
23250 #: ../sparsify/virt-sparsify.pod:79
23251 #, no-wrap
23252 msgid ""
23253 " virt-sparsify indisk outdisk\n"
23254 "\n"
23255 msgstr ""
23256
23257 #. type: textblock
23258 #: ../sparsify/virt-sparsify.pod:81
23259 msgid ""
23260 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23261 "is created, or overwritten if it already exists.  The format of the input "
23262 "disk is detected (eg. qcow2) and the same format is used for the output "
23263 "disk."
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../sparsify/virt-sparsify.pod:86
23268 msgid "To convert between formats, use the I<--convert> option:"
23269 msgstr ""
23270
23271 #. type: verbatim
23272 #: ../sparsify/virt-sparsify.pod:88
23273 #, no-wrap
23274 msgid ""
23275 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23276 "\n"
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../sparsify/virt-sparsify.pod:90
23281 msgid ""
23282 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23283 "can find within the source disk image.  You can get it to ignore (don't zero "
23284 "free space on) certain filesystems by doing:"
23285 msgstr ""
23286
23287 #. type: verbatim
23288 #: ../sparsify/virt-sparsify.pod:94
23289 #, no-wrap
23290 msgid ""
23291 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23292 "\n"
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../sparsify/virt-sparsify.pod:96
23297 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23298 msgstr ""
23299
23300 #. type: =item
23301 #: ../sparsify/virt-sparsify.pod:107
23302 msgid "B<--convert> raw"
23303 msgstr ""
23304
23305 #. type: =item
23306 #: ../sparsify/virt-sparsify.pod:109
23307 msgid "B<--convert> qcow2"
23308 msgstr ""
23309
23310 #. type: =item
23311 #: ../sparsify/virt-sparsify.pod:111
23312 msgid "B<--convert> [other formats]"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../sparsify/virt-sparsify.pod:113
23317 msgid ""
23318 "Use C<output-format> as the format for the destination image.  If this is "
23319 "not specified, then the input format is used."
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../sparsify/virt-sparsify.pod:116
23324 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../sparsify/virt-sparsify.pod:118
23329 msgid ""
23330 "You can also use any format supported by the L<qemu-img(1)> program, "
23331 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../sparsify/virt-sparsify.pod:122
23336 msgid ""
23337 "Specifying the I<--convert> option is usually a good idea, because then "
23338 "virt-sparsify doesn't need to try to guess the input format."
23339 msgstr ""
23340
23341 #. type: =item
23342 #: ../sparsify/virt-sparsify.pod:127
23343 msgid "B<--format> qcow2"
23344 msgstr ""
23345
23346 #. type: =item
23347 #: ../sparsify/virt-sparsify.pod:135
23348 msgid "B<--ignore> filesystem"
23349 msgstr ""
23350
23351 #. type: =item
23352 #: ../sparsify/virt-sparsify.pod:137
23353 msgid "B<--ignore> volgroup"
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../sparsify/virt-sparsify.pod:139
23358 msgid ""
23359 "Ignore the named filesystem.  Free space on the filesystem will not be "
23360 "zeroed, but existing blocks of zeroes will still be sparsified."
23361 msgstr ""
23362
23363 #. type: textblock
23364 #: ../sparsify/virt-sparsify.pod:142
23365 msgid ""
23366 "In the second form, this ignores the named volume group.  Use the volume "
23367 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../sparsify/virt-sparsify.pod:157
23372 msgid "This disables progress bars and other unnecessary output."
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../sparsify/virt-sparsify.pod:179
23377 msgid ""
23378 "The I<--machine-readable> option can be used to make the output more machine "
23379 "friendly, which is useful when calling virt-sparsify from other programs, "
23380 "GUIs etc."
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../sparsify/virt-sparsify.pod:185
23385 msgid ""
23386 "Firstly use the option on its own to query the capabilities of the "
23387 "virt-sparsify binary.  Typical output looks like this:"
23388 msgstr ""
23389
23390 #. type: verbatim
23391 #: ../sparsify/virt-sparsify.pod:188
23392 #, no-wrap
23393 msgid ""
23394 " $ virt-sparsify --machine-readable\n"
23395 " virt-sparsify\n"
23396 " ntfs\n"
23397 " btrfs\n"
23398 "\n"
23399 msgstr ""
23400
23401 #. type: textblock
23402 #: ../sparsify/virt-sparsify.pod:218
23403 msgid ""
23404 "The calling program should treat messages sent to stderr as error messages.  "
23405 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23406 "fatal error."
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../sparsify/virt-sparsify.pod:224
23411 msgid ""
23412 "All versions of virt-sparsify have supported the I<--machine-readable> "
23413 "option."
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../sparsify/virt-sparsify.pod:238
23418 msgid ""
23419 "Location of the temporary directory used for the potentially large temporary "
23420 "overlay file."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../sparsify/virt-sparsify.pod:241
23425 msgid ""
23426 "You should ensure there is enough free space in the worst case for a full "
23427 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23428 "to another directory that has enough space."
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../sparsify/virt-sparsify.pod:245
23433 msgid "This defaults to C</tmp>."
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../sparsify/virt-sparsify.pod:249
23438 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../sparsify/virt-sparsify.pod:253
23443 msgid ""
23444 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23445 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
23446 "L<qemu-img(1)>, L<http://libguestfs.org/>."
23447 msgstr ""
23448
23449 #. type: =head2
23450 #: ../src/guestfs-actions.pod:1
23451 msgid "guestfs_add_cdrom"
23452 msgstr ""
23453
23454 #. type: verbatim
23455 #: ../src/guestfs-actions.pod:3
23456 #, no-wrap
23457 msgid ""
23458 " int\n"
23459 " guestfs_add_cdrom (guestfs_h *g,\n"
23460 "                    const char *filename);\n"
23461 "\n"
23462 msgstr ""
23463
23464 #. type: textblock
23465 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
23466 msgid ""
23467 "I<This function is deprecated.> In new code, use the "
23468 "L</guestfs_add_drive_opts> call instead."
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../src/guestfs-actions.pod:24
23473 msgid ""
23474 "This call checks for the existence of C<filename>.  This stops you from "
23475 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23476 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23477 "instead."
23478 msgstr ""
23479
23480 #. type: textblock
23481 #: ../src/guestfs-actions.pod:31
23482 msgid ""
23483 "If you just want to add an ISO file (often you use this as an efficient way "
23484 "to transfer large files into the guest), then you should probably use "
23485 "C<guestfs_add_drive_ro> instead."
23486 msgstr ""
23487
23488 #. type: textblock
23489 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244 ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286 ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313 ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453 ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512 ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558 ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658 ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687 ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804 ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303 ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482 ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640 ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3833 ../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:4114 ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049 ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137 ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329 ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584 ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045 ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080 ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328 ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383 ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414 ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684 ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838 ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978 ../src/guestfs-actions.pod:8007
23490 msgid "This function returns 0 on success or -1 on error."
23491 msgstr ""
23492
23493 #. type: textblock
23494 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102 ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325 ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645 ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7784
23495 msgid "(Added in 0.3)"
23496 msgstr ""
23497
23498 #. type: =head2
23499 #: ../src/guestfs-actions.pod:41
23500 msgid "guestfs_add_domain"
23501 msgstr ""
23502
23503 #. type: verbatim
23504 #: ../src/guestfs-actions.pod:43
23505 #, no-wrap
23506 msgid ""
23507 " int\n"
23508 " guestfs_add_domain (guestfs_h *g,\n"
23509 "                     const char *dom,\n"
23510 "                     ...);\n"
23511 "\n"
23512 msgstr ""
23513
23514 #. type: textblock
23515 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123 ../src/guestfs-actions.pod:5340
23516 msgid ""
23517 "You may supply a list of optional arguments to this call.  Use zero or more "
23518 "of the following pairs of parameters, and terminate the list with C<-1> on "
23519 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../src/guestfs-actions.pod:53
23524 #, no-wrap
23525 msgid ""
23526 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23527 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23528 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23529 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23530 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23531 "\n"
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../src/guestfs-actions.pod:59
23536 msgid ""
23537 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23538 "It works by connecting to libvirt, requesting the domain and domain XML from "
23539 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23540 "one."
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../src/guestfs-actions.pod:94
23545 msgid ""
23546 "The other optional parameters are passed directly through to "
23547 "C<guestfs_add_drive_opts>."
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356 ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502 ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223 ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795 ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
23552 msgid "On error this function returns -1."
23553 msgstr ""
23554
23555 #. type: textblock
23556 #: ../src/guestfs-actions.pod:99
23557 msgid "(Added in 1.7.4)"
23558 msgstr ""
23559
23560 #. type: =head2
23561 #: ../src/guestfs-actions.pod:101
23562 msgid "guestfs_add_domain_va"
23563 msgstr ""
23564
23565 #. type: verbatim
23566 #: ../src/guestfs-actions.pod:103
23567 #, no-wrap
23568 msgid ""
23569 " int\n"
23570 " guestfs_add_domain_va (guestfs_h *g,\n"
23571 "                        const char *dom,\n"
23572 "                        va_list args);\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../src/guestfs-actions.pod:108
23578 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231 ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893 ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208 ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
23583 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23584 msgstr ""
23585
23586 #. type: =head2
23587 #: ../src/guestfs-actions.pod:112
23588 msgid "guestfs_add_domain_argv"
23589 msgstr ""
23590
23591 #. type: verbatim
23592 #: ../src/guestfs-actions.pod:114
23593 #, no-wrap
23594 msgid ""
23595 " int\n"
23596 " guestfs_add_domain_argv (guestfs_h *g,\n"
23597 "                          const char *dom,\n"
23598 "                          const struct guestfs_add_domain_argv *optargs);\n"
23599 "\n"
23600 msgstr ""
23601
23602 #. type: textblock
23603 #: ../src/guestfs-actions.pod:119
23604 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23605 msgstr ""
23606
23607 #. type: =head2
23608 #: ../src/guestfs-actions.pod:123
23609 msgid "guestfs_add_drive"
23610 msgstr ""
23611
23612 #. type: verbatim
23613 #: ../src/guestfs-actions.pod:125
23614 #, no-wrap
23615 msgid ""
23616 " int\n"
23617 " guestfs_add_drive (guestfs_h *g,\n"
23618 "                    const char *filename);\n"
23619 "\n"
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../src/guestfs-actions.pod:129
23624 msgid ""
23625 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23626 "optional parameters, so the disk is added writable, with the format being "
23627 "detected automatically."
23628 msgstr ""
23629
23630 #. type: textblock
23631 #: ../src/guestfs-actions.pod:133
23632 msgid ""
23633 "Automatic detection of the format opens you up to a potential security hole "
23634 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23635 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23636 "you should think about replacing calls to this function with calls to "
23637 "C<guestfs_add_drive_opts>, and specifying the format."
23638 msgstr ""
23639
23640 #. type: =head2
23641 #: ../src/guestfs-actions.pod:144
23642 msgid "guestfs_add_drive_opts"
23643 msgstr ""
23644
23645 #. type: verbatim
23646 #: ../src/guestfs-actions.pod:146
23647 #, no-wrap
23648 msgid ""
23649 " int\n"
23650 " guestfs_add_drive_opts (guestfs_h *g,\n"
23651 "                         const char *filename,\n"
23652 "                         ...);\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: verbatim
23657 #: ../src/guestfs-actions.pod:156
23658 #, no-wrap
23659 msgid ""
23660 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23661 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23662 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23663 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
23664 "\n"
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../src/guestfs-actions.pod:186
23669 msgid ""
23670 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23671 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23672 "Possible formats include C<raw> and C<qcow2>."
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../src/guestfs-actions.pod:197
23677 msgid ""
23678 "This rarely-used option lets you emulate the behaviour of the deprecated "
23679 "C<guestfs_add_drive_with_if> call (q.v.)"
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../src/guestfs-actions.pod:209
23684 msgid "(Added in 1.5.23)"
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../src/guestfs-actions.pod:211
23689 msgid "guestfs_add_drive_opts_va"
23690 msgstr ""
23691
23692 #. type: verbatim
23693 #: ../src/guestfs-actions.pod:213
23694 #, no-wrap
23695 msgid ""
23696 " int\n"
23697 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23698 "                            const char *filename,\n"
23699 "                            va_list args);\n"
23700 "\n"
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../src/guestfs-actions.pod:218
23705 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23706 msgstr ""
23707
23708 #. type: =head2
23709 #: ../src/guestfs-actions.pod:222
23710 msgid "guestfs_add_drive_opts_argv"
23711 msgstr ""
23712
23713 #. type: verbatim
23714 #: ../src/guestfs-actions.pod:224
23715 #, no-wrap
23716 msgid ""
23717 " int\n"
23718 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23719 "                              const char *filename,\n"
23720 "                              const struct guestfs_add_drive_opts_argv "
23721 "*optargs);\n"
23722 "\n"
23723 msgstr ""
23724
23725 #. type: textblock
23726 #: ../src/guestfs-actions.pod:229
23727 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23728 msgstr ""
23729
23730 #. type: =head2
23731 #: ../src/guestfs-actions.pod:233
23732 msgid "guestfs_add_drive_ro"
23733 msgstr ""
23734
23735 #. type: verbatim
23736 #: ../src/guestfs-actions.pod:235
23737 #, no-wrap
23738 msgid ""
23739 " int\n"
23740 " guestfs_add_drive_ro (guestfs_h *g,\n"
23741 "                       const char *filename);\n"
23742 "\n"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../src/guestfs-actions.pod:239
23747 msgid ""
23748 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23749 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23750 "disk is added read-only, with the format being detected automatically."
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../src/guestfs-actions.pod:246
23755 msgid "(Added in 1.0.38)"
23756 msgstr ""
23757
23758 #. type: =head2
23759 #: ../src/guestfs-actions.pod:248
23760 msgid "guestfs_add_drive_ro_with_if"
23761 msgstr ""
23762
23763 #. type: verbatim
23764 #: ../src/guestfs-actions.pod:250
23765 #, no-wrap
23766 msgid ""
23767 " int\n"
23768 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23769 "                               const char *filename,\n"
23770 "                               const char *iface);\n"
23771 "\n"
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../src/guestfs-actions.pod:262
23776 msgid ""
23777 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23778 "QEMU interface emulation to use at run time."
23779 msgstr ""
23780
23781 #. type: textblock
23782 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288 ../src/guestfs-actions.pod:2586
23783 msgid "(Added in 1.0.84)"
23784 msgstr ""
23785
23786 #. type: =head2
23787 #: ../src/guestfs-actions.pod:269
23788 msgid "guestfs_add_drive_with_if"
23789 msgstr ""
23790
23791 #. type: verbatim
23792 #: ../src/guestfs-actions.pod:271
23793 #, no-wrap
23794 msgid ""
23795 " int\n"
23796 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23797 "                            const char *filename,\n"
23798 "                            const char *iface);\n"
23799 "\n"
23800 msgstr ""
23801
23802 #. type: textblock
23803 #: ../src/guestfs-actions.pod:283
23804 msgid ""
23805 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23806 "QEMU interface emulation to use at run time."
23807 msgstr ""
23808
23809 #. type: =head2
23810 #: ../src/guestfs-actions.pod:290
23811 msgid "guestfs_aug_clear"
23812 msgstr ""
23813
23814 #. type: verbatim
23815 #: ../src/guestfs-actions.pod:292
23816 #, no-wrap
23817 msgid ""
23818 " int\n"
23819 " guestfs_aug_clear (guestfs_h *g,\n"
23820 "                    const char *augpath);\n"
23821 "\n"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
23826 msgid "(Added in 1.3.4)"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../src/guestfs-actions.pod:303
23831 msgid "guestfs_aug_close"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../src/guestfs-actions.pod:305
23836 #, no-wrap
23837 msgid ""
23838 " int\n"
23839 " guestfs_aug_close (guestfs_h *g);\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../src/guestfs-actions.pod:308
23845 msgid ""
23846 "Close the current Augeas handle and free up any resources used by it.  After "
23847 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23848 "any other Augeas functions."
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372 ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500 ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528 ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560 ../src/guestfs-actions.pod:6008
23853 msgid "(Added in 0.7)"
23854 msgstr ""
23855
23856 #. type: =head2
23857 #: ../src/guestfs-actions.pod:317
23858 msgid "guestfs_aug_defnode"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../src/guestfs-actions.pod:319
23863 #, no-wrap
23864 msgid ""
23865 " struct guestfs_int_bool *\n"
23866 " guestfs_aug_defnode (guestfs_h *g,\n"
23867 "                      const char *name,\n"
23868 "                      const char *expr,\n"
23869 "                      const char *val);\n"
23870 "\n"
23871 msgstr ""
23872
23873 #. type: textblock
23874 #: ../src/guestfs-actions.pod:328
23875 msgid ""
23876 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23877 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23878 "containing that single node."
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../src/guestfs-actions.pod:336
23883 msgid ""
23884 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23885 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23886 msgstr ""
23887
23888 #. type: =head2
23889 #: ../src/guestfs-actions.pod:342
23890 msgid "guestfs_aug_defvar"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../src/guestfs-actions.pod:344
23895 #, no-wrap
23896 msgid ""
23897 " int\n"
23898 " guestfs_aug_defvar (guestfs_h *g,\n"
23899 "                     const char *name,\n"
23900 "                     const char *expr);\n"
23901 "\n"
23902 msgstr ""
23903
23904 #. type: =head2
23905 #: ../src/guestfs-actions.pod:360
23906 msgid "guestfs_aug_get"
23907 msgstr ""
23908
23909 #. type: verbatim
23910 #: ../src/guestfs-actions.pod:362
23911 #, no-wrap
23912 msgid ""
23913 " char *\n"
23914 " guestfs_aug_get (guestfs_h *g,\n"
23915 "                  const char *augpath);\n"
23916 "\n"
23917 msgstr ""
23918
23919 #. type: textblock
23920 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011 ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388 ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541 ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841 ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021 ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961 ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195 ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341 ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361 ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641 ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580 ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
23921 msgid ""
23922 "This function returns a string, or NULL on error.  I<The caller must free "
23923 "the returned string after use>."
23924 msgstr ""
23925
23926 #. type: =head2
23927 #: ../src/guestfs-actions.pod:374
23928 msgid "guestfs_aug_init"
23929 msgstr ""
23930
23931 #. type: verbatim
23932 #: ../src/guestfs-actions.pod:376
23933 #, no-wrap
23934 msgid ""
23935 " int\n"
23936 " guestfs_aug_init (guestfs_h *g,\n"
23937 "                   const char *root,\n"
23938 "                   int flags);\n"
23939 "\n"
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../src/guestfs-actions.pod:385
23944 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../src/guestfs-actions.pod:410
23949 msgid ""
23950 "This option is only useful when debugging Augeas lenses.  Use of this option "
23951 "may require additional memory for the libguestfs appliance.  You may need to "
23952 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23953 "C<guestfs_set_memsize>."
23954 msgstr ""
23955
23956 #. type: textblock
23957 #: ../src/guestfs-actions.pod:425
23958 msgid "Do not load the tree in C<guestfs_aug_init>."
23959 msgstr ""
23960
23961 #. type: textblock
23962 #: ../src/guestfs-actions.pod:429
23963 msgid "To close the handle, you can call C<guestfs_aug_close>."
23964 msgstr ""
23965
23966 #. type: =head2
23967 #: ../src/guestfs-actions.pod:437
23968 msgid "guestfs_aug_insert"
23969 msgstr ""
23970
23971 #. type: verbatim
23972 #: ../src/guestfs-actions.pod:439
23973 #, no-wrap
23974 msgid ""
23975 " int\n"
23976 " guestfs_aug_insert (guestfs_h *g,\n"
23977 "                     const char *augpath,\n"
23978 "                     const char *label,\n"
23979 "                     int before);\n"
23980 "\n"
23981 msgstr ""
23982
23983 #. type: =head2
23984 #: ../src/guestfs-actions.pod:457
23985 msgid "guestfs_aug_load"
23986 msgstr ""
23987
23988 #. type: verbatim
23989 #: ../src/guestfs-actions.pod:459
23990 #, no-wrap
23991 msgid ""
23992 " int\n"
23993 " guestfs_aug_load (guestfs_h *g);\n"
23994 "\n"
23995 msgstr ""
23996
23997 #. type: =head2
23998 #: ../src/guestfs-actions.pod:471
23999 msgid "guestfs_aug_ls"
24000 msgstr ""
24001
24002 #. type: verbatim
24003 #: ../src/guestfs-actions.pod:473
24004 #, no-wrap
24005 msgid ""
24006 " char **\n"
24007 " guestfs_aug_ls (guestfs_h *g,\n"
24008 "                 const char *augpath);\n"
24009 "\n"
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../src/guestfs-actions.pod:477
24014 msgid ""
24015 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24016 "sorting the resulting nodes into alphabetical order."
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496 ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444 ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297 ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260 ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8105
24021 msgid ""
24022 "This function returns a NULL-terminated array of strings (like "
24023 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
24024 "strings and the array after use>."
24025 msgstr ""
24026
24027 #. type: textblock
24028 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613 ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631 ../src/guestfs-actions.pod:7896
24029 msgid "(Added in 0.8)"
24030 msgstr ""
24031
24032 #. type: =head2
24033 #: ../src/guestfs-actions.pod:486
24034 msgid "guestfs_aug_match"
24035 msgstr ""
24036
24037 #. type: verbatim
24038 #: ../src/guestfs-actions.pod:488
24039 #, no-wrap
24040 msgid ""
24041 " char **\n"
24042 " guestfs_aug_match (guestfs_h *g,\n"
24043 "                    const char *augpath);\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: =head2
24048 #: ../src/guestfs-actions.pod:502
24049 msgid "guestfs_aug_mv"
24050 msgstr ""
24051
24052 #. type: verbatim
24053 #: ../src/guestfs-actions.pod:504
24054 #, no-wrap
24055 msgid ""
24056 " int\n"
24057 " guestfs_aug_mv (guestfs_h *g,\n"
24058 "                 const char *src,\n"
24059 "                 const char *dest);\n"
24060 "\n"
24061 msgstr ""
24062
24063 #. type: =head2
24064 #: ../src/guestfs-actions.pod:516
24065 msgid "guestfs_aug_rm"
24066 msgstr ""
24067
24068 #. type: verbatim
24069 #: ../src/guestfs-actions.pod:518
24070 #, no-wrap
24071 msgid ""
24072 " int\n"
24073 " guestfs_aug_rm (guestfs_h *g,\n"
24074 "                 const char *augpath);\n"
24075 "\n"
24076 msgstr ""
24077
24078 #. type: =head2
24079 #: ../src/guestfs-actions.pod:530
24080 msgid "guestfs_aug_save"
24081 msgstr ""
24082
24083 #. type: verbatim
24084 #: ../src/guestfs-actions.pod:532
24085 #, no-wrap
24086 msgid ""
24087 " int\n"
24088 " guestfs_aug_save (guestfs_h *g);\n"
24089 "\n"
24090 msgstr ""
24091
24092 #. type: textblock
24093 #: ../src/guestfs-actions.pod:537
24094 msgid ""
24095 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24096 "are saved."
24097 msgstr ""
24098
24099 #. type: =head2
24100 #: ../src/guestfs-actions.pod:544
24101 msgid "guestfs_aug_set"
24102 msgstr ""
24103
24104 #. type: verbatim
24105 #: ../src/guestfs-actions.pod:546
24106 #, no-wrap
24107 msgid ""
24108 " int\n"
24109 " guestfs_aug_set (guestfs_h *g,\n"
24110 "                  const char *augpath,\n"
24111 "                  const char *val);\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../src/guestfs-actions.pod:553
24117 msgid ""
24118 "In the Augeas API, it is possible to clear a node by setting the value to "
24119 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24120 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24121 msgstr ""
24122
24123 #. type: =head2
24124 #: ../src/guestfs-actions.pod:562
24125 msgid "guestfs_available"
24126 msgstr ""
24127
24128 #. type: verbatim
24129 #: ../src/guestfs-actions.pod:564
24130 #, no-wrap
24131 msgid ""
24132 " int\n"
24133 " guestfs_available (guestfs_h *g,\n"
24134 "                    char *const *groups);\n"
24135 "\n"
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../src/guestfs-actions.pod:572
24140 msgid ""
24141 "The libguestfs groups, and the functions that those groups correspond to, "
24142 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24143 "runtime by calling C<guestfs_available_all_groups>."
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../src/guestfs-actions.pod:596
24148 msgid "You must call C<guestfs_launch> before calling this function."
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../src/guestfs-actions.pod:618
24153 msgid ""
24154 "This call was added in version C<1.0.80>.  In previous versions of "
24155 "libguestfs all you could do would be to speculatively execute a command to "
24156 "find out if the daemon implemented it.  See also C<guestfs_version>."
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
24161 msgid "(Added in 1.0.80)"
24162 msgstr ""
24163
24164 #. type: =head2
24165 #: ../src/guestfs-actions.pod:629
24166 msgid "guestfs_available_all_groups"
24167 msgstr ""
24168
24169 #. type: verbatim
24170 #: ../src/guestfs-actions.pod:631
24171 #, no-wrap
24172 msgid ""
24173 " char **\n"
24174 " guestfs_available_all_groups (guestfs_h *g);\n"
24175 "\n"
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../src/guestfs-actions.pod:634
24180 msgid ""
24181 "This command returns a list of all optional groups that this daemon knows "
24182 "about.  Note this returns both supported and unsupported groups.  To find "
24183 "out which ones the daemon can actually support you have to call "
24184 "C<guestfs_available> on each member of the returned list."
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../src/guestfs-actions.pod:640
24189 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../src/guestfs-actions.pod:646
24194 msgid "(Added in 1.3.15)"
24195 msgstr ""
24196
24197 #. type: =head2
24198 #: ../src/guestfs-actions.pod:648
24199 msgid "guestfs_base64_in"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../src/guestfs-actions.pod:650
24204 #, no-wrap
24205 msgid ""
24206 " int\n"
24207 " guestfs_base64_in (guestfs_h *g,\n"
24208 "                    const char *base64file,\n"
24209 "                    const char *filename);\n"
24210 "\n"
24211 msgstr ""
24212
24213 #. type: textblock
24214 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
24215 msgid "(Added in 1.3.5)"
24216 msgstr ""
24217
24218 #. type: =head2
24219 #: ../src/guestfs-actions.pod:662
24220 msgid "guestfs_base64_out"
24221 msgstr ""
24222
24223 #. type: verbatim
24224 #: ../src/guestfs-actions.pod:664
24225 #, no-wrap
24226 msgid ""
24227 " int\n"
24228 " guestfs_base64_out (guestfs_h *g,\n"
24229 "                     const char *filename,\n"
24230 "                     const char *base64file);\n"
24231 "\n"
24232 msgstr ""
24233
24234 #. type: =head2
24235 #: ../src/guestfs-actions.pod:676
24236 msgid "guestfs_blockdev_flushbufs"
24237 msgstr ""
24238
24239 #. type: verbatim
24240 #: ../src/guestfs-actions.pod:678
24241 #, no-wrap
24242 msgid ""
24243 " int\n"
24244 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24245 "                             const char *device);\n"
24246 "\n"
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737 ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774 ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806 ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
24251 msgid "(Added in 0.9.3)"
24252 msgstr ""
24253
24254 #. type: =head2
24255 #: ../src/guestfs-actions.pod:691
24256 msgid "guestfs_blockdev_getbsz"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../src/guestfs-actions.pod:693
24261 #, no-wrap
24262 msgid ""
24263 " int\n"
24264 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24265 "                          const char *device);\n"
24266 "\n"
24267 msgstr ""
24268
24269 #. type: =head2
24270 #: ../src/guestfs-actions.pod:708
24271 msgid "guestfs_blockdev_getro"
24272 msgstr ""
24273
24274 #. type: verbatim
24275 #: ../src/guestfs-actions.pod:710
24276 #, no-wrap
24277 msgid ""
24278 " int\n"
24279 " guestfs_blockdev_getro (guestfs_h *g,\n"
24280 "                         const char *device);\n"
24281 "\n"
24282 msgstr ""
24283
24284 #. type: textblock
24285 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249 ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637 ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698 ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:5501
24286 msgid "This function returns a C truth value on success or -1 on error."
24287 msgstr ""
24288
24289 #. type: =head2
24290 #: ../src/guestfs-actions.pod:723
24291 msgid "guestfs_blockdev_getsize64"
24292 msgstr ""
24293
24294 #. type: verbatim
24295 #: ../src/guestfs-actions.pod:725
24296 #, no-wrap
24297 msgid ""
24298 " int64_t\n"
24299 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24300 "                             const char *device);\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../src/guestfs-actions.pod:731
24306 msgid "See also C<guestfs_blockdev_getsz>."
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:739
24311 msgid "guestfs_blockdev_getss"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:741
24316 #, no-wrap
24317 msgid ""
24318 " int\n"
24319 " guestfs_blockdev_getss (guestfs_h *g,\n"
24320 "                         const char *device);\n"
24321 "\n"
24322 msgstr ""
24323
24324 #. type: textblock
24325 #: ../src/guestfs-actions.pod:748
24326 msgid ""
24327 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24328 "that)."
24329 msgstr ""
24330
24331 #. type: =head2
24332 #: ../src/guestfs-actions.pod:757
24333 msgid "guestfs_blockdev_getsz"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../src/guestfs-actions.pod:759
24338 #, no-wrap
24339 msgid ""
24340 " int64_t\n"
24341 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24342 "                         const char *device);\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../src/guestfs-actions.pod:766
24348 msgid ""
24349 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24350 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24351 msgstr ""
24352
24353 #. type: =head2
24354 #: ../src/guestfs-actions.pod:776
24355 msgid "guestfs_blockdev_rereadpt"
24356 msgstr ""
24357
24358 #. type: verbatim
24359 #: ../src/guestfs-actions.pod:778
24360 #, no-wrap
24361 msgid ""
24362 " int\n"
24363 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24364 "                            const char *device);\n"
24365 "\n"
24366 msgstr ""
24367
24368 #. type: =head2
24369 #: ../src/guestfs-actions.pod:790
24370 msgid "guestfs_blockdev_setbsz"
24371 msgstr ""
24372
24373 #. type: verbatim
24374 #: ../src/guestfs-actions.pod:792
24375 #, no-wrap
24376 msgid ""
24377 " int\n"
24378 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24379 "                          const char *device,\n"
24380 "                          int blocksize);\n"
24381 "\n"
24382 msgstr ""
24383
24384 #. type: =head2
24385 #: ../src/guestfs-actions.pod:808
24386 msgid "guestfs_blockdev_setro"
24387 msgstr ""
24388
24389 #. type: verbatim
24390 #: ../src/guestfs-actions.pod:810
24391 #, no-wrap
24392 msgid ""
24393 " int\n"
24394 " guestfs_blockdev_setro (guestfs_h *g,\n"
24395 "                         const char *device);\n"
24396 "\n"
24397 msgstr ""
24398
24399 #. type: =head2
24400 #: ../src/guestfs-actions.pod:822
24401 msgid "guestfs_blockdev_setrw"
24402 msgstr ""
24403
24404 #. type: verbatim
24405 #: ../src/guestfs-actions.pod:824
24406 #, no-wrap
24407 msgid ""
24408 " int\n"
24409 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24410 "                         const char *device);\n"
24411 "\n"
24412 msgstr ""
24413
24414 #. type: =head2
24415 #: ../src/guestfs-actions.pod:836
24416 msgid "guestfs_btrfs_filesystem_resize"
24417 msgstr ""
24418
24419 #. type: verbatim
24420 #: ../src/guestfs-actions.pod:838
24421 #, no-wrap
24422 msgid ""
24423 " int\n"
24424 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24425 "                                  const char *mountpoint,\n"
24426 "                                  ...);\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: verbatim
24431 #: ../src/guestfs-actions.pod:848
24432 #, no-wrap
24433 msgid ""
24434 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24435 "\n"
24436 msgstr ""
24437
24438 #. type: textblock
24439 #: ../src/guestfs-actions.pod:871
24440 msgid "(Added in 1.11.17)"
24441 msgstr ""
24442
24443 #. type: =head2
24444 #: ../src/guestfs-actions.pod:873
24445 msgid "guestfs_btrfs_filesystem_resize_va"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../src/guestfs-actions.pod:875
24450 #, no-wrap
24451 msgid ""
24452 " int\n"
24453 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24454 "                                     const char *mountpoint,\n"
24455 "                                     va_list args);\n"
24456 "\n"
24457 msgstr ""
24458
24459 #. type: textblock
24460 #: ../src/guestfs-actions.pod:880
24461 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24462 msgstr ""
24463
24464 #. type: =head2
24465 #: ../src/guestfs-actions.pod:884
24466 msgid "guestfs_btrfs_filesystem_resize_argv"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../src/guestfs-actions.pod:886
24471 #, no-wrap
24472 msgid ""
24473 " int\n"
24474 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24475 "                                       const char *mountpoint,\n"
24476 "                                       const struct "
24477 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24478 "\n"
24479 msgstr ""
24480
24481 #. type: textblock
24482 #: ../src/guestfs-actions.pod:891
24483 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24484 msgstr ""
24485
24486 #. type: =head2
24487 #: ../src/guestfs-actions.pod:895
24488 msgid "guestfs_case_sensitive_path"
24489 msgstr ""
24490
24491 #. type: verbatim
24492 #: ../src/guestfs-actions.pod:897
24493 #, no-wrap
24494 msgid ""
24495 " char *\n"
24496 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24497 "                              const char *path);\n"
24498 "\n"
24499 msgstr ""
24500
24501 #. type: textblock
24502 #: ../src/guestfs-actions.pod:923
24503 msgid ""
24504 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
24505 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24506 "how the directories were originally created under Windows)."
24507 msgstr ""
24508
24509 #. type: textblock
24510 #: ../src/guestfs-actions.pod:931
24511 msgid "See also C<guestfs_realpath>."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
24516 msgid "(Added in 1.0.75)"
24517 msgstr ""
24518
24519 #. type: =head2
24520 #: ../src/guestfs-actions.pod:938
24521 msgid "guestfs_cat"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../src/guestfs-actions.pod:940
24526 #, no-wrap
24527 msgid ""
24528 " char *\n"
24529 " guestfs_cat (guestfs_h *g,\n"
24530 "              const char *path);\n"
24531 "\n"
24532 msgstr ""
24533
24534 #. type: textblock
24535 #: ../src/guestfs-actions.pod:946
24536 msgid ""
24537 "Note that this function cannot correctly handle binary files (specifically, "
24538 "files containing C<\\0> character which is treated as end of string).  For "
24539 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24540 "functions which have a more complex interface."
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912 ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882 ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7732
24545 msgid "(Added in 0.4)"
24546 msgstr ""
24547
24548 #. type: =head2
24549 #: ../src/guestfs-actions.pod:959
24550 msgid "guestfs_checksum"
24551 msgstr ""
24552
24553 #. type: verbatim
24554 #: ../src/guestfs-actions.pod:961
24555 #, no-wrap
24556 msgid ""
24557 " char *\n"
24558 " guestfs_checksum (guestfs_h *g,\n"
24559 "                   const char *csumtype,\n"
24560 "                   const char *path);\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:1007
24566 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../src/guestfs-actions.pod:1009
24571 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433 ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
24576 msgid "(Added in 1.0.2)"
24577 msgstr ""
24578
24579 #. type: =head2
24580 #: ../src/guestfs-actions.pod:1016
24581 msgid "guestfs_checksum_device"
24582 msgstr ""
24583
24584 #. type: verbatim
24585 #: ../src/guestfs-actions.pod:1018
24586 #, no-wrap
24587 msgid ""
24588 " char *\n"
24589 " guestfs_checksum_device (guestfs_h *g,\n"
24590 "                          const char *csumtype,\n"
24591 "                          const char *device);\n"
24592 "\n"
24593 msgstr ""
24594
24595 #. type: textblock
24596 #: ../src/guestfs-actions.pod:1023
24597 msgid ""
24598 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24599 "device named C<device>.  For the types of checksums supported see the "
24600 "C<guestfs_checksum> command."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703 ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:7744
24605 msgid "(Added in 1.3.2)"
24606 msgstr ""
24607
24608 #. type: =head2
24609 #: ../src/guestfs-actions.pod:1032
24610 msgid "guestfs_checksums_out"
24611 msgstr ""
24612
24613 #. type: verbatim
24614 #: ../src/guestfs-actions.pod:1034
24615 #, no-wrap
24616 msgid ""
24617 " int\n"
24618 " guestfs_checksums_out (guestfs_h *g,\n"
24619 "                        const char *csumtype,\n"
24620 "                        const char *directory,\n"
24621 "                        const char *sumsfile);\n"
24622 "\n"
24623 msgstr ""
24624
24625 #. type: textblock
24626 #: ../src/guestfs-actions.pod:1054
24627 msgid "(Added in 1.3.7)"
24628 msgstr ""
24629
24630 #. type: =head2
24631 #: ../src/guestfs-actions.pod:1056
24632 msgid "guestfs_chmod"
24633 msgstr ""
24634
24635 #. type: verbatim
24636 #: ../src/guestfs-actions.pod:1058
24637 #, no-wrap
24638 msgid ""
24639 " int\n"
24640 " guestfs_chmod (guestfs_h *g,\n"
24641 "                int mode,\n"
24642 "                const char *path);\n"
24643 "\n"
24644 msgstr ""
24645
24646 #. type: =head2
24647 #: ../src/guestfs-actions.pod:1076
24648 msgid "guestfs_chown"
24649 msgstr ""
24650
24651 #. type: verbatim
24652 #: ../src/guestfs-actions.pod:1078
24653 #, no-wrap
24654 msgid ""
24655 " int\n"
24656 " guestfs_chown (guestfs_h *g,\n"
24657 "                int owner,\n"
24658 "                int group,\n"
24659 "                const char *path);\n"
24660 "\n"
24661 msgstr ""
24662
24663 #. type: =head2
24664 #: ../src/guestfs-actions.pod:1094
24665 msgid "guestfs_command"
24666 msgstr ""
24667
24668 #. type: verbatim
24669 #: ../src/guestfs-actions.pod:1096
24670 #, no-wrap
24671 msgid ""
24672 " char *\n"
24673 " guestfs_command (guestfs_h *g,\n"
24674 "                  char *const *arguments);\n"
24675 "\n"
24676 msgstr ""
24677
24678 #. type: textblock
24679 #: ../src/guestfs-actions.pod:1105
24680 msgid ""
24681 "The single parameter is an argv-style list of arguments.  The first element "
24682 "is the name of the program to run.  Subsequent elements are parameters.  The "
24683 "list must be non-empty (ie. must contain a program name).  Note that the "
24684 "command runs directly, and is I<not> invoked via the shell (see "
24685 "C<guestfs_sh>)."
24686 msgstr ""
24687
24688 #. type: textblock
24689 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156 ../src/guestfs-actions.pod:1732
24690 msgid "(Added in 0.9.1)"
24691 msgstr ""
24692
24693 #. type: =head2
24694 #: ../src/guestfs-actions.pod:1138
24695 msgid "guestfs_command_lines"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../src/guestfs-actions.pod:1140
24700 #, no-wrap
24701 msgid ""
24702 " char **\n"
24703 " guestfs_command_lines (guestfs_h *g,\n"
24704 "                        char *const *arguments);\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:1144
24710 msgid ""
24711 "This is the same as C<guestfs_command>, but splits the result into a list of "
24712 "lines."
24713 msgstr ""
24714
24715 #. type: textblock
24716 #: ../src/guestfs-actions.pod:1147
24717 msgid "See also: C<guestfs_sh_lines>"
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../src/guestfs-actions.pod:1158
24722 msgid "guestfs_compress_device_out"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../src/guestfs-actions.pod:1160
24727 #, no-wrap
24728 msgid ""
24729 " int\n"
24730 " guestfs_compress_device_out (guestfs_h *g,\n"
24731 "                              const char *ctype,\n"
24732 "                              const char *device,\n"
24733 "                              const char *zdevice,\n"
24734 "                              ...);\n"
24735 "\n"
24736 msgstr ""
24737
24738 #. type: verbatim
24739 #: ../src/guestfs-actions.pod:1172
24740 #, no-wrap
24741 msgid ""
24742 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24743 "\n"
24744 msgstr ""
24745
24746 #. type: textblock
24747 #: ../src/guestfs-actions.pod:1177
24748 msgid ""
24749 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24750 "C<guestfs_compress_out>."
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
24755 msgid "(Added in 1.13.15)"
24756 msgstr ""
24757
24758 #. type: =head2
24759 #: ../src/guestfs-actions.pod:1184
24760 msgid "guestfs_compress_device_out_va"
24761 msgstr ""
24762
24763 #. type: verbatim
24764 #: ../src/guestfs-actions.pod:1186
24765 #, no-wrap
24766 msgid ""
24767 " int\n"
24768 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24769 "                                 const char *ctype,\n"
24770 "                                 const char *device,\n"
24771 "                                 const char *zdevice,\n"
24772 "                                 va_list args);\n"
24773 "\n"
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../src/guestfs-actions.pod:1193
24778 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24779 msgstr ""
24780
24781 #. type: =head2
24782 #: ../src/guestfs-actions.pod:1197
24783 msgid "guestfs_compress_device_out_argv"
24784 msgstr ""
24785
24786 #. type: verbatim
24787 #: ../src/guestfs-actions.pod:1199
24788 #, no-wrap
24789 msgid ""
24790 " int\n"
24791 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24792 "                                   const char *ctype,\n"
24793 "                                   const char *device,\n"
24794 "                                   const char *zdevice,\n"
24795 "                                   const struct "
24796 "guestfs_compress_device_out_argv *optargs);\n"
24797 "\n"
24798 msgstr ""
24799
24800 #. type: textblock
24801 #: ../src/guestfs-actions.pod:1206
24802 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24803 msgstr ""
24804
24805 #. type: =head2
24806 #: ../src/guestfs-actions.pod:1210
24807 msgid "guestfs_compress_out"
24808 msgstr ""
24809
24810 #. type: verbatim
24811 #: ../src/guestfs-actions.pod:1212
24812 #, no-wrap
24813 msgid ""
24814 " int\n"
24815 " guestfs_compress_out (guestfs_h *g,\n"
24816 "                       const char *ctype,\n"
24817 "                       const char *file,\n"
24818 "                       const char *zfile,\n"
24819 "                       ...);\n"
24820 "\n"
24821 msgstr ""
24822
24823 #. type: verbatim
24824 #: ../src/guestfs-actions.pod:1224
24825 #, no-wrap
24826 msgid ""
24827 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24828 "\n"
24829 msgstr ""
24830
24831 #. type: =head2
24832 #: ../src/guestfs-actions.pod:1243
24833 msgid "guestfs_compress_out_va"
24834 msgstr ""
24835
24836 #. type: verbatim
24837 #: ../src/guestfs-actions.pod:1245
24838 #, no-wrap
24839 msgid ""
24840 " int\n"
24841 " guestfs_compress_out_va (guestfs_h *g,\n"
24842 "                          const char *ctype,\n"
24843 "                          const char *file,\n"
24844 "                          const char *zfile,\n"
24845 "                          va_list args);\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../src/guestfs-actions.pod:1252
24851 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24852 msgstr ""
24853
24854 #. type: =head2
24855 #: ../src/guestfs-actions.pod:1256
24856 msgid "guestfs_compress_out_argv"
24857 msgstr ""
24858
24859 #. type: verbatim
24860 #: ../src/guestfs-actions.pod:1258
24861 #, no-wrap
24862 msgid ""
24863 " int\n"
24864 " guestfs_compress_out_argv (guestfs_h *g,\n"
24865 "                            const char *ctype,\n"
24866 "                            const char *file,\n"
24867 "                            const char *zfile,\n"
24868 "                            const struct guestfs_compress_out_argv "
24869 "*optargs);\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../src/guestfs-actions.pod:1265
24875 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24876 msgstr ""
24877
24878 #. type: =head2
24879 #: ../src/guestfs-actions.pod:1269
24880 msgid "guestfs_config"
24881 msgstr ""
24882
24883 #. type: verbatim
24884 #: ../src/guestfs-actions.pod:1271
24885 #, no-wrap
24886 msgid ""
24887 " int\n"
24888 " guestfs_config (guestfs_h *g,\n"
24889 "                 const char *qemuparam,\n"
24890 "                 const char *qemuvalue);\n"
24891 "\n"
24892 msgstr ""
24893
24894 #. type: =head2
24895 #: ../src/guestfs-actions.pod:1289
24896 msgid "guestfs_copy_size"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:1291
24901 #, no-wrap
24902 msgid ""
24903 " int\n"
24904 " guestfs_copy_size (guestfs_h *g,\n"
24905 "                    const char *src,\n"
24906 "                    const char *dest,\n"
24907 "                    int64_t size);\n"
24908 "\n"
24909 msgstr ""
24910
24911 #. type: textblock
24912 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428 ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903 ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416 ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957 ../src/guestfs-actions.pod:7980
24913 msgid ""
24914 "This long-running command can generate progress notification messages so "
24915 "that the caller can display a progress bar or indicator.  To receive these "
24916 "messages, the caller must register a progress event callback.  See "
24917 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651 ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
24922 msgid "(Added in 1.0.87)"
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../src/guestfs-actions.pod:1312
24927 msgid "guestfs_cp"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../src/guestfs-actions.pod:1314
24932 #, no-wrap
24933 msgid ""
24934 " int\n"
24935 " guestfs_cp (guestfs_h *g,\n"
24936 "             const char *src,\n"
24937 "             const char *dest);\n"
24938 "\n"
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338 ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484 ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5753
24943 msgid "(Added in 1.0.18)"
24944 msgstr ""
24945
24946 #. type: =head2
24947 #: ../src/guestfs-actions.pod:1326
24948 msgid "guestfs_cp_a"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../src/guestfs-actions.pod:1328
24953 #, no-wrap
24954 msgid ""
24955 " int\n"
24956 " guestfs_cp_a (guestfs_h *g,\n"
24957 "               const char *src,\n"
24958 "               const char *dest);\n"
24959 "\n"
24960 msgstr ""
24961
24962 #. type: =head2
24963 #: ../src/guestfs-actions.pod:1340
24964 msgid "guestfs_dd"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:1342
24969 #, no-wrap
24970 msgid ""
24971 " int\n"
24972 " guestfs_dd (guestfs_h *g,\n"
24973 "             const char *src,\n"
24974 "             const char *dest);\n"
24975 "\n"
24976 msgstr ""
24977
24978 #. type: textblock
24979 #: ../src/guestfs-actions.pod:1352
24980 msgid ""
24981 "If the destination is a device, it must be as large or larger than the "
24982 "source file or device, otherwise the copy will fail.  This command cannot do "
24983 "partial copies (see C<guestfs_copy_size>)."
24984 msgstr ""
24985
24986 #. type: =head2
24987 #: ../src/guestfs-actions.pod:1360
24988 msgid "guestfs_df"
24989 msgstr ""
24990
24991 #. type: verbatim
24992 #: ../src/guestfs-actions.pod:1362
24993 #, no-wrap
24994 msgid ""
24995 " char *\n"
24996 " guestfs_df (guestfs_h *g);\n"
24997 "\n"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
25002 msgid ""
25003 "This command is mostly useful for interactive sessions.  It is I<not> "
25004 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25005 "from programs."
25006 msgstr ""
25007
25008 #. type: textblock
25009 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178 ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810 ../src/guestfs-actions.pod:7823
25010 msgid "(Added in 1.0.54)"
25011 msgstr ""
25012
25013 #. type: =head2
25014 #: ../src/guestfs-actions.pod:1376
25015 msgid "guestfs_df_h"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../src/guestfs-actions.pod:1378
25020 #, no-wrap
25021 msgid ""
25022 " char *\n"
25023 " guestfs_df_h (guestfs_h *g);\n"
25024 "\n"
25025 msgstr ""
25026
25027 #. type: =head2
25028 #: ../src/guestfs-actions.pod:1393
25029 msgid "guestfs_dmesg"
25030 msgstr ""
25031
25032 #. type: verbatim
25033 #: ../src/guestfs-actions.pod:1395
25034 #, no-wrap
25035 msgid ""
25036 " char *\n"
25037 " guestfs_dmesg (guestfs_h *g);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:1402
25043 msgid ""
25044 "Another way to get the same information is to enable verbose messages with "
25045 "C<guestfs_set_verbose> or by setting the environment variable "
25046 "C<LIBGUESTFS_DEBUG=1> before running the program."
25047 msgstr ""
25048
25049 #. type: =head2
25050 #: ../src/guestfs-actions.pod:1412
25051 msgid "guestfs_download"
25052 msgstr ""
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:1414
25056 #, no-wrap
25057 msgid ""
25058 " int\n"
25059 " guestfs_download (guestfs_h *g,\n"
25060 "                   const char *remotefilename,\n"
25061 "                   const char *filename);\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../src/guestfs-actions.pod:1424
25067 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25068 msgstr ""
25069
25070 #. type: =head2
25071 #: ../src/guestfs-actions.pod:1435
25072 msgid "guestfs_download_offset"
25073 msgstr ""
25074
25075 #. type: verbatim
25076 #: ../src/guestfs-actions.pod:1437
25077 #, no-wrap
25078 msgid ""
25079 " int\n"
25080 " guestfs_download_offset (guestfs_h *g,\n"
25081 "                          const char *remotefilename,\n"
25082 "                          const char *filename,\n"
25083 "                          int64_t offset,\n"
25084 "                          int64_t size);\n"
25085 "\n"
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../src/guestfs-actions.pod:1450
25090 msgid ""
25091 "Note that there is no limit on the amount of data that can be downloaded "
25092 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25093 "full amount unless an error occurs."
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../src/guestfs-actions.pod:1455
25098 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25099 msgstr ""
25100
25101 #. type: textblock
25102 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
25103 msgid "(Added in 1.5.17)"
25104 msgstr ""
25105
25106 #. type: =head2
25107 #: ../src/guestfs-actions.pod:1466
25108 msgid "guestfs_drop_caches"
25109 msgstr ""
25110
25111 #. type: verbatim
25112 #: ../src/guestfs-actions.pod:1468
25113 #, no-wrap
25114 msgid ""
25115 " int\n"
25116 " guestfs_drop_caches (guestfs_h *g,\n"
25117 "                      int whattodrop);\n"
25118 "\n"
25119 msgstr ""
25120
25121 #. type: =head2
25122 #: ../src/guestfs-actions.pod:1486
25123 msgid "guestfs_du"
25124 msgstr ""
25125
25126 #. type: verbatim
25127 #: ../src/guestfs-actions.pod:1488
25128 #, no-wrap
25129 msgid ""
25130 " int64_t\n"
25131 " guestfs_du (guestfs_h *g,\n"
25132 "             const char *path);\n"
25133 "\n"
25134 msgstr ""
25135
25136 #. type: =head2
25137 #: ../src/guestfs-actions.pod:1511
25138 msgid "guestfs_e2fsck_f"
25139 msgstr ""
25140
25141 #. type: verbatim
25142 #: ../src/guestfs-actions.pod:1513
25143 #, no-wrap
25144 msgid ""
25145 " int\n"
25146 " guestfs_e2fsck_f (guestfs_h *g,\n"
25147 "                   const char *device);\n"
25148 "\n"
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../src/guestfs-actions.pod:1521
25153 msgid ""
25154 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25155 "Normally you should use C<guestfs_fsck>."
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../src/guestfs-actions.pod:1526
25160 msgid "(Added in 1.0.29)"
25161 msgstr ""
25162
25163 #. type: =head2
25164 #: ../src/guestfs-actions.pod:1528
25165 msgid "guestfs_echo_daemon"
25166 msgstr ""
25167
25168 #. type: verbatim
25169 #: ../src/guestfs-actions.pod:1530
25170 #, no-wrap
25171 msgid ""
25172 " char *\n"
25173 " guestfs_echo_daemon (guestfs_h *g,\n"
25174 "                      char *const *words);\n"
25175 "\n"
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../src/guestfs-actions.pod:1539
25180 msgid "See also C<guestfs_ping_daemon>."
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:6626
25185 msgid "(Added in 1.0.69)"
25186 msgstr ""
25187
25188 #. type: =head2
25189 #: ../src/guestfs-actions.pod:1546
25190 msgid "guestfs_egrep"
25191 msgstr ""
25192
25193 #. type: verbatim
25194 #: ../src/guestfs-actions.pod:1548
25195 #, no-wrap
25196 msgid ""
25197 " char **\n"
25198 " guestfs_egrep (guestfs_h *g,\n"
25199 "                const char *regex,\n"
25200 "                const char *path);\n"
25201 "\n"
25202 msgstr ""
25203
25204 #. type: textblock
25205 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725 ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066 ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047 ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
25206 msgid "(Added in 1.0.66)"
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../src/guestfs-actions.pod:1565
25211 msgid "guestfs_egrepi"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../src/guestfs-actions.pod:1567
25216 #, no-wrap
25217 msgid ""
25218 " char **\n"
25219 " guestfs_egrepi (guestfs_h *g,\n"
25220 "                 const char *regex,\n"
25221 "                 const char *path);\n"
25222 "\n"
25223 msgstr ""
25224
25225 #. type: =head2
25226 #: ../src/guestfs-actions.pod:1584
25227 msgid "guestfs_equal"
25228 msgstr ""
25229
25230 #. type: verbatim
25231 #: ../src/guestfs-actions.pod:1586
25232 #, no-wrap
25233 msgid ""
25234 " int\n"
25235 " guestfs_equal (guestfs_h *g,\n"
25236 "                const char *file1,\n"
25237 "                const char *file2);\n"
25238 "\n"
25239 msgstr ""
25240
25241 #. type: =head2
25242 #: ../src/guestfs-actions.pod:1600
25243 msgid "guestfs_exists"
25244 msgstr ""
25245
25246 #. type: verbatim
25247 #: ../src/guestfs-actions.pod:1602
25248 #, no-wrap
25249 msgid ""
25250 " int\n"
25251 " guestfs_exists (guestfs_h *g,\n"
25252 "                 const char *path);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../src/guestfs-actions.pod:1609
25258 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25259 msgstr ""
25260
25261 #. type: =head2
25262 #: ../src/guestfs-actions.pod:1615
25263 msgid "guestfs_fallocate"
25264 msgstr ""
25265
25266 #. type: verbatim
25267 #: ../src/guestfs-actions.pod:1617
25268 #, no-wrap
25269 msgid ""
25270 " int\n"
25271 " guestfs_fallocate (guestfs_h *g,\n"
25272 "                    const char *path,\n"
25273 "                    int len);\n"
25274 "\n"
25275 msgstr ""
25276
25277 #. type: textblock
25278 #: ../src/guestfs-actions.pod:1622
25279 msgid ""
25280 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25281 "call instead."
25282 msgstr ""
25283
25284 #. type: =head2
25285 #: ../src/guestfs-actions.pod:1641
25286 msgid "guestfs_fallocate64"
25287 msgstr ""
25288
25289 #. type: verbatim
25290 #: ../src/guestfs-actions.pod:1643
25291 #, no-wrap
25292 msgid ""
25293 " int\n"
25294 " guestfs_fallocate64 (guestfs_h *g,\n"
25295 "                      const char *path,\n"
25296 "                      int64_t len);\n"
25297 "\n"
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../src/guestfs-actions.pod:1652
25302 msgid ""
25303 "Note that this call allocates disk blocks for the file.  To create a sparse "
25304 "file use C<guestfs_truncate_size> instead."
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:1655
25309 msgid ""
25310 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25311 "oversight it only allowed 30 bit lengths to be specified, effectively "
25312 "limiting the maximum size of files created through that call to 1GB."
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:1666
25317 msgid "(Added in 1.3.17)"
25318 msgstr ""
25319
25320 #. type: =head2
25321 #: ../src/guestfs-actions.pod:1668
25322 msgid "guestfs_fgrep"
25323 msgstr ""
25324
25325 #. type: verbatim
25326 #: ../src/guestfs-actions.pod:1670
25327 #, no-wrap
25328 msgid ""
25329 " char **\n"
25330 " guestfs_fgrep (guestfs_h *g,\n"
25331 "                const char *pattern,\n"
25332 "                const char *path);\n"
25333 "\n"
25334 msgstr ""
25335
25336 #. type: =head2
25337 #: ../src/guestfs-actions.pod:1687
25338 msgid "guestfs_fgrepi"
25339 msgstr ""
25340
25341 #. type: verbatim
25342 #: ../src/guestfs-actions.pod:1689
25343 #, no-wrap
25344 msgid ""
25345 " char **\n"
25346 " guestfs_fgrepi (guestfs_h *g,\n"
25347 "                 const char *pattern,\n"
25348 "                 const char *path);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: =head2
25353 #: ../src/guestfs-actions.pod:1706
25354 msgid "guestfs_file"
25355 msgstr ""
25356
25357 #. type: verbatim
25358 #: ../src/guestfs-actions.pod:1708
25359 #, no-wrap
25360 msgid ""
25361 " char *\n"
25362 " guestfs_file (guestfs_h *g,\n"
25363 "               const char *path);\n"
25364 "\n"
25365 msgstr ""
25366
25367 #. type: textblock
25368 #: ../src/guestfs-actions.pod:1726
25369 msgid ""
25370 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25371 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25372 msgstr ""
25373
25374 #. type: =head2
25375 #: ../src/guestfs-actions.pod:1734
25376 msgid "guestfs_file_architecture"
25377 msgstr ""
25378
25379 #. type: verbatim
25380 #: ../src/guestfs-actions.pod:1736
25381 #, no-wrap
25382 msgid ""
25383 " char *\n"
25384 " guestfs_file_architecture (guestfs_h *g,\n"
25385 "                            const char *filename);\n"
25386 "\n"
25387 msgstr ""
25388
25389 #. type: textblock
25390 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926 ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131 ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3713
25391 msgid "(Added in 1.5.3)"
25392 msgstr ""
25393
25394 #. type: =head2
25395 #: ../src/guestfs-actions.pod:1846
25396 msgid "guestfs_filesize"
25397 msgstr ""
25398
25399 #. type: verbatim
25400 #: ../src/guestfs-actions.pod:1848
25401 #, no-wrap
25402 msgid ""
25403 " int64_t\n"
25404 " guestfs_filesize (guestfs_h *g,\n"
25405 "                   const char *file);\n"
25406 "\n"
25407 msgstr ""
25408
25409 #. type: textblock
25410 #: ../src/guestfs-actions.pod:1854
25411 msgid ""
25412 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25413 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25414 "devices, use C<guestfs_blockdev_getsize64>."
25415 msgstr ""
25416
25417 #. type: textblock
25418 #: ../src/guestfs-actions.pod:1860
25419 msgid "(Added in 1.0.82)"
25420 msgstr ""
25421
25422 #. type: =head2
25423 #: ../src/guestfs-actions.pod:1862
25424 msgid "guestfs_fill"
25425 msgstr ""
25426
25427 #. type: verbatim
25428 #: ../src/guestfs-actions.pod:1864
25429 #, no-wrap
25430 msgid ""
25431 " int\n"
25432 " guestfs_fill (guestfs_h *g,\n"
25433 "               int c,\n"
25434 "               int len,\n"
25435 "               const char *path);\n"
25436 "\n"
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../src/guestfs-actions.pod:1874
25441 msgid ""
25442 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25443 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25444 "bytes use C<guestfs_fill_pattern>."
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../src/guestfs-actions.pod:1886
25449 msgid "(Added in 1.0.79)"
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../src/guestfs-actions.pod:1888
25454 msgid "guestfs_fill_pattern"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../src/guestfs-actions.pod:1890
25459 #, no-wrap
25460 msgid ""
25461 " int\n"
25462 " guestfs_fill_pattern (guestfs_h *g,\n"
25463 "                       const char *pattern,\n"
25464 "                       int len,\n"
25465 "                       const char *path);\n"
25466 "\n"
25467 msgstr ""
25468
25469 #. type: textblock
25470 #: ../src/guestfs-actions.pod:1896
25471 msgid ""
25472 "This function is like C<guestfs_fill> except that it creates a new file of "
25473 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25474 "pattern is truncated if necessary to ensure the length of the file is "
25475 "exactly C<len> bytes."
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:1908
25480 msgid "(Added in 1.3.12)"
25481 msgstr ""
25482
25483 #. type: =head2
25484 #: ../src/guestfs-actions.pod:1910
25485 msgid "guestfs_find"
25486 msgstr ""
25487
25488 #. type: verbatim
25489 #: ../src/guestfs-actions.pod:1912
25490 #, no-wrap
25491 msgid ""
25492 " char **\n"
25493 " guestfs_find (guestfs_h *g,\n"
25494 "               const char *directory);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../src/guestfs-actions.pod:1928
25500 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25501 msgstr ""
25502
25503 #. type: textblock
25504 #: ../src/guestfs-actions.pod:1941
25505 msgid "See also C<guestfs_find0>."
25506 msgstr ""
25507
25508 #. type: textblock
25509 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:6171
25510 msgid "(Added in 1.0.27)"
25511 msgstr ""
25512
25513 #. type: =head2
25514 #: ../src/guestfs-actions.pod:1952
25515 msgid "guestfs_find0"
25516 msgstr ""
25517
25518 #. type: verbatim
25519 #: ../src/guestfs-actions.pod:1954
25520 #, no-wrap
25521 msgid ""
25522 " int\n"
25523 " guestfs_find0 (guestfs_h *g,\n"
25524 "                const char *directory,\n"
25525 "                const char *files);\n"
25526 "\n"
25527 msgstr ""
25528
25529 #. type: textblock
25530 #: ../src/guestfs-actions.pod:1963
25531 msgid ""
25532 "This command works the same way as C<guestfs_find> with the following "
25533 "exceptions:"
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../src/guestfs-actions.pod:1990
25538 msgid "(Added in 1.0.74)"
25539 msgstr ""
25540
25541 #. type: =head2
25542 #: ../src/guestfs-actions.pod:1992
25543 msgid "guestfs_findfs_label"
25544 msgstr ""
25545
25546 #. type: verbatim
25547 #: ../src/guestfs-actions.pod:1994
25548 #, no-wrap
25549 msgid ""
25550 " char *\n"
25551 " guestfs_findfs_label (guestfs_h *g,\n"
25552 "                       const char *label);\n"
25553 "\n"
25554 msgstr ""
25555
25556 #. type: textblock
25557 #: ../src/guestfs-actions.pod:2002
25558 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25559 msgstr ""
25560
25561 #. type: =head2
25562 #: ../src/guestfs-actions.pod:2009
25563 msgid "guestfs_findfs_uuid"
25564 msgstr ""
25565
25566 #. type: verbatim
25567 #: ../src/guestfs-actions.pod:2011
25568 #, no-wrap
25569 msgid ""
25570 " char *\n"
25571 " guestfs_findfs_uuid (guestfs_h *g,\n"
25572 "                      const char *uuid);\n"
25573 "\n"
25574 msgstr ""
25575
25576 #. type: textblock
25577 #: ../src/guestfs-actions.pod:2019
25578 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25579 msgstr ""
25580
25581 #. type: =head2
25582 #: ../src/guestfs-actions.pod:2026
25583 msgid "guestfs_fsck"
25584 msgstr ""
25585
25586 #. type: verbatim
25587 #: ../src/guestfs-actions.pod:2028
25588 #, no-wrap
25589 msgid ""
25590 " int\n"
25591 " guestfs_fsck (guestfs_h *g,\n"
25592 "               const char *fstype,\n"
25593 "               const char *device);\n"
25594 "\n"
25595 msgstr ""
25596
25597 #. type: textblock
25598 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
25599 msgid "(Added in 1.0.16)"
25600 msgstr ""
25601
25602 #. type: =head2
25603 #: ../src/guestfs-actions.pod:2065
25604 msgid "guestfs_get_append"
25605 msgstr ""
25606
25607 #. type: verbatim
25608 #: ../src/guestfs-actions.pod:2067
25609 #, no-wrap
25610 msgid ""
25611 " const char *\n"
25612 " guestfs_get_append (guestfs_h *g);\n"
25613 "\n"
25614 msgstr ""
25615
25616 #. type: textblock
25617 #: ../src/guestfs-actions.pod:2075
25618 msgid ""
25619 "This function returns a string which may be NULL.  There is no way to return "
25620 "an error from this function.  The string is owned by the guest handle and "
25621 "must I<not> be freed."
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824 ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
25626 msgid "(Added in 1.0.26)"
25627 msgstr ""
25628
25629 #. type: =head2
25630 #: ../src/guestfs-actions.pod:2081
25631 msgid "guestfs_get_attach_method"
25632 msgstr ""
25633
25634 #. type: verbatim
25635 #: ../src/guestfs-actions.pod:2083
25636 #, no-wrap
25637 msgid ""
25638 " char *\n"
25639 " guestfs_get_attach_method (guestfs_h *g);\n"
25640 "\n"
25641 msgstr ""
25642
25643 #. type: textblock
25644 #: ../src/guestfs-actions.pod:2086
25645 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25646 msgstr ""
25647
25648 #. type: textblock
25649 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
25650 msgid "(Added in 1.9.8)"
25651 msgstr ""
25652
25653 #. type: =head2
25654 #: ../src/guestfs-actions.pod:2093
25655 msgid "guestfs_get_autosync"
25656 msgstr ""
25657
25658 #. type: verbatim
25659 #: ../src/guestfs-actions.pod:2095
25660 #, no-wrap
25661 msgid ""
25662 " int\n"
25663 " guestfs_get_autosync (guestfs_h *g);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:2104
25669 msgid "guestfs_get_direct"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:2106
25674 #, no-wrap
25675 msgid ""
25676 " int\n"
25677 " guestfs_get_direct (guestfs_h *g);\n"
25678 "\n"
25679 msgstr ""
25680
25681 #. type: textblock
25682 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
25683 msgid "(Added in 1.0.72)"
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:2115
25688 msgid "guestfs_get_e2label"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:2117
25693 #, no-wrap
25694 msgid ""
25695 " char *\n"
25696 " guestfs_get_e2label (guestfs_h *g,\n"
25697 "                      const char *device);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: textblock
25702 #: ../src/guestfs-actions.pod:2121
25703 msgid ""
25704 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25705 "call instead."
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
25710 msgid "(Added in 1.0.15)"
25711 msgstr ""
25712
25713 #. type: =head2
25714 #: ../src/guestfs-actions.pod:2136
25715 msgid "guestfs_get_e2uuid"
25716 msgstr ""
25717
25718 #. type: verbatim
25719 #: ../src/guestfs-actions.pod:2138
25720 #, no-wrap
25721 msgid ""
25722 " char *\n"
25723 " guestfs_get_e2uuid (guestfs_h *g,\n"
25724 "                     const char *device);\n"
25725 "\n"
25726 msgstr ""
25727
25728 #. type: textblock
25729 #: ../src/guestfs-actions.pod:2142
25730 msgid ""
25731 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25732 "call instead."
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../src/guestfs-actions.pod:2157
25737 msgid "guestfs_get_memsize"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../src/guestfs-actions.pod:2159
25742 #, no-wrap
25743 msgid ""
25744 " int\n"
25745 " guestfs_get_memsize (guestfs_h *g);\n"
25746 "\n"
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../src/guestfs-actions.pod:2165
25751 msgid ""
25752 "If C<guestfs_set_memsize> was not called on this handle, and if "
25753 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25754 "value for memsize."
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051 ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460 ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
25759 msgid "(Added in 1.0.55)"
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../src/guestfs-actions.pod:2176
25764 msgid "guestfs_get_network"
25765 msgstr ""
25766
25767 #. type: verbatim
25768 #: ../src/guestfs-actions.pod:2178
25769 #, no-wrap
25770 msgid ""
25771 " int\n"
25772 " guestfs_get_network (guestfs_h *g);\n"
25773 "\n"
25774 msgstr ""
25775
25776 #. type: textblock
25777 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
25778 msgid "(Added in 1.5.4)"
25779 msgstr ""
25780
25781 #. type: =head2
25782 #: ../src/guestfs-actions.pod:2187
25783 msgid "guestfs_get_path"
25784 msgstr ""
25785
25786 #. type: verbatim
25787 #: ../src/guestfs-actions.pod:2189
25788 #, no-wrap
25789 msgid ""
25790 " const char *\n"
25791 " guestfs_get_path (guestfs_h *g);\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
25797 msgid ""
25798 "This function returns a string, or NULL on error.  The string is owned by "
25799 "the guest handle and must I<not> be freed."
25800 msgstr ""
25801
25802 #. type: =head2
25803 #: ../src/guestfs-actions.pod:2202
25804 msgid "guestfs_get_pgroup"
25805 msgstr ""
25806
25807 #. type: verbatim
25808 #: ../src/guestfs-actions.pod:2204
25809 #, no-wrap
25810 msgid ""
25811 " int\n"
25812 " guestfs_get_pgroup (guestfs_h *g);\n"
25813 "\n"
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515 ../src/guestfs-actions.pod:7863
25818 msgid "(Added in 1.11.18)"
25819 msgstr ""
25820
25821 #. type: =head2
25822 #: ../src/guestfs-actions.pod:2213
25823 msgid "guestfs_get_pid"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../src/guestfs-actions.pod:2215
25828 #, no-wrap
25829 msgid ""
25830 " int\n"
25831 " guestfs_get_pid (guestfs_h *g);\n"
25832 "\n"
25833 msgstr ""
25834
25835 #. type: textblock
25836 #: ../src/guestfs-actions.pod:2225
25837 msgid "(Added in 1.0.56)"
25838 msgstr ""
25839
25840 #. type: =head2
25841 #: ../src/guestfs-actions.pod:2227
25842 msgid "guestfs_get_qemu"
25843 msgstr ""
25844
25845 #. type: verbatim
25846 #: ../src/guestfs-actions.pod:2229
25847 #, no-wrap
25848 msgid ""
25849 " const char *\n"
25850 " guestfs_get_qemu (guestfs_h *g);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
25856 msgid "(Added in 1.0.6)"
25857 msgstr ""
25858
25859 #. type: =head2
25860 #: ../src/guestfs-actions.pod:2242
25861 msgid "guestfs_get_recovery_proc"
25862 msgstr ""
25863
25864 #. type: verbatim
25865 #: ../src/guestfs-actions.pod:2244
25866 #, no-wrap
25867 msgid ""
25868 " int\n"
25869 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: textblock
25874 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835 ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294 ../src/guestfs-actions.pod:7486
25875 msgid "(Added in 1.0.77)"
25876 msgstr ""
25877
25878 #. type: =head2
25879 #: ../src/guestfs-actions.pod:2253
25880 msgid "guestfs_get_selinux"
25881 msgstr ""
25882
25883 #. type: verbatim
25884 #: ../src/guestfs-actions.pod:2255
25885 #, no-wrap
25886 msgid ""
25887 " int\n"
25888 " guestfs_get_selinux (guestfs_h *g);\n"
25889 "\n"
25890 msgstr ""
25891
25892 #. type: textblock
25893 #: ../src/guestfs-actions.pod:2258
25894 msgid ""
25895 "This returns the current setting of the selinux flag which is passed to the "
25896 "appliance at boot time.  See C<guestfs_set_selinux>."
25897 msgstr ""
25898
25899 #. type: textblock
25900 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340 ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
25901 msgid "(Added in 1.0.67)"
25902 msgstr ""
25903
25904 #. type: =head2
25905 #: ../src/guestfs-actions.pod:2268
25906 msgid "guestfs_get_smp"
25907 msgstr ""
25908
25909 #. type: verbatim
25910 #: ../src/guestfs-actions.pod:2270
25911 #, no-wrap
25912 msgid ""
25913 " int\n"
25914 " guestfs_get_smp (guestfs_h *g);\n"
25915 "\n"
25916 msgstr ""
25917
25918 #. type: =head2
25919 #: ../src/guestfs-actions.pod:2279
25920 msgid "guestfs_get_state"
25921 msgstr ""
25922
25923 #. type: verbatim
25924 #: ../src/guestfs-actions.pod:2281
25925 #, no-wrap
25926 msgid ""
25927 " int\n"
25928 " guestfs_get_state (guestfs_h *g);\n"
25929 "\n"
25930 msgstr ""
25931
25932 #. type: =head2
25933 #: ../src/guestfs-actions.pod:2293
25934 msgid "guestfs_get_trace"
25935 msgstr ""
25936
25937 #. type: verbatim
25938 #: ../src/guestfs-actions.pod:2295
25939 #, no-wrap
25940 msgid ""
25941 " int\n"
25942 " guestfs_get_trace (guestfs_h *g);\n"
25943 "\n"
25944 msgstr ""
25945
25946 #. type: =head2
25947 #: ../src/guestfs-actions.pod:2304
25948 msgid "guestfs_get_umask"
25949 msgstr ""
25950
25951 #. type: verbatim
25952 #: ../src/guestfs-actions.pod:2306
25953 #, no-wrap
25954 msgid ""
25955 " int\n"
25956 " guestfs_get_umask (guestfs_h *g);\n"
25957 "\n"
25958 msgstr ""
25959
25960 #. type: textblock
25961 #: ../src/guestfs-actions.pod:2309
25962 msgid ""
25963 "Return the current umask.  By default the umask is C<022> unless it has been "
25964 "set by calling C<guestfs_umask>."
25965 msgstr ""
25966
25967 #. type: =head2
25968 #: ../src/guestfs-actions.pod:2316
25969 msgid "guestfs_get_verbose"
25970 msgstr ""
25971
25972 #. type: verbatim
25973 #: ../src/guestfs-actions.pod:2318
25974 #, no-wrap
25975 msgid ""
25976 " int\n"
25977 " guestfs_get_verbose (guestfs_h *g);\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../src/guestfs-actions.pod:2327
25983 msgid "guestfs_getcon"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../src/guestfs-actions.pod:2329
25988 #, no-wrap
25989 msgid ""
25990 " char *\n"
25991 " guestfs_getcon (guestfs_h *g);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:2334
25997 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../src/guestfs-actions.pod:2342
26002 msgid "guestfs_getxattr"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../src/guestfs-actions.pod:2344
26007 #, no-wrap
26008 msgid ""
26009 " char *\n"
26010 " guestfs_getxattr (guestfs_h *g,\n"
26011 "                   const char *path,\n"
26012 "                   const char *name,\n"
26013 "                   size_t *size_r);\n"
26014 "\n"
26015 msgstr ""
26016
26017 #. type: textblock
26018 #: ../src/guestfs-actions.pod:2350
26019 msgid ""
26020 "Get a single extended attribute from file C<path> named C<name>.  This call "
26021 "follows symlinks.  If you want to lookup an extended attribute for the "
26022 "symlink itself, use C<guestfs_lgetxattr>."
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
26027 msgid ""
26028 "Normally it is better to get all extended attributes from a file in one go "
26029 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26030 "implementations are buggy and do not provide a way to list out attributes.  "
26031 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26032 "extended attributes you want in advance and call this function."
26033 msgstr ""
26034
26035 #. type: textblock
26036 #: ../src/guestfs-actions.pod:2364
26037 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579 ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5979
26042 msgid ""
26043 "This function returns a buffer, or NULL on error.  The size of the returned "
26044 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26045 "after use>."
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
26050 msgid "(Added in 1.7.24)"
26051 msgstr ""
26052
26053 #. type: =head2
26054 #: ../src/guestfs-actions.pod:2372
26055 msgid "guestfs_getxattrs"
26056 msgstr ""
26057
26058 #. type: verbatim
26059 #: ../src/guestfs-actions.pod:2374
26060 #, no-wrap
26061 msgid ""
26062 " struct guestfs_xattr_list *\n"
26063 " guestfs_getxattrs (guestfs_h *g,\n"
26064 "                    const char *path);\n"
26065 "\n"
26066 msgstr ""
26067
26068 #. type: textblock
26069 #: ../src/guestfs-actions.pod:2384
26070 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:4565
26075 msgid ""
26076 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26077 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26078 msgstr ""
26079
26080 #. type: textblock
26081 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:8074
26082 msgid "(Added in 1.0.59)"
26083 msgstr ""
26084
26085 #. type: =head2
26086 #: ../src/guestfs-actions.pod:2392
26087 msgid "guestfs_glob_expand"
26088 msgstr ""
26089
26090 #. type: verbatim
26091 #: ../src/guestfs-actions.pod:2394
26092 #, no-wrap
26093 msgid ""
26094 " char **\n"
26095 " guestfs_glob_expand (guestfs_h *g,\n"
26096 "                      const char *pattern);\n"
26097 "\n"
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6889
26102 msgid "(Added in 1.0.50)"
26103 msgstr ""
26104
26105 #. type: =head2
26106 #: ../src/guestfs-actions.pod:2415
26107 msgid "guestfs_grep"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../src/guestfs-actions.pod:2417
26112 #, no-wrap
26113 msgid ""
26114 " char **\n"
26115 " guestfs_grep (guestfs_h *g,\n"
26116 "               const char *regex,\n"
26117 "               const char *path);\n"
26118 "\n"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:2434
26123 msgid "guestfs_grepi"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:2436
26128 #, no-wrap
26129 msgid ""
26130 " char **\n"
26131 " guestfs_grepi (guestfs_h *g,\n"
26132 "                const char *regex,\n"
26133 "                const char *path);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: =head2
26138 #: ../src/guestfs-actions.pod:2453
26139 msgid "guestfs_grub_install"
26140 msgstr ""
26141
26142 #. type: verbatim
26143 #: ../src/guestfs-actions.pod:2455
26144 #, no-wrap
26145 msgid ""
26146 " int\n"
26147 " guestfs_grub_install (guestfs_h *g,\n"
26148 "                       const char *root,\n"
26149 "                       const char *device);\n"
26150 "\n"
26151 msgstr ""
26152
26153 #. type: textblock
26154 #: ../src/guestfs-actions.pod:2498
26155 msgid "(Added in 1.0.17)"
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../src/guestfs-actions.pod:2500
26160 msgid "guestfs_head"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../src/guestfs-actions.pod:2502
26165 #, no-wrap
26166 msgid ""
26167 " char **\n"
26168 " guestfs_head (guestfs_h *g,\n"
26169 "               const char *path);\n"
26170 "\n"
26171 msgstr ""
26172
26173 #. type: =head2
26174 #: ../src/guestfs-actions.pod:2518
26175 msgid "guestfs_head_n"
26176 msgstr ""
26177
26178 #. type: verbatim
26179 #: ../src/guestfs-actions.pod:2520
26180 #, no-wrap
26181 msgid ""
26182 " char **\n"
26183 " guestfs_head_n (guestfs_h *g,\n"
26184 "                 int nrlines,\n"
26185 "                 const char *path);\n"
26186 "\n"
26187 msgstr ""
26188
26189 #. type: =head2
26190 #: ../src/guestfs-actions.pod:2542
26191 msgid "guestfs_hexdump"
26192 msgstr ""
26193
26194 #. type: verbatim
26195 #: ../src/guestfs-actions.pod:2544
26196 #, no-wrap
26197 msgid ""
26198 " char *\n"
26199 " guestfs_hexdump (guestfs_h *g,\n"
26200 "                  const char *path);\n"
26201 "\n"
26202 msgstr ""
26203
26204 #. type: textblock
26205 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953 ../src/guestfs-actions.pod:7008
26206 msgid "(Added in 1.0.22)"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:2559
26211 msgid "guestfs_initrd_cat"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:2561
26216 #, no-wrap
26217 msgid ""
26218 " char *\n"
26219 " guestfs_initrd_cat (guestfs_h *g,\n"
26220 "                     const char *initrdpath,\n"
26221 "                     const char *filename,\n"
26222 "                     size_t *size_r);\n"
26223 "\n"
26224 msgstr ""
26225
26226 #. type: textblock
26227 #: ../src/guestfs-actions.pod:2577
26228 msgid "See also C<guestfs_initrd_list>."
26229 msgstr ""
26230
26231 #. type: =head2
26232 #: ../src/guestfs-actions.pod:2588
26233 msgid "guestfs_initrd_list"
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:2590
26238 #, no-wrap
26239 msgid ""
26240 " char **\n"
26241 " guestfs_initrd_list (guestfs_h *g,\n"
26242 "                      const char *path);\n"
26243 "\n"
26244 msgstr ""
26245
26246 #. type: =head2
26247 #: ../src/guestfs-actions.pod:2610
26248 msgid "guestfs_inotify_add_watch"
26249 msgstr ""
26250
26251 #. type: verbatim
26252 #: ../src/guestfs-actions.pod:2612
26253 #, no-wrap
26254 msgid ""
26255 " int64_t\n"
26256 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26257 "                            const char *path,\n"
26258 "                            int mask);\n"
26259 "\n"
26260 msgstr ""
26261
26262 #. type: =head2
26263 #: ../src/guestfs-actions.pod:2631
26264 msgid "guestfs_inotify_close"
26265 msgstr ""
26266
26267 #. type: verbatim
26268 #: ../src/guestfs-actions.pod:2633
26269 #, no-wrap
26270 msgid ""
26271 " int\n"
26272 " guestfs_inotify_close (guestfs_h *g);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: =head2
26277 #: ../src/guestfs-actions.pod:2644
26278 msgid "guestfs_inotify_files"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../src/guestfs-actions.pod:2646
26283 #, no-wrap
26284 msgid ""
26285 " char **\n"
26286 " guestfs_inotify_files (guestfs_h *g);\n"
26287 "\n"
26288 msgstr ""
26289
26290 #. type: textblock
26291 #: ../src/guestfs-actions.pod:2649
26292 msgid ""
26293 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26294 "returns a list of pathnames of objects that were touched.  The returned "
26295 "pathnames are sorted and deduplicated."
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:2659
26300 msgid "guestfs_inotify_init"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:2661
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_inotify_init (guestfs_h *g,\n"
26309 "                       int maxevents);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: textblock
26314 #: ../src/guestfs-actions.pod:2669
26315 msgid ""
26316 "C<maxevents> is the maximum number of events which will be queued up between "
26317 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26318 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26319 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26320 "throws away events, but records the fact that it threw them away by setting "
26321 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26322 "C<guestfs_inotify_read>)."
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:2679
26327 msgid ""
26328 "Before any events are generated, you have to add some watches to the "
26329 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26330 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26331 msgstr ""
26332
26333 #. type: textblock
26334 #: ../src/guestfs-actions.pod:2685
26335 msgid ""
26336 "Queued up events should be read periodically by calling "
26337 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26338 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26339 "often enough then you risk the internal queue overflowing."
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:2692
26344 msgid ""
26345 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26346 "This also removes any watches automatically."
26347 msgstr ""
26348
26349 #. type: =head2
26350 #: ../src/guestfs-actions.pod:2705
26351 msgid "guestfs_inotify_read"
26352 msgstr ""
26353
26354 #. type: verbatim
26355 #: ../src/guestfs-actions.pod:2707
26356 #, no-wrap
26357 msgid ""
26358 " struct guestfs_inotify_event_list *\n"
26359 " guestfs_inotify_read (guestfs_h *g);\n"
26360 "\n"
26361 msgstr ""
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:2721
26365 msgid ""
26366 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26367 "there was an error.  I<The caller must call "
26368 "C<guestfs_free_inotify_event_list> after use>."
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:2727
26373 msgid "guestfs_inotify_rm_watch"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:2729
26378 #, no-wrap
26379 msgid ""
26380 " int\n"
26381 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26382 "                           int wd);\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: textblock
26387 #: ../src/guestfs-actions.pod:2733
26388 msgid ""
26389 "Remove a previously defined inotify watch.  See "
26390 "C<guestfs_inotify_add_watch>."
26391 msgstr ""
26392
26393 #. type: =head2
26394 #: ../src/guestfs-actions.pod:2740
26395 msgid "guestfs_inspect_get_arch"
26396 msgstr ""
26397
26398 #. type: verbatim
26399 #: ../src/guestfs-actions.pod:2742
26400 #, no-wrap
26401 msgid ""
26402 " char *\n"
26403 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26404 "                           const char *root);\n"
26405 "\n"
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:2746
26410 msgid ""
26411 "This returns the architecture of the inspected operating system.  The "
26412 "possible return values are listed under C<guestfs_file_architecture>."
26413 msgstr ""
26414
26415 #. type: =head2
26416 #: ../src/guestfs-actions.pod:2760
26417 msgid "guestfs_inspect_get_distro"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../src/guestfs-actions.pod:2762
26422 #, no-wrap
26423 msgid ""
26424 " char *\n"
26425 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26426 "                             const char *root);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: =head2
26431 #: ../src/guestfs-actions.pod:2862
26432 msgid "guestfs_inspect_get_drive_mappings"
26433 msgstr ""
26434
26435 #. type: verbatim
26436 #: ../src/guestfs-actions.pod:2864
26437 #, no-wrap
26438 msgid ""
26439 " char **\n"
26440 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26441 "                                     const char *root);\n"
26442 "\n"
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:2893
26447 msgid ""
26448 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26449 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:7310
26454 msgid ""
26455 "This function returns a NULL-terminated array of strings, or NULL if there "
26456 "was an error.  The array of strings will always have length C<2n+1>, where "
26457 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26458 "caller must free the strings and the array after use>."
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
26463 msgid "(Added in 1.9.17)"
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:2905
26468 msgid "guestfs_inspect_get_filesystems"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:2907
26473 #, no-wrap
26474 msgid ""
26475 " char **\n"
26476 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26477 "                                  const char *root);\n"
26478 "\n"
26479 msgstr ""
26480
26481 #. type: textblock
26482 #: ../src/guestfs-actions.pod:2919
26483 msgid ""
26484 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26485 "C<guestfs_inspect_get_mountpoints>."
26486 msgstr ""
26487
26488 #. type: =head2
26489 #: ../src/guestfs-actions.pod:2928
26490 msgid "guestfs_inspect_get_format"
26491 msgstr ""
26492
26493 #. type: verbatim
26494 #: ../src/guestfs-actions.pod:2930
26495 #, no-wrap
26496 msgid ""
26497 " char *\n"
26498 " guestfs_inspect_get_format (guestfs_h *g,\n"
26499 "                             const char *root);\n"
26500 "\n"
26501 msgstr ""
26502
26503 #. type: textblock
26504 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:6190
26505 msgid "(Added in 1.9.4)"
26506 msgstr ""
26507
26508 #. type: =head2
26509 #: ../src/guestfs-actions.pod:2966
26510 msgid "guestfs_inspect_get_hostname"
26511 msgstr ""
26512
26513 #. type: verbatim
26514 #: ../src/guestfs-actions.pod:2968
26515 #, no-wrap
26516 msgid ""
26517 " char *\n"
26518 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26519 "                               const char *root);\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: textblock
26524 #: ../src/guestfs-actions.pod:2983
26525 msgid "(Added in 1.7.9)"
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:2985
26530 msgid "guestfs_inspect_get_icon"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:2987
26535 #, no-wrap
26536 msgid ""
26537 " char *\n"
26538 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26539 "                           const char *root,\n"
26540 "                           size_t *size_r,\n"
26541 "                           ...);\n"
26542 "\n"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:2998
26547 #, no-wrap
26548 msgid ""
26549 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26550 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:5139
26556 msgid "(Added in 1.11.12)"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:3067
26561 msgid "guestfs_inspect_get_icon_va"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:3069
26566 #, no-wrap
26567 msgid ""
26568 " char *\n"
26569 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26570 "                              const char *root,\n"
26571 "                              size_t *size_r,\n"
26572 "                              va_list args);\n"
26573 "\n"
26574 msgstr ""
26575
26576 #. type: textblock
26577 #: ../src/guestfs-actions.pod:3075
26578 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:3079
26583 msgid "guestfs_inspect_get_icon_argv"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:3081
26588 #, no-wrap
26589 msgid ""
26590 " char *\n"
26591 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26592 "                                const char *root,\n"
26593 "                                size_t *size_r,\n"
26594 "                                const struct guestfs_inspect_get_icon_argv "
26595 "*optargs);\n"
26596 "\n"
26597 msgstr ""
26598
26599 #. type: textblock
26600 #: ../src/guestfs-actions.pod:3087
26601 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26602 msgstr ""
26603
26604 #. type: =head2
26605 #: ../src/guestfs-actions.pod:3091
26606 msgid "guestfs_inspect_get_major_version"
26607 msgstr ""
26608
26609 #. type: verbatim
26610 #: ../src/guestfs-actions.pod:3093
26611 #, no-wrap
26612 msgid ""
26613 " int\n"
26614 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26615 "                                    const char *root);\n"
26616 "\n"
26617 msgstr ""
26618
26619 #. type: =head2
26620 #: ../src/guestfs-actions.pod:3115
26621 msgid "guestfs_inspect_get_minor_version"
26622 msgstr ""
26623
26624 #. type: verbatim
26625 #: ../src/guestfs-actions.pod:3117
26626 #, no-wrap
26627 msgid ""
26628 " int\n"
26629 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26630 "                                    const char *root);\n"
26631 "\n"
26632 msgstr ""
26633
26634 #. type: textblock
26635 #: ../src/guestfs-actions.pod:3126
26636 msgid ""
26637 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26638 "C<guestfs_inspect_get_major_version>."
26639 msgstr ""
26640
26641 #. type: =head2
26642 #: ../src/guestfs-actions.pod:3133
26643 msgid "guestfs_inspect_get_mountpoints"
26644 msgstr ""
26645
26646 #. type: verbatim
26647 #: ../src/guestfs-actions.pod:3135
26648 #, no-wrap
26649 msgid ""
26650 " char **\n"
26651 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26652 "                                  const char *root);\n"
26653 "\n"
26654 msgstr ""
26655
26656 #. type: textblock
26657 #: ../src/guestfs-actions.pod:3156
26658 msgid ""
26659 "For operating systems like Windows which still use drive letters, this call "
26660 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26661 "information about the mapping of drive letters to partitions, see "
26662 "C<guestfs_inspect_get_drive_mappings>."
26663 msgstr ""
26664
26665 #. type: textblock
26666 #: ../src/guestfs-actions.pod:3162
26667 msgid ""
26668 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26669 "C<guestfs_inspect_get_filesystems>."
26670 msgstr ""
26671
26672 #. type: =head2
26673 #: ../src/guestfs-actions.pod:3173
26674 msgid "guestfs_inspect_get_package_format"
26675 msgstr ""
26676
26677 #. type: verbatim
26678 #: ../src/guestfs-actions.pod:3175
26679 #, no-wrap
26680 msgid ""
26681 " char *\n"
26682 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26683 "                                     const char *root);\n"
26684 "\n"
26685 msgstr ""
26686
26687 #. type: textblock
26688 #: ../src/guestfs-actions.pod:3179
26689 msgid ""
26690 "This function and C<guestfs_inspect_get_package_management> return the "
26691 "package format and package management tool used by the inspected operating "
26692 "system.  For example for Fedora these functions would return C<rpm> (package "
26693 "format) and C<yum> (package management)."
26694 msgstr ""
26695
26696 #. type: textblock
26697 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
26698 msgid "(Added in 1.7.5)"
26699 msgstr ""
26700
26701 #. type: =head2
26702 #: ../src/guestfs-actions.pod:3200
26703 msgid "guestfs_inspect_get_package_management"
26704 msgstr ""
26705
26706 #. type: verbatim
26707 #: ../src/guestfs-actions.pod:3202
26708 #, no-wrap
26709 msgid ""
26710 " char *\n"
26711 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26712 "                                         const char *root);\n"
26713 "\n"
26714 msgstr ""
26715
26716 #. type: textblock
26717 #: ../src/guestfs-actions.pod:3206
26718 msgid ""
26719 "C<guestfs_inspect_get_package_format> and this function return the package "
26720 "format and package management tool used by the inspected operating system.  "
26721 "For example for Fedora these functions would return C<rpm> (package format) "
26722 "and C<yum> (package management)."
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../src/guestfs-actions.pod:3228
26727 msgid "guestfs_inspect_get_product_name"
26728 msgstr ""
26729
26730 #. type: verbatim
26731 #: ../src/guestfs-actions.pod:3230
26732 #, no-wrap
26733 msgid ""
26734 " char *\n"
26735 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26736 "                                   const char *root);\n"
26737 "\n"
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:3249
26742 msgid "guestfs_inspect_get_product_variant"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:3251
26747 #, no-wrap
26748 msgid ""
26749 " char *\n"
26750 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26751 "                                      const char *root);\n"
26752 "\n"
26753 msgstr ""
26754
26755 #. type: textblock
26756 #: ../src/guestfs-actions.pod:3274
26757 msgid ""
26758 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26759 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26760 msgstr ""
26761
26762 #. type: textblock
26763 #: ../src/guestfs-actions.pod:3281
26764 msgid "(Added in 1.9.13)"
26765 msgstr ""
26766
26767 #. type: =head2
26768 #: ../src/guestfs-actions.pod:3283
26769 msgid "guestfs_inspect_get_roots"
26770 msgstr ""
26771
26772 #. type: verbatim
26773 #: ../src/guestfs-actions.pod:3285
26774 #, no-wrap
26775 msgid ""
26776 " char **\n"
26777 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26778 "\n"
26779 msgstr ""
26780
26781 #. type: textblock
26782 #: ../src/guestfs-actions.pod:3288
26783 msgid ""
26784 "This function is a convenient way to get the list of root devices, as "
26785 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26786 "the whole inspection process."
26787 msgstr ""
26788
26789 #. type: textblock
26790 #: ../src/guestfs-actions.pod:3292
26791 msgid ""
26792 "This returns an empty list if either no root devices were found or the "
26793 "caller has not called C<guestfs_inspect_os>."
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../src/guestfs-actions.pod:3301
26798 msgid "(Added in 1.7.3)"
26799 msgstr ""
26800
26801 #. type: =head2
26802 #: ../src/guestfs-actions.pod:3303
26803 msgid "guestfs_inspect_get_type"
26804 msgstr ""
26805
26806 #. type: verbatim
26807 #: ../src/guestfs-actions.pod:3305
26808 #, no-wrap
26809 msgid ""
26810 " char *\n"
26811 " guestfs_inspect_get_type (guestfs_h *g,\n"
26812 "                           const char *root);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:3346
26818 msgid "guestfs_inspect_get_windows_current_control_set"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:3348
26823 #, no-wrap
26824 msgid ""
26825 " char *\n"
26826 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26827 "                                                  const char *root);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: =head2
26832 #: ../src/guestfs-actions.pod:3366
26833 msgid "guestfs_inspect_get_windows_systemroot"
26834 msgstr ""
26835
26836 #. type: verbatim
26837 #: ../src/guestfs-actions.pod:3368
26838 #, no-wrap
26839 msgid ""
26840 " char *\n"
26841 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26842 "                                         const char *root);\n"
26843 "\n"
26844 msgstr ""
26845
26846 #. type: textblock
26847 #: ../src/guestfs-actions.pod:3384
26848 msgid "(Added in 1.5.25)"
26849 msgstr ""
26850
26851 #. type: =head2
26852 #: ../src/guestfs-actions.pod:3386
26853 msgid "guestfs_inspect_is_live"
26854 msgstr ""
26855
26856 #. type: verbatim
26857 #: ../src/guestfs-actions.pod:3388
26858 #, no-wrap
26859 msgid ""
26860 " int\n"
26861 " guestfs_inspect_is_live (guestfs_h *g,\n"
26862 "                          const char *root);\n"
26863 "\n"
26864 msgstr ""
26865
26866 #. type: textblock
26867 #: ../src/guestfs-actions.pod:3392
26868 msgid ""
26869 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26870 "disk), then this returns true if a live image was detected on the disk."
26871 msgstr ""
26872
26873 #. type: =head2
26874 #: ../src/guestfs-actions.pod:3402
26875 msgid "guestfs_inspect_is_multipart"
26876 msgstr ""
26877
26878 #. type: verbatim
26879 #: ../src/guestfs-actions.pod:3404
26880 #, no-wrap
26881 msgid ""
26882 " int\n"
26883 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26884 "                               const char *root);\n"
26885 "\n"
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:3408
26890 msgid ""
26891 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26892 "disk), then this returns true if the disk is part of a set."
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:3418
26897 msgid "guestfs_inspect_is_netinst"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:3420
26902 #, no-wrap
26903 msgid ""
26904 " int\n"
26905 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26906 "                             const char *root);\n"
26907 "\n"
26908 msgstr ""
26909
26910 #. type: textblock
26911 #: ../src/guestfs-actions.pod:3424
26912 msgid ""
26913 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26914 "disk), then this returns true if the disk is a network installer, ie. not a "
26915 "self-contained install CD but one which is likely to require network access "
26916 "to complete the install."
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:3436
26921 msgid "guestfs_inspect_list_applications"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:3438
26926 #, no-wrap
26927 msgid ""
26928 " struct guestfs_application_list *\n"
26929 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26930 "                                    const char *root);\n"
26931 "\n"
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:3444
26936 msgid ""
26937 "I<Note:> This call works differently from other parts of the inspection "
26938 "API.  You have to call C<guestfs_inspect_os>, then "
26939 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26940 "this.  Listing applications is a significantly more difficult operation "
26941 "which requires access to the full filesystem.  Also note that unlike the "
26942 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26943 "the libguestfs handle, this call actually reads parts of the mounted "
26944 "filesystems during the call."
26945 msgstr ""
26946
26947 #. type: textblock
26948 #: ../src/guestfs-actions.pod:3534
26949 msgid ""
26950 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26951 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26952 "after use>."
26953 msgstr ""
26954
26955 #. type: textblock
26956 #: ../src/guestfs-actions.pod:3538
26957 msgid "(Added in 1.7.8)"
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../src/guestfs-actions.pod:3540
26962 msgid "guestfs_inspect_os"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../src/guestfs-actions.pod:3542
26967 #, no-wrap
26968 msgid ""
26969 " char **\n"
26970 " guestfs_inspect_os (guestfs_h *g);\n"
26971 "\n"
26972 msgstr ""
26973
26974 #. type: textblock
26975 #: ../src/guestfs-actions.pod:3558
26976 msgid ""
26977 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26978 "functions in order to query further information about each operating system, "
26979 "such as the name and version."
26980 msgstr ""
26981
26982 #. type: textblock
26983 #: ../src/guestfs-actions.pod:3563
26984 msgid ""
26985 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26986 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26987 "the contents.  This should be called with no disks currently mounted.  The "
26988 "function may also use Augeas, so any existing Augeas handle will be closed."
26989 msgstr ""
26990
26991 #. type: textblock
26992 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3988
26993 msgid "See also C<guestfs_list_filesystems>."
26994 msgstr ""
26995
26996 #. type: =head2
26997 #: ../src/guestfs-actions.pod:3583
26998 msgid "guestfs_is_blockdev"
26999 msgstr ""
27000
27001 #. type: verbatim
27002 #: ../src/guestfs-actions.pod:3585
27003 #, no-wrap
27004 msgid ""
27005 " int\n"
27006 " guestfs_is_blockdev (guestfs_h *g,\n"
27007 "                      const char *path);\n"
27008 "\n"
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3753
27013 msgid "See also C<guestfs_stat>."
27014 msgstr ""
27015
27016 #. type: textblock
27017 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742 ../src/guestfs-actions.pod:3757
27018 msgid "(Added in 1.5.10)"
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../src/guestfs-actions.pod:3598
27023 msgid "guestfs_is_busy"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:3600
27028 #, no-wrap
27029 msgid ""
27030 " int\n"
27031 " guestfs_is_busy (guestfs_h *g);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: =head2
27036 #: ../src/guestfs-actions.pod:3612
27037 msgid "guestfs_is_chardev"
27038 msgstr ""
27039
27040 #. type: verbatim
27041 #: ../src/guestfs-actions.pod:3614
27042 #, no-wrap
27043 msgid ""
27044 " int\n"
27045 " guestfs_is_chardev (guestfs_h *g,\n"
27046 "                     const char *path);\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: =head2
27051 #: ../src/guestfs-actions.pod:3627
27052 msgid "guestfs_is_config"
27053 msgstr ""
27054
27055 #. type: verbatim
27056 #: ../src/guestfs-actions.pod:3629
27057 #, no-wrap
27058 msgid ""
27059 " int\n"
27060 " guestfs_is_config (guestfs_h *g);\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../src/guestfs-actions.pod:3641
27066 msgid "guestfs_is_dir"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../src/guestfs-actions.pod:3643
27071 #, no-wrap
27072 msgid ""
27073 " int\n"
27074 " guestfs_is_dir (guestfs_h *g,\n"
27075 "                 const char *path);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: =head2
27080 #: ../src/guestfs-actions.pod:3657
27081 msgid "guestfs_is_fifo"
27082 msgstr ""
27083
27084 #. type: verbatim
27085 #: ../src/guestfs-actions.pod:3659
27086 #, no-wrap
27087 msgid ""
27088 " int\n"
27089 " guestfs_is_fifo (guestfs_h *g,\n"
27090 "                  const char *path);\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:3672
27096 msgid "guestfs_is_file"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:3674
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_is_file (guestfs_h *g,\n"
27105 "                  const char *path);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: =head2
27110 #: ../src/guestfs-actions.pod:3688
27111 msgid "guestfs_is_launching"
27112 msgstr ""
27113
27114 #. type: verbatim
27115 #: ../src/guestfs-actions.pod:3690
27116 #, no-wrap
27117 msgid ""
27118 " int\n"
27119 " guestfs_is_launching (guestfs_h *g);\n"
27120 "\n"
27121 msgstr ""
27122
27123 #. type: =head2
27124 #: ../src/guestfs-actions.pod:3702
27125 msgid "guestfs_is_lv"
27126 msgstr ""
27127
27128 #. type: verbatim
27129 #: ../src/guestfs-actions.pod:3704
27130 #, no-wrap
27131 msgid ""
27132 " int\n"
27133 " guestfs_is_lv (guestfs_h *g,\n"
27134 "                const char *device);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: =head2
27139 #: ../src/guestfs-actions.pod:3715
27140 msgid "guestfs_is_ready"
27141 msgstr ""
27142
27143 #. type: verbatim
27144 #: ../src/guestfs-actions.pod:3717
27145 #, no-wrap
27146 msgid ""
27147 " int\n"
27148 " guestfs_is_ready (guestfs_h *g);\n"
27149 "\n"
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../src/guestfs-actions.pod:3729
27154 msgid "guestfs_is_socket"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../src/guestfs-actions.pod:3731
27159 #, no-wrap
27160 msgid ""
27161 " int\n"
27162 " guestfs_is_socket (guestfs_h *g,\n"
27163 "                    const char *path);\n"
27164 "\n"
27165 msgstr ""
27166
27167 #. type: =head2
27168 #: ../src/guestfs-actions.pod:3744
27169 msgid "guestfs_is_symlink"
27170 msgstr ""
27171
27172 #. type: verbatim
27173 #: ../src/guestfs-actions.pod:3746
27174 #, no-wrap
27175 msgid ""
27176 " int\n"
27177 " guestfs_is_symlink (guestfs_h *g,\n"
27178 "                     const char *path);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: =head2
27183 #: ../src/guestfs-actions.pod:3759
27184 msgid "guestfs_is_zero"
27185 msgstr ""
27186
27187 #. type: verbatim
27188 #: ../src/guestfs-actions.pod:3761
27189 #, no-wrap
27190 msgid ""
27191 " int\n"
27192 " guestfs_is_zero (guestfs_h *g,\n"
27193 "                  const char *path);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
27199 msgid "(Added in 1.11.8)"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:3772
27204 msgid "guestfs_is_zero_device"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:3774
27209 #, no-wrap
27210 msgid ""
27211 " int\n"
27212 " guestfs_is_zero_device (guestfs_h *g,\n"
27213 "                         const char *device);\n"
27214 "\n"
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../src/guestfs-actions.pod:3786
27219 msgid "guestfs_kill_subprocess"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../src/guestfs-actions.pod:3788
27224 #, no-wrap
27225 msgid ""
27226 " int\n"
27227 " guestfs_kill_subprocess (guestfs_h *g);\n"
27228 "\n"
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:3797
27233 msgid "guestfs_launch"
27234 msgstr ""
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:3799
27238 #, no-wrap
27239 msgid ""
27240 " int\n"
27241 " guestfs_launch (guestfs_h *g);\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: =head2
27246 #: ../src/guestfs-actions.pod:3817
27247 msgid "guestfs_lchown"
27248 msgstr ""
27249
27250 #. type: verbatim
27251 #: ../src/guestfs-actions.pod:3819
27252 #, no-wrap
27253 msgid ""
27254 " int\n"
27255 " guestfs_lchown (guestfs_h *g,\n"
27256 "                 int owner,\n"
27257 "                 int group,\n"
27258 "                 const char *path);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: textblock
27263 #: ../src/guestfs-actions.pod:3825
27264 msgid ""
27265 "Change the file owner to C<owner> and group to C<group>.  This is like "
27266 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27267 "changed, not the target."
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:3837
27272 msgid "guestfs_lgetxattr"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:3839
27277 #, no-wrap
27278 msgid ""
27279 " char *\n"
27280 " guestfs_lgetxattr (guestfs_h *g,\n"
27281 "                    const char *path,\n"
27282 "                    const char *name,\n"
27283 "                    size_t *size_r);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:3859
27289 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:3867
27294 msgid "guestfs_lgetxattrs"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:3869
27299 #, no-wrap
27300 msgid ""
27301 " struct guestfs_xattr_list *\n"
27302 " guestfs_lgetxattrs (guestfs_h *g,\n"
27303 "                     const char *path);\n"
27304 "\n"
27305 msgstr ""
27306
27307 #. type: textblock
27308 #: ../src/guestfs-actions.pod:3873
27309 msgid ""
27310 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27311 "then it returns the extended attributes of the link itself."
27312 msgstr ""
27313
27314 #. type: =head2
27315 #: ../src/guestfs-actions.pod:3883
27316 msgid "guestfs_list_9p"
27317 msgstr ""
27318
27319 #. type: verbatim
27320 #: ../src/guestfs-actions.pod:3885
27321 #, no-wrap
27322 msgid ""
27323 " char **\n"
27324 " guestfs_list_9p (guestfs_h *g);\n"
27325 "\n"
27326 msgstr ""
27327
27328 #. type: =head2
27329 #: ../src/guestfs-actions.pod:3897
27330 msgid "guestfs_list_devices"
27331 msgstr ""
27332
27333 #. type: verbatim
27334 #: ../src/guestfs-actions.pod:3899
27335 #, no-wrap
27336 msgid ""
27337 " char **\n"
27338 " guestfs_list_devices (guestfs_h *g);\n"
27339 "\n"
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:3914
27344 msgid "guestfs_list_dm_devices"
27345 msgstr ""
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:3916
27349 #, no-wrap
27350 msgid ""
27351 " char **\n"
27352 " guestfs_list_dm_devices (guestfs_h *g);\n"
27353 "\n"
27354 msgstr ""
27355
27356 #. type: textblock
27357 #: ../src/guestfs-actions.pod:3921
27358 msgid ""
27359 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27360 "previous call to C<guestfs_luks_open>."
27361 msgstr ""
27362
27363 #. type: textblock
27364 #: ../src/guestfs-actions.pod:3924
27365 msgid ""
27366 "Device mapper devices which correspond to logical volumes are I<not> "
27367 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27368 "volumes."
27369 msgstr ""
27370
27371 #. type: textblock
27372 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
27373 msgid "(Added in 1.11.15)"
27374 msgstr ""
27375
27376 #. type: =head2
27377 #: ../src/guestfs-actions.pod:3934
27378 msgid "guestfs_list_filesystems"
27379 msgstr ""
27380
27381 #. type: verbatim
27382 #: ../src/guestfs-actions.pod:3936
27383 #, no-wrap
27384 msgid ""
27385 " char **\n"
27386 " guestfs_list_filesystems (guestfs_h *g);\n"
27387 "\n"
27388 msgstr ""
27389
27390 #. type: textblock
27391 #: ../src/guestfs-actions.pod:3956
27392 msgid ""
27393 "This command runs other libguestfs commands, which might include "
27394 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27395 "soon after launch and only when nothing is mounted."
27396 msgstr ""
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:3960
27400 msgid ""
27401 "Not all of the filesystems returned will be mountable.  In particular, swap "
27402 "partitions are returned in the list.  Also this command does not check that "
27403 "each filesystem found is valid and mountable, and some filesystems might be "
27404 "mountable but require special options.  Filesystems may not all belong to a "
27405 "single logical operating system (use C<guestfs_inspect_os> to look for "
27406 "OSes)."
27407 msgstr ""
27408
27409 #. type: textblock
27410 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
27411 msgid "(Added in 1.5.15)"
27412 msgstr ""
27413
27414 #. type: =head2
27415 #: ../src/guestfs-actions.pod:3976
27416 msgid "guestfs_list_partitions"
27417 msgstr ""
27418
27419 #. type: verbatim
27420 #: ../src/guestfs-actions.pod:3978
27421 #, no-wrap
27422 msgid ""
27423 " char **\n"
27424 " guestfs_list_partitions (guestfs_h *g);\n"
27425 "\n"
27426 msgstr ""
27427
27428 #. type: textblock
27429 #: ../src/guestfs-actions.pod:3985
27430 msgid ""
27431 "This does not return logical volumes.  For that you will need to call "
27432 "C<guestfs_lvs>."
27433 msgstr ""
27434
27435 #. type: =head2
27436 #: ../src/guestfs-actions.pod:3996
27437 msgid "guestfs_ll"
27438 msgstr ""
27439
27440 #. type: verbatim
27441 #: ../src/guestfs-actions.pod:3998
27442 #, no-wrap
27443 msgid ""
27444 " char *\n"
27445 " guestfs_ll (guestfs_h *g,\n"
27446 "             const char *directory);\n"
27447 "\n"
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:4013
27452 msgid "guestfs_ln"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:4015
27457 #, no-wrap
27458 msgid ""
27459 " int\n"
27460 " guestfs_ln (guestfs_h *g,\n"
27461 "             const char *target,\n"
27462 "             const char *linkname);\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: =head2
27467 #: ../src/guestfs-actions.pod:4026
27468 msgid "guestfs_ln_f"
27469 msgstr ""
27470
27471 #. type: verbatim
27472 #: ../src/guestfs-actions.pod:4028
27473 #, no-wrap
27474 msgid ""
27475 " int\n"
27476 " guestfs_ln_f (guestfs_h *g,\n"
27477 "               const char *target,\n"
27478 "               const char *linkname);\n"
27479 "\n"
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:4040
27484 msgid "guestfs_ln_s"
27485 msgstr ""
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:4042
27489 #, no-wrap
27490 msgid ""
27491 " int\n"
27492 " guestfs_ln_s (guestfs_h *g,\n"
27493 "               const char *target,\n"
27494 "               const char *linkname);\n"
27495 "\n"
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:4053
27500 msgid "guestfs_ln_sf"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:4055
27505 #, no-wrap
27506 msgid ""
27507 " int\n"
27508 " guestfs_ln_sf (guestfs_h *g,\n"
27509 "                const char *target,\n"
27510 "                const char *linkname);\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: =head2
27515 #: ../src/guestfs-actions.pod:4067
27516 msgid "guestfs_lremovexattr"
27517 msgstr ""
27518
27519 #. type: verbatim
27520 #: ../src/guestfs-actions.pod:4069
27521 #, no-wrap
27522 msgid ""
27523 " int\n"
27524 " guestfs_lremovexattr (guestfs_h *g,\n"
27525 "                       const char *xattr,\n"
27526 "                       const char *path);\n"
27527 "\n"
27528 msgstr ""
27529
27530 #. type: textblock
27531 #: ../src/guestfs-actions.pod:4074
27532 msgid ""
27533 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27534 "link, then it removes an extended attribute of the link itself."
27535 msgstr ""
27536
27537 #. type: =head2
27538 #: ../src/guestfs-actions.pod:4082
27539 msgid "guestfs_ls"
27540 msgstr ""
27541
27542 #. type: verbatim
27543 #: ../src/guestfs-actions.pod:4084
27544 #, no-wrap
27545 msgid ""
27546 " char **\n"
27547 " guestfs_ls (guestfs_h *g,\n"
27548 "             const char *directory);\n"
27549 "\n"
27550 msgstr ""
27551
27552 #. type: textblock
27553 #: ../src/guestfs-actions.pod:4092
27554 msgid ""
27555 "This command is mostly useful for interactive sessions.  Programs should "
27556 "probably use C<guestfs_readdir> instead."
27557 msgstr ""
27558
27559 #. type: =head2
27560 #: ../src/guestfs-actions.pod:4101
27561 msgid "guestfs_lsetxattr"
27562 msgstr ""
27563
27564 #. type: verbatim
27565 #: ../src/guestfs-actions.pod:4103
27566 #, no-wrap
27567 msgid ""
27568 " int\n"
27569 " guestfs_lsetxattr (guestfs_h *g,\n"
27570 "                    const char *xattr,\n"
27571 "                    const char *val,\n"
27572 "                    int vallen,\n"
27573 "                    const char *path);\n"
27574 "\n"
27575 msgstr ""
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:4110
27579 msgid ""
27580 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27581 "then it sets an extended attribute of the link itself."
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:4118
27586 msgid "guestfs_lstat"
27587 msgstr ""
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:4120
27591 #, no-wrap
27592 msgid ""
27593 " struct guestfs_stat *\n"
27594 " guestfs_lstat (guestfs_h *g,\n"
27595 "                const char *path);\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:4126
27601 msgid ""
27602 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27603 "link, then the link is stat-ed, not the file it refers to."
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
27608 msgid ""
27609 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27610 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917 ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
27615 msgid "(Added in 0.9.2)"
27616 msgstr ""
27617
27618 #. type: =head2
27619 #: ../src/guestfs-actions.pod:4138
27620 msgid "guestfs_lstatlist"
27621 msgstr ""
27622
27623 #. type: verbatim
27624 #: ../src/guestfs-actions.pod:4140
27625 #, no-wrap
27626 msgid ""
27627 " struct guestfs_stat_list *\n"
27628 " guestfs_lstatlist (guestfs_h *g,\n"
27629 "                    const char *path,\n"
27630 "                    char *const *names);\n"
27631 "\n"
27632 msgstr ""
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:4145
27636 msgid ""
27637 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27638 "files, where all files are in the directory C<path>.  C<names> is the list "
27639 "of files from this directory."
27640 msgstr ""
27641
27642 #. type: textblock
27643 #: ../src/guestfs-actions.pod:4154
27644 msgid ""
27645 "This call is intended for programs that want to efficiently list a directory "
27646 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27647 "for a similarly efficient call for getting extended attributes.  Very long "
27648 "directory listings might cause the protocol message size to be exceeded, "
27649 "causing this call to fail.  The caller must split up such requests into "
27650 "smaller groups of names."
27651 msgstr ""
27652
27653 #. type: textblock
27654 #: ../src/guestfs-actions.pod:4162
27655 msgid ""
27656 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27657 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27658 msgstr ""
27659
27660 #. type: =head2
27661 #: ../src/guestfs-actions.pod:4168
27662 msgid "guestfs_luks_add_key"
27663 msgstr ""
27664
27665 #. type: verbatim
27666 #: ../src/guestfs-actions.pod:4170
27667 #, no-wrap
27668 msgid ""
27669 " int\n"
27670 " guestfs_luks_add_key (guestfs_h *g,\n"
27671 "                       const char *device,\n"
27672 "                       const char *key,\n"
27673 "                       const char *newkey,\n"
27674 "                       int keyslot);\n"
27675 "\n"
27676 msgstr ""
27677
27678 #. type: textblock
27679 #: ../src/guestfs-actions.pod:4182
27680 msgid ""
27681 "Note that if C<keyslot> already contains a key, then this command will "
27682 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27683 msgstr ""
27684
27685 #. type: textblock
27686 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
27687 msgid ""
27688 "This function takes a key or passphrase parameter which could contain "
27689 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27690 "information."
27691 msgstr ""
27692
27693 #. type: textblock
27694 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
27695 msgid "(Added in 1.5.2)"
27696 msgstr ""
27697
27698 #. type: =head2
27699 #: ../src/guestfs-actions.pod:4194
27700 msgid "guestfs_luks_close"
27701 msgstr ""
27702
27703 #. type: verbatim
27704 #: ../src/guestfs-actions.pod:4196
27705 #, no-wrap
27706 msgid ""
27707 " int\n"
27708 " guestfs_luks_close (guestfs_h *g,\n"
27709 "                     const char *device);\n"
27710 "\n"
27711 msgstr ""
27712
27713 #. type: textblock
27714 #: ../src/guestfs-actions.pod:4200
27715 msgid ""
27716 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27717 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27718 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27719 "underlying block device."
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379 ../src/guestfs-actions.pod:4427
27724 msgid "(Added in 1.5.1)"
27725 msgstr ""
27726
27727 #. type: =head2
27728 #: ../src/guestfs-actions.pod:4210
27729 msgid "guestfs_luks_format"
27730 msgstr ""
27731
27732 #. type: verbatim
27733 #: ../src/guestfs-actions.pod:4212
27734 #, no-wrap
27735 msgid ""
27736 " int\n"
27737 " guestfs_luks_format (guestfs_h *g,\n"
27738 "                      const char *device,\n"
27739 "                      const char *key,\n"
27740 "                      int keyslot);\n"
27741 "\n"
27742 msgstr ""
27743
27744 #. type: =head2
27745 #: ../src/guestfs-actions.pod:4234
27746 msgid "guestfs_luks_format_cipher"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../src/guestfs-actions.pod:4236
27751 #, no-wrap
27752 msgid ""
27753 " int\n"
27754 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27755 "                             const char *device,\n"
27756 "                             const char *key,\n"
27757 "                             int keyslot,\n"
27758 "                             const char *cipher);\n"
27759 "\n"
27760 msgstr ""
27761
27762 #. type: textblock
27763 #: ../src/guestfs-actions.pod:4243
27764 msgid ""
27765 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27766 "set the C<cipher> used."
27767 msgstr ""
27768
27769 #. type: =head2
27770 #: ../src/guestfs-actions.pod:4257
27771 msgid "guestfs_luks_kill_slot"
27772 msgstr ""
27773
27774 #. type: verbatim
27775 #: ../src/guestfs-actions.pod:4259
27776 #, no-wrap
27777 msgid ""
27778 " int\n"
27779 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27780 "                         const char *device,\n"
27781 "                         const char *key,\n"
27782 "                         int keyslot);\n"
27783 "\n"
27784 msgstr ""
27785
27786 #. type: =head2
27787 #: ../src/guestfs-actions.pod:4277
27788 msgid "guestfs_luks_open"
27789 msgstr ""
27790
27791 #. type: verbatim
27792 #: ../src/guestfs-actions.pod:4279
27793 #, no-wrap
27794 msgid ""
27795 " int\n"
27796 " guestfs_luks_open (guestfs_h *g,\n"
27797 "                    const char *device,\n"
27798 "                    const char *key,\n"
27799 "                    const char *mapname);\n"
27800 "\n"
27801 msgstr ""
27802
27803 #. type: textblock
27804 #: ../src/guestfs-actions.pod:4297
27805 msgid ""
27806 "If this block device contains LVM volume groups, then calling "
27807 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27808 "visible."
27809 msgstr ""
27810
27811 #. type: textblock
27812 #: ../src/guestfs-actions.pod:4301
27813 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27814 msgstr ""
27815
27816 #. type: =head2
27817 #: ../src/guestfs-actions.pod:4312
27818 msgid "guestfs_luks_open_ro"
27819 msgstr ""
27820
27821 #. type: verbatim
27822 #: ../src/guestfs-actions.pod:4314
27823 #, no-wrap
27824 msgid ""
27825 " int\n"
27826 " guestfs_luks_open_ro (guestfs_h *g,\n"
27827 "                       const char *device,\n"
27828 "                       const char *key,\n"
27829 "                       const char *mapname);\n"
27830 "\n"
27831 msgstr ""
27832
27833 #. type: textblock
27834 #: ../src/guestfs-actions.pod:4320
27835 msgid ""
27836 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27837 "created."
27838 msgstr ""
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:4331
27842 msgid "guestfs_lvcreate"
27843 msgstr ""
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:4333
27847 #, no-wrap
27848 msgid ""
27849 " int\n"
27850 " guestfs_lvcreate (guestfs_h *g,\n"
27851 "                   const char *logvol,\n"
27852 "                   const char *volgroup,\n"
27853 "                   int mbytes);\n"
27854 "\n"
27855 msgstr ""
27856
27857 #. type: =head2
27858 #: ../src/guestfs-actions.pod:4346
27859 msgid "guestfs_lvm_canonical_lv_name"
27860 msgstr ""
27861
27862 #. type: verbatim
27863 #: ../src/guestfs-actions.pod:4348
27864 #, no-wrap
27865 msgid ""
27866 " char *\n"
27867 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27868 "                                const char *lvname);\n"
27869 "\n"
27870 msgstr ""
27871
27872 #. type: textblock
27873 #: ../src/guestfs-actions.pod:4359
27874 msgid "See also C<guestfs_is_lv>."
27875 msgstr ""
27876
27877 #. type: textblock
27878 #: ../src/guestfs-actions.pod:4364
27879 msgid "(Added in 1.5.24)"
27880 msgstr ""
27881
27882 #. type: =head2
27883 #: ../src/guestfs-actions.pod:4366
27884 msgid "guestfs_lvm_clear_filter"
27885 msgstr ""
27886
27887 #. type: verbatim
27888 #: ../src/guestfs-actions.pod:4368
27889 #, no-wrap
27890 msgid ""
27891 " int\n"
27892 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27893 "\n"
27894 msgstr ""
27895
27896 #. type: textblock
27897 #: ../src/guestfs-actions.pod:4371
27898 msgid ""
27899 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27900 "see every block device."
27901 msgstr ""
27902
27903 #. type: =head2
27904 #: ../src/guestfs-actions.pod:4381
27905 msgid "guestfs_lvm_remove_all"
27906 msgstr ""
27907
27908 #. type: verbatim
27909 #: ../src/guestfs-actions.pod:4383
27910 #, no-wrap
27911 msgid ""
27912 " int\n"
27913 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27914 "\n"
27915 msgstr ""
27916
27917 #. type: =head2
27918 #: ../src/guestfs-actions.pod:4396
27919 msgid "guestfs_lvm_set_filter"
27920 msgstr ""
27921
27922 #. type: verbatim
27923 #: ../src/guestfs-actions.pod:4398
27924 #, no-wrap
27925 msgid ""
27926 " int\n"
27927 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27928 "                         char *const *devices);\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: =head2
27933 #: ../src/guestfs-actions.pod:4429
27934 msgid "guestfs_lvremove"
27935 msgstr ""
27936
27937 #. type: verbatim
27938 #: ../src/guestfs-actions.pod:4431
27939 #, no-wrap
27940 msgid ""
27941 " int\n"
27942 " guestfs_lvremove (guestfs_h *g,\n"
27943 "                   const char *device);\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:7686
27949 msgid "(Added in 1.0.13)"
27950 msgstr ""
27951
27952 #. type: =head2
27953 #: ../src/guestfs-actions.pod:4445
27954 msgid "guestfs_lvrename"
27955 msgstr ""
27956
27957 #. type: verbatim
27958 #: ../src/guestfs-actions.pod:4447
27959 #, no-wrap
27960 msgid ""
27961 " int\n"
27962 " guestfs_lvrename (guestfs_h *g,\n"
27963 "                   const char *logvol,\n"
27964 "                   const char *newlogvol);\n"
27965 "\n"
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
27970 msgid "(Added in 1.0.83)"
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:4458
27975 msgid "guestfs_lvresize"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:4460
27980 #, no-wrap
27981 msgid ""
27982 " int\n"
27983 " guestfs_lvresize (guestfs_h *g,\n"
27984 "                   const char *device,\n"
27985 "                   int mbytes);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: =head2
27990 #: ../src/guestfs-actions.pod:4473
27991 msgid "guestfs_lvresize_free"
27992 msgstr ""
27993
27994 #. type: verbatim
27995 #: ../src/guestfs-actions.pod:4475
27996 #, no-wrap
27997 msgid ""
27998 " int\n"
27999 " guestfs_lvresize_free (guestfs_h *g,\n"
28000 "                        const char *lv,\n"
28001 "                        int percent);\n"
28002 "\n"
28003 msgstr ""
28004
28005 #. type: textblock
28006 #: ../src/guestfs-actions.pod:4488
28007 msgid "(Added in 1.3.3)"
28008 msgstr ""
28009
28010 #. type: =head2
28011 #: ../src/guestfs-actions.pod:4490
28012 msgid "guestfs_lvs"
28013 msgstr ""
28014
28015 #. type: verbatim
28016 #: ../src/guestfs-actions.pod:4492
28017 #, no-wrap
28018 msgid ""
28019 " char **\n"
28020 " guestfs_lvs (guestfs_h *g);\n"
28021 "\n"
28022 msgstr ""
28023
28024 #. type: textblock
28025 #: ../src/guestfs-actions.pod:4501
28026 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../src/guestfs-actions.pod:4509
28031 msgid "guestfs_lvs_full"
28032 msgstr ""
28033
28034 #. type: verbatim
28035 #: ../src/guestfs-actions.pod:4511
28036 #, no-wrap
28037 msgid ""
28038 " struct guestfs_lvm_lv_list *\n"
28039 " guestfs_lvs_full (guestfs_h *g);\n"
28040 "\n"
28041 msgstr ""
28042
28043 #. type: textblock
28044 #: ../src/guestfs-actions.pod:4517
28045 msgid ""
28046 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28047 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
28048 "use>."
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:4523
28053 msgid "guestfs_lvuuid"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:4525
28058 #, no-wrap
28059 msgid ""
28060 " char *\n"
28061 " guestfs_lvuuid (guestfs_h *g,\n"
28062 "                 const char *device);\n"
28063 "\n"
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../src/guestfs-actions.pod:4536
28068 msgid "guestfs_lxattrlist"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../src/guestfs-actions.pod:4538
28073 #, no-wrap
28074 msgid ""
28075 " struct guestfs_xattr_list *\n"
28076 " guestfs_lxattrlist (guestfs_h *g,\n"
28077 "                     const char *path,\n"
28078 "                     char *const *names);\n"
28079 "\n"
28080 msgstr ""
28081
28082 #. type: textblock
28083 #: ../src/guestfs-actions.pod:4557
28084 msgid ""
28085 "This call is intended for programs that want to efficiently list a directory "
28086 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28087 "a similarly efficient call for getting standard stats.  Very long directory "
28088 "listings might cause the protocol message size to be exceeded, causing this "
28089 "call to fail.  The caller must split up such requests into smaller groups of "
28090 "names."
28091 msgstr ""
28092
28093 #. type: =head2
28094 #: ../src/guestfs-actions.pod:4571
28095 msgid "guestfs_mkdir"
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../src/guestfs-actions.pod:4573
28100 #, no-wrap
28101 msgid ""
28102 " int\n"
28103 " guestfs_mkdir (guestfs_h *g,\n"
28104 "                const char *path);\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: =head2
28109 #: ../src/guestfs-actions.pod:4583
28110 msgid "guestfs_mkdir_mode"
28111 msgstr ""
28112
28113 #. type: verbatim
28114 #: ../src/guestfs-actions.pod:4585
28115 #, no-wrap
28116 msgid ""
28117 " int\n"
28118 " guestfs_mkdir_mode (guestfs_h *g,\n"
28119 "                     const char *path,\n"
28120 "                     int mode);\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../src/guestfs-actions.pod:4597
28126 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28127 msgstr ""
28128
28129 #. type: =head2
28130 #: ../src/guestfs-actions.pod:4603
28131 msgid "guestfs_mkdir_p"
28132 msgstr ""
28133
28134 #. type: verbatim
28135 #: ../src/guestfs-actions.pod:4605
28136 #, no-wrap
28137 msgid ""
28138 " int\n"
28139 " guestfs_mkdir_p (guestfs_h *g,\n"
28140 "                  const char *path);\n"
28141 "\n"
28142 msgstr ""
28143
28144 #. type: =head2
28145 #: ../src/guestfs-actions.pod:4616
28146 msgid "guestfs_mkdtemp"
28147 msgstr ""
28148
28149 #. type: verbatim
28150 #: ../src/guestfs-actions.pod:4618
28151 #, no-wrap
28152 msgid ""
28153 " char *\n"
28154 " guestfs_mkdtemp (guestfs_h *g,\n"
28155 "                  const char *template);\n"
28156 "\n"
28157 msgstr ""
28158
28159 #. type: =head2
28160 #: ../src/guestfs-actions.pod:4646
28161 msgid "guestfs_mke2fs_J"
28162 msgstr ""
28163
28164 #. type: verbatim
28165 #: ../src/guestfs-actions.pod:4648
28166 #, no-wrap
28167 msgid ""
28168 " int\n"
28169 " guestfs_mke2fs_J (guestfs_h *g,\n"
28170 "                   const char *fstype,\n"
28171 "                   int blocksize,\n"
28172 "                   const char *device,\n"
28173 "                   const char *journal);\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:4661
28179 msgid "See also C<guestfs_mke2journal>."
28180 msgstr ""
28181
28182 #. type: textblock
28183 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
28184 msgid "(Added in 1.0.68)"
28185 msgstr ""
28186
28187 #. type: =head2
28188 #: ../src/guestfs-actions.pod:4667
28189 msgid "guestfs_mke2fs_JL"
28190 msgstr ""
28191
28192 #. type: verbatim
28193 #: ../src/guestfs-actions.pod:4669
28194 #, no-wrap
28195 msgid ""
28196 " int\n"
28197 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28198 "                    const char *fstype,\n"
28199 "                    int blocksize,\n"
28200 "                    const char *device,\n"
28201 "                    const char *label);\n"
28202 "\n"
28203 msgstr ""
28204
28205 #. type: textblock
28206 #: ../src/guestfs-actions.pod:4679
28207 msgid "See also C<guestfs_mke2journal_L>."
28208 msgstr ""
28209
28210 #. type: =head2
28211 #: ../src/guestfs-actions.pod:4685
28212 msgid "guestfs_mke2fs_JU"
28213 msgstr ""
28214
28215 #. type: verbatim
28216 #: ../src/guestfs-actions.pod:4687
28217 #, no-wrap
28218 msgid ""
28219 " int\n"
28220 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28221 "                    const char *fstype,\n"
28222 "                    int blocksize,\n"
28223 "                    const char *device,\n"
28224 "                    const char *uuid);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:4697
28230 msgid "See also C<guestfs_mke2journal_U>."
28231 msgstr ""
28232
28233 #. type: =head2
28234 #: ../src/guestfs-actions.pod:4703
28235 msgid "guestfs_mke2journal"
28236 msgstr ""
28237
28238 #. type: verbatim
28239 #: ../src/guestfs-actions.pod:4705
28240 #, no-wrap
28241 msgid ""
28242 " int\n"
28243 " guestfs_mke2journal (guestfs_h *g,\n"
28244 "                      int blocksize,\n"
28245 "                      const char *device);\n"
28246 "\n"
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:4719
28251 msgid "guestfs_mke2journal_L"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:4721
28256 #, no-wrap
28257 msgid ""
28258 " int\n"
28259 " guestfs_mke2journal_L (guestfs_h *g,\n"
28260 "                        int blocksize,\n"
28261 "                        const char *label,\n"
28262 "                        const char *device);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: =head2
28267 #: ../src/guestfs-actions.pod:4733
28268 msgid "guestfs_mke2journal_U"
28269 msgstr ""
28270
28271 #. type: verbatim
28272 #: ../src/guestfs-actions.pod:4735
28273 #, no-wrap
28274 msgid ""
28275 " int\n"
28276 " guestfs_mke2journal_U (guestfs_h *g,\n"
28277 "                        int blocksize,\n"
28278 "                        const char *uuid,\n"
28279 "                        const char *device);\n"
28280 "\n"
28281 msgstr ""
28282
28283 #. type: =head2
28284 #: ../src/guestfs-actions.pod:4747
28285 msgid "guestfs_mkfifo"
28286 msgstr ""
28287
28288 #. type: verbatim
28289 #: ../src/guestfs-actions.pod:4749
28290 #, no-wrap
28291 msgid ""
28292 " int\n"
28293 " guestfs_mkfifo (guestfs_h *g,\n"
28294 "                 int mode,\n"
28295 "                 const char *path);\n"
28296 "\n"
28297 msgstr ""
28298
28299 #. type: textblock
28300 #: ../src/guestfs-actions.pod:4754
28301 msgid ""
28302 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28303 "is just a convenient wrapper around C<guestfs_mknod>."
28304 msgstr ""
28305
28306 #. type: =head2
28307 #: ../src/guestfs-actions.pod:4764
28308 msgid "guestfs_mkfs"
28309 msgstr ""
28310
28311 #. type: verbatim
28312 #: ../src/guestfs-actions.pod:4766
28313 #, no-wrap
28314 msgid ""
28315 " int\n"
28316 " guestfs_mkfs (guestfs_h *g,\n"
28317 "               const char *fstype,\n"
28318 "               const char *device);\n"
28319 "\n"
28320 msgstr ""
28321
28322 #. type: =head2
28323 #: ../src/guestfs-actions.pod:4779
28324 msgid "guestfs_mkfs_b"
28325 msgstr ""
28326
28327 #. type: verbatim
28328 #: ../src/guestfs-actions.pod:4781
28329 #, no-wrap
28330 msgid ""
28331 " int\n"
28332 " guestfs_mkfs_b (guestfs_h *g,\n"
28333 "                 const char *fstype,\n"
28334 "                 int blocksize,\n"
28335 "                 const char *device);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: textblock
28340 #: ../src/guestfs-actions.pod:4787
28341 msgid ""
28342 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28343 "call instead."
28344 msgstr ""
28345
28346 #. type: textblock
28347 #: ../src/guestfs-actions.pod:4794
28348 msgid ""
28349 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28350 "block size of the resulting filesystem.  Supported block sizes depend on the "
28351 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28352 msgstr ""
28353
28354 #. type: =head2
28355 #: ../src/guestfs-actions.pod:4806
28356 msgid "guestfs_mkfs_opts"
28357 msgstr ""
28358
28359 #. type: verbatim
28360 #: ../src/guestfs-actions.pod:4808
28361 #, no-wrap
28362 msgid ""
28363 " int\n"
28364 " guestfs_mkfs_opts (guestfs_h *g,\n"
28365 "                    const char *fstype,\n"
28366 "                    const char *device,\n"
28367 "                    ...);\n"
28368 "\n"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:4819
28373 #, no-wrap
28374 msgid ""
28375 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28376 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28377 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28378 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28379 "\n"
28380 msgstr ""
28381
28382 #. type: textblock
28383 #: ../src/guestfs-actions.pod:4867
28384 msgid "(Added in 1.7.19)"
28385 msgstr ""
28386
28387 #. type: =head2
28388 #: ../src/guestfs-actions.pod:4869
28389 msgid "guestfs_mkfs_opts_va"
28390 msgstr ""
28391
28392 #. type: verbatim
28393 #: ../src/guestfs-actions.pod:4871
28394 #, no-wrap
28395 msgid ""
28396 " int\n"
28397 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28398 "                       const char *fstype,\n"
28399 "                       const char *device,\n"
28400 "                       va_list args);\n"
28401 "\n"
28402 msgstr ""
28403
28404 #. type: textblock
28405 #: ../src/guestfs-actions.pod:4877
28406 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28407 msgstr ""
28408
28409 #. type: =head2
28410 #: ../src/guestfs-actions.pod:4881
28411 msgid "guestfs_mkfs_opts_argv"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:4883
28416 #, no-wrap
28417 msgid ""
28418 " int\n"
28419 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28420 "                         const char *fstype,\n"
28421 "                         const char *device,\n"
28422 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28423 "\n"
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:4889
28428 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:4893
28433 msgid "guestfs_mkmountpoint"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:4895
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_mkmountpoint (guestfs_h *g,\n"
28442 "                       const char *exemptpath);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:4899
28448 msgid ""
28449 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28450 "that can be used to create extra mountpoints before mounting the first "
28451 "filesystem."
28452 msgstr ""
28453
28454 #. type: textblock
28455 #: ../src/guestfs-actions.pod:4923
28456 msgid ""
28457 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28458 "may get unexpected errors if you try to mix these calls.  It is safest to "
28459 "manually unmount filesystems and remove mountpoints after use."
28460 msgstr ""
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:4927
28464 msgid ""
28465 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28466 "first, so for this to work for manual mountpoints, you must ensure that the "
28467 "innermost mountpoints have the longest pathnames, as in the example code "
28468 "above."
28469 msgstr ""
28470
28471 #. type: textblock
28472 #: ../src/guestfs-actions.pod:4934
28473 msgid ""
28474 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28475 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28476 "can also trigger these issues."
28477 msgstr ""
28478
28479 #. type: textblock
28480 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246 ../src/guestfs-actions.pod:6256
28481 msgid "(Added in 1.0.62)"
28482 msgstr ""
28483
28484 #. type: =head2
28485 #: ../src/guestfs-actions.pod:4942
28486 msgid "guestfs_mknod"
28487 msgstr ""
28488
28489 #. type: verbatim
28490 #: ../src/guestfs-actions.pod:4944
28491 #, no-wrap
28492 msgid ""
28493 " int\n"
28494 " guestfs_mknod (guestfs_h *g,\n"
28495 "                int mode,\n"
28496 "                int devmajor,\n"
28497 "                int devminor,\n"
28498 "                const char *path);\n"
28499 "\n"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../src/guestfs-actions.pod:4959
28504 msgid ""
28505 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28506 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28507 "regular file).  These constants are available in the standard Linux header "
28508 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28509 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28510 "the appropriate constant for you."
28511 msgstr ""
28512
28513 #. type: =head2
28514 #: ../src/guestfs-actions.pod:4973
28515 msgid "guestfs_mknod_b"
28516 msgstr ""
28517
28518 #. type: verbatim
28519 #: ../src/guestfs-actions.pod:4975
28520 #, no-wrap
28521 msgid ""
28522 " int\n"
28523 " guestfs_mknod_b (guestfs_h *g,\n"
28524 "                  int mode,\n"
28525 "                  int devmajor,\n"
28526 "                  int devminor,\n"
28527 "                  const char *path);\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: textblock
28532 #: ../src/guestfs-actions.pod:4982
28533 msgid ""
28534 "This call creates a block device node called C<path> with mode C<mode> and "
28535 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28536 "wrapper around C<guestfs_mknod>."
28537 msgstr ""
28538
28539 #. type: =head2
28540 #: ../src/guestfs-actions.pod:4992
28541 msgid "guestfs_mknod_c"
28542 msgstr ""
28543
28544 #. type: verbatim
28545 #: ../src/guestfs-actions.pod:4994
28546 #, no-wrap
28547 msgid ""
28548 " int\n"
28549 " guestfs_mknod_c (guestfs_h *g,\n"
28550 "                  int mode,\n"
28551 "                  int devmajor,\n"
28552 "                  int devminor,\n"
28553 "                  const char *path);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: textblock
28558 #: ../src/guestfs-actions.pod:5001
28559 msgid ""
28560 "This call creates a char device node called C<path> with mode C<mode> and "
28561 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28562 "wrapper around C<guestfs_mknod>."
28563 msgstr ""
28564
28565 #. type: =head2
28566 #: ../src/guestfs-actions.pod:5011
28567 msgid "guestfs_mkswap"
28568 msgstr ""
28569
28570 #. type: verbatim
28571 #: ../src/guestfs-actions.pod:5013
28572 #, no-wrap
28573 msgid ""
28574 " int\n"
28575 " guestfs_mkswap (guestfs_h *g,\n"
28576 "                 const char *device);\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: =head2
28581 #: ../src/guestfs-actions.pod:5023
28582 msgid "guestfs_mkswap_L"
28583 msgstr ""
28584
28585 #. type: verbatim
28586 #: ../src/guestfs-actions.pod:5025
28587 #, no-wrap
28588 msgid ""
28589 " int\n"
28590 " guestfs_mkswap_L (guestfs_h *g,\n"
28591 "                   const char *label,\n"
28592 "                   const char *device);\n"
28593 "\n"
28594 msgstr ""
28595
28596 #. type: =head2
28597 #: ../src/guestfs-actions.pod:5040
28598 msgid "guestfs_mkswap_U"
28599 msgstr ""
28600
28601 #. type: verbatim
28602 #: ../src/guestfs-actions.pod:5042
28603 #, no-wrap
28604 msgid ""
28605 " int\n"
28606 " guestfs_mkswap_U (guestfs_h *g,\n"
28607 "                   const char *uuid,\n"
28608 "                   const char *device);\n"
28609 "\n"
28610 msgstr ""
28611
28612 #. type: =head2
28613 #: ../src/guestfs-actions.pod:5053
28614 msgid "guestfs_mkswap_file"
28615 msgstr ""
28616
28617 #. type: verbatim
28618 #: ../src/guestfs-actions.pod:5055
28619 #, no-wrap
28620 msgid ""
28621 " int\n"
28622 " guestfs_mkswap_file (guestfs_h *g,\n"
28623 "                      const char *path);\n"
28624 "\n"
28625 msgstr ""
28626
28627 #. type: textblock
28628 #: ../src/guestfs-actions.pod:5061
28629 msgid ""
28630 "This command just writes a swap file signature to an existing file.  To "
28631 "create the file itself, use something like C<guestfs_fallocate>."
28632 msgstr ""
28633
28634 #. type: =head2
28635 #: ../src/guestfs-actions.pod:5068
28636 msgid "guestfs_modprobe"
28637 msgstr ""
28638
28639 #. type: verbatim
28640 #: ../src/guestfs-actions.pod:5070
28641 #, no-wrap
28642 msgid ""
28643 " int\n"
28644 " guestfs_modprobe (guestfs_h *g,\n"
28645 "                   const char *modulename);\n"
28646 "\n"
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:5083
28651 msgid "guestfs_mount"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:5085
28656 #, no-wrap
28657 msgid ""
28658 " int\n"
28659 " guestfs_mount (guestfs_h *g,\n"
28660 "                const char *device,\n"
28661 "                const char *mountpoint);\n"
28662 "\n"
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../src/guestfs-actions.pod:5104
28667 msgid ""
28668 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28669 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28670 "problems for users.  If your program might need to work with older versions "
28671 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28672 "for the first parameter if you don't want any options)."
28673 msgstr ""
28674
28675 #. type: =head2
28676 #: ../src/guestfs-actions.pod:5115
28677 msgid "guestfs_mount_9p"
28678 msgstr ""
28679
28680 #. type: verbatim
28681 #: ../src/guestfs-actions.pod:5117
28682 #, no-wrap
28683 msgid ""
28684 " int\n"
28685 " guestfs_mount_9p (guestfs_h *g,\n"
28686 "                   const char *mounttag,\n"
28687 "                   const char *mountpoint,\n"
28688 "                   ...);\n"
28689 "\n"
28690 msgstr ""
28691
28692 #. type: verbatim
28693 #: ../src/guestfs-actions.pod:5128
28694 #, no-wrap
28695 msgid ""
28696 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:5141
28702 msgid "guestfs_mount_9p_va"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:5143
28707 #, no-wrap
28708 msgid ""
28709 " int\n"
28710 " guestfs_mount_9p_va (guestfs_h *g,\n"
28711 "                      const char *mounttag,\n"
28712 "                      const char *mountpoint,\n"
28713 "                      va_list args);\n"
28714 "\n"
28715 msgstr ""
28716
28717 #. type: textblock
28718 #: ../src/guestfs-actions.pod:5149
28719 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28720 msgstr ""
28721
28722 #. type: =head2
28723 #: ../src/guestfs-actions.pod:5153
28724 msgid "guestfs_mount_9p_argv"
28725 msgstr ""
28726
28727 #. type: verbatim
28728 #: ../src/guestfs-actions.pod:5155
28729 #, no-wrap
28730 msgid ""
28731 " int\n"
28732 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28733 "                        const char *mounttag,\n"
28734 "                        const char *mountpoint,\n"
28735 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28736 "\n"
28737 msgstr ""
28738
28739 #. type: textblock
28740 #: ../src/guestfs-actions.pod:5161
28741 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28742 msgstr ""
28743
28744 #. type: =head2
28745 #: ../src/guestfs-actions.pod:5165
28746 msgid "guestfs_mount_loop"
28747 msgstr ""
28748
28749 #. type: verbatim
28750 #: ../src/guestfs-actions.pod:5167
28751 #, no-wrap
28752 msgid ""
28753 " int\n"
28754 " guestfs_mount_loop (guestfs_h *g,\n"
28755 "                     const char *file,\n"
28756 "                     const char *mountpoint);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: =head2
28761 #: ../src/guestfs-actions.pod:5180
28762 msgid "guestfs_mount_options"
28763 msgstr ""
28764
28765 #. type: verbatim
28766 #: ../src/guestfs-actions.pod:5182
28767 #, no-wrap
28768 msgid ""
28769 " int\n"
28770 " guestfs_mount_options (guestfs_h *g,\n"
28771 "                        const char *options,\n"
28772 "                        const char *device,\n"
28773 "                        const char *mountpoint);\n"
28774 "\n"
28775 msgstr ""
28776
28777 #. type: textblock
28778 #: ../src/guestfs-actions.pod:5188
28779 msgid ""
28780 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28781 "the mount options as for the L<mount(8)> I<-o> flag."
28782 msgstr ""
28783
28784 #. type: textblock
28785 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5229
28786 msgid "(Added in 1.0.10)"
28787 msgstr ""
28788
28789 #. type: =head2
28790 #: ../src/guestfs-actions.pod:5200
28791 msgid "guestfs_mount_ro"
28792 msgstr ""
28793
28794 #. type: verbatim
28795 #: ../src/guestfs-actions.pod:5202
28796 #, no-wrap
28797 msgid ""
28798 " int\n"
28799 " guestfs_mount_ro (guestfs_h *g,\n"
28800 "                   const char *device,\n"
28801 "                   const char *mountpoint);\n"
28802 "\n"
28803 msgstr ""
28804
28805 #. type: textblock
28806 #: ../src/guestfs-actions.pod:5207
28807 msgid ""
28808 "This is the same as the C<guestfs_mount> command, but it mounts the "
28809 "filesystem with the read-only (I<-o ro>) flag."
28810 msgstr ""
28811
28812 #. type: =head2
28813 #: ../src/guestfs-actions.pod:5214
28814 msgid "guestfs_mount_vfs"
28815 msgstr ""
28816
28817 #. type: verbatim
28818 #: ../src/guestfs-actions.pod:5216
28819 #, no-wrap
28820 msgid ""
28821 " int\n"
28822 " guestfs_mount_vfs (guestfs_h *g,\n"
28823 "                    const char *options,\n"
28824 "                    const char *vfstype,\n"
28825 "                    const char *device,\n"
28826 "                    const char *mountpoint);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:5223
28832 msgid ""
28833 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28834 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
28835 "I<-t> flags."
28836 msgstr ""
28837
28838 #. type: =head2
28839 #: ../src/guestfs-actions.pod:5231
28840 msgid "guestfs_mountpoints"
28841 msgstr ""
28842
28843 #. type: verbatim
28844 #: ../src/guestfs-actions.pod:5233
28845 #, no-wrap
28846 msgid ""
28847 " char **\n"
28848 " guestfs_mountpoints (guestfs_h *g);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:5236
28854 msgid ""
28855 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28856 "devices.  This one returns a hash table (map) of device name to directory "
28857 "where the device is mounted."
28858 msgstr ""
28859
28860 #. type: =head2
28861 #: ../src/guestfs-actions.pod:5248
28862 msgid "guestfs_mounts"
28863 msgstr ""
28864
28865 #. type: verbatim
28866 #: ../src/guestfs-actions.pod:5250
28867 #, no-wrap
28868 msgid ""
28869 " char **\n"
28870 " guestfs_mounts (guestfs_h *g);\n"
28871 "\n"
28872 msgstr ""
28873
28874 #. type: textblock
28875 #: ../src/guestfs-actions.pod:5258
28876 msgid "See also: C<guestfs_mountpoints>"
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:5266
28881 msgid "guestfs_mv"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:5268
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_mv (guestfs_h *g,\n"
28890 "             const char *src,\n"
28891 "             const char *dest);\n"
28892 "\n"
28893 msgstr ""
28894
28895 #. type: =head2
28896 #: ../src/guestfs-actions.pod:5280
28897 msgid "guestfs_ntfs_3g_probe"
28898 msgstr ""
28899
28900 #. type: verbatim
28901 #: ../src/guestfs-actions.pod:5282
28902 #, no-wrap
28903 msgid ""
28904 " int\n"
28905 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28906 "                        int rw,\n"
28907 "                        const char *device);\n"
28908 "\n"
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../src/guestfs-actions.pod:5301
28913 msgid "(Added in 1.0.43)"
28914 msgstr ""
28915
28916 #. type: =head2
28917 #: ../src/guestfs-actions.pod:5303
28918 msgid "guestfs_ntfsresize"
28919 msgstr ""
28920
28921 #. type: verbatim
28922 #: ../src/guestfs-actions.pod:5305
28923 #, no-wrap
28924 msgid ""
28925 " int\n"
28926 " guestfs_ntfsresize (guestfs_h *g,\n"
28927 "                     const char *device);\n"
28928 "\n"
28929 msgstr ""
28930
28931 #. type: textblock
28932 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
28933 msgid ""
28934 "I<This function is deprecated.> In new code, use the "
28935 "L</guestfs_ntfsresize_opts> call instead."
28936 msgstr ""
28937
28938 #. type: =head2
28939 #: ../src/guestfs-actions.pod:5333
28940 msgid "guestfs_ntfsresize_opts"
28941 msgstr ""
28942
28943 #. type: verbatim
28944 #: ../src/guestfs-actions.pod:5335
28945 #, no-wrap
28946 msgid ""
28947 " int\n"
28948 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28949 "                          const char *device,\n"
28950 "                          ...);\n"
28951 "\n"
28952 msgstr ""
28953
28954 #. type: verbatim
28955 #: ../src/guestfs-actions.pod:5345
28956 #, no-wrap
28957 msgid ""
28958 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28959 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28960 "\n"
28961 msgstr ""
28962
28963 #. type: textblock
28964 #: ../src/guestfs-actions.pod:5365
28965 msgid ""
28966 "After the resize operation, the filesystem is always marked as requiring a "
28967 "consistency check (for safety).  You have to boot into Windows to perform "
28968 "this check and clear this condition.  If you I<don't> set the C<force> "
28969 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28970 "times on a single filesystem without booting into Windows between each "
28971 "resize."
28972 msgstr ""
28973
28974 #. type: =head2
28975 #: ../src/guestfs-actions.pod:5380
28976 msgid "guestfs_ntfsresize_opts_va"
28977 msgstr ""
28978
28979 #. type: verbatim
28980 #: ../src/guestfs-actions.pod:5382
28981 #, no-wrap
28982 msgid ""
28983 " int\n"
28984 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28985 "                             const char *device,\n"
28986 "                             va_list args);\n"
28987 "\n"
28988 msgstr ""
28989
28990 #. type: textblock
28991 #: ../src/guestfs-actions.pod:5387
28992 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28993 msgstr ""
28994
28995 #. type: =head2
28996 #: ../src/guestfs-actions.pod:5391
28997 msgid "guestfs_ntfsresize_opts_argv"
28998 msgstr ""
28999
29000 #. type: verbatim
29001 #: ../src/guestfs-actions.pod:5393
29002 #, no-wrap
29003 msgid ""
29004 " int\n"
29005 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29006 "                               const char *device,\n"
29007 "                               const struct guestfs_ntfsresize_opts_argv "
29008 "*optargs);\n"
29009 "\n"
29010 msgstr ""
29011
29012 #. type: textblock
29013 #: ../src/guestfs-actions.pod:5398
29014 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29015 msgstr ""
29016
29017 #. type: =head2
29018 #: ../src/guestfs-actions.pod:5402
29019 msgid "guestfs_ntfsresize_size"
29020 msgstr ""
29021
29022 #. type: verbatim
29023 #: ../src/guestfs-actions.pod:5404
29024 #, no-wrap
29025 msgid ""
29026 " int\n"
29027 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29028 "                          const char *device,\n"
29029 "                          int64_t size);\n"
29030 "\n"
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../src/guestfs-actions.pod:5416
29035 msgid ""
29036 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29037 "to specify the new size (in bytes) explicitly."
29038 msgstr ""
29039
29040 #. type: textblock
29041 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:7843
29042 msgid "(Added in 1.3.14)"
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:5423
29047 msgid "guestfs_part_add"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:5425
29052 #, no-wrap
29053 msgid ""
29054 " int\n"
29055 " guestfs_part_add (guestfs_h *g,\n"
29056 "                   const char *device,\n"
29057 "                   const char *prlogex,\n"
29058 "                   int64_t startsect,\n"
29059 "                   int64_t endsect);\n"
29060 "\n"
29061 msgstr ""
29062
29063 #. type: textblock
29064 #: ../src/guestfs-actions.pod:5432
29065 msgid ""
29066 "This command adds a partition to C<device>.  If there is no partition table "
29067 "on the device, call C<guestfs_part_init> first."
29068 msgstr ""
29069
29070 #. type: textblock
29071 #: ../src/guestfs-actions.pod:5444
29072 msgid ""
29073 "Creating a partition which covers the whole disk is not so easy.  Use "
29074 "C<guestfs_part_disk> to do that."
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:5721
29079 msgid "(Added in 1.0.78)"
29080 msgstr ""
29081
29082 #. type: =head2
29083 #: ../src/guestfs-actions.pod:5451
29084 msgid "guestfs_part_del"
29085 msgstr ""
29086
29087 #. type: verbatim
29088 #: ../src/guestfs-actions.pod:5453
29089 #, no-wrap
29090 msgid ""
29091 " int\n"
29092 " guestfs_part_del (guestfs_h *g,\n"
29093 "                   const char *device,\n"
29094 "                   int partnum);\n"
29095 "\n"
29096 msgstr ""
29097
29098 #. type: =head2
29099 #: ../src/guestfs-actions.pod:5468
29100 msgid "guestfs_part_disk"
29101 msgstr ""
29102
29103 #. type: verbatim
29104 #: ../src/guestfs-actions.pod:5470
29105 #, no-wrap
29106 msgid ""
29107 " int\n"
29108 " guestfs_part_disk (guestfs_h *g,\n"
29109 "                    const char *device,\n"
29110 "                    const char *parttype);\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: textblock
29115 #: ../src/guestfs-actions.pod:5475
29116 msgid ""
29117 "This command is simply a combination of C<guestfs_part_init> followed by "
29118 "C<guestfs_part_add> to create a single primary partition covering the whole "
29119 "disk."
29120 msgstr ""
29121
29122 #. type: textblock
29123 #: ../src/guestfs-actions.pod:5479
29124 msgid ""
29125 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29126 "possible values are described in C<guestfs_part_init>."
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:5489
29131 msgid "guestfs_part_get_bootable"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:5491
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_part_get_bootable (guestfs_h *g,\n"
29140 "                            const char *device,\n"
29141 "                            int partnum);\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: textblock
29146 #: ../src/guestfs-actions.pod:5499
29147 msgid "See also C<guestfs_part_set_bootable>."
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:5505
29152 msgid "guestfs_part_get_mbr_id"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:5507
29157 #, no-wrap
29158 msgid ""
29159 " int\n"
29160 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29161 "                          const char *device,\n"
29162 "                          int partnum);\n"
29163 "\n"
29164 msgstr ""
29165
29166 #. type: textblock
29167 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
29168 msgid ""
29169 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29170 "undefined results for other partition table types (see "
29171 "C<guestfs_part_get_parttype>)."
29172 msgstr ""
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:5523
29176 msgid "guestfs_part_get_parttype"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:5525
29181 #, no-wrap
29182 msgid ""
29183 " char *\n"
29184 " guestfs_part_get_parttype (guestfs_h *g,\n"
29185 "                            const char *device);\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:5532
29191 msgid ""
29192 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29193 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29194 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29195 msgstr ""
29196
29197 #. type: =head2
29198 #: ../src/guestfs-actions.pod:5542
29199 msgid "guestfs_part_init"
29200 msgstr ""
29201
29202 #. type: verbatim
29203 #: ../src/guestfs-actions.pod:5544
29204 #, no-wrap
29205 msgid ""
29206 " int\n"
29207 " guestfs_part_init (guestfs_h *g,\n"
29208 "                    const char *device,\n"
29209 "                    const char *parttype);\n"
29210 "\n"
29211 msgstr ""
29212
29213 #. type: textblock
29214 #: ../src/guestfs-actions.pod:5553
29215 msgid ""
29216 "Initially there are no partitions.  Following this, you should call "
29217 "C<guestfs_part_add> for each partition required."
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:5626
29222 msgid "guestfs_part_list"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:5628
29227 #, no-wrap
29228 msgid ""
29229 " struct guestfs_partition_list *\n"
29230 " guestfs_part_list (guestfs_h *g,\n"
29231 "                    const char *device);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:5645
29237 msgid ""
29238 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29239 "the device's sector size, see C<guestfs_blockdev_getss>."
29240 msgstr ""
29241
29242 #. type: textblock
29243 #: ../src/guestfs-actions.pod:5658
29244 msgid ""
29245 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29246 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29247 "use>."
29248 msgstr ""
29249
29250 #. type: =head2
29251 #: ../src/guestfs-actions.pod:5664
29252 msgid "guestfs_part_set_bootable"
29253 msgstr ""
29254
29255 #. type: verbatim
29256 #: ../src/guestfs-actions.pod:5666
29257 #, no-wrap
29258 msgid ""
29259 " int\n"
29260 " guestfs_part_set_bootable (guestfs_h *g,\n"
29261 "                            const char *device,\n"
29262 "                            int partnum,\n"
29263 "                            int bootable);\n"
29264 "\n"
29265 msgstr ""
29266
29267 #. type: =head2
29268 #: ../src/guestfs-actions.pod:5683
29269 msgid "guestfs_part_set_mbr_id"
29270 msgstr ""
29271
29272 #. type: verbatim
29273 #: ../src/guestfs-actions.pod:5685
29274 #, no-wrap
29275 msgid ""
29276 " int\n"
29277 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29278 "                          const char *device,\n"
29279 "                          int partnum,\n"
29280 "                          int idbyte);\n"
29281 "\n"
29282 msgstr ""
29283
29284 #. type: =head2
29285 #: ../src/guestfs-actions.pod:5705
29286 msgid "guestfs_part_set_name"
29287 msgstr ""
29288
29289 #. type: verbatim
29290 #: ../src/guestfs-actions.pod:5707
29291 #, no-wrap
29292 msgid ""
29293 " int\n"
29294 " guestfs_part_set_name (guestfs_h *g,\n"
29295 "                        const char *device,\n"
29296 "                        int partnum,\n"
29297 "                        const char *name);\n"
29298 "\n"
29299 msgstr ""
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:5723
29303 msgid "guestfs_part_to_dev"
29304 msgstr ""
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:5725
29308 #, no-wrap
29309 msgid ""
29310 " char *\n"
29311 " guestfs_part_to_dev (guestfs_h *g,\n"
29312 "                      const char *partition);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../src/guestfs-actions.pod:5733
29318 msgid ""
29319 "The named partition must exist, for example as a string returned from "
29320 "C<guestfs_list_partitions>."
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:5741
29325 msgid "guestfs_ping_daemon"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:5743
29330 #, no-wrap
29331 msgid ""
29332 " int\n"
29333 " guestfs_ping_daemon (guestfs_h *g);\n"
29334 "\n"
29335 msgstr ""
29336
29337 #. type: =head2
29338 #: ../src/guestfs-actions.pod:5755
29339 msgid "guestfs_pread"
29340 msgstr ""
29341
29342 #. type: verbatim
29343 #: ../src/guestfs-actions.pod:5757
29344 #, no-wrap
29345 msgid ""
29346 " char *\n"
29347 " guestfs_pread (guestfs_h *g,\n"
29348 "                const char *path,\n"
29349 "                int count,\n"
29350 "                int64_t offset,\n"
29351 "                size_t *size_r);\n"
29352 "\n"
29353 msgstr ""
29354
29355 #. type: textblock
29356 #: ../src/guestfs-actions.pod:5770
29357 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29358 msgstr ""
29359
29360 #. type: =head2
29361 #: ../src/guestfs-actions.pod:5781
29362 msgid "guestfs_pread_device"
29363 msgstr ""
29364
29365 #. type: verbatim
29366 #: ../src/guestfs-actions.pod:5783
29367 #, no-wrap
29368 msgid ""
29369 " char *\n"
29370 " guestfs_pread_device (guestfs_h *g,\n"
29371 "                       const char *device,\n"
29372 "                       int count,\n"
29373 "                       int64_t offset,\n"
29374 "                       size_t *size_r);\n"
29375 "\n"
29376 msgstr ""
29377
29378 #. type: textblock
29379 #: ../src/guestfs-actions.pod:5796
29380 msgid "See also C<guestfs_pread>."
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../src/guestfs-actions.pod:5805
29385 msgid "(Added in 1.5.21)"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:5807
29390 msgid "guestfs_pvcreate"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:5809
29395 #, no-wrap
29396 msgid ""
29397 " int\n"
29398 " guestfs_pvcreate (guestfs_h *g,\n"
29399 "                   const char *device);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:5821
29405 msgid "guestfs_pvremove"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:5823
29410 #, no-wrap
29411 msgid ""
29412 " int\n"
29413 " guestfs_pvremove (guestfs_h *g,\n"
29414 "                   const char *device);\n"
29415 "\n"
29416 msgstr ""
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:5838
29420 msgid "guestfs_pvresize"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:5840
29425 #, no-wrap
29426 msgid ""
29427 " int\n"
29428 " guestfs_pvresize (guestfs_h *g,\n"
29429 "                   const char *device);\n"
29430 "\n"
29431 msgstr ""
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:5851
29435 msgid "guestfs_pvresize_size"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:5853
29440 #, no-wrap
29441 msgid ""
29442 " int\n"
29443 " guestfs_pvresize_size (guestfs_h *g,\n"
29444 "                        const char *device,\n"
29445 "                        int64_t size);\n"
29446 "\n"
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../src/guestfs-actions.pod:5858
29451 msgid ""
29452 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29453 "specify the new size (in bytes) explicitly."
29454 msgstr ""
29455
29456 #. type: =head2
29457 #: ../src/guestfs-actions.pod:5865
29458 msgid "guestfs_pvs"
29459 msgstr ""
29460
29461 #. type: verbatim
29462 #: ../src/guestfs-actions.pod:5867
29463 #, no-wrap
29464 msgid ""
29465 " char **\n"
29466 " guestfs_pvs (guestfs_h *g);\n"
29467 "\n"
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../src/guestfs-actions.pod:5876
29472 msgid "See also C<guestfs_pvs_full>."
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:5884
29477 msgid "guestfs_pvs_full"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:5886
29482 #, no-wrap
29483 msgid ""
29484 " struct guestfs_lvm_pv_list *\n"
29485 " guestfs_pvs_full (guestfs_h *g);\n"
29486 "\n"
29487 msgstr ""
29488
29489 #. type: textblock
29490 #: ../src/guestfs-actions.pod:5892
29491 msgid ""
29492 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29493 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
29494 "use>."
29495 msgstr ""
29496
29497 #. type: =head2
29498 #: ../src/guestfs-actions.pod:5898
29499 msgid "guestfs_pvuuid"
29500 msgstr ""
29501
29502 #. type: verbatim
29503 #: ../src/guestfs-actions.pod:5900
29504 #, no-wrap
29505 msgid ""
29506 " char *\n"
29507 " guestfs_pvuuid (guestfs_h *g,\n"
29508 "                 const char *device);\n"
29509 "\n"
29510 msgstr ""
29511
29512 #. type: =head2
29513 #: ../src/guestfs-actions.pod:5911
29514 msgid "guestfs_pwrite"
29515 msgstr ""
29516
29517 #. type: verbatim
29518 #: ../src/guestfs-actions.pod:5913
29519 #, no-wrap
29520 msgid ""
29521 " int\n"
29522 " guestfs_pwrite (guestfs_h *g,\n"
29523 "                 const char *path,\n"
29524 "                 const char *content,\n"
29525 "                 size_t content_size,\n"
29526 "                 int64_t offset);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:5929
29532 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:5938
29537 msgid "guestfs_pwrite_device"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:5940
29542 #, no-wrap
29543 msgid ""
29544 " int\n"
29545 " guestfs_pwrite_device (guestfs_h *g,\n"
29546 "                        const char *device,\n"
29547 "                        const char *content,\n"
29548 "                        size_t content_size,\n"
29549 "                        int64_t offset);\n"
29550 "\n"
29551 msgstr ""
29552
29553 #. type: textblock
29554 #: ../src/guestfs-actions.pod:5955
29555 msgid "See also C<guestfs_pwrite>."
29556 msgstr ""
29557
29558 #. type: textblock
29559 #: ../src/guestfs-actions.pod:5962
29560 msgid "(Added in 1.5.20)"
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:5964
29565 msgid "guestfs_read_file"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:5966
29570 #, no-wrap
29571 msgid ""
29572 " char *\n"
29573 " guestfs_read_file (guestfs_h *g,\n"
29574 "                    const char *path,\n"
29575 "                    size_t *size_r);\n"
29576 "\n"
29577 msgstr ""
29578
29579 #. type: textblock
29580 #: ../src/guestfs-actions.pod:5974
29581 msgid ""
29582 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29583 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29584 "function is limited in the total size of file that can be handled."
29585 msgstr ""
29586
29587 #. type: textblock
29588 #: ../src/guestfs-actions.pod:5986
29589 msgid "(Added in 1.0.63)"
29590 msgstr ""
29591
29592 #. type: =head2
29593 #: ../src/guestfs-actions.pod:5988
29594 msgid "guestfs_read_lines"
29595 msgstr ""
29596
29597 #. type: verbatim
29598 #: ../src/guestfs-actions.pod:5990
29599 #, no-wrap
29600 msgid ""
29601 " char **\n"
29602 " guestfs_read_lines (guestfs_h *g,\n"
29603 "                     const char *path);\n"
29604 "\n"
29605 msgstr ""
29606
29607 #. type: textblock
29608 #: ../src/guestfs-actions.pod:5999
29609 msgid ""
29610 "Note that this function cannot correctly handle binary files (specifically, "
29611 "files containing C<\\0> character which is treated as end of line).  For "
29612 "those you need to use the C<guestfs_read_file> function which has a more "
29613 "complex interface."
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:6010
29618 msgid "guestfs_readdir"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:6012
29623 #, no-wrap
29624 msgid ""
29625 " struct guestfs_dirent_list *\n"
29626 " guestfs_readdir (guestfs_h *g,\n"
29627 "                  const char *dir);\n"
29628 "\n"
29629 msgstr ""
29630
29631 #. type: textblock
29632 #: ../src/guestfs-actions.pod:6066
29633 msgid ""
29634 "This function is primarily intended for use by programs.  To get a simple "
29635 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29636 "consumption, use C<guestfs_ll>."
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:6070
29641 msgid ""
29642 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29643 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
29644 "use>."
29645 msgstr ""
29646
29647 #. type: =head2
29648 #: ../src/guestfs-actions.pod:6076
29649 msgid "guestfs_readlink"
29650 msgstr ""
29651
29652 #. type: verbatim
29653 #: ../src/guestfs-actions.pod:6078
29654 #, no-wrap
29655 msgid ""
29656 " char *\n"
29657 " guestfs_readlink (guestfs_h *g,\n"
29658 "                   const char *path);\n"
29659 "\n"
29660 msgstr ""
29661
29662 #. type: =head2
29663 #: ../src/guestfs-actions.pod:6089
29664 msgid "guestfs_readlinklist"
29665 msgstr ""
29666
29667 #. type: verbatim
29668 #: ../src/guestfs-actions.pod:6091
29669 #, no-wrap
29670 msgid ""
29671 " char **\n"
29672 " guestfs_readlinklist (guestfs_h *g,\n"
29673 "                       const char *path,\n"
29674 "                       char *const *names);\n"
29675 "\n"
29676 msgstr ""
29677
29678 #. type: =head2
29679 #: ../src/guestfs-actions.pod:6124
29680 msgid "guestfs_realpath"
29681 msgstr ""
29682
29683 #. type: verbatim
29684 #: ../src/guestfs-actions.pod:6126
29685 #, no-wrap
29686 msgid ""
29687 " char *\n"
29688 " guestfs_realpath (guestfs_h *g,\n"
29689 "                   const char *path);\n"
29690 "\n"
29691 msgstr ""
29692
29693 #. type: =head2
29694 #: ../src/guestfs-actions.pod:6138
29695 msgid "guestfs_removexattr"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-actions.pod:6140
29700 #, no-wrap
29701 msgid ""
29702 " int\n"
29703 " guestfs_removexattr (guestfs_h *g,\n"
29704 "                      const char *xattr,\n"
29705 "                      const char *path);\n"
29706 "\n"
29707 msgstr ""
29708
29709 #. type: textblock
29710 #: ../src/guestfs-actions.pod:6148
29711 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29712 msgstr ""
29713
29714 #. type: =head2
29715 #: ../src/guestfs-actions.pod:6154
29716 msgid "guestfs_resize2fs"
29717 msgstr ""
29718
29719 #. type: verbatim
29720 #: ../src/guestfs-actions.pod:6156
29721 #, no-wrap
29722 msgid ""
29723 " int\n"
29724 " guestfs_resize2fs (guestfs_h *g,\n"
29725 "                    const char *device);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: textblock
29730 #: ../src/guestfs-actions.pod:6163
29731 msgid ""
29732 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29733 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29734 "sometimes gives an error about this and sometimes not.  In any case, it is "
29735 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29736 msgstr ""
29737
29738 #. type: =head2
29739 #: ../src/guestfs-actions.pod:6173
29740 msgid "guestfs_resize2fs_M"
29741 msgstr ""
29742
29743 #. type: verbatim
29744 #: ../src/guestfs-actions.pod:6175
29745 #, no-wrap
29746 msgid ""
29747 " int\n"
29748 " guestfs_resize2fs_M (guestfs_h *g,\n"
29749 "                      const char *device);\n"
29750 "\n"
29751 msgstr ""
29752
29753 #. type: textblock
29754 #: ../src/guestfs-actions.pod:6179
29755 msgid ""
29756 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29757 "resized to its minimum size.  This works like the I<-M> option to the "
29758 "C<resize2fs> command."
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../src/guestfs-actions.pod:6183
29763 msgid ""
29764 "To get the resulting size of the filesystem you should call "
29765 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29766 "These two numbers, multiplied together, give the resulting size of the "
29767 "minimal filesystem in bytes."
29768 msgstr ""
29769
29770 #. type: =head2
29771 #: ../src/guestfs-actions.pod:6192
29772 msgid "guestfs_resize2fs_size"
29773 msgstr ""
29774
29775 #. type: verbatim
29776 #: ../src/guestfs-actions.pod:6194
29777 #, no-wrap
29778 msgid ""
29779 " int\n"
29780 " guestfs_resize2fs_size (guestfs_h *g,\n"
29781 "                         const char *device,\n"
29782 "                         int64_t size);\n"
29783 "\n"
29784 msgstr ""
29785
29786 #. type: textblock
29787 #: ../src/guestfs-actions.pod:6199
29788 msgid ""
29789 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29790 "to specify the new size (in bytes) explicitly."
29791 msgstr ""
29792
29793 #. type: =head2
29794 #: ../src/guestfs-actions.pod:6206
29795 msgid "guestfs_rm"
29796 msgstr ""
29797
29798 #. type: verbatim
29799 #: ../src/guestfs-actions.pod:6208
29800 #, no-wrap
29801 msgid ""
29802 " int\n"
29803 " guestfs_rm (guestfs_h *g,\n"
29804 "             const char *path);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: =head2
29809 #: ../src/guestfs-actions.pod:6218
29810 msgid "guestfs_rm_rf"
29811 msgstr ""
29812
29813 #. type: verbatim
29814 #: ../src/guestfs-actions.pod:6220
29815 #, no-wrap
29816 msgid ""
29817 " int\n"
29818 " guestfs_rm_rf (guestfs_h *g,\n"
29819 "                const char *path);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: =head2
29824 #: ../src/guestfs-actions.pod:6232
29825 msgid "guestfs_rmdir"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-actions.pod:6234
29830 #, no-wrap
29831 msgid ""
29832 " int\n"
29833 " guestfs_rmdir (guestfs_h *g,\n"
29834 "                const char *path);\n"
29835 "\n"
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:6244
29840 msgid "guestfs_rmmountpoint"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:6246
29845 #, no-wrap
29846 msgid ""
29847 " int\n"
29848 " guestfs_rmmountpoint (guestfs_h *g,\n"
29849 "                       const char *exemptpath);\n"
29850 "\n"
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:6250
29855 msgid ""
29856 "This calls removes a mountpoint that was previously created with "
29857 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:6258
29862 msgid "guestfs_scrub_device"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:6260
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_scrub_device (guestfs_h *g,\n"
29871 "                       const char *device);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6312
29877 msgid "(Added in 1.0.52)"
29878 msgstr ""
29879
29880 #. type: =head2
29881 #: ../src/guestfs-actions.pod:6277
29882 msgid "guestfs_scrub_file"
29883 msgstr ""
29884
29885 #. type: verbatim
29886 #: ../src/guestfs-actions.pod:6279
29887 #, no-wrap
29888 msgid ""
29889 " int\n"
29890 " guestfs_scrub_file (guestfs_h *g,\n"
29891 "                     const char *file);\n"
29892 "\n"
29893 msgstr ""
29894
29895 #. type: =head2
29896 #: ../src/guestfs-actions.pod:6295
29897 msgid "guestfs_scrub_freespace"
29898 msgstr ""
29899
29900 #. type: verbatim
29901 #: ../src/guestfs-actions.pod:6297
29902 #, no-wrap
29903 msgid ""
29904 " int\n"
29905 " guestfs_scrub_freespace (guestfs_h *g,\n"
29906 "                          const char *dir);\n"
29907 "\n"
29908 msgstr ""
29909
29910 #. type: textblock
29911 #: ../src/guestfs-actions.pod:6301
29912 msgid ""
29913 "This command creates the directory C<dir> and then fills it with files until "
29914 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29915 "and deletes them.  The intention is to scrub any free space on the partition "
29916 "containing C<dir>."
29917 msgstr ""
29918
29919 #. type: =head2
29920 #: ../src/guestfs-actions.pod:6314
29921 msgid "guestfs_set_append"
29922 msgstr ""
29923
29924 #. type: verbatim
29925 #: ../src/guestfs-actions.pod:6316
29926 #, no-wrap
29927 msgid ""
29928 " int\n"
29929 " guestfs_set_append (guestfs_h *g,\n"
29930 "                     const char *append);\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: =head2
29935 #: ../src/guestfs-actions.pod:6333
29936 msgid "guestfs_set_attach_method"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../src/guestfs-actions.pod:6335
29941 #, no-wrap
29942 msgid ""
29943 " int\n"
29944 " guestfs_set_attach_method (guestfs_h *g,\n"
29945 "                            const char *attachmethod);\n"
29946 "\n"
29947 msgstr ""
29948
29949 #. type: =head2
29950 #: ../src/guestfs-actions.pod:6363
29951 msgid "guestfs_set_autosync"
29952 msgstr ""
29953
29954 #. type: verbatim
29955 #: ../src/guestfs-actions.pod:6365
29956 #, no-wrap
29957 msgid ""
29958 " int\n"
29959 " guestfs_set_autosync (guestfs_h *g,\n"
29960 "                       int autosync);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: =head2
29965 #: ../src/guestfs-actions.pod:6381
29966 msgid "guestfs_set_direct"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-actions.pod:6383
29971 #, no-wrap
29972 msgid ""
29973 " int\n"
29974 " guestfs_set_direct (guestfs_h *g,\n"
29975 "                     int direct);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: textblock
29980 #: ../src/guestfs-actions.pod:6391
29981 msgid ""
29982 "One consequence of this is that log messages aren't caught by the library "
29983 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29984 "stdout."
29985 msgstr ""
29986
29987 #. type: =head2
29988 #: ../src/guestfs-actions.pod:6404
29989 msgid "guestfs_set_e2label"
29990 msgstr ""
29991
29992 #. type: verbatim
29993 #: ../src/guestfs-actions.pod:6406
29994 #, no-wrap
29995 msgid ""
29996 " int\n"
29997 " guestfs_set_e2label (guestfs_h *g,\n"
29998 "                      const char *device,\n"
29999 "                      const char *label);\n"
30000 "\n"
30001 msgstr ""
30002
30003 #. type: textblock
30004 #: ../src/guestfs-actions.pod:6415
30005 msgid ""
30006 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30007 "the existing label on a filesystem."
30008 msgstr ""
30009
30010 #. type: =head2
30011 #: ../src/guestfs-actions.pod:6422
30012 msgid "guestfs_set_e2uuid"
30013 msgstr ""
30014
30015 #. type: verbatim
30016 #: ../src/guestfs-actions.pod:6424
30017 #, no-wrap
30018 msgid ""
30019 " int\n"
30020 " guestfs_set_e2uuid (guestfs_h *g,\n"
30021 "                     const char *device,\n"
30022 "                     const char *uuid);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs-actions.pod:6434
30028 msgid ""
30029 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30030 "the existing UUID of a filesystem."
30031 msgstr ""
30032
30033 #. type: =head2
30034 #: ../src/guestfs-actions.pod:6441
30035 msgid "guestfs_set_memsize"
30036 msgstr ""
30037
30038 #. type: verbatim
30039 #: ../src/guestfs-actions.pod:6443
30040 #, no-wrap
30041 msgid ""
30042 " int\n"
30043 " guestfs_set_memsize (guestfs_h *g,\n"
30044 "                      int memsize);\n"
30045 "\n"
30046 msgstr ""
30047
30048 #. type: textblock
30049 #: ../src/guestfs-actions.pod:6447
30050 msgid ""
30051 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30052 "This only has any effect if called before C<guestfs_launch>."
30053 msgstr ""
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:6462
30057 msgid "guestfs_set_network"
30058 msgstr ""
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:6464
30062 #, no-wrap
30063 msgid ""
30064 " int\n"
30065 " guestfs_set_network (guestfs_h *g,\n"
30066 "                      int network);\n"
30067 "\n"
30068 msgstr ""
30069
30070 #. type: textblock
30071 #: ../src/guestfs-actions.pod:6474
30072 msgid ""
30073 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30074 "effect."
30075 msgstr ""
30076
30077 #. type: =head2
30078 #: ../src/guestfs-actions.pod:6481
30079 msgid "guestfs_set_path"
30080 msgstr ""
30081
30082 #. type: verbatim
30083 #: ../src/guestfs-actions.pod:6483
30084 #, no-wrap
30085 msgid ""
30086 " int\n"
30087 " guestfs_set_path (guestfs_h *g,\n"
30088 "                   const char *searchpath);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: =head2
30093 #: ../src/guestfs-actions.pod:6498
30094 msgid "guestfs_set_pgroup"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs-actions.pod:6500
30099 #, no-wrap
30100 msgid ""
30101 " int\n"
30102 " guestfs_set_pgroup (guestfs_h *g,\n"
30103 "                     int pgroup);\n"
30104 "\n"
30105 msgstr ""
30106
30107 #. type: =head2
30108 #: ../src/guestfs-actions.pod:6517
30109 msgid "guestfs_set_qemu"
30110 msgstr ""
30111
30112 #. type: verbatim
30113 #: ../src/guestfs-actions.pod:6519
30114 #, no-wrap
30115 msgid ""
30116 " int\n"
30117 " guestfs_set_qemu (guestfs_h *g,\n"
30118 "                   const char *qemu);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: =head2
30123 #: ../src/guestfs-actions.pod:6545
30124 msgid "guestfs_set_recovery_proc"
30125 msgstr ""
30126
30127 #. type: verbatim
30128 #: ../src/guestfs-actions.pod:6547
30129 #, no-wrap
30130 msgid ""
30131 " int\n"
30132 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30133 "                            int recoveryproc);\n"
30134 "\n"
30135 msgstr ""
30136
30137 #. type: textblock
30138 #: ../src/guestfs-actions.pod:6551
30139 msgid ""
30140 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30141 "not create a recovery process.  The purpose of the recovery process is to "
30142 "stop runaway qemu processes in the case where the main program aborts "
30143 "abruptly."
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../src/guestfs-actions.pod:6556
30148 msgid ""
30149 "This only has any effect if called before C<guestfs_launch>, and the default "
30150 "is true."
30151 msgstr ""
30152
30153 #. type: =head2
30154 #: ../src/guestfs-actions.pod:6569
30155 msgid "guestfs_set_selinux"
30156 msgstr ""
30157
30158 #. type: verbatim
30159 #: ../src/guestfs-actions.pod:6571
30160 #, no-wrap
30161 msgid ""
30162 " int\n"
30163 " guestfs_set_selinux (guestfs_h *g,\n"
30164 "                      int selinux);\n"
30165 "\n"
30166 msgstr ""
30167
30168 #. type: =head2
30169 #: ../src/guestfs-actions.pod:6588
30170 msgid "guestfs_set_smp"
30171 msgstr ""
30172
30173 #. type: verbatim
30174 #: ../src/guestfs-actions.pod:6590
30175 #, no-wrap
30176 msgid ""
30177 " int\n"
30178 " guestfs_set_smp (guestfs_h *g,\n"
30179 "                  int smp);\n"
30180 "\n"
30181 msgstr ""
30182
30183 #. type: textblock
30184 #: ../src/guestfs-actions.pod:6598
30185 msgid "This function must be called before C<guestfs_launch>."
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:6604
30190 msgid "guestfs_set_trace"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:6606
30195 #, no-wrap
30196 msgid ""
30197 " int\n"
30198 " guestfs_set_trace (guestfs_h *g,\n"
30199 "                    int trace);\n"
30200 "\n"
30201 msgstr ""
30202
30203 #. type: textblock
30204 #: ../src/guestfs-actions.pod:6620
30205 msgid ""
30206 "Trace messages are normally sent to C<stderr>, unless you register a "
30207 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30208 msgstr ""
30209
30210 #. type: =head2
30211 #: ../src/guestfs-actions.pod:6628
30212 msgid "guestfs_set_verbose"
30213 msgstr ""
30214
30215 #. type: verbatim
30216 #: ../src/guestfs-actions.pod:6630
30217 #, no-wrap
30218 msgid ""
30219 " int\n"
30220 " guestfs_set_verbose (guestfs_h *g,\n"
30221 "                      int verbose);\n"
30222 "\n"
30223 msgstr ""
30224
30225 #. type: textblock
30226 #: ../src/guestfs-actions.pod:6639
30227 msgid ""
30228 "Verbose messages are normally sent to C<stderr>, unless you register a "
30229 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30230 msgstr ""
30231
30232 #. type: =head2
30233 #: ../src/guestfs-actions.pod:6647
30234 msgid "guestfs_setcon"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-actions.pod:6649
30239 #, no-wrap
30240 msgid ""
30241 " int\n"
30242 " guestfs_setcon (guestfs_h *g,\n"
30243 "                 const char *context);\n"
30244 "\n"
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../src/guestfs-actions.pod:6662
30249 msgid "guestfs_setxattr"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../src/guestfs-actions.pod:6664
30254 #, no-wrap
30255 msgid ""
30256 " int\n"
30257 " guestfs_setxattr (guestfs_h *g,\n"
30258 "                   const char *xattr,\n"
30259 "                   const char *val,\n"
30260 "                   int vallen,\n"
30261 "                   const char *path);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../src/guestfs-actions.pod:6675
30267 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30268 msgstr ""
30269
30270 #. type: =head2
30271 #: ../src/guestfs-actions.pod:6681
30272 msgid "guestfs_sfdisk"
30273 msgstr ""
30274
30275 #. type: verbatim
30276 #: ../src/guestfs-actions.pod:6683
30277 #, no-wrap
30278 msgid ""
30279 " int\n"
30280 " guestfs_sfdisk (guestfs_h *g,\n"
30281 "                 const char *device,\n"
30282 "                 int cyls,\n"
30283 "                 int heads,\n"
30284 "                 int sectors,\n"
30285 "                 char *const *lines);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6769
30291 msgid ""
30292 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30293 "call instead."
30294 msgstr ""
30295
30296 #. type: textblock
30297 #: ../src/guestfs-actions.pod:6718
30298 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30299 msgstr ""
30300
30301 #. type: =head2
30302 #: ../src/guestfs-actions.pod:6728
30303 msgid "guestfs_sfdiskM"
30304 msgstr ""
30305
30306 #. type: verbatim
30307 #: ../src/guestfs-actions.pod:6730
30308 #, no-wrap
30309 msgid ""
30310 " int\n"
30311 " guestfs_sfdiskM (guestfs_h *g,\n"
30312 "                  const char *device,\n"
30313 "                  char *const *lines);\n"
30314 "\n"
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../src/guestfs-actions.pod:6742
30319 msgid ""
30320 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30321 "partition sizes are specified in megabytes only (rounded to the nearest "
30322 "cylinder) and you don't need to specify the cyls, heads and sectors "
30323 "parameters which were rarely if ever used anyway."
30324 msgstr ""
30325
30326 #. type: textblock
30327 #: ../src/guestfs-actions.pod:6748
30328 msgid ""
30329 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30330 "C<guestfs_part_disk>"
30331 msgstr ""
30332
30333 #. type: =head2
30334 #: ../src/guestfs-actions.pod:6758
30335 msgid "guestfs_sfdisk_N"
30336 msgstr ""
30337
30338 #. type: verbatim
30339 #: ../src/guestfs-actions.pod:6760
30340 #, no-wrap
30341 msgid ""
30342 " int\n"
30343 " guestfs_sfdisk_N (guestfs_h *g,\n"
30344 "                   const char *device,\n"
30345 "                   int partnum,\n"
30346 "                   int cyls,\n"
30347 "                   int heads,\n"
30348 "                   int sectors,\n"
30349 "                   const char *line);\n"
30350 "\n"
30351 msgstr ""
30352
30353 #. type: textblock
30354 #: ../src/guestfs-actions.pod:6779
30355 msgid ""
30356 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30357 "for the cyls/heads/sectors parameters."
30358 msgstr ""
30359
30360 #. type: textblock
30361 #: ../src/guestfs-actions.pod:6782
30362 msgid "See also: C<guestfs_part_add>"
30363 msgstr ""
30364
30365 #. type: =head2
30366 #: ../src/guestfs-actions.pod:6791
30367 msgid "guestfs_sfdisk_disk_geometry"
30368 msgstr ""
30369
30370 #. type: verbatim
30371 #: ../src/guestfs-actions.pod:6793
30372 #, no-wrap
30373 msgid ""
30374 " char *\n"
30375 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30376 "                               const char *device);\n"
30377 "\n"
30378 msgstr ""
30379
30380 #. type: textblock
30381 #: ../src/guestfs-actions.pod:6797
30382 msgid ""
30383 "This displays the disk geometry of C<device> read from the partition table.  "
30384 "Especially in the case where the underlying block device has been resized, "
30385 "this can be different from the kernel's idea of the geometry (see "
30386 "C<guestfs_sfdisk_kernel_geometry>)."
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:6810
30391 msgid "guestfs_sfdisk_kernel_geometry"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:6812
30396 #, no-wrap
30397 msgid ""
30398 " char *\n"
30399 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30400 "                                 const char *device);\n"
30401 "\n"
30402 msgstr ""
30403
30404 #. type: =head2
30405 #: ../src/guestfs-actions.pod:6826
30406 msgid "guestfs_sfdisk_l"
30407 msgstr ""
30408
30409 #. type: verbatim
30410 #: ../src/guestfs-actions.pod:6828
30411 #, no-wrap
30412 msgid ""
30413 " char *\n"
30414 " guestfs_sfdisk_l (guestfs_h *g,\n"
30415 "                   const char *device);\n"
30416 "\n"
30417 msgstr ""
30418
30419 #. type: textblock
30420 #: ../src/guestfs-actions.pod:6832
30421 msgid ""
30422 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30423 "call instead."
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:6843
30428 msgid "See also: C<guestfs_part_list>"
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:6850
30433 msgid "guestfs_sh"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:6852
30438 #, no-wrap
30439 msgid ""
30440 " char *\n"
30441 " guestfs_sh (guestfs_h *g,\n"
30442 "             const char *command);\n"
30443 "\n"
30444 msgstr ""
30445
30446 #. type: textblock
30447 #: ../src/guestfs-actions.pod:6859
30448 msgid "This is like C<guestfs_command>, but passes the command to:"
30449 msgstr ""
30450
30451 #. type: textblock
30452 #: ../src/guestfs-actions.pod:6867
30453 msgid "All the provisos about C<guestfs_command> apply to this call."
30454 msgstr ""
30455
30456 #. type: =head2
30457 #: ../src/guestfs-actions.pod:6874
30458 msgid "guestfs_sh_lines"
30459 msgstr ""
30460
30461 #. type: verbatim
30462 #: ../src/guestfs-actions.pod:6876
30463 #, no-wrap
30464 msgid ""
30465 " char **\n"
30466 " guestfs_sh_lines (guestfs_h *g,\n"
30467 "                   const char *command);\n"
30468 "\n"
30469 msgstr ""
30470
30471 #. type: textblock
30472 #: ../src/guestfs-actions.pod:6880
30473 msgid ""
30474 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30475 "lines."
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../src/guestfs-actions.pod:6883
30480 msgid "See also: C<guestfs_command_lines>"
30481 msgstr ""
30482
30483 #. type: =head2
30484 #: ../src/guestfs-actions.pod:6891
30485 msgid "guestfs_sleep"
30486 msgstr ""
30487
30488 #. type: verbatim
30489 #: ../src/guestfs-actions.pod:6893
30490 #, no-wrap
30491 msgid ""
30492 " int\n"
30493 " guestfs_sleep (guestfs_h *g,\n"
30494 "                int secs);\n"
30495 "\n"
30496 msgstr ""
30497
30498 #. type: textblock
30499 #: ../src/guestfs-actions.pod:6901
30500 msgid "(Added in 1.0.41)"
30501 msgstr ""
30502
30503 #. type: =head2
30504 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
30505 msgid "guestfs_stat"
30506 msgstr ""
30507
30508 #. type: verbatim
30509 #: ../src/guestfs-actions.pod:6905
30510 #, no-wrap
30511 msgid ""
30512 " struct guestfs_stat *\n"
30513 " guestfs_stat (guestfs_h *g,\n"
30514 "               const char *path);\n"
30515 "\n"
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
30520 msgid "guestfs_statvfs"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:6921
30525 #, no-wrap
30526 msgid ""
30527 " struct guestfs_statvfs *\n"
30528 " guestfs_statvfs (guestfs_h *g,\n"
30529 "                  const char *path);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: textblock
30534 #: ../src/guestfs-actions.pod:6931
30535 msgid ""
30536 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30537 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30538 msgstr ""
30539
30540 #. type: =head2
30541 #: ../src/guestfs-actions.pod:6937
30542 msgid "guestfs_strings"
30543 msgstr ""
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-actions.pod:6939
30547 #, no-wrap
30548 msgid ""
30549 " char **\n"
30550 " guestfs_strings (guestfs_h *g,\n"
30551 "                  const char *path);\n"
30552 "\n"
30553 msgstr ""
30554
30555 #. type: =head2
30556 #: ../src/guestfs-actions.pod:6955
30557 msgid "guestfs_strings_e"
30558 msgstr ""
30559
30560 #. type: verbatim
30561 #: ../src/guestfs-actions.pod:6957
30562 #, no-wrap
30563 msgid ""
30564 " char **\n"
30565 " guestfs_strings_e (guestfs_h *g,\n"
30566 "                    const char *encoding,\n"
30567 "                    const char *path);\n"
30568 "\n"
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs-actions.pod:6962
30573 msgid ""
30574 "This is like the C<guestfs_strings> command, but allows you to specify the "
30575 "encoding of strings that are looked for in the source file C<path>."
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs-actions.pod:6972
30580 msgid ""
30581 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30582 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30583 msgstr ""
30584
30585 #. type: =head2
30586 #: ../src/guestfs-actions.pod:7010
30587 msgid "guestfs_swapoff_device"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../src/guestfs-actions.pod:7012
30592 #, no-wrap
30593 msgid ""
30594 " int\n"
30595 " guestfs_swapoff_device (guestfs_h *g,\n"
30596 "                         const char *device);\n"
30597 "\n"
30598 msgstr ""
30599
30600 #. type: textblock
30601 #: ../src/guestfs-actions.pod:7016
30602 msgid ""
30603 "This command disables the libguestfs appliance swap device or partition "
30604 "named C<device>.  See C<guestfs_swapon_device>."
30605 msgstr ""
30606
30607 #. type: =head2
30608 #: ../src/guestfs-actions.pod:7024
30609 msgid "guestfs_swapoff_file"
30610 msgstr ""
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:7026
30614 #, no-wrap
30615 msgid ""
30616 " int\n"
30617 " guestfs_swapoff_file (guestfs_h *g,\n"
30618 "                       const char *file);\n"
30619 "\n"
30620 msgstr ""
30621
30622 #. type: =head2
30623 #: ../src/guestfs-actions.pod:7036
30624 msgid "guestfs_swapoff_label"
30625 msgstr ""
30626
30627 #. type: verbatim
30628 #: ../src/guestfs-actions.pod:7038
30629 #, no-wrap
30630 msgid ""
30631 " int\n"
30632 " guestfs_swapoff_label (guestfs_h *g,\n"
30633 "                        const char *label);\n"
30634 "\n"
30635 msgstr ""
30636
30637 #. type: =head2
30638 #: ../src/guestfs-actions.pod:7049
30639 msgid "guestfs_swapoff_uuid"
30640 msgstr ""
30641
30642 #. type: verbatim
30643 #: ../src/guestfs-actions.pod:7051
30644 #, no-wrap
30645 msgid ""
30646 " int\n"
30647 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30648 "                       const char *uuid);\n"
30649 "\n"
30650 msgstr ""
30651
30652 #. type: =head2
30653 #: ../src/guestfs-actions.pod:7062
30654 msgid "guestfs_swapon_device"
30655 msgstr ""
30656
30657 #. type: verbatim
30658 #: ../src/guestfs-actions.pod:7064
30659 #, no-wrap
30660 msgid ""
30661 " int\n"
30662 " guestfs_swapon_device (guestfs_h *g,\n"
30663 "                        const char *device);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: textblock
30668 #: ../src/guestfs-actions.pod:7068
30669 msgid ""
30670 "This command enables the libguestfs appliance to use the swap device or "
30671 "partition named C<device>.  The increased memory is made available for all "
30672 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30673 msgstr ""
30674
30675 #. type: =head2
30676 #: ../src/guestfs-actions.pod:7084
30677 msgid "guestfs_swapon_file"
30678 msgstr ""
30679
30680 #. type: verbatim
30681 #: ../src/guestfs-actions.pod:7086
30682 #, no-wrap
30683 msgid ""
30684 " int\n"
30685 " guestfs_swapon_file (guestfs_h *g,\n"
30686 "                      const char *file);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: textblock
30691 #: ../src/guestfs-actions.pod:7090
30692 msgid ""
30693 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30694 "notes."
30695 msgstr ""
30696
30697 #. type: =head2
30698 #: ../src/guestfs-actions.pod:7097
30699 msgid "guestfs_swapon_label"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:7099
30704 #, no-wrap
30705 msgid ""
30706 " int\n"
30707 " guestfs_swapon_label (guestfs_h *g,\n"
30708 "                       const char *label);\n"
30709 "\n"
30710 msgstr ""
30711
30712 #. type: textblock
30713 #: ../src/guestfs-actions.pod:7103
30714 msgid ""
30715 "This command enables swap to a labeled swap partition.  See "
30716 "C<guestfs_swapon_device> for other notes."
30717 msgstr ""
30718
30719 #. type: =head2
30720 #: ../src/guestfs-actions.pod:7110
30721 msgid "guestfs_swapon_uuid"
30722 msgstr ""
30723
30724 #. type: verbatim
30725 #: ../src/guestfs-actions.pod:7112
30726 #, no-wrap
30727 msgid ""
30728 " int\n"
30729 " guestfs_swapon_uuid (guestfs_h *g,\n"
30730 "                      const char *uuid);\n"
30731 "\n"
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs-actions.pod:7116
30736 msgid ""
30737 "This command enables swap to a swap partition with the given UUID.  See "
30738 "C<guestfs_swapon_device> for other notes."
30739 msgstr ""
30740
30741 #. type: =head2
30742 #: ../src/guestfs-actions.pod:7123
30743 msgid "guestfs_sync"
30744 msgstr ""
30745
30746 #. type: verbatim
30747 #: ../src/guestfs-actions.pod:7125
30748 #, no-wrap
30749 msgid ""
30750 " int\n"
30751 " guestfs_sync (guestfs_h *g);\n"
30752 "\n"
30753 msgstr ""
30754
30755 #. type: =head2
30756 #: ../src/guestfs-actions.pod:7138
30757 msgid "guestfs_tail"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs-actions.pod:7140
30762 #, no-wrap
30763 msgid ""
30764 " char **\n"
30765 " guestfs_tail (guestfs_h *g,\n"
30766 "               const char *path);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: =head2
30771 #: ../src/guestfs-actions.pod:7156
30772 msgid "guestfs_tail_n"
30773 msgstr ""
30774
30775 #. type: verbatim
30776 #: ../src/guestfs-actions.pod:7158
30777 #, no-wrap
30778 msgid ""
30779 " char **\n"
30780 " guestfs_tail_n (guestfs_h *g,\n"
30781 "                 int nrlines,\n"
30782 "                 const char *path);\n"
30783 "\n"
30784 msgstr ""
30785
30786 #. type: =head2
30787 #: ../src/guestfs-actions.pod:7180
30788 msgid "guestfs_tar_in"
30789 msgstr ""
30790
30791 #. type: verbatim
30792 #: ../src/guestfs-actions.pod:7182
30793 #, no-wrap
30794 msgid ""
30795 " int\n"
30796 " guestfs_tar_in (guestfs_h *g,\n"
30797 "                 const char *tarfile,\n"
30798 "                 const char *directory);\n"
30799 "\n"
30800 msgstr ""
30801
30802 #. type: textblock
30803 #: ../src/guestfs-actions.pod:7190
30804 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
30809 msgid "(Added in 1.0.3)"
30810 msgstr ""
30811
30812 #. type: =head2
30813 #: ../src/guestfs-actions.pod:7197
30814 msgid "guestfs_tar_out"
30815 msgstr ""
30816
30817 #. type: verbatim
30818 #: ../src/guestfs-actions.pod:7199
30819 #, no-wrap
30820 msgid ""
30821 " int\n"
30822 " guestfs_tar_out (guestfs_h *g,\n"
30823 "                  const char *directory,\n"
30824 "                  const char *tarfile);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: textblock
30829 #: ../src/guestfs-actions.pod:7207
30830 msgid ""
30831 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30832 "C<guestfs_txz_out>."
30833 msgstr ""
30834
30835 #. type: =head2
30836 #: ../src/guestfs-actions.pod:7214
30837 msgid "guestfs_tgz_in"
30838 msgstr ""
30839
30840 #. type: verbatim
30841 #: ../src/guestfs-actions.pod:7216
30842 #, no-wrap
30843 msgid ""
30844 " int\n"
30845 " guestfs_tgz_in (guestfs_h *g,\n"
30846 "                 const char *tarball,\n"
30847 "                 const char *directory);\n"
30848 "\n"
30849 msgstr ""
30850
30851 #. type: textblock
30852 #: ../src/guestfs-actions.pod:7224
30853 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30854 msgstr ""
30855
30856 #. type: =head2
30857 #: ../src/guestfs-actions.pod:7230
30858 msgid "guestfs_tgz_out"
30859 msgstr ""
30860
30861 #. type: verbatim
30862 #: ../src/guestfs-actions.pod:7232
30863 #, no-wrap
30864 msgid ""
30865 " int\n"
30866 " guestfs_tgz_out (guestfs_h *g,\n"
30867 "                  const char *directory,\n"
30868 "                  const char *tarball);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:7240
30874 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30875 msgstr ""
30876
30877 #. type: =head2
30878 #: ../src/guestfs-actions.pod:7246
30879 msgid "guestfs_touch"
30880 msgstr ""
30881
30882 #. type: verbatim
30883 #: ../src/guestfs-actions.pod:7248
30884 #, no-wrap
30885 msgid ""
30886 " int\n"
30887 " guestfs_touch (guestfs_h *g,\n"
30888 "                const char *path);\n"
30889 "\n"
30890 msgstr ""
30891
30892 #. type: =head2
30893 #: ../src/guestfs-actions.pod:7263
30894 msgid "guestfs_truncate"
30895 msgstr ""
30896
30897 #. type: verbatim
30898 #: ../src/guestfs-actions.pod:7265
30899 #, no-wrap
30900 msgid ""
30901 " int\n"
30902 " guestfs_truncate (guestfs_h *g,\n"
30903 "                   const char *path);\n"
30904 "\n"
30905 msgstr ""
30906
30907 #. type: =head2
30908 #: ../src/guestfs-actions.pod:7276
30909 msgid "guestfs_truncate_size"
30910 msgstr ""
30911
30912 #. type: verbatim
30913 #: ../src/guestfs-actions.pod:7278
30914 #, no-wrap
30915 msgid ""
30916 " int\n"
30917 " guestfs_truncate_size (guestfs_h *g,\n"
30918 "                        const char *path,\n"
30919 "                        int64_t size);\n"
30920 "\n"
30921 msgstr ""
30922
30923 #. type: textblock
30924 #: ../src/guestfs-actions.pod:7286
30925 msgid ""
30926 "If the current file size is less than C<size> then the file is extended to "
30927 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30928 "blocks are not allocated for the file until you write to it).  To create a "
30929 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30930 msgstr ""
30931
30932 #. type: =head2
30933 #: ../src/guestfs-actions.pod:7296
30934 msgid "guestfs_tune2fs_l"
30935 msgstr ""
30936
30937 #. type: verbatim
30938 #: ../src/guestfs-actions.pod:7298
30939 #, no-wrap
30940 msgid ""
30941 " char **\n"
30942 " guestfs_tune2fs_l (guestfs_h *g,\n"
30943 "                    const char *device);\n"
30944 "\n"
30945 msgstr ""
30946
30947 #. type: =head2
30948 #: ../src/guestfs-actions.pod:7318
30949 msgid "guestfs_txz_in"
30950 msgstr ""
30951
30952 #. type: verbatim
30953 #: ../src/guestfs-actions.pod:7320
30954 #, no-wrap
30955 msgid ""
30956 " int\n"
30957 " guestfs_txz_in (guestfs_h *g,\n"
30958 "                 const char *tarball,\n"
30959 "                 const char *directory);\n"
30960 "\n"
30961 msgstr ""
30962
30963 #. type: =head2
30964 #: ../src/guestfs-actions.pod:7332
30965 msgid "guestfs_txz_out"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs-actions.pod:7334
30970 #, no-wrap
30971 msgid ""
30972 " int\n"
30973 " guestfs_txz_out (guestfs_h *g,\n"
30974 "                  const char *directory,\n"
30975 "                  const char *tarball);\n"
30976 "\n"
30977 msgstr ""
30978
30979 #. type: =head2
30980 #: ../src/guestfs-actions.pod:7346
30981 msgid "guestfs_umask"
30982 msgstr ""
30983
30984 #. type: verbatim
30985 #: ../src/guestfs-actions.pod:7348
30986 #, no-wrap
30987 msgid ""
30988 " int\n"
30989 " guestfs_umask (guestfs_h *g,\n"
30990 "                int mask);\n"
30991 "\n"
30992 msgstr ""
30993
30994 #. type: textblock
30995 #: ../src/guestfs-actions.pod:7364
30996 msgid ""
30997 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30998 "C<guestfs_mkdir>."
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:7373
31003 msgid "guestfs_umount"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:7375
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_umount (guestfs_h *g,\n"
31012 "                 const char *pathordevice);\n"
31013 "\n"
31014 msgstr ""
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:7387
31018 msgid "guestfs_umount_all"
31019 msgstr ""
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:7389
31023 #, no-wrap
31024 msgid ""
31025 " int\n"
31026 " guestfs_umount_all (guestfs_h *g);\n"
31027 "\n"
31028 msgstr ""
31029
31030 #. type: =head2
31031 #: ../src/guestfs-actions.pod:7400
31032 msgid "guestfs_upload"
31033 msgstr ""
31034
31035 #. type: verbatim
31036 #: ../src/guestfs-actions.pod:7402
31037 #, no-wrap
31038 msgid ""
31039 " int\n"
31040 " guestfs_upload (guestfs_h *g,\n"
31041 "                 const char *filename,\n"
31042 "                 const char *remotefilename);\n"
31043 "\n"
31044 msgstr ""
31045
31046 #. type: textblock
31047 #: ../src/guestfs-actions.pod:7412
31048 msgid "See also C<guestfs_download>."
31049 msgstr ""
31050
31051 #. type: =head2
31052 #: ../src/guestfs-actions.pod:7423
31053 msgid "guestfs_upload_offset"
31054 msgstr ""
31055
31056 #. type: verbatim
31057 #: ../src/guestfs-actions.pod:7425
31058 #, no-wrap
31059 msgid ""
31060 " int\n"
31061 " guestfs_upload_offset (guestfs_h *g,\n"
31062 "                        const char *filename,\n"
31063 "                        const char *remotefilename,\n"
31064 "                        int64_t offset);\n"
31065 "\n"
31066 msgstr ""
31067
31068 #. type: textblock
31069 #: ../src/guestfs-actions.pod:7441
31070 msgid ""
31071 "Note that there is no limit on the amount of data that can be uploaded with "
31072 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31073 "full amount unless an error occurs."
31074 msgstr ""
31075
31076 #. type: textblock
31077 #: ../src/guestfs-actions.pod:7446
31078 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31079 msgstr ""
31080
31081 #. type: =head2
31082 #: ../src/guestfs-actions.pod:7457
31083 msgid "guestfs_utimens"
31084 msgstr ""
31085
31086 #. type: verbatim
31087 #: ../src/guestfs-actions.pod:7459
31088 #, no-wrap
31089 msgid ""
31090 " int\n"
31091 " guestfs_utimens (guestfs_h *g,\n"
31092 "                  const char *path,\n"
31093 "                  int64_t atsecs,\n"
31094 "                  int64_t atnsecs,\n"
31095 "                  int64_t mtsecs,\n"
31096 "                  int64_t mtnsecs);\n"
31097 "\n"
31098 msgstr ""
31099
31100 #. type: =head2
31101 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
31102 msgid "guestfs_version"
31103 msgstr ""
31104
31105 #. type: verbatim
31106 #: ../src/guestfs-actions.pod:7490
31107 #, no-wrap
31108 msgid ""
31109 " struct guestfs_version *\n"
31110 " guestfs_version (guestfs_h *g);\n"
31111 "\n"
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs-actions.pod:7518
31116 msgid ""
31117 "I<Note:> Don't use this call to test for availability of features.  In "
31118 "enterprise distributions we backport features from later versions into "
31119 "earlier versions, making this an unreliable way to test for features.  Use "
31120 "C<guestfs_available> instead."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs-actions.pod:7524
31125 msgid ""
31126 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31127 "error.  I<The caller must call C<guestfs_free_version> after use>."
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs-actions.pod:7528
31132 msgid "(Added in 1.0.58)"
31133 msgstr ""
31134
31135 #. type: =head2
31136 #: ../src/guestfs-actions.pod:7530
31137 msgid "guestfs_vfs_label"
31138 msgstr ""
31139
31140 #. type: verbatim
31141 #: ../src/guestfs-actions.pod:7532
31142 #, no-wrap
31143 msgid ""
31144 " char *\n"
31145 " guestfs_vfs_label (guestfs_h *g,\n"
31146 "                    const char *device);\n"
31147 "\n"
31148 msgstr ""
31149
31150 #. type: textblock
31151 #: ../src/guestfs-actions.pod:7541
31152 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31153 msgstr ""
31154
31155 #. type: textblock
31156 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
31157 msgid "(Added in 1.3.18)"
31158 msgstr ""
31159
31160 #. type: =head2
31161 #: ../src/guestfs-actions.pod:7548
31162 msgid "guestfs_vfs_type"
31163 msgstr ""
31164
31165 #. type: verbatim
31166 #: ../src/guestfs-actions.pod:7550
31167 #, no-wrap
31168 msgid ""
31169 " char *\n"
31170 " guestfs_vfs_type (guestfs_h *g,\n"
31171 "                   const char *device);\n"
31172 "\n"
31173 msgstr ""
31174
31175 #. type: =head2
31176 #: ../src/guestfs-actions.pod:7567
31177 msgid "guestfs_vfs_uuid"
31178 msgstr ""
31179
31180 #. type: verbatim
31181 #: ../src/guestfs-actions.pod:7569
31182 #, no-wrap
31183 msgid ""
31184 " char *\n"
31185 " guestfs_vfs_uuid (guestfs_h *g,\n"
31186 "                   const char *device);\n"
31187 "\n"
31188 msgstr ""
31189
31190 #. type: textblock
31191 #: ../src/guestfs-actions.pod:7578
31192 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31193 msgstr ""
31194
31195 #. type: =head2
31196 #: ../src/guestfs-actions.pod:7585
31197 msgid "guestfs_vg_activate"
31198 msgstr ""
31199
31200 #. type: verbatim
31201 #: ../src/guestfs-actions.pod:7587
31202 #, no-wrap
31203 msgid ""
31204 " int\n"
31205 " guestfs_vg_activate (guestfs_h *g,\n"
31206 "                      int activate,\n"
31207 "                      char *const *volgroups);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: =head2
31212 #: ../src/guestfs-actions.pod:7604
31213 msgid "guestfs_vg_activate_all"
31214 msgstr ""
31215
31216 #. type: verbatim
31217 #: ../src/guestfs-actions.pod:7606
31218 #, no-wrap
31219 msgid ""
31220 " int\n"
31221 " guestfs_vg_activate_all (guestfs_h *g,\n"
31222 "                          int activate);\n"
31223 "\n"
31224 msgstr ""
31225
31226 #. type: =head2
31227 #: ../src/guestfs-actions.pod:7619
31228 msgid "guestfs_vgcreate"
31229 msgstr ""
31230
31231 #. type: verbatim
31232 #: ../src/guestfs-actions.pod:7621
31233 #, no-wrap
31234 msgid ""
31235 " int\n"
31236 " guestfs_vgcreate (guestfs_h *g,\n"
31237 "                   const char *volgroup,\n"
31238 "                   char *const *physvols);\n"
31239 "\n"
31240 msgstr ""
31241
31242 #. type: =head2
31243 #: ../src/guestfs-actions.pod:7633
31244 msgid "guestfs_vglvuuids"
31245 msgstr ""
31246
31247 #. type: verbatim
31248 #: ../src/guestfs-actions.pod:7635
31249 #, no-wrap
31250 msgid ""
31251 " char **\n"
31252 " guestfs_vglvuuids (guestfs_h *g,\n"
31253 "                    const char *vgname);\n"
31254 "\n"
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs-actions.pod:7642
31259 msgid ""
31260 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31261 "associate logical volumes and volume groups."
31262 msgstr ""
31263
31264 #. type: textblock
31265 #: ../src/guestfs-actions.pod:7645
31266 msgid "See also C<guestfs_vgpvuuids>."
31267 msgstr ""
31268
31269 #. type: =head2
31270 #: ../src/guestfs-actions.pod:7653
31271 msgid "guestfs_vgpvuuids"
31272 msgstr ""
31273
31274 #. type: verbatim
31275 #: ../src/guestfs-actions.pod:7655
31276 #, no-wrap
31277 msgid ""
31278 " char **\n"
31279 " guestfs_vgpvuuids (guestfs_h *g,\n"
31280 "                    const char *vgname);\n"
31281 "\n"
31282 msgstr ""
31283
31284 #. type: textblock
31285 #: ../src/guestfs-actions.pod:7662
31286 msgid ""
31287 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31288 "associate physical volumes and volume groups."
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:7665
31293 msgid "See also C<guestfs_vglvuuids>."
31294 msgstr ""
31295
31296 #. type: =head2
31297 #: ../src/guestfs-actions.pod:7673
31298 msgid "guestfs_vgremove"
31299 msgstr ""
31300
31301 #. type: verbatim
31302 #: ../src/guestfs-actions.pod:7675
31303 #, no-wrap
31304 msgid ""
31305 " int\n"
31306 " guestfs_vgremove (guestfs_h *g,\n"
31307 "                   const char *vgname);\n"
31308 "\n"
31309 msgstr ""
31310
31311 #. type: =head2
31312 #: ../src/guestfs-actions.pod:7688
31313 msgid "guestfs_vgrename"
31314 msgstr ""
31315
31316 #. type: verbatim
31317 #: ../src/guestfs-actions.pod:7690
31318 #, no-wrap
31319 msgid ""
31320 " int\n"
31321 " guestfs_vgrename (guestfs_h *g,\n"
31322 "                   const char *volgroup,\n"
31323 "                   const char *newvolgroup);\n"
31324 "\n"
31325 msgstr ""
31326
31327 #. type: =head2
31328 #: ../src/guestfs-actions.pod:7701
31329 msgid "guestfs_vgs"
31330 msgstr ""
31331
31332 #. type: verbatim
31333 #: ../src/guestfs-actions.pod:7703
31334 #, no-wrap
31335 msgid ""
31336 " char **\n"
31337 " guestfs_vgs (guestfs_h *g);\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs-actions.pod:7712
31343 msgid "See also C<guestfs_vgs_full>."
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:7720
31348 msgid "guestfs_vgs_full"
31349 msgstr ""
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:7722
31353 #, no-wrap
31354 msgid ""
31355 " struct guestfs_lvm_vg_list *\n"
31356 " guestfs_vgs_full (guestfs_h *g);\n"
31357 "\n"
31358 msgstr ""
31359
31360 #. type: textblock
31361 #: ../src/guestfs-actions.pod:7728
31362 msgid ""
31363 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31364 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
31365 "use>."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:7734
31370 msgid "guestfs_vgscan"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:7736
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_vgscan (guestfs_h *g);\n"
31379 "\n"
31380 msgstr ""
31381
31382 #. type: =head2
31383 #: ../src/guestfs-actions.pod:7746
31384 msgid "guestfs_vguuid"
31385 msgstr ""
31386
31387 #. type: verbatim
31388 #: ../src/guestfs-actions.pod:7748
31389 #, no-wrap
31390 msgid ""
31391 " char *\n"
31392 " guestfs_vguuid (guestfs_h *g,\n"
31393 "                 const char *vgname);\n"
31394 "\n"
31395 msgstr ""
31396
31397 #. type: =head2
31398 #: ../src/guestfs-actions.pod:7759
31399 msgid "guestfs_wait_ready"
31400 msgstr ""
31401
31402 #. type: verbatim
31403 #: ../src/guestfs-actions.pod:7761
31404 #, no-wrap
31405 msgid ""
31406 " int\n"
31407 " guestfs_wait_ready (guestfs_h *g);\n"
31408 "\n"
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:7764
31413 msgid ""
31414 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31415 "instead."
31416 msgstr ""
31417
31418 #. type: textblock
31419 #: ../src/guestfs-actions.pod:7771
31420 msgid "This function is a no op."
31421 msgstr ""
31422
31423 #. type: textblock
31424 #: ../src/guestfs-actions.pod:7773
31425 msgid ""
31426 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31427 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31428 "is no longer necessary because C<guestfs_launch> now does the waiting."
31429 msgstr ""
31430
31431 #. type: textblock
31432 #: ../src/guestfs-actions.pod:7778
31433 msgid ""
31434 "If you see any calls to this function in code then you can just remove them, "
31435 "unless you want to retain compatibility with older versions of the API."
31436 msgstr ""
31437
31438 #. type: =head2
31439 #: ../src/guestfs-actions.pod:7786
31440 msgid "guestfs_wc_c"
31441 msgstr ""
31442
31443 #. type: verbatim
31444 #: ../src/guestfs-actions.pod:7788
31445 #, no-wrap
31446 msgid ""
31447 " int\n"
31448 " guestfs_wc_c (guestfs_h *g,\n"
31449 "               const char *path);\n"
31450 "\n"
31451 msgstr ""
31452
31453 #. type: =head2
31454 #: ../src/guestfs-actions.pod:7799
31455 msgid "guestfs_wc_l"
31456 msgstr ""
31457
31458 #. type: verbatim
31459 #: ../src/guestfs-actions.pod:7801
31460 #, no-wrap
31461 msgid ""
31462 " int\n"
31463 " guestfs_wc_l (guestfs_h *g,\n"
31464 "               const char *path);\n"
31465 "\n"
31466 msgstr ""
31467
31468 #. type: =head2
31469 #: ../src/guestfs-actions.pod:7812
31470 msgid "guestfs_wc_w"
31471 msgstr ""
31472
31473 #. type: verbatim
31474 #: ../src/guestfs-actions.pod:7814
31475 #, no-wrap
31476 msgid ""
31477 " int\n"
31478 " guestfs_wc_w (guestfs_h *g,\n"
31479 "               const char *path);\n"
31480 "\n"
31481 msgstr ""
31482
31483 #. type: =head2
31484 #: ../src/guestfs-actions.pod:7825
31485 msgid "guestfs_write"
31486 msgstr ""
31487
31488 #. type: verbatim
31489 #: ../src/guestfs-actions.pod:7827
31490 #, no-wrap
31491 msgid ""
31492 " int\n"
31493 " guestfs_write (guestfs_h *g,\n"
31494 "                const char *path,\n"
31495 "                const char *content,\n"
31496 "                size_t content_size);\n"
31497 "\n"
31498 msgstr ""
31499
31500 #. type: textblock
31501 #: ../src/guestfs-actions.pod:7836
31502 msgid "See also C<guestfs_write_append>."
31503 msgstr ""
31504
31505 #. type: =head2
31506 #: ../src/guestfs-actions.pod:7845
31507 msgid "guestfs_write_append"
31508 msgstr ""
31509
31510 #. type: verbatim
31511 #: ../src/guestfs-actions.pod:7847
31512 #, no-wrap
31513 msgid ""
31514 " int\n"
31515 " guestfs_write_append (guestfs_h *g,\n"
31516 "                       const char *path,\n"
31517 "                       const char *content,\n"
31518 "                       size_t content_size);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: textblock
31523 #: ../src/guestfs-actions.pod:7856
31524 msgid "See also C<guestfs_write>."
31525 msgstr ""
31526
31527 #. type: =head2
31528 #: ../src/guestfs-actions.pod:7865
31529 msgid "guestfs_write_file"
31530 msgstr ""
31531
31532 #. type: verbatim
31533 #: ../src/guestfs-actions.pod:7867
31534 #, no-wrap
31535 msgid ""
31536 " int\n"
31537 " guestfs_write_file (guestfs_h *g,\n"
31538 "                     const char *path,\n"
31539 "                     const char *content,\n"
31540 "                     int size);\n"
31541 "\n"
31542 msgstr ""
31543
31544 #. type: textblock
31545 #: ../src/guestfs-actions.pod:7873
31546 msgid ""
31547 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31548 "instead."
31549 msgstr ""
31550
31551 #. type: =head2
31552 #: ../src/guestfs-actions.pod:7898
31553 msgid "guestfs_zegrep"
31554 msgstr ""
31555
31556 #. type: verbatim
31557 #: ../src/guestfs-actions.pod:7900
31558 #, no-wrap
31559 msgid ""
31560 " char **\n"
31561 " guestfs_zegrep (guestfs_h *g,\n"
31562 "                 const char *regex,\n"
31563 "                 const char *path);\n"
31564 "\n"
31565 msgstr ""
31566
31567 #. type: =head2
31568 #: ../src/guestfs-actions.pod:7917
31569 msgid "guestfs_zegrepi"
31570 msgstr ""
31571
31572 #. type: verbatim
31573 #: ../src/guestfs-actions.pod:7919
31574 #, no-wrap
31575 msgid ""
31576 " char **\n"
31577 " guestfs_zegrepi (guestfs_h *g,\n"
31578 "                  const char *regex,\n"
31579 "                  const char *path);\n"
31580 "\n"
31581 msgstr ""
31582
31583 #. type: =head2
31584 #: ../src/guestfs-actions.pod:7936
31585 msgid "guestfs_zero"
31586 msgstr ""
31587
31588 #. type: verbatim
31589 #: ../src/guestfs-actions.pod:7938
31590 #, no-wrap
31591 msgid ""
31592 " int\n"
31593 " guestfs_zero (guestfs_h *g,\n"
31594 "               const char *device);\n"
31595 "\n"
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs-actions.pod:7952
31600 msgid ""
31601 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31602 "C<guestfs_is_zero_device>"
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:7964
31607 msgid "guestfs_zero_device"
31608 msgstr ""
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:7966
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_zero_device (guestfs_h *g,\n"
31616 "                      const char *device);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: textblock
31621 #: ../src/guestfs-actions.pod:7970
31622 msgid ""
31623 "This command writes zeroes over the entire C<device>.  Compare with "
31624 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31625 msgstr ""
31626
31627 #. type: textblock
31628 #: ../src/guestfs-actions.pod:7988
31629 msgid "(Added in 1.3.1)"
31630 msgstr ""
31631
31632 #. type: =head2
31633 #: ../src/guestfs-actions.pod:7990
31634 msgid "guestfs_zerofree"
31635 msgstr ""
31636
31637 #. type: verbatim
31638 #: ../src/guestfs-actions.pod:7992
31639 #, no-wrap
31640 msgid ""
31641 " int\n"
31642 " guestfs_zerofree (guestfs_h *g,\n"
31643 "                   const char *device);\n"
31644 "\n"
31645 msgstr ""
31646
31647 #. type: =head2
31648 #: ../src/guestfs-actions.pod:8011
31649 msgid "guestfs_zfgrep"
31650 msgstr ""
31651
31652 #. type: verbatim
31653 #: ../src/guestfs-actions.pod:8013
31654 #, no-wrap
31655 msgid ""
31656 " char **\n"
31657 " guestfs_zfgrep (guestfs_h *g,\n"
31658 "                 const char *pattern,\n"
31659 "                 const char *path);\n"
31660 "\n"
31661 msgstr ""
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:8030
31665 msgid "guestfs_zfgrepi"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:8032
31670 #, no-wrap
31671 msgid ""
31672 " char **\n"
31673 " guestfs_zfgrepi (guestfs_h *g,\n"
31674 "                  const char *pattern,\n"
31675 "                  const char *path);\n"
31676 "\n"
31677 msgstr ""
31678
31679 #. type: =head2
31680 #: ../src/guestfs-actions.pod:8049
31681 msgid "guestfs_zfile"
31682 msgstr ""
31683
31684 #. type: verbatim
31685 #: ../src/guestfs-actions.pod:8051
31686 #, no-wrap
31687 msgid ""
31688 " char *\n"
31689 " guestfs_zfile (guestfs_h *g,\n"
31690 "                const char *meth,\n"
31691 "                const char *path);\n"
31692 "\n"
31693 msgstr ""
31694
31695 #. type: textblock
31696 #: ../src/guestfs-actions.pod:8056
31697 msgid ""
31698 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31699 "instead."
31700 msgstr ""
31701
31702 #. type: textblock
31703 #: ../src/guestfs-actions.pod:8068
31704 msgid ""
31705 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31706 "files."
31707 msgstr ""
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:8076
31711 msgid "guestfs_zgrep"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:8078
31716 #, no-wrap
31717 msgid ""
31718 " char **\n"
31719 " guestfs_zgrep (guestfs_h *g,\n"
31720 "                const char *regex,\n"
31721 "                const char *path);\n"
31722 "\n"
31723 msgstr ""
31724
31725 #. type: =head2
31726 #: ../src/guestfs-actions.pod:8095
31727 msgid "guestfs_zgrepi"
31728 msgstr ""
31729
31730 #. type: verbatim
31731 #: ../src/guestfs-actions.pod:8097
31732 #, no-wrap
31733 msgid ""
31734 " char **\n"
31735 " guestfs_zgrepi (guestfs_h *g,\n"
31736 "                 const char *regex,\n"
31737 "                 const char *path);\n"
31738 "\n"
31739 msgstr ""
31740
31741 #. type: =item
31742 #: ../src/guestfs-availability.pod:3
31743 msgid "B<augeas>"
31744 msgstr ""
31745
31746 #. type: textblock
31747 #: ../src/guestfs-availability.pod:5
31748 msgid ""
31749 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
31750 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
31751 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
31752 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
31753 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
31754 msgstr ""
31755
31756 #. type: =item
31757 #: ../src/guestfs-availability.pod:21
31758 msgid "B<btrfs>"
31759 msgstr ""
31760
31761 #. type: textblock
31762 #: ../src/guestfs-availability.pod:23
31763 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31764 msgstr ""
31765
31766 #. type: =item
31767 #: ../src/guestfs-availability.pod:26
31768 msgid "B<grub>"
31769 msgstr ""
31770
31771 #. type: textblock
31772 #: ../src/guestfs-availability.pod:28
31773 msgid "The following functions: L</guestfs_grub_install>"
31774 msgstr ""
31775
31776 #. type: =item
31777 #: ../src/guestfs-availability.pod:31
31778 msgid "B<inotify>"
31779 msgstr ""
31780
31781 #. type: textblock
31782 #: ../src/guestfs-availability.pod:33
31783 msgid ""
31784 "The following functions: L</guestfs_inotify_add_watch> "
31785 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
31786 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31787 msgstr ""
31788
31789 #. type: =item
31790 #: ../src/guestfs-availability.pod:41
31791 msgid "B<linuxfsuuid>"
31792 msgstr ""
31793
31794 #. type: textblock
31795 #: ../src/guestfs-availability.pod:43
31796 msgid ""
31797 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
31798 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31799 msgstr ""
31800
31801 #. type: =item
31802 #: ../src/guestfs-availability.pod:50
31803 msgid "B<linuxmodules>"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs-availability.pod:52
31808 msgid "The following functions: L</guestfs_modprobe>"
31809 msgstr ""
31810
31811 #. type: =item
31812 #: ../src/guestfs-availability.pod:55
31813 msgid "B<linuxxattrs>"
31814 msgstr ""
31815
31816 #. type: textblock
31817 #: ../src/guestfs-availability.pod:57
31818 msgid ""
31819 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
31820 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
31821 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
31822 "L</guestfs_setxattr>"
31823 msgstr ""
31824
31825 #. type: =item
31826 #: ../src/guestfs-availability.pod:68
31827 msgid "B<luks>"
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs-availability.pod:70
31832 msgid ""
31833 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
31834 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
31835 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31836 msgstr ""
31837
31838 #. type: =item
31839 #: ../src/guestfs-availability.pod:79
31840 msgid "B<lvm2>"
31841 msgstr ""
31842
31843 #. type: textblock
31844 #: ../src/guestfs-availability.pod:81
31845 msgid ""
31846 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
31847 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
31848 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
31849 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
31850 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
31851 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
31852 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
31853 "L</guestfs_vgs_full>"
31854 msgstr ""
31855
31856 #. type: =item
31857 #: ../src/guestfs-availability.pod:104
31858 msgid "B<mknod>"
31859 msgstr ""
31860
31861 #. type: textblock
31862 #: ../src/guestfs-availability.pod:106
31863 msgid ""
31864 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
31865 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
31866 msgstr ""
31867
31868 #. type: =item
31869 #: ../src/guestfs-availability.pod:112
31870 msgid "B<ntfs3g>"
31871 msgstr ""
31872
31873 #. type: textblock
31874 #: ../src/guestfs-availability.pod:114
31875 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31876 msgstr ""
31877
31878 #. type: =item
31879 #: ../src/guestfs-availability.pod:117
31880 msgid "B<ntfsprogs>"
31881 msgstr ""
31882
31883 #. type: textblock
31884 #: ../src/guestfs-availability.pod:119
31885 msgid ""
31886 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31887 "L</guestfs_ntfsresize_size>"
31888 msgstr ""
31889
31890 #. type: =item
31891 #: ../src/guestfs-availability.pod:124
31892 msgid "B<realpath>"
31893 msgstr ""
31894
31895 #. type: textblock
31896 #: ../src/guestfs-availability.pod:126
31897 msgid "The following functions: L</guestfs_realpath>"
31898 msgstr ""
31899
31900 #. type: =item
31901 #: ../src/guestfs-availability.pod:129
31902 msgid "B<scrub>"
31903 msgstr ""
31904
31905 #. type: textblock
31906 #: ../src/guestfs-availability.pod:131
31907 msgid ""
31908 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
31909 "L</guestfs_scrub_freespace>"
31910 msgstr ""
31911
31912 #. type: =item
31913 #: ../src/guestfs-availability.pod:136
31914 msgid "B<selinux>"
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs-availability.pod:138
31919 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31920 msgstr ""
31921
31922 #. type: =item
31923 #: ../src/guestfs-availability.pod:142
31924 msgid "B<xz>"
31925 msgstr ""
31926
31927 #. type: textblock
31928 #: ../src/guestfs-availability.pod:144
31929 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31930 msgstr ""
31931
31932 #. type: =item
31933 #: ../src/guestfs-availability.pod:148
31934 msgid "B<zerofree>"
31935 msgstr ""
31936
31937 #. type: textblock
31938 #: ../src/guestfs-availability.pod:150
31939 msgid "The following functions: L</guestfs_zerofree>"
31940 msgstr ""
31941
31942 #. type: =head2
31943 #: ../src/guestfs-structs.pod:1
31944 msgid "guestfs_int_bool"
31945 msgstr ""
31946
31947 #. type: verbatim
31948 #: ../src/guestfs-structs.pod:3
31949 #, no-wrap
31950 msgid ""
31951 " struct guestfs_int_bool {\n"
31952 "   int32_t i;\n"
31953 "   int32_t b;\n"
31954 " };\n"
31955 " \n"
31956 msgstr ""
31957
31958 #. type: verbatim
31959 #: ../src/guestfs-structs.pod:8
31960 #, no-wrap
31961 msgid ""
31962 " struct guestfs_int_bool_list {\n"
31963 "   uint32_t len; /* Number of elements in list. */\n"
31964 "   struct guestfs_int_bool *val; /* Elements. */\n"
31965 " };\n"
31966 " \n"
31967 msgstr ""
31968
31969 #. type: verbatim
31970 #: ../src/guestfs-structs.pod:13
31971 #, no-wrap
31972 msgid ""
31973 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31974 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31975 "\n"
31976 msgstr ""
31977
31978 #. type: =head2
31979 #: ../src/guestfs-structs.pod:16
31980 msgid "guestfs_lvm_pv"
31981 msgstr ""
31982
31983 #. type: verbatim
31984 #: ../src/guestfs-structs.pod:18
31985 #, no-wrap
31986 msgid ""
31987 " struct guestfs_lvm_pv {\n"
31988 "   char *pv_name;\n"
31989 "   /* The next field is NOT nul-terminated, be careful when printing it: "
31990 "*/\n"
31991 "   char pv_uuid[32];\n"
31992 "   char *pv_fmt;\n"
31993 "   uint64_t pv_size;\n"
31994 "   uint64_t dev_size;\n"
31995 "   uint64_t pv_free;\n"
31996 "   uint64_t pv_used;\n"
31997 "   char *pv_attr;\n"
31998 "   int64_t pv_pe_count;\n"
31999 "   int64_t pv_pe_alloc_count;\n"
32000 "   char *pv_tags;\n"
32001 "   uint64_t pe_start;\n"
32002 "   int64_t pv_mda_count;\n"
32003 "   uint64_t pv_mda_free;\n"
32004 " };\n"
32005 " \n"
32006 msgstr ""
32007
32008 #. type: verbatim
32009 #: ../src/guestfs-structs.pod:36
32010 #, no-wrap
32011 msgid ""
32012 " struct guestfs_lvm_pv_list {\n"
32013 "   uint32_t len; /* Number of elements in list. */\n"
32014 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32015 " };\n"
32016 " \n"
32017 msgstr ""
32018
32019 #. type: verbatim
32020 #: ../src/guestfs-structs.pod:41
32021 #, no-wrap
32022 msgid ""
32023 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32024 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32025 "\n"
32026 msgstr ""
32027
32028 #. type: =head2
32029 #: ../src/guestfs-structs.pod:44
32030 msgid "guestfs_lvm_vg"
32031 msgstr ""
32032
32033 #. type: verbatim
32034 #: ../src/guestfs-structs.pod:46
32035 #, no-wrap
32036 msgid ""
32037 " struct guestfs_lvm_vg {\n"
32038 "   char *vg_name;\n"
32039 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32040 "*/\n"
32041 "   char vg_uuid[32];\n"
32042 "   char *vg_fmt;\n"
32043 "   char *vg_attr;\n"
32044 "   uint64_t vg_size;\n"
32045 "   uint64_t vg_free;\n"
32046 "   char *vg_sysid;\n"
32047 "   uint64_t vg_extent_size;\n"
32048 "   int64_t vg_extent_count;\n"
32049 "   int64_t vg_free_count;\n"
32050 "   int64_t max_lv;\n"
32051 "   int64_t max_pv;\n"
32052 "   int64_t pv_count;\n"
32053 "   int64_t lv_count;\n"
32054 "   int64_t snap_count;\n"
32055 "   int64_t vg_seqno;\n"
32056 "   char *vg_tags;\n"
32057 "   int64_t vg_mda_count;\n"
32058 "   uint64_t vg_mda_free;\n"
32059 " };\n"
32060 " \n"
32061 msgstr ""
32062
32063 #. type: verbatim
32064 #: ../src/guestfs-structs.pod:69
32065 #, no-wrap
32066 msgid ""
32067 " struct guestfs_lvm_vg_list {\n"
32068 "   uint32_t len; /* Number of elements in list. */\n"
32069 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32070 " };\n"
32071 " \n"
32072 msgstr ""
32073
32074 #. type: verbatim
32075 #: ../src/guestfs-structs.pod:74
32076 #, no-wrap
32077 msgid ""
32078 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32079 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32080 "\n"
32081 msgstr ""
32082
32083 #. type: =head2
32084 #: ../src/guestfs-structs.pod:77
32085 msgid "guestfs_lvm_lv"
32086 msgstr ""
32087
32088 #. type: verbatim
32089 #: ../src/guestfs-structs.pod:79
32090 #, no-wrap
32091 msgid ""
32092 " struct guestfs_lvm_lv {\n"
32093 "   char *lv_name;\n"
32094 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32095 "*/\n"
32096 "   char lv_uuid[32];\n"
32097 "   char *lv_attr;\n"
32098 "   int64_t lv_major;\n"
32099 "   int64_t lv_minor;\n"
32100 "   int64_t lv_kernel_major;\n"
32101 "   int64_t lv_kernel_minor;\n"
32102 "   uint64_t lv_size;\n"
32103 "   int64_t seg_count;\n"
32104 "   char *origin;\n"
32105 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32106 "   float snap_percent;\n"
32107 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32108 "   float copy_percent;\n"
32109 "   char *move_pv;\n"
32110 "   char *lv_tags;\n"
32111 "   char *mirror_log;\n"
32112 "   char *modules;\n"
32113 " };\n"
32114 " \n"
32115 msgstr ""
32116
32117 #. type: verbatim
32118 #: ../src/guestfs-structs.pod:101
32119 #, no-wrap
32120 msgid ""
32121 " struct guestfs_lvm_lv_list {\n"
32122 "   uint32_t len; /* Number of elements in list. */\n"
32123 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32124 " };\n"
32125 " \n"
32126 msgstr ""
32127
32128 #. type: verbatim
32129 #: ../src/guestfs-structs.pod:106
32130 #, no-wrap
32131 msgid ""
32132 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32133 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: verbatim
32138 #: ../src/guestfs-structs.pod:111
32139 #, no-wrap
32140 msgid ""
32141 " struct guestfs_stat {\n"
32142 "   int64_t dev;\n"
32143 "   int64_t ino;\n"
32144 "   int64_t mode;\n"
32145 "   int64_t nlink;\n"
32146 "   int64_t uid;\n"
32147 "   int64_t gid;\n"
32148 "   int64_t rdev;\n"
32149 "   int64_t size;\n"
32150 "   int64_t blksize;\n"
32151 "   int64_t blocks;\n"
32152 "   int64_t atime;\n"
32153 "   int64_t mtime;\n"
32154 "   int64_t ctime;\n"
32155 " };\n"
32156 " \n"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-structs.pod:127
32161 #, no-wrap
32162 msgid ""
32163 " struct guestfs_stat_list {\n"
32164 "   uint32_t len; /* Number of elements in list. */\n"
32165 "   struct guestfs_stat *val; /* Elements. */\n"
32166 " };\n"
32167 " \n"
32168 msgstr ""
32169
32170 #. type: verbatim
32171 #: ../src/guestfs-structs.pod:132
32172 #, no-wrap
32173 msgid ""
32174 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32175 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32176 "\n"
32177 msgstr ""
32178
32179 #. type: verbatim
32180 #: ../src/guestfs-structs.pod:137
32181 #, no-wrap
32182 msgid ""
32183 " struct guestfs_statvfs {\n"
32184 "   int64_t bsize;\n"
32185 "   int64_t frsize;\n"
32186 "   int64_t blocks;\n"
32187 "   int64_t bfree;\n"
32188 "   int64_t bavail;\n"
32189 "   int64_t files;\n"
32190 "   int64_t ffree;\n"
32191 "   int64_t favail;\n"
32192 "   int64_t fsid;\n"
32193 "   int64_t flag;\n"
32194 "   int64_t namemax;\n"
32195 " };\n"
32196 " \n"
32197 msgstr ""
32198
32199 #. type: verbatim
32200 #: ../src/guestfs-structs.pod:151
32201 #, no-wrap
32202 msgid ""
32203 " struct guestfs_statvfs_list {\n"
32204 "   uint32_t len; /* Number of elements in list. */\n"
32205 "   struct guestfs_statvfs *val; /* Elements. */\n"
32206 " };\n"
32207 " \n"
32208 msgstr ""
32209
32210 #. type: verbatim
32211 #: ../src/guestfs-structs.pod:156
32212 #, no-wrap
32213 msgid ""
32214 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32215 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32216 "\n"
32217 msgstr ""
32218
32219 #. type: =head2
32220 #: ../src/guestfs-structs.pod:159
32221 msgid "guestfs_dirent"
32222 msgstr ""
32223
32224 #. type: verbatim
32225 #: ../src/guestfs-structs.pod:161
32226 #, no-wrap
32227 msgid ""
32228 " struct guestfs_dirent {\n"
32229 "   int64_t ino;\n"
32230 "   char ftyp;\n"
32231 "   char *name;\n"
32232 " };\n"
32233 " \n"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs-structs.pod:167
32238 #, no-wrap
32239 msgid ""
32240 " struct guestfs_dirent_list {\n"
32241 "   uint32_t len; /* Number of elements in list. */\n"
32242 "   struct guestfs_dirent *val; /* Elements. */\n"
32243 " };\n"
32244 " \n"
32245 msgstr ""
32246
32247 #. type: verbatim
32248 #: ../src/guestfs-structs.pod:172
32249 #, no-wrap
32250 msgid ""
32251 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32252 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32253 "\n"
32254 msgstr ""
32255
32256 #. type: verbatim
32257 #: ../src/guestfs-structs.pod:177
32258 #, no-wrap
32259 msgid ""
32260 " struct guestfs_version {\n"
32261 "   int64_t major;\n"
32262 "   int64_t minor;\n"
32263 "   int64_t release;\n"
32264 "   char *extra;\n"
32265 " };\n"
32266 " \n"
32267 msgstr ""
32268
32269 #. type: verbatim
32270 #: ../src/guestfs-structs.pod:184
32271 #, no-wrap
32272 msgid ""
32273 " struct guestfs_version_list {\n"
32274 "   uint32_t len; /* Number of elements in list. */\n"
32275 "   struct guestfs_version *val; /* Elements. */\n"
32276 " };\n"
32277 " \n"
32278 msgstr ""
32279
32280 #. type: verbatim
32281 #: ../src/guestfs-structs.pod:189
32282 #, no-wrap
32283 msgid ""
32284 " void guestfs_free_version (struct guestfs_free_version *);\n"
32285 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32286 "\n"
32287 msgstr ""
32288
32289 #. type: =head2
32290 #: ../src/guestfs-structs.pod:192
32291 msgid "guestfs_xattr"
32292 msgstr ""
32293
32294 #. type: verbatim
32295 #: ../src/guestfs-structs.pod:194
32296 #, no-wrap
32297 msgid ""
32298 " struct guestfs_xattr {\n"
32299 "   char *attrname;\n"
32300 "   /* The next two fields describe a byte array. */\n"
32301 "   uint32_t attrval_len;\n"
32302 "   char *attrval;\n"
32303 " };\n"
32304 " \n"
32305 msgstr ""
32306
32307 #. type: verbatim
32308 #: ../src/guestfs-structs.pod:201
32309 #, no-wrap
32310 msgid ""
32311 " struct guestfs_xattr_list {\n"
32312 "   uint32_t len; /* Number of elements in list. */\n"
32313 "   struct guestfs_xattr *val; /* Elements. */\n"
32314 " };\n"
32315 " \n"
32316 msgstr ""
32317
32318 #. type: verbatim
32319 #: ../src/guestfs-structs.pod:206
32320 #, no-wrap
32321 msgid ""
32322 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32323 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32324 "\n"
32325 msgstr ""
32326
32327 #. type: =head2
32328 #: ../src/guestfs-structs.pod:209
32329 msgid "guestfs_inotify_event"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs-structs.pod:211
32334 #, no-wrap
32335 msgid ""
32336 " struct guestfs_inotify_event {\n"
32337 "   int64_t in_wd;\n"
32338 "   uint32_t in_mask;\n"
32339 "   uint32_t in_cookie;\n"
32340 "   char *in_name;\n"
32341 " };\n"
32342 " \n"
32343 msgstr ""
32344
32345 #. type: verbatim
32346 #: ../src/guestfs-structs.pod:218
32347 #, no-wrap
32348 msgid ""
32349 " struct guestfs_inotify_event_list {\n"
32350 "   uint32_t len; /* Number of elements in list. */\n"
32351 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32352 " };\n"
32353 " \n"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-structs.pod:223
32358 #, no-wrap
32359 msgid ""
32360 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32361 " void guestfs_free_inotify_event_list (struct "
32362 "guestfs_free_inotify_event_list *);\n"
32363 "\n"
32364 msgstr ""
32365
32366 #. type: =head2
32367 #: ../src/guestfs-structs.pod:226
32368 msgid "guestfs_partition"
32369 msgstr ""
32370
32371 #. type: verbatim
32372 #: ../src/guestfs-structs.pod:228
32373 #, no-wrap
32374 msgid ""
32375 " struct guestfs_partition {\n"
32376 "   int32_t part_num;\n"
32377 "   uint64_t part_start;\n"
32378 "   uint64_t part_end;\n"
32379 "   uint64_t part_size;\n"
32380 " };\n"
32381 " \n"
32382 msgstr ""
32383
32384 #. type: verbatim
32385 #: ../src/guestfs-structs.pod:235
32386 #, no-wrap
32387 msgid ""
32388 " struct guestfs_partition_list {\n"
32389 "   uint32_t len; /* Number of elements in list. */\n"
32390 "   struct guestfs_partition *val; /* Elements. */\n"
32391 " };\n"
32392 " \n"
32393 msgstr ""
32394
32395 #. type: verbatim
32396 #: ../src/guestfs-structs.pod:240
32397 #, no-wrap
32398 msgid ""
32399 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32400 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32401 "\n"
32402 msgstr ""
32403
32404 #. type: =head2
32405 #: ../src/guestfs-structs.pod:243
32406 msgid "guestfs_application"
32407 msgstr ""
32408
32409 #. type: verbatim
32410 #: ../src/guestfs-structs.pod:245
32411 #, no-wrap
32412 msgid ""
32413 " struct guestfs_application {\n"
32414 "   char *app_name;\n"
32415 "   char *app_display_name;\n"
32416 "   int32_t app_epoch;\n"
32417 "   char *app_version;\n"
32418 "   char *app_release;\n"
32419 "   char *app_install_path;\n"
32420 "   char *app_trans_path;\n"
32421 "   char *app_publisher;\n"
32422 "   char *app_url;\n"
32423 "   char *app_source_package;\n"
32424 "   char *app_summary;\n"
32425 "   char *app_description;\n"
32426 " };\n"
32427 " \n"
32428 msgstr ""
32429
32430 #. type: verbatim
32431 #: ../src/guestfs-structs.pod:260
32432 #, no-wrap
32433 msgid ""
32434 " struct guestfs_application_list {\n"
32435 "   uint32_t len; /* Number of elements in list. */\n"
32436 "   struct guestfs_application *val; /* Elements. */\n"
32437 " };\n"
32438 " \n"
32439 msgstr ""
32440
32441 #. type: verbatim
32442 #: ../src/guestfs-structs.pod:265
32443 #, no-wrap
32444 msgid ""
32445 " void guestfs_free_application (struct guestfs_free_application *);\n"
32446 " void guestfs_free_application_list (struct guestfs_free_application_list "
32447 "*);\n"
32448 "\n"
32449 msgstr ""
32450
32451 #. type: textblock
32452 #: ../src/guestfs.pod:5
32453 msgid "guestfs - Library for accessing and modifying virtual machine images"
32454 msgstr ""
32455
32456 #. type: verbatim
32457 #: ../src/guestfs.pod:11
32458 #, no-wrap
32459 msgid ""
32460 " guestfs_h *g = guestfs_create ();\n"
32461 " guestfs_add_drive (g, \"guest.img\");\n"
32462 " guestfs_launch (g);\n"
32463 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32464 " guestfs_touch (g, \"/hello\");\n"
32465 " guestfs_umount (g, \"/\");\n"
32466 " guestfs_close (g);\n"
32467 "\n"
32468 msgstr ""
32469
32470 #. type: textblock
32471 #: ../src/guestfs.pod:25
32472 msgid ""
32473 "Libguestfs is a library for accessing and modifying guest disk images.  "
32474 "Amongst the things this is good for: making batch configuration changes to "
32475 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32476 "between virtualization systems (see also: virt-p2v), performing partial "
32477 "backups, performing partial guest clones, cloning guests and changing "
32478 "registry/UUID/hostname info, and much else besides."
32479 msgstr ""
32480
32481 #. type: textblock
32482 #: ../src/guestfs.pod:33
32483 msgid ""
32484 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32485 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32486 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32487 "qcow2, vmdk."
32488 msgstr ""
32489
32490 #. type: textblock
32491 #: ../src/guestfs.pod:38
32492 msgid ""
32493 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32494 "what filesystem is in each LV, etc.).  It can also run commands in the "
32495 "context of the guest.  Also you can access filesystems over FUSE."
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs.pod:43
32500 msgid ""
32501 "Libguestfs is a library that can be linked with C and C++ management "
32502 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32503 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32504 "command line."
32505 msgstr ""
32506
32507 #. type: textblock
32508 #: ../src/guestfs.pod:48
32509 msgid ""
32510 "You don't need to be root to use libguestfs, although obviously you do need "
32511 "enough permissions to access the disk images."
32512 msgstr ""
32513
32514 #. type: textblock
32515 #: ../src/guestfs.pod:51
32516 msgid ""
32517 "Libguestfs is a large API because it can do many things.  For a gentle "
32518 "introduction, please read the L</API OVERVIEW> section next."
32519 msgstr ""
32520
32521 #. type: textblock
32522 #: ../src/guestfs.pod:54
32523 msgid ""
32524 "There are also some example programs in the L<guestfs-examples(3)> manual "
32525 "page."
32526 msgstr ""
32527
32528 #. type: =head1
32529 #: ../src/guestfs.pod:57
32530 msgid "API OVERVIEW"
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs.pod:59
32535 msgid ""
32536 "This section provides a gentler overview of the libguestfs API.  We also try "
32537 "to group API calls together, where that may not be obvious from reading "
32538 "about the individual calls in the main section of this manual."
32539 msgstr ""
32540
32541 #. type: =head2
32542 #: ../src/guestfs.pod:64
32543 msgid "HANDLES"
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs.pod:66
32548 msgid ""
32549 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32550 "must add at least one disk image to the handle, followed by launching the "
32551 "handle, then performing whatever operations you want, and finally closing "
32552 "the handle.  By convention we use the single letter C<g> for the name of the "
32553 "handle variable, although of course you can use any name you want."
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs.pod:73
32558 msgid "The general structure of all libguestfs-using programs looks like this:"
32559 msgstr ""
32560
32561 #. type: verbatim
32562 #: ../src/guestfs.pod:76
32563 #, no-wrap
32564 msgid ""
32565 " guestfs_h *g = guestfs_create ();\n"
32566 " \n"
32567 msgstr ""
32568
32569 #. type: verbatim
32570 #: ../src/guestfs.pod:78
32571 #, no-wrap
32572 msgid ""
32573 " /* Call guestfs_add_drive additional times if there are\n"
32574 "  * multiple disk images.\n"
32575 "  */\n"
32576 " guestfs_add_drive (g, \"guest.img\");\n"
32577 " \n"
32578 msgstr ""
32579
32580 #. type: verbatim
32581 #: ../src/guestfs.pod:83
32582 #, no-wrap
32583 msgid ""
32584 " /* Most manipulation calls won't work until you've launched\n"
32585 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32586 "  * and _before_ other commands.\n"
32587 "  */\n"
32588 " guestfs_launch (g);\n"
32589 " \n"
32590 msgstr ""
32591
32592 #. type: verbatim
32593 #: ../src/guestfs.pod:89
32594 #, no-wrap
32595 msgid ""
32596 " /* Now you can examine what partitions, LVs etc are available.\n"
32597 "  */\n"
32598 " char **partitions = guestfs_list_partitions (g);\n"
32599 " char **logvols = guestfs_lvs (g);\n"
32600 " \n"
32601 msgstr ""
32602
32603 #. type: verbatim
32604 #: ../src/guestfs.pod:94
32605 #, no-wrap
32606 msgid ""
32607 " /* To access a filesystem in the image, you must mount it.\n"
32608 "  */\n"
32609 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32610 " \n"
32611 msgstr ""
32612
32613 #. type: verbatim
32614 #: ../src/guestfs.pod:98
32615 #, no-wrap
32616 msgid ""
32617 " /* Now you can perform filesystem actions on the guest\n"
32618 "  * disk image.\n"
32619 "  */\n"
32620 " guestfs_touch (g, \"/hello\");\n"
32621 " \n"
32622 msgstr ""
32623
32624 #. type: verbatim
32625 #: ../src/guestfs.pod:103
32626 #, no-wrap
32627 msgid ""
32628 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32629 "  * it is done automatically when you close the handle.  See\n"
32630 "  * discussion of autosync in this page.\n"
32631 "  */\n"
32632 " guestfs_sync (g);\n"
32633 " \n"
32634 msgstr ""
32635
32636 #. type: verbatim
32637 #: ../src/guestfs.pod:109
32638 #, no-wrap
32639 msgid ""
32640 " /* Close the handle 'g'. */\n"
32641 " guestfs_close (g);\n"
32642 "\n"
32643 msgstr ""
32644
32645 #. type: textblock
32646 #: ../src/guestfs.pod:112
32647 msgid ""
32648 "The code above doesn't include any error checking.  In real code you should "
32649 "check return values carefully for errors.  In general all functions that "
32650 "return integers return C<-1> on error, and all functions that return "
32651 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32652 "how to handle errors, and consult the documentation for each function call "
32653 "below to see precisely how they return error indications.  See "
32654 "L<guestfs-examples(3)> for fully worked examples."
32655 msgstr ""
32656
32657 #. type: =head2
32658 #: ../src/guestfs.pod:121
32659 msgid "DISK IMAGES"
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../src/guestfs.pod:123
32664 msgid ""
32665 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32666 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32667 "actual block device, or simply an empty file of zeroes that you have created "
32668 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32669 "of these."
32670 msgstr ""
32671
32672 #. type: textblock
32673 #: ../src/guestfs.pod:129
32674 msgid ""
32675 "The call you should use in modern code for adding drives is "
32676 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32677 "specifying that the format is raw, do:"
32678 msgstr ""
32679
32680 #. type: verbatim
32681 #: ../src/guestfs.pod:133
32682 #, no-wrap
32683 msgid ""
32684 " guestfs_add_drive_opts (g, filename,\n"
32685 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32686 "                         -1);\n"
32687 "\n"
32688 msgstr ""
32689
32690 #. type: textblock
32691 #: ../src/guestfs.pod:137
32692 msgid "You can add a disk read-only using:"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs.pod:139
32697 #, no-wrap
32698 msgid ""
32699 " guestfs_add_drive_opts (g, filename,\n"
32700 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32701 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32702 "                         -1);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs.pod:144
32708 msgid ""
32709 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32710 "libguestfs won't modify the file."
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../src/guestfs.pod:147
32715 msgid ""
32716 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32717 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32718 "corruption, but adding it read-only is safe."
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs.pod:151
32723 msgid ""
32724 "You must add at least one disk image, and you may add multiple disk images.  "
32725 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32726 "first one you added), C</dev/sdb> (for the second one you added), etc."
32727 msgstr ""
32728
32729 #. type: textblock
32730 #: ../src/guestfs.pod:156
32731 msgid ""
32732 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32733 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32734 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32735 msgstr ""
32736
32737 #. type: =head2
32738 #: ../src/guestfs.pod:161
32739 msgid "MOUNTING"
32740 msgstr ""
32741
32742 #. type: textblock
32743 #: ../src/guestfs.pod:163
32744 msgid ""
32745 "Before you can read or write files, create directories and so on in a disk "
32746 "image that contains filesystems, you have to mount those filesystems using "
32747 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32748 "a disk image contains (for example) one partition with a filesystem on that "
32749 "partition, then you can mount it directly:"
32750 msgstr ""
32751
32752 #. type: verbatim
32753 #: ../src/guestfs.pod:170
32754 #, no-wrap
32755 msgid ""
32756 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32757 "\n"
32758 msgstr ""
32759
32760 #. type: textblock
32761 #: ../src/guestfs.pod:172
32762 msgid ""
32763 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32764 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32765 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32766 "that these are libguestfs virtual devices, and are nothing to do with host "
32767 "devices."
32768 msgstr ""
32769
32770 #. type: textblock
32771 #: ../src/guestfs.pod:178
32772 msgid ""
32773 "If you are given a disk image and you don't know what it contains then you "
32774 "have to find out.  Libguestfs can do that too: use "
32775 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
32776 "and LVs, and either try mounting each to see what is mountable, or else "
32777 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32778 "filesystems, use L</guestfs_list_filesystems>."
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs.pod:186
32783 msgid ""
32784 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32785 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32786 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32787 msgstr ""
32788
32789 #. type: textblock
32790 #: ../src/guestfs.pod:191
32791 msgid ""
32792 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32793 "several other variations of the C<guestfs_mount_*> call."
32794 msgstr ""
32795
32796 #. type: =head2
32797 #: ../src/guestfs.pod:194
32798 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32799 msgstr ""
32800
32801 #. type: textblock
32802 #: ../src/guestfs.pod:196
32803 msgid ""
32804 "The majority of the libguestfs API consists of fairly low-level calls for "
32805 "accessing and modifying the files, directories, symlinks etc on mounted "
32806 "filesystems.  There are over a hundred such calls which you can find listed "
32807 "in detail below in this man page, and we don't even pretend to cover them "
32808 "all in this overview."
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:202
32813 msgid ""
32814 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32815 "mount point."
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs.pod:205
32820 msgid ""
32821 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32822 "the file called C<\"etc/passwd\"> then you could do:"
32823 msgstr ""
32824
32825 #. type: verbatim
32826 #: ../src/guestfs.pod:208
32827 #, no-wrap
32828 msgid ""
32829 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32830 "\n"
32831 msgstr ""
32832
32833 #. type: textblock
32834 #: ../src/guestfs.pod:210
32835 msgid ""
32836 "This would return C<data> as a newly allocated buffer containing the full "
32837 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32838 "or C<NULL> if there was an error."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:214
32843 msgid ""
32844 "As another example, to create a top-level directory on that filesystem "
32845 "called C<\"var\"> you would do:"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../src/guestfs.pod:217
32850 #, no-wrap
32851 msgid ""
32852 " guestfs_mkdir (g, \"/var\");\n"
32853 "\n"
32854 msgstr ""
32855
32856 #. type: textblock
32857 #: ../src/guestfs.pod:219
32858 msgid "To create a symlink you could do:"
32859 msgstr ""
32860
32861 #. type: verbatim
32862 #: ../src/guestfs.pod:221
32863 #, no-wrap
32864 msgid ""
32865 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32866 "               \"/etc/rc3.d/S30portmap\");\n"
32867 "\n"
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs.pod:224
32872 msgid ""
32873 "Libguestfs will reject attempts to use relative paths and there is no "
32874 "concept of a current working directory."
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs.pod:227
32879 msgid ""
32880 "Libguestfs can return errors in many situations: for example if the "
32881 "filesystem isn't writable, or if a file or directory that you requested "
32882 "doesn't exist.  If you are using the C API (documented here)  you have to "
32883 "check for those error conditions after each call.  (Other language bindings "
32884 "turn these errors into exceptions)."
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../src/guestfs.pod:233
32889 msgid ""
32890 "File writes are affected by the per-handle umask, set by calling "
32891 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
32892 msgstr ""
32893
32894 #. type: =head2
32895 #: ../src/guestfs.pod:236
32896 msgid "PARTITIONING"
32897 msgstr ""
32898
32899 #. type: textblock
32900 #: ../src/guestfs.pod:238
32901 msgid ""
32902 "Libguestfs contains API calls to read, create and modify partition tables on "
32903 "disk images."
32904 msgstr ""
32905
32906 #. type: textblock
32907 #: ../src/guestfs.pod:241
32908 msgid ""
32909 "In the common case where you want to create a single partition covering the "
32910 "whole disk, you should use the L</guestfs_part_disk> call:"
32911 msgstr ""
32912
32913 #. type: verbatim
32914 #: ../src/guestfs.pod:245
32915 #, no-wrap
32916 msgid ""
32917 " const char *parttype = \"mbr\";\n"
32918 " if (disk_is_larger_than_2TB)\n"
32919 "   parttype = \"gpt\";\n"
32920 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32921 "\n"
32922 msgstr ""
32923
32924 #. type: textblock
32925 #: ../src/guestfs.pod:250
32926 msgid ""
32927 "Obviously this effectively wipes anything that was on that disk image "
32928 "before."
32929 msgstr ""
32930
32931 #. type: =head2
32932 #: ../src/guestfs.pod:253
32933 msgid "LVM2"
32934 msgstr ""
32935
32936 #. type: textblock
32937 #: ../src/guestfs.pod:255
32938 msgid ""
32939 "Libguestfs provides access to a large part of the LVM2 API, such as "
32940 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
32941 "unless you familiarize yourself with the concepts of physical volumes, "
32942 "volume groups and logical volumes."
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:260
32947 msgid ""
32948 "This author strongly recommends reading the LVM HOWTO, online at "
32949 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
32950 msgstr ""
32951
32952 #. type: =head2
32953 #: ../src/guestfs.pod:263
32954 msgid "DOWNLOADING"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs.pod:265
32959 msgid ""
32960 "Use L</guestfs_cat> to download small, text only files.  This call is "
32961 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32962 "NUL (C<\\0>) characters.  However the API is very simple to use."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:269
32967 msgid ""
32968 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32969 "bit data, since it returns a (pointer, size) pair.  However it is still "
32970 "limited to \"small\" files, less than 2 MB."
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:273
32975 msgid ""
32976 "L</guestfs_download> can be used to download any file, with no limits on "
32977 "content or size (even files larger than 4 GB)."
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs.pod:276
32982 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs.pod:279
32987 msgid "UPLOADING"
32988 msgstr ""
32989
32990 #. type: textblock
32991 #: ../src/guestfs.pod:281
32992 msgid ""
32993 "It's often the case that you want to write a file or files to the disk "
32994 "image."
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs.pod:284
32999 msgid ""
33000 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33001 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
33002 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
33003 "variety of other functions for creating test files, for example "
33004 "L</guestfs_fill> and L</guestfs_fill_pattern>."
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:290
33009 msgid ""
33010 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33011 "file content or size (even files larger than 4 GB)."
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs.pod:293
33016 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs.pod:295
33021 msgid ""
33022 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33023 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
33024 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
33025 "the drive in a predictable way (eg. adding it last after all other drives) "
33026 "then you can get the device name from L</guestfs_list_devices> and mount it "
33027 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
33028 "sometimes non-portable between kernel versions, and they don't support "
33029 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
33030 "using a label or UUID, use an ISO image instead."
33031 msgstr ""
33032
33033 #. type: =head2
33034 #: ../src/guestfs.pod:306
33035 msgid "COPYING"
33036 msgstr ""
33037
33038 #. type: textblock
33039 #: ../src/guestfs.pod:308
33040 msgid ""
33041 "There are various different commands for copying between files and devices "
33042 "and in and out of the guest filesystem.  These are summarised in the table "
33043 "below."
33044 msgstr ""
33045
33046 #. type: =item
33047 #: ../src/guestfs.pod:314
33048 msgid "B<file> to B<file>"
33049 msgstr ""
33050
33051 #. type: textblock
33052 #: ../src/guestfs.pod:316
33053 msgid ""
33054 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33055 "directories recursively."
33056 msgstr ""
33057
33058 #. type: =item
33059 #: ../src/guestfs.pod:319
33060 msgid "B<file or device> to B<file or device>"
33061 msgstr ""
33062
33063 #. type: textblock
33064 #: ../src/guestfs.pod:321
33065 msgid ""
33066 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33067 "devices in the guest."
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:324
33072 msgid "Example: duplicate the contents of an LV:"
33073 msgstr ""
33074
33075 #. type: verbatim
33076 #: ../src/guestfs.pod:326
33077 #, no-wrap
33078 msgid ""
33079 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33080 "\n"
33081 msgstr ""
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:328
33085 msgid ""
33086 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33087 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
33088 "L</guestfs_copy_size>."
33089 msgstr ""
33090
33091 #. type: =item
33092 #: ../src/guestfs.pod:332
33093 msgid "B<file on the host> to B<file or device>"
33094 msgstr ""
33095
33096 #. type: textblock
33097 #: ../src/guestfs.pod:334
33098 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33099 msgstr ""
33100
33101 #. type: =item
33102 #: ../src/guestfs.pod:336
33103 msgid "B<file or device> to B<file on the host>"
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:338
33108 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33109 msgstr ""
33110
33111 #. type: =head2
33112 #: ../src/guestfs.pod:342
33113 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33114 msgstr ""
33115
33116 #. type: textblock
33117 #: ../src/guestfs.pod:344
33118 msgid ""
33119 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
33120 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33121 "appears you can only upload and download to files.  However many Un*x-like "
33122 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
33123 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
33124 "stderr, and arbitrary file descriptor N."
33125 msgstr ""
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:352
33129 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33130 msgstr ""
33131
33132 #. type: verbatim
33133 #: ../src/guestfs.pod:355
33134 #, no-wrap
33135 msgid ""
33136 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33137 "\n"
33138 msgstr ""
33139
33140 #. type: textblock
33141 #: ../src/guestfs.pod:357
33142 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33143 msgstr ""
33144
33145 #. type: verbatim
33146 #: ../src/guestfs.pod:359
33147 #, no-wrap
33148 msgid ""
33149 " char devfd[64];\n"
33150 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33151 " guestfs_tar_out (g, \"/\", devfd);\n"
33152 "\n"
33153 msgstr ""
33154
33155 #. type: =head2
33156 #: ../src/guestfs.pod:363
33157 msgid "LISTING FILES"
33158 msgstr ""
33159
33160 #. type: textblock
33161 #: ../src/guestfs.pod:365
33162 msgid ""
33163 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33164 "L<guestfish(1)>-equivalent command C<ll>)."
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs.pod:368
33169 msgid ""
33170 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33171 "programs, as a flat list of strings."
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs.pod:371
33176 msgid ""
33177 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33178 "directory, plus additional information about each one.  It is more "
33179 "equivalent to using the L<readdir(3)> call on a local filesystem."
33180 msgstr ""
33181
33182 #. type: textblock
33183 #: ../src/guestfs.pod:375
33184 msgid ""
33185 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
33186 "files."
33187 msgstr ""
33188
33189 #. type: =head2
33190 #: ../src/guestfs.pod:378
33191 msgid "RUNNING COMMANDS"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:380
33196 msgid ""
33197 "Although libguestfs is primarily an API for manipulating files inside guest "
33198 "images, we also provide some limited facilities for running commands inside "
33199 "guests."
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:384
33204 msgid "There are many limitations to this:"
33205 msgstr ""
33206
33207 #. type: textblock
33208 #: ../src/guestfs.pod:390
33209 msgid ""
33210 "The kernel version that the command runs under will be different from what "
33211 "it expects."
33212 msgstr ""
33213
33214 #. type: textblock
33215 #: ../src/guestfs.pod:395
33216 msgid ""
33217 "If the command needs to communicate with daemons, then most likely they "
33218 "won't be running."
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:400
33223 msgid "The command will be running in limited memory."
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:404
33228 msgid ""
33229 "The network may not be available unless you enable it (see "
33230 "L</guestfs_set_network>)."
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs.pod:409
33235 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs.pod:413
33240 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:418
33245 msgid ""
33246 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33247 "See L</SELINUX> in this manpage."
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:423
33252 msgid ""
33253 "I<Security:> It is not safe to run commands from untrusted, possibly "
33254 "malicious guests.  These commands may attempt to exploit your program by "
33255 "sending unexpected output.  They could also try to exploit the Linux kernel "
33256 "or qemu provided by the libguestfs appliance.  They could use the network "
33257 "provided by the libguestfs appliance to bypass ordinary network partitions "
33258 "and firewalls.  They could use the elevated privileges or different SELinux "
33259 "context of your program to their advantage."
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs.pod:432
33264 msgid ""
33265 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33266 "(a script which runs when the guest next boots normally), and to have this "
33267 "script run the commands you want in the normal context of the running guest, "
33268 "network security and so on.  For information about other security issues, "
33269 "see L</SECURITY>."
33270 msgstr ""
33271
33272 #. type: textblock
33273 #: ../src/guestfs.pod:440
33274 msgid ""
33275 "The two main API calls to run commands are L</guestfs_command> and "
33276 "L</guestfs_sh> (there are also variations)."
33277 msgstr ""
33278
33279 #. type: textblock
33280 #: ../src/guestfs.pod:443
33281 msgid ""
33282 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33283 "shell globs, redirections, etc will work."
33284 msgstr ""
33285
33286 #. type: =head2
33287 #: ../src/guestfs.pod:446
33288 msgid "CONFIGURATION FILES"
33289 msgstr ""
33290
33291 #. type: textblock
33292 #: ../src/guestfs.pod:448
33293 msgid ""
33294 "To read and write configuration files in Linux guest filesystems, we "
33295 "strongly recommend using Augeas.  For example, Augeas understands how to "
33296 "read and write, say, a Linux shadow password file or X.org configuration "
33297 "file, and so avoids you having to write that code."
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../src/guestfs.pod:453
33302 msgid ""
33303 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33304 "document Augeas itself here because there is excellent documentation on the "
33305 "L<http://augeas.net/> website."
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:457
33310 msgid ""
33311 "If you don't want to use Augeas (you fool!) then try calling "
33312 "L</guestfs_read_lines> to get the file as a list of lines which you can "
33313 "iterate over."
33314 msgstr ""
33315
33316 #. type: =head2
33317 #: ../src/guestfs.pod:461
33318 msgid "SELINUX"
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs.pod:463
33323 msgid ""
33324 "We support SELinux guests.  To ensure that labeling happens correctly in "
33325 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33326 msgstr ""
33327
33328 #. type: textblock
33329 #: ../src/guestfs.pod:471
33330 msgid "Before launching, do:"
33331 msgstr ""
33332
33333 #. type: verbatim
33334 #: ../src/guestfs.pod:473
33335 #, no-wrap
33336 msgid ""
33337 " guestfs_set_selinux (g, 1);\n"
33338 "\n"
33339 msgstr ""
33340
33341 #. type: textblock
33342 #: ../src/guestfs.pod:477
33343 msgid ""
33344 "After mounting the guest's filesystem(s), load the policy.  This is best "
33345 "done by running the L<load_policy(8)> command in the guest itself:"
33346 msgstr ""
33347
33348 #. type: verbatim
33349 #: ../src/guestfs.pod:481
33350 #, no-wrap
33351 msgid ""
33352 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33353 "\n"
33354 msgstr ""
33355
33356 #. type: textblock
33357 #: ../src/guestfs.pod:483
33358 msgid ""
33359 "(Older versions of C<load_policy> require you to specify the name of the "
33360 "policy file)."
33361 msgstr ""
33362
33363 #. type: textblock
33364 #: ../src/guestfs.pod:488
33365 msgid ""
33366 "Optionally, set the security context for the API.  The correct security "
33367 "context to use can only be known by inspecting the guest.  As an example:"
33368 msgstr ""
33369
33370 #. type: verbatim
33371 #: ../src/guestfs.pod:492
33372 #, no-wrap
33373 msgid ""
33374 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33375 "\n"
33376 msgstr ""
33377
33378 #. type: textblock
33379 #: ../src/guestfs.pod:496
33380 msgid "This will work for running commands and editing existing files."
33381 msgstr ""
33382
33383 #. type: textblock
33384 #: ../src/guestfs.pod:498
33385 msgid ""
33386 "When new files are created, you may need to label them explicitly, for "
33387 "example by running the external command C<restorecon pathname>."
33388 msgstr ""
33389
33390 #. type: =head2
33391 #: ../src/guestfs.pod:502
33392 msgid "UMASK"
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:504
33397 msgid ""
33398 "Certain calls are affected by the current file mode creation mask (the "
33399 "\"umask\").  In particular ones which create files or directories, such as "
33400 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33401 "either the default mode that the file is created with or modifies the mode "
33402 "that you supply."
33403 msgstr ""
33404
33405 #. type: textblock
33406 #: ../src/guestfs.pod:510
33407 msgid ""
33408 "The default umask is C<022>, so files are created with modes such as C<0644> "
33409 "and directories with C<0755>."
33410 msgstr ""
33411
33412 #. type: textblock
33413 #: ../src/guestfs.pod:513
33414 msgid ""
33415 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33416 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
33417 "L</guestfs_chmod> after creating each file or directory."
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs.pod:517
33422 msgid "For more information about umask, see L<umask(2)>."
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../src/guestfs.pod:521
33427 msgid ""
33428 "Libguestfs allows you to access Linux guests which have been encrypted using "
33429 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33430 "standard.  This includes nearly all whole disk encryption systems used by "
33431 "modern Linux guests."
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:527
33436 msgid ""
33437 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33438 "returns the string C<crypto_LUKS>)."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs.pod:530
33443 msgid ""
33444 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33445 "will require the passphrase!"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs.pod:533
33450 msgid ""
33451 "Opening a LUKS device creates a new device mapper device called "
33452 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
33453 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
33454 "decrypted from and encrypted to the underlying block device respectively."
33455 msgstr ""
33456
33457 #. type: textblock
33458 #: ../src/guestfs.pod:539
33459 msgid ""
33460 "LVM volume groups on the device can be made visible by calling "
33461 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
33462 "volume(s) can now be mounted in the usual way."
33463 msgstr ""
33464
33465 #. type: textblock
33466 #: ../src/guestfs.pod:543
33467 msgid ""
33468 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33469 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33470 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
33471 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33472 "underlying encrypted block device)."
33473 msgstr ""
33474
33475 #. type: =head2
33476 #: ../src/guestfs.pod:550
33477 msgid "INSPECTION"
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:552
33482 msgid ""
33483 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33484 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33485 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33486 "version 1.5.3 the most frequently used part of this library has been "
33487 "rewritten in C and moved into the core code)."
33488 msgstr ""
33489
33490 #. type: textblock
33491 #: ../src/guestfs.pod:559
33492 msgid ""
33493 "Add all disks belonging to the unknown virtual machine and call "
33494 "L</guestfs_launch> in the usual way."
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../src/guestfs.pod:562
33499 msgid ""
33500 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33501 "and certain heuristics, and returns a list of operating systems that were "
33502 "found.  An empty list means none were found.  A single element is the root "
33503 "filesystem of the operating system.  For dual- or multi-boot guests, "
33504 "multiple roots can be returned, each one corresponding to a separate "
33505 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33506 "world of virtualization, but since this scenario can happen, we have built "
33507 "libguestfs to deal with it.)"
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs.pod:571
33512 msgid ""
33513 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33514 "to get additional details about that operating system.  For example, call "
33515 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33516 "Windows and Linux-based operating systems respectively."
33517 msgstr ""
33518
33519 #. type: textblock
33520 #: ../src/guestfs.pod:577
33521 msgid ""
33522 "Un*x-like and Linux-based operating systems usually consist of several "
33523 "filesystems which are mounted at boot time (for example, a separate boot "
33524 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33525 "filesystems correspond to mount points.  Call "
33526 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33527 "hash table like this example:"
33528 msgstr ""
33529
33530 #. type: verbatim
33531 #: ../src/guestfs.pod:584
33532 #, no-wrap
33533 msgid ""
33534 " /boot => /dev/sda1\n"
33535 " /     => /dev/vg_guest/lv_root\n"
33536 " /usr  => /dev/vg_guest/lv_usr\n"
33537 "\n"
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:588
33542 msgid ""
33543 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33544 "filesystems as suggested."
33545 msgstr ""
33546
33547 #. type: textblock
33548 #: ../src/guestfs.pod:591
33549 msgid ""
33550 "Be careful to mount filesystems in the right order (eg. C</> before "
33551 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
33552 "work."
33553 msgstr ""
33554
33555 #. type: textblock
33556 #: ../src/guestfs.pod:595
33557 msgid ""
33558 "Inspection currently only works for some common operating systems.  "
33559 "Contributors are welcome to send patches for other operating systems that we "
33560 "currently cannot detect."
33561 msgstr ""
33562
33563 #. type: textblock
33564 #: ../src/guestfs.pod:599
33565 msgid ""
33566 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33567 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33568 "encrypted devices."
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs.pod:603
33573 msgid ""
33574 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33575 "inspection and caches the results in the guest handle.  Subsequent calls to "
33576 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
33577 "re-read the disks.  If you change the content of the guest disks, you can "
33578 "redo inspection by calling L</guestfs_inspect_os> again.  "
33579 "(L</guestfs_inspect_list_applications> works a little differently from the "
33580 "other calls and does read the disks.  See documentation for that function "
33581 "for details)."
33582 msgstr ""
33583
33584 #. type: =head3
33585 #: ../src/guestfs.pod:612
33586 msgid "INSPECTING INSTALL DISKS"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:614
33591 msgid ""
33592 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33593 "CDs and more."
33594 msgstr ""
33595
33596 #. type: textblock
33597 #: ../src/guestfs.pod:617
33598 msgid ""
33599 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33600 "system, which currently can be C<installed> (a regular operating system) or "
33601 "C<installer> (some sort of install disk)."
33602 msgstr ""
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:621
33606 msgid ""
33607 "Further information is available about the operating system that can be "
33608 "installed using the regular inspection APIs like "
33609 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
33610 "etc."
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:626
33615 msgid ""
33616 "Some additional information specific to installer disks is also available "
33617 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
33618 "L</guestfs_inspect_is_multipart> calls."
33619 msgstr ""
33620
33621 #. type: =head2
33622 #: ../src/guestfs.pod:631
33623 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33624 msgstr ""
33625
33626 #. type: textblock
33627 #: ../src/guestfs.pod:633
33628 msgid ""
33629 "Libguestfs can mount NTFS partitions.  It does this using the "
33630 "L<http://www.ntfs-3g.org/> driver."
33631 msgstr ""
33632
33633 #. type: =head3
33634 #: ../src/guestfs.pod:636
33635 msgid "DRIVE LETTERS AND PATHS"
33636 msgstr ""
33637
33638 #. type: textblock
33639 #: ../src/guestfs.pod:638
33640 msgid ""
33641 "DOS and Windows still use drive letters, and the filesystems are always "
33642 "treated as case insensitive by Windows itself, and therefore you might find "
33643 "a Windows configuration file referring to a path like "
33644 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
33645 "that directory might be referred to as C</WINDOWS/System32>."
33646 msgstr ""
33647
33648 #. type: textblock
33649 #: ../src/guestfs.pod:644
33650 msgid ""
33651 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33652 "L</guestfs_inspect_get_drive_mappings>)"
33653 msgstr ""
33654
33655 #. type: textblock
33656 #: ../src/guestfs.pod:647
33657 msgid ""
33658 "Dealing with separator characters (backslash vs forward slash) is outside "
33659 "the scope of libguestfs, but usually a simple character replacement will "
33660 "work."
33661 msgstr ""
33662
33663 #. type: textblock
33664 #: ../src/guestfs.pod:651
33665 msgid ""
33666 "To resolve the case insensitivity of paths, call "
33667 "L</guestfs_case_sensitive_path>."
33668 msgstr ""
33669
33670 #. type: =head3
33671 #: ../src/guestfs.pod:654
33672 msgid "ACCESSING THE WINDOWS REGISTRY"
33673 msgstr ""
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:656
33677 msgid ""
33678 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33679 "files, through the library C<hivex> which is part of the libguestfs project "
33680 "although ships as a separate tarball.  You have to locate and download the "
33681 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33682 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
33683 "L<virt-win-reg(1)> for more help on this issue."
33684 msgstr ""
33685
33686 #. type: =head3
33687 #: ../src/guestfs.pod:664
33688 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs.pod:666
33693 msgid ""
33694 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33695 "provide something which looks like a Linux symlink.  The way it tries to do "
33696 "the rewriting is described here:"
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:670
33701 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
33702 msgstr ""
33703
33704 #. type: textblock
33705 #: ../src/guestfs.pod:672
33706 msgid ""
33707 "The essential problem is that ntfs-3g simply does not have enough "
33708 "information to do a correct job.  NTFS links can contain drive letters and "
33709 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33710 "It is almost certainly the case that libguestfs callers should ignore what "
33711 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33712 msgstr ""
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:679
33716 msgid ""
33717 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
33718 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33719 "attribute, and read the raw reparse data from that (you can find the format "
33720 "documented in various places around the web)."
33721 msgstr ""
33722
33723 #. type: =head3
33724 #: ../src/guestfs.pod:684
33725 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33726 msgstr ""
33727
33728 #. type: textblock
33729 #: ../src/guestfs.pod:686
33730 msgid ""
33731 "There are other useful extended attributes that can be read from ntfs-3g "
33732 "filesystems (using L</guestfs_getxattr>).  See:"
33733 msgstr ""
33734
33735 #. type: textblock
33736 #: ../src/guestfs.pod:689
33737 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33738 msgstr ""
33739
33740 #. type: =head2
33741 #: ../src/guestfs.pod:691
33742 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33743 msgstr ""
33744
33745 #. type: textblock
33746 #: ../src/guestfs.pod:693
33747 msgid ""
33748 "Although we don't want to discourage you from using the C API, we will "
33749 "mention here that the same API is also available in other languages."
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs.pod:696
33754 msgid ""
33755 "The API is broadly identical in all supported languages.  This means that "
33756 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33757 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33758 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33759 "each language."
33760 msgstr ""
33761
33762 #. type: textblock
33763 #: ../src/guestfs.pod:702
33764 msgid ""
33765 "Error messages are automatically transformed into exceptions if the language "
33766 "supports it."
33767 msgstr ""
33768
33769 #. type: textblock
33770 #: ../src/guestfs.pod:705
33771 msgid ""
33772 "We don't try to \"object orientify\" parts of the API in OO languages, "
33773 "although contributors are welcome to write higher level APIs above what we "
33774 "provide in their favourite languages if they wish."
33775 msgstr ""
33776
33777 #. type: =item
33778 #: ../src/guestfs.pod:711
33779 msgid "B<C++>"
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs.pod:713
33784 msgid ""
33785 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33786 "identical to the C API.  C++ classes and exceptions are not used."
33787 msgstr ""
33788
33789 #. type: =item
33790 #: ../src/guestfs.pod:717
33791 msgid "B<C#>"
33792 msgstr ""
33793
33794 #. type: textblock
33795 #: ../src/guestfs.pod:719
33796 msgid ""
33797 "The C# bindings are highly experimental.  Please read the warnings at the "
33798 "top of C<csharp/Libguestfs.cs>."
33799 msgstr ""
33800
33801 #. type: =item
33802 #: ../src/guestfs.pod:722
33803 msgid "B<Erlang>"
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:724
33808 msgid "See L<guestfs-erlang(3)>."
33809 msgstr ""
33810
33811 #. type: =item
33812 #: ../src/guestfs.pod:726
33813 msgid "B<Haskell>"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:728
33818 msgid ""
33819 "This is the only language binding that is working but incomplete.  Only "
33820 "calls which return simple integers have been bound in Haskell, and we are "
33821 "looking for help to complete this binding."
33822 msgstr ""
33823
33824 #. type: =item
33825 #: ../src/guestfs.pod:732
33826 msgid "B<Java>"
33827 msgstr ""
33828
33829 #. type: textblock
33830 #: ../src/guestfs.pod:734
33831 msgid ""
33832 "Full documentation is contained in the Javadoc which is distributed with "
33833 "libguestfs.  For examples, see L<guestfs-java(3)>."
33834 msgstr ""
33835
33836 #. type: =item
33837 #: ../src/guestfs.pod:737
33838 msgid "B<OCaml>"
33839 msgstr ""
33840
33841 #. type: textblock
33842 #: ../src/guestfs.pod:739
33843 msgid "See L<guestfs-ocaml(3)>."
33844 msgstr ""
33845
33846 #. type: =item
33847 #: ../src/guestfs.pod:741
33848 msgid "B<Perl>"
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs.pod:743
33853 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33854 msgstr ""
33855
33856 #. type: =item
33857 #: ../src/guestfs.pod:745
33858 msgid "B<PHP>"
33859 msgstr ""
33860
33861 #. type: textblock
33862 #: ../src/guestfs.pod:747
33863 msgid ""
33864 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33865 "the php-libguestfs package for your distribution."
33866 msgstr ""
33867
33868 #. type: textblock
33869 #: ../src/guestfs.pod:750
33870 msgid "The PHP binding only works correctly on 64 bit machines."
33871 msgstr ""
33872
33873 #. type: =item
33874 #: ../src/guestfs.pod:752
33875 msgid "B<Python>"
33876 msgstr ""
33877
33878 #. type: textblock
33879 #: ../src/guestfs.pod:754
33880 msgid "See L<guestfs-python(3)>."
33881 msgstr ""
33882
33883 #. type: =item
33884 #: ../src/guestfs.pod:756
33885 msgid "B<Ruby>"
33886 msgstr ""
33887
33888 #. type: textblock
33889 #: ../src/guestfs.pod:758
33890 msgid "See L<guestfs-ruby(3)>."
33891 msgstr ""
33892
33893 #. type: =item
33894 #: ../src/guestfs.pod:760
33895 msgid "B<shell scripts>"
33896 msgstr ""
33897
33898 #. type: textblock
33899 #: ../src/guestfs.pod:762
33900 msgid "See L<guestfish(1)>."
33901 msgstr ""
33902
33903 #. type: =head2
33904 #: ../src/guestfs.pod:766
33905 msgid "LIBGUESTFS GOTCHAS"
33906 msgstr ""
33907
33908 #. type: textblock
33909 #: ../src/guestfs.pod:768
33910 msgid ""
33911 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33912 "system [...] that works in the way it is documented but is counterintuitive "
33913 "and almost invites mistakes.\""
33914 msgstr ""
33915
33916 #. type: textblock
33917 #: ../src/guestfs.pod:772
33918 msgid ""
33919 "Since we developed libguestfs and the associated tools, there are several "
33920 "things we would have designed differently, but are now stuck with for "
33921 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33922 "release, you can expect these to change.  Beware of them."
33923 msgstr ""
33924
33925 #. type: =item
33926 #: ../src/guestfs.pod:780
33927 msgid "Autosync / forgetting to sync."
33928 msgstr ""
33929
33930 #. type: textblock
33931 #: ../src/guestfs.pod:782
33932 msgid ""
33933 "I<Update:> Autosync is enabled by default for all API users starting from "
33934 "libguestfs 1.5.24.  This section only applies to older versions."
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs.pod:785
33939 msgid ""
33940 "When modifying a filesystem from C or another language, you B<must> unmount "
33941 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33942 "libguestfs handle.  You can also call:"
33943 msgstr ""
33944
33945 #. type: verbatim
33946 #: ../src/guestfs.pod:789
33947 #, no-wrap
33948 msgid ""
33949 " guestfs_set_autosync (g, 1);\n"
33950 "\n"
33951 msgstr ""
33952
33953 #. type: textblock
33954 #: ../src/guestfs.pod:791
33955 msgid ""
33956 "to have the unmount/sync done automatically for you when the handle 'g' is "
33957 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
33958 "q.v.)"
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:795
33963 msgid ""
33964 "If you forget to do this, then it is entirely possible that your changes "
33965 "won't be written out, or will be partially written, or (very rarely) that "
33966 "you'll get disk corruption."
33967 msgstr ""
33968
33969 #. type: textblock
33970 #: ../src/guestfs.pod:799
33971 msgid ""
33972 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33973 "guestfish scripts that forget to sync will work just fine, which can make "
33974 "this very puzzling if you are trying to debug a problem."
33975 msgstr ""
33976
33977 #. type: =item
33978 #: ../src/guestfs.pod:803
33979 msgid "Mount option C<-o sync> should not be the default."
33980 msgstr ""
33981
33982 #. type: textblock
33983 #: ../src/guestfs.pod:805
33984 msgid ""
33985 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33986 "libguestfs 1.13.16.  This section only applies to older versions."
33987 msgstr ""
33988
33989 #. type: textblock
33990 #: ../src/guestfs.pod:808
33991 msgid ""
33992 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33993 "However C<-o sync> does not add any reliability benefit, but does have a "
33994 "very large performance impact."
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs.pod:812
33999 msgid ""
34000 "The work around is to use L</guestfs_mount_options> and set the mount "
34001 "options that you actually want to use."
34002 msgstr ""
34003
34004 #. type: =item
34005 #: ../src/guestfs.pod:815
34006 msgid "Read-only should be the default."
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:817
34011 msgid ""
34012 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34013 "specify I<--rw> if you want to make changes to the image."
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:820
34018 msgid "This would reduce the potential to corrupt live VM images."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs.pod:822
34023 msgid ""
34024 "Note that many filesystems change the disk when you just mount and unmount, "
34025 "even if you didn't perform any writes.  You need to use "
34026 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
34027 msgstr ""
34028
34029 #. type: =item
34030 #: ../src/guestfs.pod:826
34031 msgid "guestfish command line is hard to use."
34032 msgstr ""
34033
34034 #. type: textblock
34035 #: ../src/guestfs.pod:828
34036 msgid ""
34037 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34038 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34039 "exist, so it fails.  In earlier versions of guestfish the error message was "
34040 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34041 "we should have used C<guestfish -c command> to run commands."
34042 msgstr ""
34043
34044 #. type: =item
34045 #: ../src/guestfs.pod:835
34046 msgid "guestfish megabyte modifiers don't work right on all commands"
34047 msgstr ""
34048
34049 #. type: textblock
34050 #: ../src/guestfs.pod:837
34051 msgid ""
34052 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34053 "other modifiers).  What guestfish actually does is to multiply the number "
34054 "part by the modifier part and pass the result to the C API.  However this "
34055 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34056 "expecting some other unit (eg. megabytes)."
34057 msgstr ""
34058
34059 #. type: textblock
34060 #: ../src/guestfs.pod:844
34061 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34062 msgstr ""
34063
34064 #. type: verbatim
34065 #: ../src/guestfs.pod:846
34066 #, no-wrap
34067 msgid ""
34068 " lvcreate LV VG 100M\n"
34069 "\n"
34070 msgstr ""
34071
34072 #. type: textblock
34073 #: ../src/guestfs.pod:848
34074 msgid ""
34075 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34076 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34077 "megabytes * megabytes) logical volume.  The error message you get from this "
34078 "is also a little obscure."
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs.pod:853
34083 msgid ""
34084 "This could be fixed in the generator by specially marking parameters and "
34085 "return values which take bytes or other units."
34086 msgstr ""
34087
34088 #. type: =item
34089 #: ../src/guestfs.pod:856
34090 msgid "Ambiguity between devices and paths"
34091 msgstr ""
34092
34093 #. type: textblock
34094 #: ../src/guestfs.pod:858
34095 msgid ""
34096 "There is a subtle ambiguity in the API between a device name "
34097 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
34098 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34099 msgstr ""
34100
34101 #. type: textblock
34102 #: ../src/guestfs.pod:863
34103 msgid ""
34104 "In the current API we usually resolve this ambiguity by having two separate "
34105 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34106 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34107 "detecting if the path supplied begins with C</dev/>."
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:869
34112 msgid ""
34113 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34114 "make paths/devices into structured names.  One way to do this would be to "
34115 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34116 "aspect of grub.  Another way would be to use a structured type, equivalent "
34117 "to this OCaml type:"
34118 msgstr ""
34119
34120 #. type: verbatim
34121 #: ../src/guestfs.pod:875
34122 #, no-wrap
34123 msgid ""
34124 " type path = Path of string | Device of int | Partition of int * int\n"
34125 "\n"
34126 msgstr ""
34127
34128 #. type: textblock
34129 #: ../src/guestfs.pod:877
34130 msgid "which would allow you to pass arguments like:"
34131 msgstr ""
34132
34133 #. type: verbatim
34134 #: ../src/guestfs.pod:879
34135 #, no-wrap
34136 msgid ""
34137 " Path \"/foo/bar\"\n"
34138 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34139 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34140 " Path \"/dev/sdb2\"    (* not a device *)\n"
34141 "\n"
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs.pod:884
34146 msgid ""
34147 "As you can see there are still problems to resolve even with this "
34148 "representation.  Also consider how it might work in guestfish."
34149 msgstr ""
34150
34151 #. type: =head2
34152 #: ../src/guestfs.pod:889
34153 msgid "KEYS AND PASSPHRASES"
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs.pod:891
34158 msgid ""
34159 "Certain libguestfs calls take a parameter that contains sensitive key "
34160 "material, passed in as a C string."
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:894
34165 msgid ""
34166 "In the future we would hope to change the libguestfs implementation so that "
34167 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34168 "swap.  However this is I<not> done at the moment, because of the complexity "
34169 "of such an implementation."
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs.pod:899
34174 msgid ""
34175 "Therefore you should be aware that any key parameter you pass to libguestfs "
34176 "might end up being written out to the swap partition.  If this is a concern, "
34177 "scrub the swap partition or don't use libguestfs on encrypted devices."
34178 msgstr ""
34179
34180 #. type: =head2
34181 #: ../src/guestfs.pod:904
34182 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34183 msgstr ""
34184
34185 #. type: textblock
34186 #: ../src/guestfs.pod:906
34187 msgid ""
34188 "All high-level libguestfs actions are synchronous.  If you want to use "
34189 "libguestfs asynchronously then you must create a thread."
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs.pod:909
34194 msgid ""
34195 "Only use the handle from a single thread.  Either use the handle exclusively "
34196 "from one thread, or provide your own mutex so that two threads cannot issue "
34197 "calls on the same handle at the same time."
34198 msgstr ""
34199
34200 #. type: textblock
34201 #: ../src/guestfs.pod:913
34202 msgid ""
34203 "See the graphical program guestfs-browser for one possible architecture for "
34204 "multithreaded programs using libvirt and libguestfs."
34205 msgstr ""
34206
34207 #. type: =head2
34208 #: ../src/guestfs.pod:916
34209 msgid "PATH"
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:918
34214 msgid ""
34215 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34216 "internal path."
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:921
34221 msgid ""
34222 "By default it looks for these in the directory C<$libdir/guestfs> "
34223 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:924
34228 msgid ""
34229 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34230 "to change the directories that libguestfs will search in.  The value is a "
34231 "colon-separated list of paths.  The current directory is I<not> searched "
34232 "unless the path contains an empty element or C<.>.  For example "
34233 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34234 "then C</usr/lib/guestfs>."
34235 msgstr ""
34236
34237 #. type: =head2
34238 #: ../src/guestfs.pod:931
34239 msgid "QEMU WRAPPERS"
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:933
34244 msgid ""
34245 "If you want to compile your own qemu, run qemu from a non-standard location, "
34246 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34247 "around qemu."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:937
34252 msgid ""
34253 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34254 "last command in the shell script (so that qemu replaces the shell and "
34255 "becomes the direct child of the libguestfs-using program).  If you don't do "
34256 "this, then the qemu process won't be cleaned up correctly."
34257 msgstr ""
34258
34259 #. type: textblock
34260 #: ../src/guestfs.pod:942
34261 msgid ""
34262 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34263 "source:"
34264 msgstr ""
34265
34266 #. type: verbatim
34267 #: ../src/guestfs.pod:945
34268 #, no-wrap
34269 msgid ""
34270 " #!/bin/sh -\n"
34271 " qemudir=/home/rjones/d/qemu\n"
34272 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
34273 "\"$@\"\n"
34274 "\n"
34275 msgstr ""
34276
34277 #. type: textblock
34278 #: ../src/guestfs.pod:949
34279 msgid ""
34280 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34281 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34282 "example:"
34283 msgstr ""
34284
34285 #. type: verbatim
34286 #: ../src/guestfs.pod:953
34287 #, no-wrap
34288 msgid ""
34289 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34290 "\n"
34291 msgstr ""
34292
34293 #. type: textblock
34294 #: ../src/guestfs.pod:955
34295 msgid ""
34296 "Note that libguestfs also calls qemu with the -help and -version options in "
34297 "order to determine features."
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:958
34302 msgid ""
34303 "Wrappers can also be used to edit the options passed to qemu.  In the "
34304 "following example, the C<-machine ...> option (C<-machine> and the following "
34305 "argument) are removed from the command line and replaced with C<-machine "
34306 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
34307 "right one to remove, putting the remaining options into the C<args> array."
34308 msgstr ""
34309
34310 #. type: verbatim
34311 #: ../src/guestfs.pod:967
34312 #, no-wrap
34313 msgid ""
34314 " i=0\n"
34315 " while [ $# -gt 0 ]; do\n"
34316 "     case \"$1\" in\n"
34317 "     -machine)\n"
34318 "         shift 2;;\n"
34319 "     *)\n"
34320 "         args[i]=\"$1\"\n"
34321 "         (( i++ ))\n"
34322 "         shift ;;\n"
34323 "     esac\n"
34324 " done\n"
34325 " \n"
34326 msgstr ""
34327
34328 #. type: verbatim
34329 #: ../src/guestfs.pod:979
34330 #, no-wrap
34331 msgid ""
34332 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34333 "\n"
34334 msgstr ""
34335
34336 #. type: =head2
34337 #: ../src/guestfs.pod:981
34338 msgid "ATTACHING TO RUNNING DAEMONS"
34339 msgstr ""
34340
34341 #. type: textblock
34342 #: ../src/guestfs.pod:983
34343 msgid ""
34344 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34345 "babies.  Use with caution."
34346 msgstr ""
34347
34348 #. type: textblock
34349 #: ../src/guestfs.pod:986
34350 msgid ""
34351 "I<Note (2):> This section explains how to attach to a running daemon from a "
34352 "low level perspective.  For most users, simply using virt tools such as "
34353 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34354 msgstr ""
34355
34356 #. type: =head3
34357 #: ../src/guestfs.pod:990
34358 msgid "Using guestfs_set_attach_method"
34359 msgstr ""
34360
34361 #. type: textblock
34362 #: ../src/guestfs.pod:992
34363 msgid ""
34364 "By calling L</guestfs_set_attach_method> you can change how the library "
34365 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
34366 "L</ARCHITECTURE> for some background)."
34367 msgstr ""
34368
34369 #. type: textblock
34370 #: ../src/guestfs.pod:996
34371 msgid ""
34372 "The normal attach method is C<appliance>, where a small appliance is created "
34373 "containing the daemon, and then the library connects to this."
34374 msgstr ""
34375
34376 #. type: textblock
34377 #: ../src/guestfs.pod:999
34378 msgid ""
34379 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34380 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34381 "daemon over the Unix domain socket."
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:1003
34386 msgid ""
34387 "The normal use for this is to connect to a running virtual machine that "
34388 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34389 "files inside the live virtual machine."
34390 msgstr ""
34391
34392 #. type: =head3
34393 #: ../src/guestfs.pod:1007
34394 msgid "Using guestfs_add_domain with live flag"
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:1009
34399 msgid ""
34400 "L</guestfs_add_domain> provides some help for getting the correct attach "
34401 "method.  If you pass the C<live> option to this function, then (if the "
34402 "virtual machine is running) it will examine the libvirt XML looking for a "
34403 "virtio-serial channel to connect to:"
34404 msgstr ""
34405
34406 #. type: verbatim
34407 #: ../src/guestfs.pod:1015
34408 #, no-wrap
34409 msgid ""
34410 " <domain>\n"
34411 "   ...\n"
34412 "   <devices>\n"
34413 "     ...\n"
34414 "     <channel type='unix'>\n"
34415 "       <source mode='bind' path='/path/to/socket'/>\n"
34416 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34417 "     </channel>\n"
34418 "     ...\n"
34419 "   </devices>\n"
34420 " </domain>\n"
34421 "\n"
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1027
34426 msgid ""
34427 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34428 "method to C<unix:/path/to/socket>."
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:1030
34433 msgid ""
34434 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34435 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34436 "to attach to and modify live virtual machines."
34437 msgstr ""
34438
34439 #. type: textblock
34440 #: ../src/guestfs.pod:1034
34441 msgid ""
34442 "The virtual machine needs to have been set up beforehand so that it has the "
34443 "virtio-serial channel and so that guestfsd is running inside it."
34444 msgstr ""
34445
34446 #. type: =head2
34447 #: ../src/guestfs.pod:1038
34448 msgid "ABI GUARANTEE"
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs.pod:1040
34453 msgid ""
34454 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34455 "actions as outlined in this section.  Although we will deprecate some "
34456 "actions, for example if they get replaced by newer calls, we will keep the "
34457 "old actions forever.  This allows you the developer to program in confidence "
34458 "against the libguestfs API."
34459 msgstr ""
34460
34461 #. type: =head2
34462 #: ../src/guestfs.pod:1046
34463 msgid "BLOCK DEVICE NAMING"
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:1048
34468 msgid ""
34469 "In the kernel there is now quite a profusion of schemata for naming block "
34470 "devices (in this context, by I<block device> I mean a physical or virtual "
34471 "hard drive).  The original Linux IDE driver used names starting with "
34472 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
34473 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
34474 "replacement for the old IDE driver (particularly for SATA devices) those "
34475 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
34476 "machines with paravirtualized drivers.  This has created several different "
34477 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
34478 "Xen PV disks."
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:1060
34483 msgid ""
34484 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34485 "Linux kernel to access block devices.  We can run a variety of appliances "
34486 "based on a variety of Linux kernels."
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:1064
34491 msgid ""
34492 "This causes a problem for libguestfs because many API calls use device or "
34493 "partition names.  Working scripts and the recipe (example) scripts that we "
34494 "make available over the internet could fail if the naming scheme changes."
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:1069
34499 msgid ""
34500 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34501 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34502 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34503 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:1075
34508 msgid ""
34509 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34510 "L</guestfs_list_partitions> and similar calls return the true names of the "
34511 "devices and partitions as known to the appliance."
34512 msgstr ""
34513
34514 #. type: =head3
34515 #: ../src/guestfs.pod:1080
34516 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:1082
34521 msgid ""
34522 "Usually this translation is transparent.  However in some (very rare)  cases "
34523 "you may need to know the exact algorithm.  Such cases include where you use "
34524 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
34525 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
34526 "devices."
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:1088
34531 msgid ""
34532 "The algorithm is applied only to I<parameters> which are known to be either "
34533 "device or partition names.  Return values from functions such as "
34534 "L</guestfs_list_devices> are never changed."
34535 msgstr ""
34536
34537 #. type: textblock
34538 #: ../src/guestfs.pod:1096
34539 msgid "Is the string a parameter which is a device or partition name?"
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:1100
34544 msgid "Does the string begin with C</dev/sd>?"
34545 msgstr ""
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:1104
34549 msgid ""
34550 "Does the named device exist? If so, we use that device.  However if I<not> "
34551 "then we continue with this algorithm."
34552 msgstr ""
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:1109
34556 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:1111
34561 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34562 msgstr ""
34563
34564 #. type: textblock
34565 #: ../src/guestfs.pod:1113
34566 msgid "If that named device exists, use it.  If not, continue."
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:1117
34571 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:1119
34576 msgid "If that named device exists, use it.  If not, return an error."
34577 msgstr ""
34578
34579 #. type: =head3
34580 #: ../src/guestfs.pod:1123
34581 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:1125
34586 msgid ""
34587 "Although the standard naming scheme and automatic translation is useful for "
34588 "simple programs and guestfish scripts, for larger programs it is best not to "
34589 "rely on this mechanism."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1129
34594 msgid ""
34595 "Where possible for maximum future portability programs using libguestfs "
34596 "should use these future-proof techniques:"
34597 msgstr ""
34598
34599 #. type: textblock
34600 #: ../src/guestfs.pod:1136
34601 msgid ""
34602 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34603 "device names, and then use those names directly."
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:1139
34608 msgid "Since those device names exist by definition, they will never be translated."
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:1144
34613 msgid ""
34614 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34615 "filesystem labels."
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:1151
34620 msgid ""
34621 "This section discusses security implications of using libguestfs, "
34622 "particularly with untrusted or malicious guests or disk images."
34623 msgstr ""
34624
34625 #. type: =head2
34626 #: ../src/guestfs.pod:1154
34627 msgid "GENERAL SECURITY CONSIDERATIONS"
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs.pod:1156
34632 msgid ""
34633 "Be careful with any files or data that you download from a guest (by "
34634 "\"download\" we mean not just the L</guestfs_download> command but any "
34635 "command that reads files, filenames, directories or anything else from a "
34636 "disk image).  An attacker could manipulate the data to fool your program "
34637 "into doing the wrong thing.  Consider cases such as:"
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs.pod:1166
34642 msgid "the data (file etc) not being present"
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:1170
34647 msgid "being present but empty"
34648 msgstr ""
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:1174
34652 msgid "being much larger than normal"
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:1178
34657 msgid "containing arbitrary 8 bit data"
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:1182
34662 msgid "being in an unexpected character encoding"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:1186
34667 msgid "containing homoglyphs."
34668 msgstr ""
34669
34670 #. type: =head2
34671 #: ../src/guestfs.pod:1190
34672 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:1192
34677 msgid ""
34678 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34679 "(VFS) module can sometimes be escalated into exploits by deliberately "
34680 "creating a malicious, malformed filesystem.  These exploits are very severe "
34681 "for two reasons.  Firstly there are very many filesystem drivers in the "
34682 "kernel, and many of them are infrequently used and not much developer "
34683 "attention has been paid to the code.  Linux userspace helps potential "
34684 "crackers by detecting the filesystem type and automatically choosing the "
34685 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34686 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34687 "exploit (worse in some ways), giving immediate and total access to the "
34688 "system right down to the hardware level."
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs.pod:1205
34693 msgid ""
34694 "That explains why you should never mount a filesystem from an untrusted "
34695 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34696 "inside a qemu virtual machine, usually running as a non-root user.  The "
34697 "attacker would need to write a filesystem which first exploited the kernel, "
34698 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34699 "the libguestfs protocol, and finally to be as serious as the host kernel "
34700 "exploit it would need to escalate its privileges to root.  This multi-step "
34701 "escalation, performed by a static piece of data, is thought to be extremely "
34702 "hard to do, although we never say 'never' about security issues."
34703 msgstr ""
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:1216
34707 msgid ""
34708 "In any case callers can reduce the attack surface by forcing the filesystem "
34709 "type when mounting (use L</guestfs_mount_vfs>)."
34710 msgstr ""
34711
34712 #. type: =head2
34713 #: ../src/guestfs.pod:1219
34714 msgid "PROTOCOL SECURITY"
34715 msgstr ""
34716
34717 #. type: textblock
34718 #: ../src/guestfs.pod:1221
34719 msgid ""
34720 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34721 "defined upper message size.  However a program that uses libguestfs must "
34722 "also take care - for example you can write a program that downloads a binary "
34723 "from a disk image and executes it locally, and no amount of protocol "
34724 "security will save you from the consequences."
34725 msgstr ""
34726
34727 #. type: =head2
34728 #: ../src/guestfs.pod:1227
34729 msgid "INSPECTION SECURITY"
34730 msgstr ""
34731
34732 #. type: textblock
34733 #: ../src/guestfs.pod:1229
34734 msgid ""
34735 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34736 "directly from the guest, and these could contain any 8 bit data.  Callers "
34737 "should be careful to escape these before printing them to a structured file "
34738 "(for example, use HTML escaping if creating a web page)."
34739 msgstr ""
34740
34741 #. type: textblock
34742 #: ../src/guestfs.pod:1235
34743 msgid ""
34744 "Guest configuration may be altered in unusual ways by the administrator of "
34745 "the virtual machine, and may not reflect reality (particularly for untrusted "
34746 "or actively malicious guests).  For example we parse the hostname from "
34747 "configuration files like C</etc/sysconfig/network> that we find in the "
34748 "guest, but the guest administrator can easily manipulate these files to "
34749 "provide the wrong hostname."
34750 msgstr ""
34751
34752 #. type: textblock
34753 #: ../src/guestfs.pod:1243
34754 msgid ""
34755 "The inspection API parses guest configuration using two external libraries: "
34756 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34757 "designed to be robust in the face of malicious data, although denial of "
34758 "service attacks are still possible, for example with oversized configuration "
34759 "files."
34760 msgstr ""
34761
34762 #. type: =head2
34763 #: ../src/guestfs.pod:1249
34764 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../src/guestfs.pod:1251
34769 msgid ""
34770 "Be very cautious about running commands from the guest.  By running a "
34771 "command in the guest, you are giving CPU time to a binary that you do not "
34772 "control, under the same user account as the library, albeit wrapped in qemu "
34773 "virtualization.  More information and alternatives can be found in the "
34774 "section L</RUNNING COMMANDS>."
34775 msgstr ""
34776
34777 #. type: =head2
34778 #: ../src/guestfs.pod:1257
34779 msgid "CVE-2010-3851"
34780 msgstr ""
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:1259
34784 msgid "https://bugzilla.redhat.com/642934"
34785 msgstr ""
34786
34787 #. type: textblock
34788 #: ../src/guestfs.pod:1261
34789 msgid ""
34790 "This security bug concerns the automatic disk format detection that qemu "
34791 "does on disk images."
34792 msgstr ""
34793
34794 #. type: textblock
34795 #: ../src/guestfs.pod:1264
34796 msgid ""
34797 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34798 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34799 "for one of the known headers, and if none is found then assuming the disk "
34800 "image must be raw."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:1269
34805 msgid ""
34806 "This allows a guest which has been given a raw disk image to write some "
34807 "other header.  At next boot (or when the disk image is accessed by "
34808 "libguestfs) qemu would do autodetection and think the disk image format was, "
34809 "say, qcow2 based on the header written by the guest."
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:1274
34814 msgid ""
34815 "This in itself would not be a problem, but qcow2 offers many features, one "
34816 "of which is to allow a disk image to refer to another image (called the "
34817 "\"backing disk\").  It does this by placing the path to the backing disk "
34818 "into the qcow2 header.  This path is not validated and could point to any "
34819 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34820 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34821 "control of the attacker."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:1282
34826 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:1289
34831 msgid "You have enabled the network or have opened the disk in write mode."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:1293
34836 msgid ""
34837 "You are also running untrusted code from the guest (see L</RUNNING "
34838 "COMMANDS>)."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:1298
34843 msgid ""
34844 "The way to avoid this is to specify the expected disk format when adding "
34845 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34846 "should always do this if the disk is raw format, and it's a good idea for "
34847 "other cases too."
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:1303
34852 msgid ""
34853 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34854 "format is fetched from libvirt and passed through."
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:1306
34859 msgid ""
34860 "For libguestfs tools, use the I<--format> command line parameter as "
34861 "appropriate."
34862 msgstr ""
34863
34864 #. type: =head1
34865 #: ../src/guestfs.pod:1309
34866 msgid "CONNECTION MANAGEMENT"
34867 msgstr ""
34868
34869 #. type: =head2
34870 #: ../src/guestfs.pod:1311
34871 msgid "guestfs_h *"
34872 msgstr ""
34873
34874 #. type: textblock
34875 #: ../src/guestfs.pod:1313
34876 msgid ""
34877 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34878 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34879 "handle and release all resources used."
34880 msgstr ""
34881
34882 #. type: textblock
34883 #: ../src/guestfs.pod:1317
34884 msgid ""
34885 "For information on using multiple handles and threads, see the section "
34886 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34887 msgstr ""
34888
34889 #. type: =head2
34890 #: ../src/guestfs.pod:1320
34891 msgid "guestfs_create"
34892 msgstr ""
34893
34894 #. type: verbatim
34895 #: ../src/guestfs.pod:1322
34896 #, no-wrap
34897 msgid ""
34898 " guestfs_h *guestfs_create (void);\n"
34899 "\n"
34900 msgstr ""
34901
34902 #. type: textblock
34903 #: ../src/guestfs.pod:1324
34904 msgid "Create a connection handle."
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs.pod:1326
34909 msgid ""
34910 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34911 "NULL."
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:1329
34916 msgid ""
34917 "You have to \"configure\" the handle after creating it.  This includes "
34918 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34919 "handle at least once."
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:1333
34924 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:1335
34929 msgid ""
34930 "You may also want to configure error handling for the handle.  See the "
34931 "L</ERROR HANDLING> section below."
34932 msgstr ""
34933
34934 #. type: =head2
34935 #: ../src/guestfs.pod:1338
34936 msgid "guestfs_close"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs.pod:1340
34941 #, no-wrap
34942 msgid ""
34943 " void guestfs_close (guestfs_h *g);\n"
34944 "\n"
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:1342
34949 msgid "This closes the connection handle and frees up all resources used."
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:1344
34954 msgid ""
34955 "If autosync was set on the handle and the handle was launched, then this "
34956 "implicitly calls various functions to unmount filesystems and sync the "
34957 "disk.  See L</guestfs_set_autosync> for more details."
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:1348
34962 msgid "If a close callback was set on the handle, then it is called."
34963 msgstr ""
34964
34965 #. type: =head1
34966 #: ../src/guestfs.pod:1350
34967 msgid "ERROR HANDLING"
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:1352
34972 msgid ""
34973 "API functions can return errors.  For example, almost all functions that "
34974 "return C<int> will return C<-1> to indicate an error."
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:1355
34979 msgid ""
34980 "Additional information is available for errors: an error message string and "
34981 "optionally an error number (errno) if the thing that failed was a system "
34982 "call."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:1359
34987 msgid ""
34988 "You can get at the additional information about the last error on the handle "
34989 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34990 "up an error handler with L</guestfs_set_error_handler>."
34991 msgstr ""
34992
34993 #. type: textblock
34994 #: ../src/guestfs.pod:1364
34995 msgid ""
34996 "When the handle is created, a default error handler is installed which "
34997 "prints the error message string to C<stderr>.  For small short-running "
34998 "command line programs it is sufficient to do:"
34999 msgstr ""
35000
35001 #. type: verbatim
35002 #: ../src/guestfs.pod:1368
35003 #, no-wrap
35004 msgid ""
35005 " if (guestfs_launch (g) == -1)\n"
35006 "   exit (EXIT_FAILURE);\n"
35007 "\n"
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:1371
35012 msgid ""
35013 "since the default error handler will ensure that an error message has been "
35014 "printed to C<stderr> before the program exits."
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:1374
35019 msgid ""
35020 "For other programs the caller will almost certainly want to install an "
35021 "alternate error handler or do error handling in-line like this:"
35022 msgstr ""
35023
35024 #. type: verbatim
35025 #: ../src/guestfs.pod:1377
35026 #, no-wrap
35027 msgid ""
35028 " /* This disables the default behaviour of printing errors\n"
35029 "    on stderr. */\n"
35030 " guestfs_set_error_handler (g, NULL, NULL);\n"
35031 " \n"
35032 msgstr ""
35033
35034 #. type: verbatim
35035 #: ../src/guestfs.pod:1381
35036 #, no-wrap
35037 msgid ""
35038 " if (guestfs_launch (g) == -1) {\n"
35039 "   /* Examine the error message and print it etc. */\n"
35040 "   char *msg = guestfs_last_error (g);\n"
35041 "   int errnum = guestfs_last_errno (g);\n"
35042 "   fprintf (stderr, \"%s\", msg);\n"
35043 "   if (errnum != 0)\n"
35044 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35045 "   fprintf (stderr, \"\\n\");\n"
35046 "   /* ... */\n"
35047 " }\n"
35048 "\n"
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:1392
35053 msgid ""
35054 "Out of memory errors are handled differently.  The default action is to call "
35055 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
35056 "L</guestfs_set_out_of_memory_handler>."
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:1396
35061 msgid ""
35062 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35063 "because there is no handle if this happens there is no way to get additional "
35064 "error information.  However L</guestfs_create> is supposed to be a "
35065 "lightweight operation which can only fail because of insufficient memory (it "
35066 "returns NULL in this case)."
35067 msgstr ""
35068
35069 #. type: =head2
35070 #: ../src/guestfs.pod:1402
35071 msgid "guestfs_last_error"
35072 msgstr ""
35073
35074 #. type: verbatim
35075 #: ../src/guestfs.pod:1404
35076 #, no-wrap
35077 msgid ""
35078 " const char *guestfs_last_error (guestfs_h *g);\n"
35079 "\n"
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:1406
35084 msgid ""
35085 "This returns the last error message that happened on C<g>.  If there has not "
35086 "been an error since the handle was created, then this returns C<NULL>."
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:1410
35091 msgid ""
35092 "The lifetime of the returned string is until the next error occurs, or "
35093 "L</guestfs_close> is called."
35094 msgstr ""
35095
35096 #. type: =head2
35097 #: ../src/guestfs.pod:1413
35098 msgid "guestfs_last_errno"
35099 msgstr ""
35100
35101 #. type: verbatim
35102 #: ../src/guestfs.pod:1415
35103 #, no-wrap
35104 msgid ""
35105 " int guestfs_last_errno (guestfs_h *g);\n"
35106 "\n"
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:1417
35111 msgid "This returns the last error number (errno) that happened on C<g>."
35112 msgstr ""
35113
35114 #. type: textblock
35115 #: ../src/guestfs.pod:1419
35116 msgid "If successful, an errno integer not equal to zero is returned."
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:1421
35121 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:1428
35126 msgid "There has not been any error on the handle."
35127 msgstr ""
35128
35129 #. type: textblock
35130 #: ../src/guestfs.pod:1432
35131 msgid ""
35132 "There has been an error but the errno was meaningless.  This corresponds to "
35133 "the case where the error did not come from a failed system call, but for "
35134 "some other reason."
35135 msgstr ""
35136
35137 #. type: textblock
35138 #: ../src/guestfs.pod:1438
35139 msgid ""
35140 "There was an error from a failed system call, but for some reason the errno "
35141 "was not captured and returned.  This usually indicates a bug in libguestfs."
35142 msgstr ""
35143
35144 #. type: textblock
35145 #: ../src/guestfs.pod:1444
35146 msgid ""
35147 "Libguestfs tries to convert the errno from inside the applicance into a "
35148 "corresponding errno for the caller (not entirely trivial: the appliance "
35149 "might be running a completely different operating system from the library "
35150 "and error numbers are not standardized across Un*xen).  If this could not be "
35151 "done, then the error is translated to C<EINVAL>.  In practice this should "
35152 "only happen in very rare circumstances."
35153 msgstr ""
35154
35155 #. type: =head2
35156 #: ../src/guestfs.pod:1452
35157 msgid "guestfs_set_error_handler"
35158 msgstr ""
35159
35160 #. type: verbatim
35161 #: ../src/guestfs.pod:1454
35162 #, no-wrap
35163 msgid ""
35164 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35165 "                                           void *opaque,\n"
35166 "                                           const char *msg);\n"
35167 " void guestfs_set_error_handler (guestfs_h *g,\n"
35168 "                                 guestfs_error_handler_cb cb,\n"
35169 "                                 void *opaque);\n"
35170 "\n"
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:1461
35175 msgid ""
35176 "The callback C<cb> will be called if there is an error.  The parameters "
35177 "passed to the callback are an opaque data pointer and the error message "
35178 "string."
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:1465
35183 msgid ""
35184 "C<errno> is not passed to the callback.  To get that the callback must call "
35185 "L</guestfs_last_errno>."
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:1468
35190 msgid ""
35191 "Note that the message string C<msg> is freed as soon as the callback "
35192 "function returns, so if you want to stash it somewhere you must make your "
35193 "own copy."
35194 msgstr ""
35195
35196 #. type: textblock
35197 #: ../src/guestfs.pod:1472
35198 msgid "The default handler prints messages on C<stderr>."
35199 msgstr ""
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:1474
35203 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35204 msgstr ""
35205
35206 #. type: =head2
35207 #: ../src/guestfs.pod:1476
35208 msgid "guestfs_get_error_handler"
35209 msgstr ""
35210
35211 #. type: verbatim
35212 #: ../src/guestfs.pod:1478
35213 #, no-wrap
35214 msgid ""
35215 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35216 "                                                     void **opaque_rtn);\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:1481
35222 msgid "Returns the current error handler callback."
35223 msgstr ""
35224
35225 #. type: =head2
35226 #: ../src/guestfs.pod:1483
35227 msgid "guestfs_set_out_of_memory_handler"
35228 msgstr ""
35229
35230 #. type: verbatim
35231 #: ../src/guestfs.pod:1485
35232 #, no-wrap
35233 msgid ""
35234 " typedef void (*guestfs_abort_cb) (void);\n"
35235 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35236 "                                         guestfs_abort_cb);\n"
35237 "\n"
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:1489
35242 msgid ""
35243 "The callback C<cb> will be called if there is an out of memory situation.  "
35244 "I<Note this callback must not return>."
35245 msgstr ""
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:1492
35249 msgid "The default is to call L<abort(3)>."
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:1494
35254 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35255 msgstr ""
35256
35257 #. type: =head2
35258 #: ../src/guestfs.pod:1497
35259 msgid "guestfs_get_out_of_memory_handler"
35260 msgstr ""
35261
35262 #. type: verbatim
35263 #: ../src/guestfs.pod:1499
35264 #, no-wrap
35265 msgid ""
35266 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35267 "\n"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:1501
35272 msgid "This returns the current out of memory handler."
35273 msgstr ""
35274
35275 #. type: =head1
35276 #: ../src/guestfs.pod:1503
35277 msgid "API CALLS"
35278 msgstr ""
35279
35280 #. type: =head1
35281 #: ../src/guestfs.pod:1507
35282 msgid "STRUCTURES"
35283 msgstr ""
35284
35285 #. type: textblock
35286 #: ../src/guestfs.pod:1509
35287 msgid "@STRUCTS@"
35288 msgstr ""
35289
35290 #. type: =head1
35291 #: ../src/guestfs.pod:1511
35292 msgid "AVAILABILITY"
35293 msgstr ""
35294
35295 #. type: =head2
35296 #: ../src/guestfs.pod:1513
35297 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35298 msgstr ""
35299
35300 #. type: textblock
35301 #: ../src/guestfs.pod:1515
35302 msgid ""
35303 "Using L</guestfs_available> you can test availability of the following "
35304 "groups of functions.  This test queries the appliance to see if the "
35305 "appliance you are currently using supports the functionality."
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:1520
35310 msgid "@AVAILABILITY@"
35311 msgstr ""
35312
35313 #. type: =head2
35314 #: ../src/guestfs.pod:1522
35315 msgid "GUESTFISH supported COMMAND"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1524
35320 msgid ""
35321 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35322 "prints out the available groups and whether they are supported by this build "
35323 "of libguestfs.  Note however that you have to do C<run> first."
35324 msgstr ""
35325
35326 #. type: =head2
35327 #: ../src/guestfs.pod:1529
35328 msgid "SINGLE CALLS AT COMPILE TIME"
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:1531
35333 msgid ""
35334 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35335 "function, such as:"
35336 msgstr ""
35337
35338 #. type: verbatim
35339 #: ../src/guestfs.pod:1534
35340 #, no-wrap
35341 msgid ""
35342 " #define LIBGUESTFS_HAVE_DD 1\n"
35343 "\n"
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:1536
35348 msgid "if L</guestfs_dd> is available."
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:1538
35353 msgid ""
35354 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35355 "function is available at compile time, we recommended using build tools such "
35356 "as autoconf or cmake.  For example in autotools you could use:"
35357 msgstr ""
35358
35359 #. type: verbatim
35360 #: ../src/guestfs.pod:1543
35361 #, no-wrap
35362 msgid ""
35363 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35364 " AC_CHECK_FUNCS([guestfs_dd])\n"
35365 "\n"
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs.pod:1546
35370 msgid ""
35371 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35372 "in your program."
35373 msgstr ""
35374
35375 #. type: =head2
35376 #: ../src/guestfs.pod:1549
35377 msgid "SINGLE CALLS AT RUN TIME"
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs.pod:1551
35382 msgid ""
35383 "Testing at compile time doesn't guarantee that a function really exists in "
35384 "the library.  The reason is that you might be dynamically linked against a "
35385 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35386 "This situation unfortunately results in a segmentation fault, which is a "
35387 "shortcoming of the C dynamic linking system itself."
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:1558
35392 msgid ""
35393 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35394 "in this example program (note that you still need the compile time check as "
35395 "well):"
35396 msgstr ""
35397
35398 #. type: verbatim
35399 #: ../src/guestfs.pod:1562
35400 #, no-wrap
35401 msgid ""
35402 " #include <stdio.h>\n"
35403 " #include <stdlib.h>\n"
35404 " #include <unistd.h>\n"
35405 " #include <dlfcn.h>\n"
35406 " #include <guestfs.h>\n"
35407 " \n"
35408 msgstr ""
35409
35410 #. type: verbatim
35411 #: ../src/guestfs.pod:1568
35412 #, no-wrap
35413 msgid ""
35414 " main ()\n"
35415 " {\n"
35416 " #ifdef LIBGUESTFS_HAVE_DD\n"
35417 "   void *dl;\n"
35418 "   int has_function;\n"
35419 " \n"
35420 msgstr ""
35421
35422 #. type: verbatim
35423 #: ../src/guestfs.pod:1574
35424 #, no-wrap
35425 msgid ""
35426 "   /* Test if the function guestfs_dd is really available. */\n"
35427 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35428 "   if (!dl) {\n"
35429 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35430 "     exit (EXIT_FAILURE);\n"
35431 "   }\n"
35432 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35433 "   dlclose (dl);\n"
35434 " \n"
35435 msgstr ""
35436
35437 #. type: verbatim
35438 #: ../src/guestfs.pod:1583
35439 #, no-wrap
35440 msgid ""
35441 "   if (!has_function)\n"
35442 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35443 "   else {\n"
35444 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35445 "     /* Now it's safe to call\n"
35446 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35447 "     */\n"
35448 "   }\n"
35449 " #else\n"
35450 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35451 " #endif\n"
35452 "  }\n"
35453 "\n"
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:1596
35458 msgid ""
35459 "You may think the above is an awful lot of hassle, and it is.  There are "
35460 "other ways outside of the C linking system to ensure that this kind of "
35461 "incompatibility never arises, such as using package versioning:"
35462 msgstr ""
35463
35464 #. type: verbatim
35465 #: ../src/guestfs.pod:1601
35466 #, no-wrap
35467 msgid ""
35468 " Requires: libguestfs >= 1.0.80\n"
35469 "\n"
35470 msgstr ""
35471
35472 #. type: =head1
35473 #: ../src/guestfs.pod:1603
35474 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:1605
35479 msgid ""
35480 "A recent feature of the API is the introduction of calls which take optional "
35481 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35482 "takes variable arguments (ie. C<...>), as in this example:"
35483 msgstr ""
35484
35485 #. type: verbatim
35486 #: ../src/guestfs.pod:1610
35487 #, no-wrap
35488 msgid ""
35489 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35490 "\n"
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:1612
35495 msgid ""
35496 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35497 "call with no optional arguments specified:"
35498 msgstr ""
35499
35500 #. type: verbatim
35501 #: ../src/guestfs.pod:1615
35502 #, no-wrap
35503 msgid ""
35504 " guestfs_add_drive_opts (g, filename, -1);\n"
35505 "\n"
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:1617
35510 msgid "With a single optional argument:"
35511 msgstr ""
35512
35513 #. type: verbatim
35514 #: ../src/guestfs.pod:1619
35515 #, no-wrap
35516 msgid ""
35517 " guestfs_add_drive_opts (g, filename,\n"
35518 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35519 "                         -1);\n"
35520 "\n"
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:1623
35525 msgid "With two:"
35526 msgstr ""
35527
35528 #. type: verbatim
35529 #: ../src/guestfs.pod:1625
35530 #, no-wrap
35531 msgid ""
35532 " guestfs_add_drive_opts (g, filename,\n"
35533 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35534 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35535 "                         -1);\n"
35536 "\n"
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:1630
35541 msgid ""
35542 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35543 "happen!"
35544 msgstr ""
35545
35546 #. type: =head2
35547 #: ../src/guestfs.pod:1633
35548 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:1635
35553 msgid ""
35554 "The second variant has the same name with the suffix C<_va>, which works the "
35555 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35556 "example function, this is declared:"
35557 msgstr ""
35558
35559 #. type: verbatim
35560 #: ../src/guestfs.pod:1639
35561 #, no-wrap
35562 msgid ""
35563 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35564 "                                va_list args);\n"
35565 "\n"
35566 msgstr ""
35567
35568 #. type: =head2
35569 #: ../src/guestfs.pod:1642
35570 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:1644
35575 msgid ""
35576 "The third variant is useful where you need to construct these calls.  You "
35577 "pass in a structure where you fill in the optional fields.  The structure "
35578 "has a bitmask as the first element which you must set to indicate which "
35579 "fields you have filled in.  For our example function the structure and call "
35580 "are declared:"
35581 msgstr ""
35582
35583 #. type: verbatim
35584 #: ../src/guestfs.pod:1650
35585 #, no-wrap
35586 msgid ""
35587 " struct guestfs_add_drive_opts_argv {\n"
35588 "   uint64_t bitmask;\n"
35589 "   int readonly;\n"
35590 "   const char *format;\n"
35591 "   /* ... */\n"
35592 " };\n"
35593 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35594 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35595 "\n"
35596 msgstr ""
35597
35598 #. type: textblock
35599 #: ../src/guestfs.pod:1659
35600 msgid "You could call it like this:"
35601 msgstr ""
35602
35603 #. type: verbatim
35604 #: ../src/guestfs.pod:1661
35605 #, no-wrap
35606 msgid ""
35607 " struct guestfs_add_drive_opts_argv optargs = {\n"
35608 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35609 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35610 "   .readonly = 1,\n"
35611 "   .format = \"qcow2\"\n"
35612 " };\n"
35613 " \n"
35614 msgstr ""
35615
35616 #. type: verbatim
35617 #: ../src/guestfs.pod:1668
35618 #, no-wrap
35619 msgid ""
35620 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35621 "\n"
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:1676
35626 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:1681
35631 msgid "You do not need to fill in all fields of the structure."
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:1685
35636 msgid ""
35637 "There must be a one-to-one correspondence between fields of the structure "
35638 "that are filled in, and bits set in the bitmask."
35639 msgstr ""
35640
35641 #. type: =head2
35642 #: ../src/guestfs.pod:1690
35643 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:1692
35648 msgid ""
35649 "In other languages, optional arguments are expressed in the way that is "
35650 "natural for that language.  We refer you to the language-specific "
35651 "documentation for more details on that."
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:1696
35656 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35657 msgstr ""
35658
35659 #. type: =head2
35660 #: ../src/guestfs.pod:1698
35661 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:1700
35666 msgid ""
35667 "B<Note:> This section documents the generic event mechanism introduced in "
35668 "libguestfs 1.10, which you should use in new code if possible.  The old "
35669 "functions C<guestfs_set_log_message_callback>, "
35670 "C<guestfs_set_subprocess_quit_callback>, "
35671 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35672 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35673 "page.  Because of the ABI guarantee, the old functions continue to work."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:1709
35678 msgid ""
35679 "Handles generate events when certain things happen, such as log messages "
35680 "being generated, progress messages during long-running operations, or the "
35681 "handle being closed.  The API calls described below let you register a "
35682 "callback to be called when events happen.  You can register multiple "
35683 "callbacks (for the same, different or overlapping sets of events), and "
35684 "individually remove callbacks.  If callbacks are not removed, then they "
35685 "remain in force until the handle is closed."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:1717
35690 msgid ""
35691 "In the current implementation, events are only generated synchronously: that "
35692 "means that events (and hence callbacks) can only happen while you are in the "
35693 "middle of making another libguestfs call.  The callback is called in the "
35694 "same thread."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:1722
35699 msgid ""
35700 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35701 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35702 msgstr ""
35703
35704 #. type: =head3
35705 #: ../src/guestfs.pod:1726
35706 msgid "CLASSES OF EVENTS"
35707 msgstr ""
35708
35709 #. type: =item
35710 #: ../src/guestfs.pod:1730
35711 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:1733
35716 msgid ""
35717 "The callback function will be called while the handle is being closed "
35718 "(synchronously from L</guestfs_close>)."
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:1736
35723 msgid ""
35724 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35725 "handles that are open when the program exits.  This means that this callback "
35726 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35727 "problems in higher-level languages (eg. if your HLL interpreter has already "
35728 "been cleaned up by the time this is called, and if your callback then jumps "
35729 "into some HLL function)."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:1743
35734 msgid ""
35735 "If no callback is registered: the handle is closed without any callback "
35736 "being invoked."
35737 msgstr ""
35738
35739 #. type: =item
35740 #: ../src/guestfs.pod:1746
35741 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:1749
35746 msgid ""
35747 "The callback function will be called when the child process quits, either "
35748 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35749 "corresponds to a transition from any state to the CONFIG state)."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35754 msgid "If no callback is registered: the event is ignored."
35755 msgstr ""
35756
35757 #. type: =item
35758 #: ../src/guestfs.pod:1755
35759 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:1758
35764 msgid ""
35765 "The callback function will be called when the child process becomes ready "
35766 "first time after it has been launched.  (This corresponds to a transition "
35767 "from LAUNCHING to the READY state)."
35768 msgstr ""
35769
35770 #. type: =item
35771 #: ../src/guestfs.pod:1764
35772 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:1767
35777 msgid ""
35778 "Some long-running operations can generate progress messages.  If this "
35779 "callback is registered, then it will be called each time a progress message "
35780 "is generated (usually two seconds after the operation started, and three "
35781 "times per second thereafter until it completes, although the frequency may "
35782 "change in future versions)."
35783 msgstr ""
35784
35785 #. type: textblock
35786 #: ../src/guestfs.pod:1773
35787 msgid ""
35788 "The callback receives in the payload four unsigned 64 bit numbers which are "
35789 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35790 msgstr ""
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:1776
35794 msgid ""
35795 "The units of C<total> are not defined, although for some operations C<total> "
35796 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35797 "or megabytes), and C<position> may be the portion which has been "
35798 "transferred."
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:1781
35803 msgid "The only defined and stable parts of the API are:"
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:1787
35808 msgid ""
35809 "The callback can display to the user some type of progress bar or indicator "
35810 "which shows the ratio of C<position>:C<total>."
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:1792
35815 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:1796
35820 msgid ""
35821 "If any progress notification is sent during a call, then a final progress "
35822 "notification is always sent when C<position> = C<total> (I<unless> the call "
35823 "fails with an error)."
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../src/guestfs.pod:1800
35828 msgid ""
35829 "This is to simplify caller code, so callers can easily set the progress "
35830 "indicator to \"100%\" at the end of the operation, without requiring special "
35831 "code to detect this case."
35832 msgstr ""
35833
35834 #. type: textblock
35835 #: ../src/guestfs.pod:1806
35836 msgid ""
35837 "For some calls we are unable to estimate the progress of the call, but we "
35838 "can still generate progress messages to indicate activity.  This is known as "
35839 "\"pulse mode\", and is directly supported by certain progress bar "
35840 "implementations (eg. GtkProgressBar)."
35841 msgstr ""
35842
35843 #. type: textblock
35844 #: ../src/guestfs.pod:1811
35845 msgid ""
35846 "For these calls, zero or more progress messages are generated with "
35847 "C<position = 0> and C<total = 1>, followed by a final message with "
35848 "C<position = total = 1>."
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:1815
35853 msgid ""
35854 "As noted above, if the call fails with an error then the final message may "
35855 "not be generated."
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:1820
35860 msgid ""
35861 "The callback also receives the procedure number (C<proc_nr>) and serial "
35862 "number (C<serial>) of the call.  These are only useful for debugging "
35863 "protocol issues, and the callback can normally ignore them.  The callback "
35864 "may want to print these numbers in error messages or debugging messages."
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:1826
35869 msgid "If no callback is registered: progress messages are discarded."
35870 msgstr ""
35871
35872 #. type: =item
35873 #: ../src/guestfs.pod:1828
35874 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:1831
35879 msgid ""
35880 "The callback function is called whenever a log message is generated by qemu, "
35881 "the appliance kernel, guestfsd (daemon), or utility programs."
35882 msgstr ""
35883
35884 #. type: textblock
35885 #: ../src/guestfs.pod:1834
35886 msgid ""
35887 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
35888 "(L</guestfs_launch>) then additional debug messages are generated."
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35893 msgid ""
35894 "If no callback is registered: the messages are discarded unless the verbose "
35895 "flag is set in which case they are sent to stderr.  You can override the "
35896 "printing of verbose messages to stderr by setting up a callback."
35897 msgstr ""
35898
35899 #. type: =item
35900 #: ../src/guestfs.pod:1842
35901 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:1845
35906 msgid ""
35907 "The callback function is called whenever a log message is generated by the "
35908 "library part of libguestfs."
35909 msgstr ""
35910
35911 #. type: textblock
35912 #: ../src/guestfs.pod:1848
35913 msgid ""
35914 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35915 "messages are generated."
35916 msgstr ""
35917
35918 #. type: =item
35919 #: ../src/guestfs.pod:1856
35920 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35921 msgstr ""
35922
35923 #. type: textblock
35924 #: ../src/guestfs.pod:1859
35925 msgid ""
35926 "The callback function is called whenever a trace message is generated.  This "
35927 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:1862
35932 msgid ""
35933 "If no callback is registered: the messages are sent to stderr.  You can "
35934 "override the printing of trace messages to stderr by setting up a callback."
35935 msgstr ""
35936
35937 #. type: =item
35938 #: ../src/guestfs.pod:1866
35939 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35940 msgstr ""
35941
35942 #. type: textblock
35943 #: ../src/guestfs.pod:1869
35944 msgid "The callback function is called whenever a libguestfs function is entered."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:1872
35949 msgid ""
35950 "The payload is a string which contains the name of the function that we are "
35951 "entering (not including C<guestfs_> prefix)."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:1875
35956 msgid ""
35957 "Note that libguestfs functions can call themselves, so you may see many "
35958 "events from a single call.  A few libguestfs functions do not generate this "
35959 "event."
35960 msgstr ""
35961
35962 #. type: =head3
35963 #: ../src/guestfs.pod:1883
35964 msgid "guestfs_set_event_callback"
35965 msgstr ""
35966
35967 #. type: verbatim
35968 #: ../src/guestfs.pod:1885
35969 #, no-wrap
35970 msgid ""
35971 " int guestfs_set_event_callback (guestfs_h *g,\n"
35972 "                                 guestfs_event_callback cb,\n"
35973 "                                 uint64_t event_bitmask,\n"
35974 "                                 int flags,\n"
35975 "                                 void *opaque);\n"
35976 "\n"
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:1891
35981 msgid ""
35982 "This function registers a callback (C<cb>) for all event classes in the "
35983 "C<event_bitmask>."
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:1894
35988 msgid ""
35989 "For example, to register for all log message events, you could call this "
35990 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35991 "To register a single callback for all possible classes of events, use "
35992 "C<GUESTFS_EVENT_ALL>."
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:1900
35997 msgid "C<flags> should always be passed as 0."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:1902
36002 msgid ""
36003 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36004 "it for any purpose."
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:1905
36009 msgid ""
36010 "The return value is the event handle (an integer) which you can use to "
36011 "delete the callback (see below)."
36012 msgstr ""
36013
36014 #. type: textblock
36015 #: ../src/guestfs.pod:1908
36016 msgid ""
36017 "If there is an error, this function returns C<-1>, and sets the error in the "
36018 "handle in the usual way (see L</guestfs_last_error> etc.)"
36019 msgstr ""
36020
36021 #. type: textblock
36022 #: ../src/guestfs.pod:1911
36023 msgid ""
36024 "Callbacks remain in effect until they are deleted, or until the handle is "
36025 "closed."
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:1914
36030 msgid ""
36031 "In the case where multiple callbacks are registered for a particular event "
36032 "class, all of the callbacks are called.  The order in which multiple "
36033 "callbacks are called is not defined."
36034 msgstr ""
36035
36036 #. type: =head3
36037 #: ../src/guestfs.pod:1918
36038 msgid "guestfs_delete_event_callback"
36039 msgstr ""
36040
36041 #. type: verbatim
36042 #: ../src/guestfs.pod:1920
36043 #, no-wrap
36044 msgid ""
36045 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36046 "\n"
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:1922
36051 msgid ""
36052 "Delete a callback that was previously registered.  C<event_handle> should be "
36053 "the integer that was returned by a previous call to "
36054 "C<guestfs_set_event_callback> on the same handle."
36055 msgstr ""
36056
36057 #. type: =head3
36058 #: ../src/guestfs.pod:1926
36059 msgid "guestfs_event_callback"
36060 msgstr ""
36061
36062 #. type: verbatim
36063 #: ../src/guestfs.pod:1928
36064 #, no-wrap
36065 msgid ""
36066 " typedef void (*guestfs_event_callback) (\n"
36067 "                  guestfs_h *g,\n"
36068 "                  void *opaque,\n"
36069 "                  uint64_t event,\n"
36070 "                  int event_handle,\n"
36071 "                  int flags,\n"
36072 "                  const char *buf, size_t buf_len,\n"
36073 "                  const uint64_t *array, size_t array_len);\n"
36074 "\n"
36075 msgstr ""
36076
36077 #. type: textblock
36078 #: ../src/guestfs.pod:1937
36079 msgid "This is the type of the event callback function that you have to provide."
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:1940
36084 msgid ""
36085 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36086 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36087 "handle, and C<flags> which in the current API you should ignore."
36088 msgstr ""
36089
36090 #. type: textblock
36091 #: ../src/guestfs.pod:1944
36092 msgid ""
36093 "The remaining parameters contain the event payload (if any).  Each event may "
36094 "contain a payload, which usually relates to the event class, but for future "
36095 "proofing your code should be written to handle any payload for any event "
36096 "class."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:1949
36101 msgid ""
36102 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36103 "there is no message buffer).  Note that this message buffer can contain "
36104 "arbitrary 8 bit data, including NUL bytes."
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:1953
36109 msgid ""
36110 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36111 "moment this is only used for progress messages."
36112 msgstr ""
36113
36114 #. type: =head3
36115 #: ../src/guestfs.pod:1956
36116 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36117 msgstr ""
36118
36119 #. type: textblock
36120 #: ../src/guestfs.pod:1958
36121 msgid ""
36122 "One motivation for the generic event API was to allow GUI programs to "
36123 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36124 "unconditionally to C<stderr>."
36125 msgstr ""
36126
36127 #. type: textblock
36128 #: ../src/guestfs.pod:1962
36129 msgid ""
36130 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36131 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36132 "messages are not events; you must capture error messages separately)."
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:1967
36137 msgid ""
36138 "Programs have to set up a callback to capture the classes of events of "
36139 "interest:"
36140 msgstr ""
36141
36142 #. type: verbatim
36143 #: ../src/guestfs.pod:1970
36144 #, no-wrap
36145 msgid ""
36146 " int eh =\n"
36147 "   guestfs_set_event_callback\n"
36148 "     (g, message_callback,\n"
36149 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36150 "      GUESTFS_EVENT_TRACE,\n"
36151 "      0, NULL) == -1)\n"
36152 " if (eh == -1) {\n"
36153 "   // handle error in the usual way\n"
36154 " }\n"
36155 "\n"
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:1980
36160 msgid ""
36161 "The callback can then direct messages to the appropriate place.  In this "
36162 "example, messages are directed to syslog:"
36163 msgstr ""
36164
36165 #. type: verbatim
36166 #: ../src/guestfs.pod:1983
36167 #, no-wrap
36168 msgid ""
36169 " static void\n"
36170 " message_callback (\n"
36171 "         guestfs_h *g,\n"
36172 "         void *opaque,\n"
36173 "         uint64_t event,\n"
36174 "         int event_handle,\n"
36175 "         int flags,\n"
36176 "         const char *buf, size_t buf_len,\n"
36177 "         const uint64_t *array, size_t array_len)\n"
36178 " {\n"
36179 "   const int priority = LOG_USER|LOG_INFO;\n"
36180 "   if (buf_len > 0)\n"
36181 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36182 " }\n"
36183 "\n"
36184 msgstr ""
36185
36186 #. type: =head1
36187 #: ../src/guestfs.pod:1998
36188 msgid "CANCELLING LONG TRANSFERS"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:2000
36193 msgid ""
36194 "Some operations can be cancelled by the caller while they are in progress.  "
36195 "Currently only operations that involve uploading or downloading data can be "
36196 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36197 "parameters in the generator)."
36198 msgstr ""
36199
36200 #. type: =head2
36201 #: ../src/guestfs.pod:2005
36202 msgid "guestfs_user_cancel"
36203 msgstr ""
36204
36205 #. type: verbatim
36206 #: ../src/guestfs.pod:2007
36207 #, no-wrap
36208 msgid ""
36209 " void guestfs_user_cancel (guestfs_h *g);\n"
36210 "\n"
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:2009
36215 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:2012
36220 msgid ""
36221 "Unlike most other libguestfs calls, this function is signal safe and thread "
36222 "safe.  You can call it from a signal handler or from another thread, without "
36223 "needing to do any locking."
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:2016
36228 msgid ""
36229 "The transfer that was in progress (if there is one) will stop shortly "
36230 "afterwards, and will return an error.  The errno (see "
36231 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36232 "out if the operation was cancelled or failed because of another error."
36233 msgstr ""
36234
36235 #. type: textblock
36236 #: ../src/guestfs.pod:2022
36237 msgid ""
36238 "No cleanup is performed: for example, if a file was being uploaded then "
36239 "after cancellation there may be a partially uploaded file.  It is the "
36240 "caller's responsibility to clean up if necessary."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:2026
36245 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:2028
36250 msgid ""
36251 "In an interactive text-based program, you might call it from a C<SIGINT> "
36252 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36253 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36254 "receive the C<^C> signal)."
36255 msgstr ""
36256
36257 #. type: textblock
36258 #: ../src/guestfs.pod:2033
36259 msgid ""
36260 "In a graphical program, when the main thread is displaying a progress bar "
36261 "with a cancel button, wire up the cancel button to call this function."
36262 msgstr ""
36263
36264 #. type: =head1
36265 #: ../src/guestfs.pod:2037
36266 msgid "PRIVATE DATA AREA"
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:2039
36271 msgid ""
36272 "You can attach named pieces of private data to the libguestfs handle, fetch "
36273 "them by name, and walk over them, for the lifetime of the handle.  This is "
36274 "called the private data area and is only available from the C API."
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:2044
36279 msgid "To attach a named piece of data, use the following call:"
36280 msgstr ""
36281
36282 #. type: verbatim
36283 #: ../src/guestfs.pod:2046
36284 #, no-wrap
36285 msgid ""
36286 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36287 "\n"
36288 msgstr ""
36289
36290 #. type: textblock
36291 #: ../src/guestfs.pod:2048
36292 msgid ""
36293 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36294 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36295 "overwritten."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:2052
36300 msgid ""
36301 "You can use any C<key> you want, but your key should I<not> start with an "
36302 "underscore character.  Keys beginning with an underscore character are "
36303 "reserved for internal libguestfs purposes (eg. for implementing language "
36304 "bindings).  It is recommended that you prefix the key with some unique "
36305 "string to avoid collisions with other users."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:2058
36310 msgid "To retrieve the pointer, use:"
36311 msgstr ""
36312
36313 #. type: verbatim
36314 #: ../src/guestfs.pod:2060
36315 #, no-wrap
36316 msgid ""
36317 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36318 "\n"
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:2062
36323 msgid ""
36324 "This function returns C<NULL> if either no data is found associated with "
36325 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36326 "C<NULL>."
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../src/guestfs.pod:2066
36331 msgid ""
36332 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36333 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36334 "all.  In particular, libguestfs does I<not> try to free the data when the "
36335 "handle is closed.  If the data must be freed, then the caller must either "
36336 "free it before calling L</guestfs_close> or must set up a close callback to "
36337 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:2073
36342 msgid "To walk over all entries, use these two functions:"
36343 msgstr ""
36344
36345 #. type: verbatim
36346 #: ../src/guestfs.pod:2075
36347 #, no-wrap
36348 msgid ""
36349 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36350 "\n"
36351 msgstr ""
36352
36353 #. type: verbatim
36354 #: ../src/guestfs.pod:2077
36355 #, no-wrap
36356 msgid ""
36357 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36358 "\n"
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:2079
36363 msgid ""
36364 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36365 "not have any particular meaning -- keys are not returned in any defined "
36366 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36367 "corresponding data pointer is returned from the function.  C<NULL> is "
36368 "returned if there are no keys stored in the handle."
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:2085
36373 msgid ""
36374 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36375 "value of this function is also C<NULL> is there are no further entries to "
36376 "return."
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:2089
36381 msgid "Notes about walking over entries:"
36382 msgstr ""
36383
36384 #. type: textblock
36385 #: ../src/guestfs.pod:2095
36386 msgid "You must not call C<guestfs_set_private> while walking over the entries."
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:2100
36391 msgid ""
36392 "The handle maintains an internal iterator which is reset when you call "
36393 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36394 "call C<guestfs_set_private>."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:2106
36399 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36400 msgstr ""
36401
36402 #. type: verbatim
36403 #: ../src/guestfs.pod:2108
36404 #, no-wrap
36405 msgid ""
36406 " guestfs_set_private (g, key, NULL);\n"
36407 "\n"
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:2110
36412 msgid "then that C<key> is not returned when walking."
36413 msgstr ""
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:2114
36417 msgid ""
36418 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36419 "C<guestfs_next_private> or C<guestfs_set_private>."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:2120
36424 msgid ""
36425 "The following example code shows how to print all keys and data pointers "
36426 "that are associated with the handle C<g>:"
36427 msgstr ""
36428
36429 #. type: verbatim
36430 #: ../src/guestfs.pod:2123
36431 #, no-wrap
36432 msgid ""
36433 " const char *key;\n"
36434 " void *data = guestfs_first_private (g, &key);\n"
36435 " while (data != NULL)\n"
36436 "   {\n"
36437 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36438 "     data = guestfs_next_private (g, &key);\n"
36439 "   }\n"
36440 "\n"
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:2131
36445 msgid ""
36446 "More commonly you are only interested in keys that begin with an "
36447 "application-specific prefix C<foo_>.  Modify the loop like so:"
36448 msgstr ""
36449
36450 #. type: verbatim
36451 #: ../src/guestfs.pod:2134
36452 #, no-wrap
36453 msgid ""
36454 " const char *key;\n"
36455 " void *data = guestfs_first_private (g, &key);\n"
36456 " while (data != NULL)\n"
36457 "   {\n"
36458 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36459 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36460 "     data = guestfs_next_private (g, &key);\n"
36461 "   }\n"
36462 "\n"
36463 msgstr ""
36464
36465 #. type: textblock
36466 #: ../src/guestfs.pod:2143
36467 msgid ""
36468 "If you need to modify keys while walking, then you have to jump back to the "
36469 "beginning of the loop.  For example, to delete all keys prefixed with "
36470 "C<foo_>:"
36471 msgstr ""
36472
36473 #. type: verbatim
36474 #: ../src/guestfs.pod:2147
36475 #, no-wrap
36476 msgid ""
36477 "  const char *key;\n"
36478 "  void *data;\n"
36479 " again:\n"
36480 "  data = guestfs_first_private (g, &key);\n"
36481 "  while (data != NULL)\n"
36482 "    {\n"
36483 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36484 "        {\n"
36485 "          guestfs_set_private (g, key, NULL);\n"
36486 "          /* note that 'key' pointer is now invalid, and so is\n"
36487 "             the internal iterator */\n"
36488 "          goto again;\n"
36489 "        }\n"
36490 "      data = guestfs_next_private (g, &key);\n"
36491 "    }\n"
36492 "\n"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:2163
36497 msgid ""
36498 "Note that the above loop is guaranteed to terminate because the keys are "
36499 "being deleted, but other manipulations of keys within the loop might not "
36500 "terminate unless you also maintain an indication of which keys have been "
36501 "visited."
36502 msgstr ""
36503
36504 #. type: =head1
36505 #: ../src/guestfs.pod:2168
36506 msgid "SYSTEMTAP"
36507 msgstr ""
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:2170
36511 msgid ""
36512 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
36513 "true of any library, not just libguestfs.  However libguestfs also contains "
36514 "static markers to help in probing internal operations."
36515 msgstr ""
36516
36517 #. type: textblock
36518 #: ../src/guestfs.pod:2174
36519 msgid "You can list all the static markers by doing:"
36520 msgstr ""
36521
36522 #. type: verbatim
36523 #: ../src/guestfs.pod:2176
36524 #, no-wrap
36525 msgid ""
36526 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
36527 "              .provider(\"guestfs\").mark(\"*\")'\n"
36528 "\n"
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:2179
36533 msgid ""
36534 "B<Note:> These static markers are I<not> part of the stable API and may "
36535 "change in future versions."
36536 msgstr ""
36537
36538 #. type: =head2
36539 #: ../src/guestfs.pod:2182
36540 msgid "SYSTEMTAP SCRIPT EXAMPLE"
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../src/guestfs.pod:2184
36545 msgid ""
36546 "This script contains examples of displaying both the static markers and some "
36547 "ordinary C entry points:"
36548 msgstr ""
36549
36550 #. type: verbatim
36551 #: ../src/guestfs.pod:2187
36552 #, no-wrap
36553 msgid ""
36554 " global last;\n"
36555 " \n"
36556 msgstr ""
36557
36558 #. type: verbatim
36559 #: ../src/guestfs.pod:2189
36560 #, no-wrap
36561 msgid ""
36562 " function display_time () {\n"
36563 "       now = gettimeofday_us ();\n"
36564 "       delta = 0;\n"
36565 "       if (last > 0)\n"
36566 "             delta = now - last;\n"
36567 "       last = now;\n"
36568 " \n"
36569 msgstr ""
36570
36571 #. type: verbatim
36572 #: ../src/guestfs.pod:2196
36573 #, no-wrap
36574 msgid ""
36575 "       printf (\"%d (+%d):\", now, delta);\n"
36576 " }\n"
36577 " \n"
36578 msgstr ""
36579
36580 #. type: verbatim
36581 #: ../src/guestfs.pod:2199
36582 #, no-wrap
36583 msgid ""
36584 " probe begin {\n"
36585 "       last = 0;\n"
36586 "       printf (\"ready\\n\");\n"
36587 " }\n"
36588 " \n"
36589 msgstr ""
36590
36591 #. type: verbatim
36592 #: ../src/guestfs.pod:2204
36593 #, no-wrap
36594 msgid ""
36595 " /* Display all calls to static markers. */\n"
36596 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36597 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
36598 "       display_time();\n"
36599 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
36600 " }\n"
36601 " \n"
36602 msgstr ""
36603
36604 #. type: verbatim
36605 #: ../src/guestfs.pod:2211
36606 #, no-wrap
36607 msgid ""
36608 " /* Display all calls to guestfs_mkfs* functions. */\n"
36609 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36610 "           .function(\"guestfs_mkfs*\") ? {\n"
36611 "       display_time();\n"
36612 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
36613 " }\n"
36614 "\n"
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:2218
36619 msgid ""
36620 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
36621 "program.  Note that you either have to be root, or you have to add yourself "
36622 "to several special stap groups.  Consult the systemtap documentation for "
36623 "more information."
36624 msgstr ""
36625
36626 #. type: verbatim
36627 #: ../src/guestfs.pod:2223
36628 #, no-wrap
36629 msgid ""
36630 " # stap /tmp/test.stap\n"
36631 " ready\n"
36632 "\n"
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:2226
36637 msgid "In another terminal, run a guestfish command such as this:"
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:2230
36642 msgid "In the first terminal, stap trace output similar to this is shown:"
36643 msgstr ""
36644
36645 #. type: verbatim
36646 #: ../src/guestfs.pod:2232
36647 #, no-wrap
36648 msgid ""
36649 " 1318248056692655 (+0):\tlaunch_start\n"
36650 " 1318248056692850 (+195):       launch_build_appliance_start\n"
36651 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
36652 " 1318248056838059 (+19774):     launch_run_qemu\n"
36653 " 1318248061071167 (+4233108):   launch_end\n"
36654 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
36655 "device=0x1024e60\n"
36656 "\n"
36657 msgstr ""
36658
36659 #. type: =end
36660 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
36661 msgid "html"
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:2241
36666 msgid ""
36667 "<!-- old anchor for the next section --> <a "
36668 "name=\"state_machine_and_low_level_event_api\"/>"
36669 msgstr ""
36670
36671 #. type: =head1
36672 #: ../src/guestfs.pod:2246
36673 msgid "ARCHITECTURE"
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:2248
36678 msgid ""
36679 "Internally, libguestfs is implemented by running an appliance (a special "
36680 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36681 "process of the main program."
36682 msgstr ""
36683
36684 #. type: verbatim
36685 #: ../src/guestfs.pod:2252
36686 #, no-wrap
36687 msgid ""
36688 "  ___________________\n"
36689 " /                   \\\n"
36690 " | main program      |\n"
36691 " |                   |\n"
36692 " |                   |           child process / appliance\n"
36693 " |                   |           __________________________\n"
36694 " |                   |          / qemu                     \\\n"
36695 " +-------------------+   RPC    |      +-----------------+ |\n"
36696 " | libguestfs     <--------------------> guestfsd        | |\n"
36697 " |                   |          |      +-----------------+ |\n"
36698 " \\___________________/          |      | Linux kernel    | |\n"
36699 "                                |      +--^--------------+ |\n"
36700 "                                \\_________|________________/\n"
36701 "                                          |\n"
36702 "                                   _______v______\n"
36703 "                                  /              \\\n"
36704 "                                  | Device or    |\n"
36705 "                                  | disk image   |\n"
36706 "                                  \\______________/\n"
36707 "\n"
36708 msgstr ""
36709
36710 #. type: textblock
36711 #: ../src/guestfs.pod:2272
36712 msgid ""
36713 "The library, linked to the main program, creates the child process and hence "
36714 "the appliance in the L</guestfs_launch> function."
36715 msgstr ""
36716
36717 #. type: textblock
36718 #: ../src/guestfs.pod:2275
36719 msgid ""
36720 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36721 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36722 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36723 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36724 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36725 "attached to the qemu process which translates device access by the "
36726 "appliance's Linux kernel into accesses to the image."
36727 msgstr ""
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:2284
36731 msgid ""
36732 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36733 "Although the disk image you are attached to might also be used by some "
36734 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36735 "care if both libguestfs's qemu process and your virtual machine are trying "
36736 "to update the disk image at the same time, since these usually results in "
36737 "massive disk corruption)."
36738 msgstr ""
36739
36740 #. type: =head1
36741 #: ../src/guestfs.pod:2291
36742 msgid "STATE MACHINE"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:2293
36747 msgid "libguestfs uses a state machine to model the child process:"
36748 msgstr ""
36749
36750 #. type: verbatim
36751 #: ../src/guestfs.pod:2295
36752 #, no-wrap
36753 msgid ""
36754 "                         |\n"
36755 "                    guestfs_create\n"
36756 "                         |\n"
36757 "                         |\n"
36758 "                     ____V_____\n"
36759 "                    /          \\\n"
36760 "                    |  CONFIG  |\n"
36761 "                    \\__________/\n"
36762 "                     ^ ^   ^  \\\n"
36763 "                    /  |    \\  \\ guestfs_launch\n"
36764 "                   /   |    _\\__V______\n"
36765 "                  /    |   /           \\\n"
36766 "                 /     |   | LAUNCHING |\n"
36767 "                /      |   \\___________/\n"
36768 "               /       |       /\n"
36769 "              /        |  guestfs_launch\n"
36770 "             /         |     /\n"
36771 "    ______  /        __|____V\n"
36772 "   /      \\ ------> /        \\\n"
36773 "   | BUSY |         | READY  |\n"
36774 "   \\______/ <------ \\________/\n"
36775 "\n"
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:2317
36780 msgid ""
36781 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36782 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36783 "(3) alternating between READY and BUSY as commands are issued to, and "
36784 "carried out by, the child process."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:2322
36789 msgid ""
36790 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36791 "asynchronously at any time (eg. due to some internal error), and that causes "
36792 "the state to transition back to CONFIG."
36793 msgstr ""
36794
36795 #. type: textblock
36796 #: ../src/guestfs.pod:2326
36797 msgid ""
36798 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36799 "issued when in the CONFIG state."
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../src/guestfs.pod:2329
36804 msgid ""
36805 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36806 "L</guestfs_launch> blocks until the child process is READY to accept "
36807 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36808 "moves the state from CONFIG to LAUNCHING while it is running."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../src/guestfs.pod:2335
36813 msgid ""
36814 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36815 "state.  These API calls block waiting for the command to be carried out "
36816 "(ie. the state to transition to BUSY and then back to READY).  There are no "
36817 "non-blocking versions, and no way to issue more than one command per handle "
36818 "at the same time."
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../src/guestfs.pod:2341
36823 msgid ""
36824 "Finally, the child process sends asynchronous messages back to the main "
36825 "program, such as kernel log messages.  You can register a callback to "
36826 "receive these messages."
36827 msgstr ""
36828
36829 #. type: =head1
36830 #: ../src/guestfs.pod:2345
36831 msgid "INTERNALS"
36832 msgstr ""
36833
36834 #. type: =head2
36835 #: ../src/guestfs.pod:2347
36836 msgid "APPLIANCE BOOT PROCESS"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:2349
36841 msgid ""
36842 "This process has evolved and continues to evolve.  The description here "
36843 "corresponds only to the current version of libguestfs and is provided for "
36844 "information only."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:2353
36849 msgid ""
36850 "In order to follow the stages involved below, enable libguestfs debugging "
36851 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36852 msgstr ""
36853
36854 #. type: =item
36855 #: ../src/guestfs.pod:2358
36856 msgid "Create the appliance"
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:2360
36861 msgid ""
36862 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36863 "initrd and the appliance."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:2363
36868 msgid ""
36869 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36870 "directory if C<TMPDIR> is set)."
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:2366
36875 msgid ""
36876 "For a complete description of how the appliance is created and cached, read "
36877 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36878 msgstr ""
36879
36880 #. type: =item
36881 #: ../src/guestfs.pod:2370
36882 msgid "Start qemu and boot the kernel"
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:2372
36887 msgid "qemu is invoked to boot the kernel."
36888 msgstr ""
36889
36890 #. type: =item
36891 #: ../src/guestfs.pod:2374
36892 msgid "Run the initrd"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:2376
36897 msgid ""
36898 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36899 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36900 "order that the appliance itself can be mounted and started."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../src/guestfs.pod:2380
36905 msgid ""
36906 "The initrd is a cpio archive called "
36907 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:2383
36912 msgid ""
36913 "When the initrd has started you will see messages showing that kernel "
36914 "modules are being loaded, similar to this:"
36915 msgstr ""
36916
36917 #. type: verbatim
36918 #: ../src/guestfs.pod:2386
36919 #, no-wrap
36920 msgid ""
36921 " febootstrap: ext2 mini initrd starting up\n"
36922 " febootstrap: mounting /sys\n"
36923 " febootstrap: internal insmod libcrc32c.ko\n"
36924 " febootstrap: internal insmod crc32c-intel.ko\n"
36925 "\n"
36926 msgstr ""
36927
36928 #. type: =item
36929 #: ../src/guestfs.pod:2391
36930 msgid "Find and mount the appliance device"
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2393
36935 msgid ""
36936 "The appliance is a sparse file containing an ext2 filesystem which contains "
36937 "a familiar (although reduced in size) Linux operating system.  It would "
36938 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:2397
36943 msgid ""
36944 "The regular disks being inspected by libguestfs are the first devices "
36945 "exposed by qemu (eg. as C</dev/vda>)."
36946 msgstr ""
36947
36948 #. type: textblock
36949 #: ../src/guestfs.pod:2400
36950 msgid ""
36951 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36952 "there was only one regular disk)."
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:2403
36957 msgid ""
36958 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36959 "and switch root into the appliance, and run C</init> from the appliance."
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:2407
36964 msgid "If this works successfully you will see messages such as:"
36965 msgstr ""
36966
36967 #. type: verbatim
36968 #: ../src/guestfs.pod:2409
36969 #, no-wrap
36970 msgid ""
36971 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36972 " febootstrap: creating /dev/root as block special 252:16\n"
36973 " febootstrap: mounting new root on /root\n"
36974 " febootstrap: chroot\n"
36975 " Starting /init script ...\n"
36976 "\n"
36977 msgstr ""
36978
36979 #. type: textblock
36980 #: ../src/guestfs.pod:2415
36981 msgid ""
36982 "Note that C<Starting /init script ...> indicates that the appliance's init "
36983 "script is now running."
36984 msgstr ""
36985
36986 #. type: =item
36987 #: ../src/guestfs.pod:2418
36988 msgid "Initialize the appliance"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:2420
36993 msgid ""
36994 "The appliance itself now initializes itself.  This involves starting certain "
36995 "processes like C<udev>, possibly printing some debug information, and "
36996 "finally running the daemon (C<guestfsd>)."
36997 msgstr ""
36998
36999 #. type: =item
37000 #: ../src/guestfs.pod:2424
37001 msgid "The daemon"
37002 msgstr ""
37003
37004 #. type: textblock
37005 #: ../src/guestfs.pod:2426
37006 msgid ""
37007 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37008 "should see:"
37009 msgstr ""
37010
37011 #. type: verbatim
37012 #: ../src/guestfs.pod:2429
37013 #, no-wrap
37014 msgid ""
37015 " verbose daemon enabled\n"
37016 "\n"
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:2431
37021 msgid ""
37022 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37023 "connected on the other end to the library."
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:2434
37028 msgid ""
37029 "The daemon connects to this port (and hence to the library) and sends a four "
37030 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37031 "protocol (see below)."
37032 msgstr ""
37033
37034 #. type: =head2
37035 #: ../src/guestfs.pod:2440
37036 msgid "COMMUNICATION PROTOCOL"
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../src/guestfs.pod:2442
37041 msgid ""
37042 "Don't rely on using this protocol directly.  This section documents how it "
37043 "currently works, but it may change at any time."
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:2445
37048 msgid ""
37049 "The protocol used to talk between the library and the daemon running inside "
37050 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37051 "1014, RFC 1832, RFC 4506)."
37052 msgstr ""
37053
37054 #. type: textblock
37055 #: ../src/guestfs.pod:2449
37056 msgid ""
37057 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37058 "this file is automatically generated)."
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../src/guestfs.pod:2452
37063 msgid ""
37064 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37065 "and C<FileOut> parameters, which are handled with very simple request/reply "
37066 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37067 "parameters, which use the same request and reply messages, but they may also "
37068 "be followed by files sent using a chunked encoding."
37069 msgstr ""
37070
37071 #. type: =head3
37072 #: ../src/guestfs.pod:2459
37073 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37074 msgstr ""
37075
37076 #. type: textblock
37077 #: ../src/guestfs.pod:2461
37078 msgid "For ordinary functions, the request message is:"
37079 msgstr ""
37080
37081 #. type: verbatim
37082 #: ../src/guestfs.pod:2463
37083 #, no-wrap
37084 msgid ""
37085 " total length (header + arguments,\n"
37086 "      but not including the length word itself)\n"
37087 " struct guestfs_message_header (encoded as XDR)\n"
37088 " struct guestfs_<foo>_args (encoded as XDR)\n"
37089 "\n"
37090 msgstr ""
37091
37092 #. type: textblock
37093 #: ../src/guestfs.pod:2468
37094 msgid ""
37095 "The total length field allows the daemon to allocate a fixed size buffer "
37096 "into which it slurps the rest of the message.  As a result, the total length "
37097 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37098 "effective size of any request is limited to somewhere under this size."
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../src/guestfs.pod:2474
37103 msgid ""
37104 "Note also that many functions don't take any arguments, in which case the "
37105 "C<guestfs_I<foo>_args> is completely omitted."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:2477
37110 msgid ""
37111 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37112 "receiver knows what type of args structure to expect, or none at all."
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:2481
37117 msgid ""
37118 "For functions that take optional arguments, the optional arguments are "
37119 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37120 "arguments.  A bitmask in the header indicates which optional arguments are "
37121 "meaningful.  The bitmask is also checked to see if it contains bits set "
37122 "which the daemon does not know about (eg. if more optional arguments were "
37123 "added in a later version of the library), and this causes the call to be "
37124 "rejected."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:2489
37129 msgid "The reply message for ordinary functions is:"
37130 msgstr ""
37131
37132 #. type: verbatim
37133 #: ../src/guestfs.pod:2491
37134 #, no-wrap
37135 msgid ""
37136 " total length (header + ret,\n"
37137 "      but not including the length word itself)\n"
37138 " struct guestfs_message_header (encoded as XDR)\n"
37139 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37140 "\n"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:2496
37145 msgid ""
37146 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37147 "functions that return no formal return values."
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:2499
37152 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37153 msgstr ""
37154
37155 #. type: textblock
37156 #: ../src/guestfs.pod:2502
37157 msgid ""
37158 "In the case of an error, a flag is set in the header, and the reply message "
37159 "is slightly changed:"
37160 msgstr ""
37161
37162 #. type: verbatim
37163 #: ../src/guestfs.pod:2505
37164 #, no-wrap
37165 msgid ""
37166 " total length (header + error,\n"
37167 "      but not including the length word itself)\n"
37168 " struct guestfs_message_header (encoded as XDR)\n"
37169 " struct guestfs_message_error (encoded as XDR)\n"
37170 "\n"
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../src/guestfs.pod:2510
37175 msgid ""
37176 "The C<guestfs_message_error> structure contains the error message as a "
37177 "string."
37178 msgstr ""
37179
37180 #. type: =head3
37181 #: ../src/guestfs.pod:2513
37182 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37183 msgstr ""
37184
37185 #. type: textblock
37186 #: ../src/guestfs.pod:2515
37187 msgid ""
37188 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37189 "The normal request message is sent (see above).  However this is followed by "
37190 "a sequence of file chunks."
37191 msgstr ""
37192
37193 #. type: verbatim
37194 #: ../src/guestfs.pod:2519
37195 #, no-wrap
37196 msgid ""
37197 " total length (header + arguments,\n"
37198 "      but not including the length word itself,\n"
37199 "      and not including the chunks)\n"
37200 " struct guestfs_message_header (encoded as XDR)\n"
37201 " struct guestfs_<foo>_args (encoded as XDR)\n"
37202 " sequence of chunks for FileIn param #0\n"
37203 " sequence of chunks for FileIn param #1 etc.\n"
37204 "\n"
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:2527
37209 msgid "The \"sequence of chunks\" is:"
37210 msgstr ""
37211
37212 #. type: verbatim
37213 #: ../src/guestfs.pod:2529
37214 #, no-wrap
37215 msgid ""
37216 " length of chunk (not including length word itself)\n"
37217 " struct guestfs_chunk (encoded as XDR)\n"
37218 " length of chunk\n"
37219 " struct guestfs_chunk (encoded as XDR)\n"
37220 "   ...\n"
37221 " length of chunk\n"
37222 " struct guestfs_chunk (with data.data_len == 0)\n"
37223 "\n"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:2537
37228 msgid ""
37229 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37230 "is set in the final chunk to indicate either successful completion or early "
37231 "cancellation."
37232 msgstr ""
37233
37234 #. type: textblock
37235 #: ../src/guestfs.pod:2541
37236 msgid ""
37237 "At time of writing there are no functions that have more than one FileIn "
37238 "parameter.  However this is (theoretically) supported, by sending the "
37239 "sequence of chunks for each FileIn parameter one after another (from left to "
37240 "right)."
37241 msgstr ""
37242
37243 #. type: textblock
37244 #: ../src/guestfs.pod:2546
37245 msgid ""
37246 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37247 "transfer.  The library does this by sending a chunk with a special flag set "
37248 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37249 "RPC, does I<not> send any reply, and goes back to reading the next request."
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../src/guestfs.pod:2552
37254 msgid ""
37255 "The daemon may also cancel.  It does this by writing a special word "
37256 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37257 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37258 "cancel chunk).  The special word is chosen so that even if cancellation "
37259 "happens right at the end of the transfer (after the library has finished "
37260 "writing and has started listening for the reply), the \"spurious\" cancel "
37261 "flag will not be confused with the reply message."
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../src/guestfs.pod:2561
37266 msgid ""
37267 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37268 "limit), and also files where the size is not known in advance (eg. from "
37269 "pipes or sockets).  However the chunks are rather small "
37270 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37271 "to keep much in memory."
37272 msgstr ""
37273
37274 #. type: =head3
37275 #: ../src/guestfs.pod:2567
37276 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:2569
37281 msgid ""
37282 "The protocol for FileOut parameters is exactly the same as for FileIn "
37283 "parameters, but with the roles of daemon and library reversed."
37284 msgstr ""
37285
37286 #. type: verbatim
37287 #: ../src/guestfs.pod:2572
37288 #, no-wrap
37289 msgid ""
37290 " total length (header + ret,\n"
37291 "      but not including the length word itself,\n"
37292 "      and not including the chunks)\n"
37293 " struct guestfs_message_header (encoded as XDR)\n"
37294 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37295 " sequence of chunks for FileOut param #0\n"
37296 " sequence of chunks for FileOut param #1 etc.\n"
37297 "\n"
37298 msgstr ""
37299
37300 #. type: =head3
37301 #: ../src/guestfs.pod:2580
37302 msgid "INITIAL MESSAGE"
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:2582
37307 msgid ""
37308 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37309 "which indicates that the guest and daemon is alive.  This is what "
37310 "L</guestfs_launch> waits for."
37311 msgstr ""
37312
37313 #. type: =head3
37314 #: ../src/guestfs.pod:2586
37315 msgid "PROGRESS NOTIFICATION MESSAGES"
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../src/guestfs.pod:2588
37320 msgid ""
37321 "The daemon may send progress notification messages at any time.  These are "
37322 "distinguished by the normal length word being replaced by "
37323 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../src/guestfs.pod:2592
37328 msgid ""
37329 "The library turns them into progress callbacks (see "
37330 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
37331 "them if not."
37332 msgstr ""
37333
37334 #. type: textblock
37335 #: ../src/guestfs.pod:2596
37336 msgid ""
37337 "The daemon self-limits the frequency of progress messages it sends (see "
37338 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37339 "messages."
37340 msgstr ""
37341
37342 #. type: =head1
37343 #: ../src/guestfs.pod:2600
37344 msgid "LIBGUESTFS VERSION NUMBERS"
37345 msgstr ""
37346
37347 #. type: textblock
37348 #: ../src/guestfs.pod:2602
37349 msgid ""
37350 "Since April 2010, libguestfs has started to make separate development and "
37351 "stable releases, along with corresponding branches in our git repository.  "
37352 "These separate releases can be identified by version number:"
37353 msgstr ""
37354
37355 #. type: verbatim
37356 #: ../src/guestfs.pod:2607
37357 #, no-wrap
37358 msgid ""
37359 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37360 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37361 "       |\n"
37362 "       v\n"
37363 " 1  .  3  .  5\n"
37364 " ^           ^\n"
37365 " |           |\n"
37366 " |           `-------- sub-version\n"
37367 " |\n"
37368 " `------ always '1' because we don't change the ABI\n"
37369 "\n"
37370 msgstr ""
37371
37372 #. type: textblock
37373 #: ../src/guestfs.pod:2618
37374 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../src/guestfs.pod:2620
37379 msgid ""
37380 "As time passes we cherry pick fixes from the development branch and backport "
37381 "those into the stable branch, the effect being that the stable branch should "
37382 "get more stable and less buggy over time.  So the stable releases are ideal "
37383 "for people who don't need new features but would just like the software to "
37384 "work."
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:2626
37389 msgid "Our criteria for backporting changes are:"
37390 msgstr ""
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:2632
37394 msgid ""
37395 "Documentation changes which don't affect any code are backported unless the "
37396 "documentation refers to a future feature which is not in stable."
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../src/guestfs.pod:2638
37401 msgid ""
37402 "Bug fixes which are not controversial, fix obvious problems, and have been "
37403 "well tested are backported."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:2643
37408 msgid ""
37409 "Simple rearrangements of code which shouldn't affect how it works get "
37410 "backported.  This is so that the code in the two branches doesn't get too "
37411 "far out of step, allowing us to backport future fixes more easily."
37412 msgstr ""
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:2649
37416 msgid ""
37417 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37418 "exceptional case: the new feature is required in order to implement an "
37419 "important bug fix."
37420 msgstr ""
37421
37422 #. type: textblock
37423 #: ../src/guestfs.pod:2655
37424 msgid ""
37425 "A new stable branch starts when we think the new features in development are "
37426 "substantial and compelling enough over the current stable branch to warrant "
37427 "it.  When that happens we create new stable and development versions 1.N.0 "
37428 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37429 "stable at this point, but by backporting fixes from development, that branch "
37430 "will stabilize over time."
37431 msgstr ""
37432
37433 #. type: =head1
37434 #: ../src/guestfs.pod:2663
37435 msgid "EXTENDING LIBGUESTFS"
37436 msgstr ""
37437
37438 #. type: =head2
37439 #: ../src/guestfs.pod:2665
37440 msgid "ADDING A NEW API ACTION"
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:2667
37445 msgid ""
37446 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37447 "documentation) are generated, and this makes it easy to extend the "
37448 "libguestfs API."
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../src/guestfs.pod:2671
37453 msgid "To add a new API action there are two changes:"
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../src/guestfs.pod:2677
37458 msgid ""
37459 "You need to add a description of the call (name, parameters, return type, "
37460 "tests, documentation) to C<generator/generator_actions.ml>."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:2680
37465 msgid ""
37466 "There are two sorts of API action, depending on whether the call goes "
37467 "through to the daemon in the appliance, or is serviced entirely by the "
37468 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37469 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37470 "an example of the latter, since a trace flag is maintained in the handle and "
37471 "all tracing is done on the library side."
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:2688
37476 msgid ""
37477 "Most new actions are of the first type, and get added to the "
37478 "C<daemon_functions> list.  Each function has a unique procedure number used "
37479 "in the RPC protocol which is assigned to that action when we publish "
37480 "libguestfs and cannot be reused.  Take the latest procedure number and "
37481 "increment it."
37482 msgstr ""
37483
37484 #. type: textblock
37485 #: ../src/guestfs.pod:2694
37486 msgid ""
37487 "For library-only actions of the second type, add to the "
37488 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37489 "library and do not travel over the RPC mechanism to the daemon, these "
37490 "functions do not need a procedure number, and so the procedure number is set "
37491 "to C<-1>."
37492 msgstr ""
37493
37494 #. type: textblock
37495 #: ../src/guestfs.pod:2702
37496 msgid "Implement the action (in C):"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:2704
37501 msgid ""
37502 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37503 "C<daemon/> directory."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:2707
37508 msgid ""
37509 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37510 "(note: double underscore) in the C<src/> directory."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:2710
37515 msgid "In either case, use another function as an example of what to do."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:2714
37520 msgid "After making these changes, use C<make> to compile."
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:2716
37525 msgid ""
37526 "Note that you don't need to implement the RPC, language bindings, manual "
37527 "pages or anything else.  It's all automatically generated from the OCaml "
37528 "description."
37529 msgstr ""
37530
37531 #. type: =head2
37532 #: ../src/guestfs.pod:2720
37533 msgid "ADDING TESTS FOR AN API ACTION"
37534 msgstr ""
37535
37536 #. type: textblock
37537 #: ../src/guestfs.pod:2722
37538 msgid ""
37539 "You can supply zero or as many tests as you want per API call.  The tests "
37540 "can either be added as part of the API description "
37541 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
37542 "drop a script into C<regressions/>.  Note that adding a script to "
37543 "C<regressions/> is slower, so if possible use the first method."
37544 msgstr ""
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:2728
37548 msgid ""
37549 "The following describes the test environment used when you add an API test "
37550 "in C<generator_actions.ml>."
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:2731
37555 msgid "The test environment has 4 block devices:"
37556 msgstr ""
37557
37558 #. type: =item
37559 #: ../src/guestfs.pod:2735
37560 msgid "C</dev/sda> 500MB"
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:2737
37565 msgid "General block device for testing."
37566 msgstr ""
37567
37568 #. type: =item
37569 #: ../src/guestfs.pod:2739
37570 msgid "C</dev/sdb> 50MB"
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:2741
37575 msgid ""
37576 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37577 "operations."
37578 msgstr ""
37579
37580 #. type: =item
37581 #: ../src/guestfs.pod:2744
37582 msgid "C</dev/sdc> 10MB"
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:2746
37587 msgid "Used in a few tests where two block devices are needed."
37588 msgstr ""
37589
37590 #. type: =item
37591 #: ../src/guestfs.pod:2748
37592 msgid "C</dev/sdd>"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2750
37597 msgid "ISO with fixed content (see C<images/test.iso>)."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:2754
37602 msgid ""
37603 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37604 "appliance and block devices are reused between tests.  So don't try testing "
37605 "L</guestfs_kill_subprocess> :-x"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:2758
37610 msgid ""
37611 "Each test starts with an initial scenario, selected using one of the "
37612 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37613 "initialize the disks mentioned above in a particular way as documented in "
37614 "C<generator_types.ml>.  You should not assume anything about the previous "
37615 "contents of other disks that are not initialized."
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../src/guestfs.pod:2764
37620 msgid ""
37621 "You can add a prerequisite clause to any individual test.  This is a "
37622 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
37623 "if testing a command which might not work on all variations of libguestfs "
37624 "builds.  A test that has prerequisite of C<Always> means to run "
37625 "unconditionally."
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:2770
37630 msgid ""
37631 "In addition, packagers can skip individual tests by setting environment "
37632 "variables before running C<make check>."
37633 msgstr ""
37634
37635 #. type: verbatim
37636 #: ../src/guestfs.pod:2773
37637 #, no-wrap
37638 msgid ""
37639 " SKIP_TEST_<CMD>_<NUM>=1\n"
37640 "\n"
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:2775
37645 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:2777
37650 msgid "or:"
37651 msgstr ""
37652
37653 #. type: verbatim
37654 #: ../src/guestfs.pod:2779
37655 #, no-wrap
37656 msgid ""
37657 " SKIP_TEST_<CMD>=1\n"
37658 "\n"
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:2781
37663 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:2783
37668 msgid "Packagers can run only certain tests by setting for example:"
37669 msgstr ""
37670
37671 #. type: verbatim
37672 #: ../src/guestfs.pod:2785
37673 #, no-wrap
37674 msgid ""
37675 " TEST_ONLY=\"vfs_type zerofree\"\n"
37676 "\n"
37677 msgstr ""
37678
37679 #. type: textblock
37680 #: ../src/guestfs.pod:2787
37681 msgid ""
37682 "See C<capitests/tests.c> for more details of how these environment variables "
37683 "work."
37684 msgstr ""
37685
37686 #. type: =head2
37687 #: ../src/guestfs.pod:2790
37688 msgid "DEBUGGING NEW API ACTIONS"
37689 msgstr ""
37690
37691 #. type: textblock
37692 #: ../src/guestfs.pod:2792
37693 msgid "Test new actions work before submitting them."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:2794
37698 msgid "You can use guestfish to try out new commands."
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:2796
37703 msgid ""
37704 "Debugging the daemon is a problem because it runs inside a minimal "
37705 "environment.  However you can fprintf messages in the daemon to stderr, and "
37706 "they will show up if you use C<guestfish -v>."
37707 msgstr ""
37708
37709 #. type: =head2
37710 #: ../src/guestfs.pod:2800
37711 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37712 msgstr ""
37713
37714 #. type: textblock
37715 #: ../src/guestfs.pod:2802
37716 msgid ""
37717 "Our C source code generally adheres to some basic code-formatting "
37718 "conventions.  The existing code base is not totally consistent on this "
37719 "front, but we do prefer that contributed code be formatted similarly.  In "
37720 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37721 "indentation level, and other than that, follow the K&R style."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../src/guestfs.pod:2808
37726 msgid ""
37727 "If you use Emacs, add the following to one of one of your start-up files "
37728 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
37729 msgstr ""
37730
37731 #. type: verbatim
37732 #: ../src/guestfs.pod:2811
37733 #, no-wrap
37734 msgid ""
37735 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37736 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37737 " (add-hook 'find-file-hook\n"
37738 "     '(lambda () (if (and buffer-file-name\n"
37739 "                          (string-match \"/libguestfs\\\\>\"\n"
37740 "                              (buffer-file-name))\n"
37741 "                          (not (string-equal mode-name \"Change Log\"))\n"
37742 "                          (not (string-equal mode-name \"Makefile\")))\n"
37743 "                     (setq indent-tabs-mode nil))))\n"
37744 " \n"
37745 msgstr ""
37746
37747 #. type: verbatim
37748 #: ../src/guestfs.pod:2821
37749 #, no-wrap
37750 msgid ""
37751 " ;;; When editing C sources in libguestfs, use this style.\n"
37752 " (defun libguestfs-c-mode ()\n"
37753 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37754 "   (interactive)\n"
37755 "   (c-set-style \"K&R\")\n"
37756 "   (setq c-indent-level 2)\n"
37757 "   (setq c-basic-offset 2))\n"
37758 " (add-hook 'c-mode-hook\n"
37759 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37760 "                               (buffer-file-name))\n"
37761 "                           (libguestfs-c-mode))))\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2833
37767 msgid "Enable warnings when compiling (and fix any problems this finds):"
37768 msgstr ""
37769
37770 #. type: verbatim
37771 #: ../src/guestfs.pod:2836
37772 #, no-wrap
37773 msgid ""
37774 " ./configure --enable-gcc-warnings\n"
37775 "\n"
37776 msgstr ""
37777
37778 #. type: textblock
37779 #: ../src/guestfs.pod:2838
37780 msgid "Useful targets are:"
37781 msgstr ""
37782
37783 #. type: verbatim
37784 #: ../src/guestfs.pod:2840
37785 #, no-wrap
37786 msgid ""
37787 " make syntax-check  # checks the syntax of the C code\n"
37788 " make check         # runs the test suite\n"
37789 "\n"
37790 msgstr ""
37791
37792 #. type: =head2
37793 #: ../src/guestfs.pod:2843
37794 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../src/guestfs.pod:2845
37799 msgid ""
37800 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37801 "which are used to do shell quoting."
37802 msgstr ""
37803
37804 #. type: =item
37805 #: ../src/guestfs.pod:2850
37806 msgid "%Q"
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../src/guestfs.pod:2852
37811 msgid ""
37812 "Simple shell quoted string.  Any spaces or other shell characters are "
37813 "escaped for you."
37814 msgstr ""
37815
37816 #. type: =item
37817 #: ../src/guestfs.pod:2855
37818 msgid "%R"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:2857
37823 msgid ""
37824 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37825 "the sysroot."
37826 msgstr ""
37827
37828 #. type: verbatim
37829 #: ../src/guestfs.pod:2864
37830 #, no-wrap
37831 msgid ""
37832 " asprintf (&cmd, \"cat %R\", path);\n"
37833 "\n"
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../src/guestfs.pod:2866
37838 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37839 msgstr ""
37840
37841 #. type: textblock
37842 #: ../src/guestfs.pod:2868
37843 msgid ""
37844 "I<Note:> Do I<not> use these when you are passing parameters to the "
37845 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
37846 "because they are not passed via the shell (instead, straight to exec).  You "
37847 "probably want to use the C<sysroot_path()> function however."
37848 msgstr ""
37849
37850 #. type: =head2
37851 #: ../src/guestfs.pod:2874
37852 msgid "SUBMITTING YOUR NEW API ACTIONS"
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:2876
37857 msgid ""
37858 "Submit patches to the mailing list: "
37859 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
37860 "L<rjones@redhat.com>."
37861 msgstr ""
37862
37863 #. type: =head2
37864 #: ../src/guestfs.pod:2880
37865 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37866 msgstr ""
37867
37868 #. type: textblock
37869 #: ../src/guestfs.pod:2882
37870 msgid "We support i18n (gettext anyhow) in the library."
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2884
37875 msgid ""
37876 "However many messages come from the daemon, and we don't translate those at "
37877 "the moment.  One reason is that the appliance generally has all locale files "
37878 "removed from it, because they take up a lot of space.  So we'd have to readd "
37879 "some of those, as well as copying our PO files into the appliance."
37880 msgstr ""
37881
37882 #. type: textblock
37883 #: ../src/guestfs.pod:2890
37884 msgid ""
37885 "Debugging messages are never translated, since they are intended for the "
37886 "programmers."
37887 msgstr ""
37888
37889 #. type: =head2
37890 #: ../src/guestfs.pod:2893
37891 msgid "SOURCE CODE SUBDIRECTORIES"
37892 msgstr ""
37893
37894 #. type: =item
37895 #: ../src/guestfs.pod:2897
37896 msgid "C<align>"
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../src/guestfs.pod:2899
37901 msgid "L<virt-alignment-scan(1)> command and documentation."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:2903
37906 msgid "The libguestfs appliance, build scripts and so on."
37907 msgstr ""
37908
37909 #. type: =item
37910 #: ../src/guestfs.pod:2905
37911 msgid "C<capitests>"
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:2907
37916 msgid "Automated tests of the C API."
37917 msgstr ""
37918
37919 #. type: =item
37920 #: ../src/guestfs.pod:2909
37921 msgid "C<cat>"
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:2911
37926 msgid ""
37927 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37928 "documentation."
37929 msgstr ""
37930
37931 #. type: =item
37932 #: ../src/guestfs.pod:2914
37933 msgid "C<caution>"
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:2916
37938 msgid ""
37939 "Safety and liveness tests of components that libguestfs depends upon (not of "
37940 "libguestfs itself).  Mainly this is for qemu and the kernel."
37941 msgstr ""
37942
37943 #. type: =item
37944 #: ../src/guestfs.pod:2919
37945 msgid "C<clone>"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:2921
37950 msgid ""
37951 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
37952 "command and documentation."
37953 msgstr ""
37954
37955 #. type: =item
37956 #: ../src/guestfs.pod:2924
37957 msgid "C<contrib>"
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:2926
37962 msgid "Outside contributions, experimental parts."
37963 msgstr ""
37964
37965 #. type: =item
37966 #: ../src/guestfs.pod:2928
37967 msgid "C<daemon>"
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../src/guestfs.pod:2930
37972 msgid ""
37973 "The daemon that runs inside the libguestfs appliance and carries out "
37974 "actions."
37975 msgstr ""
37976
37977 #. type: =item
37978 #: ../src/guestfs.pod:2933
37979 msgid "C<df>"
37980 msgstr ""
37981
37982 #. type: textblock
37983 #: ../src/guestfs.pod:2935
37984 msgid "L<virt-df(1)> command and documentation."
37985 msgstr ""
37986
37987 #. type: =item
37988 #: ../src/guestfs.pod:2937
37989 msgid "C<edit>"
37990 msgstr ""
37991
37992 #. type: textblock
37993 #: ../src/guestfs.pod:2939
37994 msgid "L<virt-edit(1)> command and documentation."
37995 msgstr ""
37996
37997 #. type: =item
37998 #: ../src/guestfs.pod:2941
37999 msgid "C<examples>"
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../src/guestfs.pod:2943
38004 msgid "C API example code."
38005 msgstr ""
38006
38007 #. type: =item
38008 #: ../src/guestfs.pod:2945
38009 msgid "C<fish>"
38010 msgstr ""
38011
38012 #. type: textblock
38013 #: ../src/guestfs.pod:2947
38014 msgid ""
38015 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38016 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38017 "L<virt-tar-out(1)>."
38018 msgstr ""
38019
38020 #. type: =item
38021 #: ../src/guestfs.pod:2951
38022 msgid "C<fuse>"
38023 msgstr ""
38024
38025 #. type: textblock
38026 #: ../src/guestfs.pod:2953
38027 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38028 msgstr ""
38029
38030 #. type: =item
38031 #: ../src/guestfs.pod:2955
38032 msgid "C<generator>"
38033 msgstr ""
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:2957
38037 msgid ""
38038 "The crucially important generator, used to automatically generate large "
38039 "amounts of boilerplate C code for things like RPC and bindings."
38040 msgstr ""
38041
38042 #. type: =item
38043 #: ../src/guestfs.pod:2960
38044 msgid "C<images>"
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../src/guestfs.pod:2962
38049 msgid "Files used by the test suite."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2964
38054 msgid "Some \"phony\" guest images which we test against."
38055 msgstr ""
38056
38057 #. type: =item
38058 #: ../src/guestfs.pod:2966
38059 msgid "C<inspector>"
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:2968
38064 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38065 msgstr ""
38066
38067 #. type: =item
38068 #: ../src/guestfs.pod:2970
38069 msgid "C<logo>"
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../src/guestfs.pod:2972
38074 msgid "Logo used on the website.  The fish is called Arthur by the way."
38075 msgstr ""
38076
38077 #. type: =item
38078 #: ../src/guestfs.pod:2974
38079 msgid "C<m4>"
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:2976
38084 msgid "M4 macros used by autoconf."
38085 msgstr ""
38086
38087 #. type: =item
38088 #: ../src/guestfs.pod:2978
38089 msgid "C<po>"
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:2980
38094 msgid "Translations of simple gettext strings."
38095 msgstr ""
38096
38097 #. type: =item
38098 #: ../src/guestfs.pod:2982
38099 msgid "C<po-docs>"
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:2984
38104 msgid ""
38105 "The build infrastructure and PO files for translations of manpages and POD "
38106 "files.  Eventually this will be combined with the C<po> directory, but that "
38107 "is rather complicated."
38108 msgstr ""
38109
38110 #. type: =item
38111 #: ../src/guestfs.pod:2988
38112 msgid "C<regressions>"
38113 msgstr ""
38114
38115 #. type: textblock
38116 #: ../src/guestfs.pod:2990
38117 msgid "Regression tests."
38118 msgstr ""
38119
38120 #. type: =item
38121 #: ../src/guestfs.pod:2992
38122 msgid "C<rescue>"
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../src/guestfs.pod:2994
38127 msgid "L<virt-rescue(1)> command and documentation."
38128 msgstr ""
38129
38130 #. type: =item
38131 #: ../src/guestfs.pod:2996
38132 msgid "C<resize>"
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../src/guestfs.pod:2998
38137 msgid "L<virt-resize(1)> command and documentation."
38138 msgstr ""
38139
38140 #. type: =item
38141 #: ../src/guestfs.pod:3000
38142 msgid "C<sparsify>"
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:3002
38147 msgid "L<virt-sparsify(1)> command and documentation."
38148 msgstr ""
38149
38150 #. type: =item
38151 #: ../src/guestfs.pod:3004
38152 msgid "C<src>"
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:3006
38157 msgid "Source code to the C library."
38158 msgstr ""
38159
38160 #. type: =item
38161 #: ../src/guestfs.pod:3008
38162 msgid "C<tools>"
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:3010
38167 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38168 msgstr ""
38169
38170 #. type: =item
38171 #: ../src/guestfs.pod:3012
38172 msgid "C<test-tool>"
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:3014
38177 msgid ""
38178 "Test tool for end users to test if their qemu/kernel combination will work "
38179 "with libguestfs."
38180 msgstr ""
38181
38182 #. type: =item
38183 #: ../src/guestfs.pod:3017
38184 msgid "C<csharp>"
38185 msgstr ""
38186
38187 #. type: =item
38188 #: ../src/guestfs.pod:3019
38189 msgid "C<erlang>"
38190 msgstr ""
38191
38192 #. type: =item
38193 #: ../src/guestfs.pod:3021
38194 msgid "C<haskell>"
38195 msgstr ""
38196
38197 #. type: =item
38198 #: ../src/guestfs.pod:3023
38199 msgid "C<java>"
38200 msgstr ""
38201
38202 #. type: =item
38203 #: ../src/guestfs.pod:3025
38204 msgid "C<ocaml>"
38205 msgstr ""
38206
38207 #. type: =item
38208 #: ../src/guestfs.pod:3027
38209 msgid "C<php>"
38210 msgstr ""
38211
38212 #. type: =item
38213 #: ../src/guestfs.pod:3029
38214 msgid "C<perl>"
38215 msgstr ""
38216
38217 #. type: =item
38218 #: ../src/guestfs.pod:3031
38219 msgid "C<python>"
38220 msgstr ""
38221
38222 #. type: =item
38223 #: ../src/guestfs.pod:3033
38224 msgid "C<ruby>"
38225 msgstr ""
38226
38227 #. type: textblock
38228 #: ../src/guestfs.pod:3035
38229 msgid "Language bindings."
38230 msgstr ""
38231
38232 #. type: =head2
38233 #: ../src/guestfs.pod:3039
38234 msgid "MAKING A STABLE RELEASE"
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:3041
38239 msgid ""
38240 "When we make a stable release, there are several steps documented here.  See "
38241 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38242 "branch policy."
38243 msgstr ""
38244
38245 #. type: textblock
38246 #: ../src/guestfs.pod:3049
38247 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38248 msgstr ""
38249
38250 #. type: textblock
38251 #: ../src/guestfs.pod:3054
38252 msgid "Finalize RELEASE-NOTES."
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:3058
38257 msgid "Update ROADMAP."
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:3062
38262 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38263 msgstr ""
38264
38265 #. type: textblock
38266 #: ../src/guestfs.pod:3066
38267 msgid "Push and pull from Transifex."
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:3068
38272 msgid "Run:"
38273 msgstr ""
38274
38275 #. type: verbatim
38276 #: ../src/guestfs.pod:3070
38277 #, no-wrap
38278 msgid ""
38279 " tx push -s\n"
38280 "\n"
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:3072
38285 msgid "to push the latest POT files to Transifex.  Then run:"
38286 msgstr ""
38287
38288 #. type: verbatim
38289 #: ../src/guestfs.pod:3074
38290 #, no-wrap
38291 msgid ""
38292 " ./tx-pull.sh\n"
38293 "\n"
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../src/guestfs.pod:3076
38298 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38299 msgstr ""
38300
38301 #. type: textblock
38302 #: ../src/guestfs.pod:3080
38303 msgid ""
38304 "Create new stable and development directories under "
38305 "L<http://libguestfs.org/download>."
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:3085
38310 msgid "Create the branch in git:"
38311 msgstr ""
38312
38313 #. type: verbatim
38314 #: ../src/guestfs.pod:3087
38315 #, no-wrap
38316 msgid ""
38317 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38318 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38319 " git branch stable-1.XX\n"
38320 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38321 "\n"
38322 msgstr ""
38323
38324 #. type: =head1
38325 #: ../src/guestfs.pod:3094
38326 msgid "LIMITS"
38327 msgstr ""
38328
38329 #. type: =head2
38330 #: ../src/guestfs.pod:3096
38331 msgid "PROTOCOL LIMITS"
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:3098
38336 msgid ""
38337 "Internally libguestfs uses a message-based protocol to pass API calls and "
38338 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38339 "plenty more detail about this).  The maximum message size used by the "
38340 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38341 "aware of this limit.  The API calls which may be affected are individually "
38342 "documented, with a link back to this section of the documentation."
38343 msgstr ""
38344
38345 #. type: textblock
38346 #: ../src/guestfs.pod:3106
38347 msgid ""
38348 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38349 "a simple string.  Because this string is at some point internally encoded as "
38350 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38351 "the requested file is larger than this then you will get an error."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:3112
38356 msgid ""
38357 "In order to transfer large files into and out of the guest filesystem, you "
38358 "need to use particular calls that support this.  The sections L</UPLOADING> "
38359 "and L</DOWNLOADING> document how to do this."
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:3116
38364 msgid ""
38365 "You might also consider mounting the disk image using our FUSE filesystem "
38366 "support (L<guestmount(1)>)."
38367 msgstr ""
38368
38369 #. type: =head2
38370 #: ../src/guestfs.pod:3119
38371 msgid "MAXIMUM NUMBER OF DISKS"
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:3121
38376 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:3124
38381 msgid ""
38382 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38383 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38384 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38385 "purposes."
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../src/guestfs.pod:3129
38390 msgid ""
38391 "We are working to substantially raise this limit in future versions but it "
38392 "requires complex changes to qemu."
38393 msgstr ""
38394
38395 #. type: textblock
38396 #: ../src/guestfs.pod:3132
38397 msgid ""
38398 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38399 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38400 "requires changes to qemu."
38401 msgstr ""
38402
38403 #. type: =head2
38404 #: ../src/guestfs.pod:3136
38405 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:3138
38410 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:3140
38415 msgid ""
38416 "This is because it reserves 4 bits for the minor device number (thus "
38417 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:3143
38422 msgid ""
38423 "If you attach a disk with more than 15 partitions, the extra partitions are "
38424 "ignored by libguestfs."
38425 msgstr ""
38426
38427 #. type: =head2
38428 #: ../src/guestfs.pod:3146
38429 msgid "MAXIMUM SIZE OF A DISK"
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:3148
38434 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:3150
38439 msgid ""
38440 "We have tested block devices up to 1 exabyte (2**60 or "
38441 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38442 "filesystem."
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:3154
38447 msgid ""
38448 "Although libguestfs probably does not impose any limit, the underlying host "
38449 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38450 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38451 "TB).  If you store disk images as host logical volumes then you are limited "
38452 "by the maximum size of an LV."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:3160
38457 msgid ""
38458 "For the hugest disk image files, we recommend using XFS on the host for "
38459 "storage."
38460 msgstr ""
38461
38462 #. type: =head2
38463 #: ../src/guestfs.pod:3163
38464 msgid "MAXIMUM SIZE OF A PARTITION"
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:3165
38469 msgid ""
38470 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38471 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38472 "address a partition located beyond 2 TB on the disk."
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:3169
38477 msgid ""
38478 "It is recommended that you use GPT partitions on disks which are larger than "
38479 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38480 "which are theoretically larger than the largest disk we could support."
38481 msgstr ""
38482
38483 #. type: =head2
38484 #: ../src/guestfs.pod:3174
38485 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38486 msgstr ""
38487
38488 #. type: textblock
38489 #: ../src/guestfs.pod:3176
38490 msgid ""
38491 "This depends on the filesystem type.  libguestfs itself does not impose any "
38492 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38493 "what these limits are."
38494 msgstr ""
38495
38496 #. type: =head2
38497 #: ../src/guestfs.pod:3180
38498 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38499 msgstr ""
38500
38501 #. type: textblock
38502 #: ../src/guestfs.pod:3182
38503 msgid ""
38504 "The API functions L</guestfs_upload>, L</guestfs_download>, "
38505 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38506 "uploads and downloads."
38507 msgstr ""
38508
38509 #. type: =head2
38510 #: ../src/guestfs.pod:3186
38511 msgid "INSPECTION LIMITS"
38512 msgstr ""
38513
38514 #. type: textblock
38515 #: ../src/guestfs.pod:3188
38516 msgid ""
38517 "The inspection code has several arbitrary limits on things like the size of "
38518 "Windows Registry hive it will read, and the length of product name.  These "
38519 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38520 "memory and disk space on the host, and should not be reached in practice.  "
38521 "See the source code for more information."
38522 msgstr ""
38523
38524 #. type: textblock
38525 #: ../src/guestfs.pod:3214
38526 msgid ""
38527 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38528 "effect as calling C<guestfs_set_verbose (g, 1)>."
38529 msgstr ""
38530
38531 #. type: textblock
38532 #: ../src/guestfs.pod:3226
38533 msgid ""
38534 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38535 "the discussion of paths in section L</PATH> above."
38536 msgstr ""
38537
38538 #. type: textblock
38539 #: ../src/guestfs.pod:3235
38540 msgid "See also L</QEMU WRAPPERS> above."
38541 msgstr ""
38542
38543 #. type: textblock
38544 #: ../src/guestfs.pod:3239
38545 msgid ""
38546 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38547 "effect as calling C<guestfs_set_trace (g, 1)>."
38548 msgstr ""
38549
38550 #. type: textblock
38551 #: ../src/guestfs.pod:3257
38552 msgid ""
38553 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
38554 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
38555 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
38556 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38557 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38558 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
38559 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
38560 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
38561 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
38562 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38563 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
38564 "L<http://libguestfs.org/>."
38565 msgstr ""
38566
38567 #. type: textblock
38568 #: ../src/guestfs.pod:3293
38569 msgid ""
38570 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
38571 "L<lvm(8)>, L<disktype(1)>."
38572 msgstr ""
38573
38574 #. type: =head1
38575 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
38576 msgid "BUGS"
38577 msgstr ""
38578
38579 #. type: textblock
38580 #: ../src/guestfs.pod:3302
38581 msgid "To get a list of bugs against libguestfs use this link:"
38582 msgstr ""
38583
38584 #. type: textblock
38585 #: ../src/guestfs.pod:3304
38586 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
38587 msgstr ""
38588
38589 #. type: textblock
38590 #: ../src/guestfs.pod:3306
38591 msgid "To report a new bug against libguestfs use this link:"
38592 msgstr ""
38593
38594 #. type: textblock
38595 #: ../src/guestfs.pod:3308
38596 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
38597 msgstr ""
38598
38599 #. type: textblock
38600 #: ../src/guestfs.pod:3310
38601 msgid "When reporting a bug, please check:"
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:3316
38606 msgid "That the bug hasn't been reported already."
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:3320
38611 msgid "That you are testing a recent version."
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../src/guestfs.pod:3324
38616 msgid "Describe the bug accurately, and give a way to reproduce it."
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:3328
38621 msgid ""
38622 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38623 "bug report."
38624 msgstr ""
38625
38626 #. type: textblock
38627 #: ../test-tool/libguestfs-test-tool.pod:5
38628 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38629 msgstr ""
38630
38631 #. type: verbatim
38632 #: ../test-tool/libguestfs-test-tool.pod:9
38633 #, no-wrap
38634 msgid ""
38635 " libguestfs-test-tool [--options]\n"
38636 "\n"
38637 msgstr ""
38638
38639 #. type: textblock
38640 #: ../test-tool/libguestfs-test-tool.pod:13
38641 msgid ""
38642 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38643 "to check basic libguestfs functionality is working.  This is needed because "
38644 "libguestfs occasionally breaks for reasons beyond our control: usually "
38645 "because of changes in the underlying qemu or kernel packages, or the host "
38646 "environment."
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../test-tool/libguestfs-test-tool.pod:19
38651 msgid "If you suspect a problem in libguestfs, then just run:"
38652 msgstr ""
38653
38654 #. type: verbatim
38655 #: ../test-tool/libguestfs-test-tool.pod:21
38656 #, no-wrap
38657 msgid ""
38658 " libguestfs-test-tool\n"
38659 "\n"
38660 msgstr ""
38661
38662 #. type: textblock
38663 #: ../test-tool/libguestfs-test-tool.pod:23
38664 msgid "It will print lots of diagnostic messages."
38665 msgstr ""
38666
38667 #. type: textblock
38668 #: ../test-tool/libguestfs-test-tool.pod:25
38669 msgid "If it runs to completion successfully, you will see this near the end:"
38670 msgstr ""
38671
38672 #. type: verbatim
38673 #: ../test-tool/libguestfs-test-tool.pod:27
38674 #, no-wrap
38675 msgid ""
38676 " ===== TEST FINISHED OK =====\n"
38677 "\n"
38678 msgstr ""
38679
38680 #. type: textblock
38681 #: ../test-tool/libguestfs-test-tool.pod:29
38682 msgid "and the test tool will exit with code 0."
38683 msgstr ""
38684
38685 #. type: textblock
38686 #: ../test-tool/libguestfs-test-tool.pod:31
38687 msgid ""
38688 "If it fails (and/or exits with non-zero error code), please paste the "
38689 "I<complete, unedited> output of the test tool into a bug report.  More "
38690 "information about reporting bugs can be found on the "
38691 "L<http://libguestfs.org/> website."
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../test-tool/libguestfs-test-tool.pod:42
38696 msgid "Display short usage information and exit."
38697 msgstr ""
38698
38699 #. type: =item
38700 #: ../test-tool/libguestfs-test-tool.pod:44
38701 msgid "B<--qemu qemu_binary>"
38702 msgstr ""
38703
38704 #. type: textblock
38705 #: ../test-tool/libguestfs-test-tool.pod:46
38706 msgid ""
38707 "If you have downloaded another qemu binary, point this option at the full "
38708 "path of the binary to try it."
38709 msgstr ""
38710
38711 #. type: =item
38712 #: ../test-tool/libguestfs-test-tool.pod:49
38713 msgid "B<--qemudir qemu_source_dir>"
38714 msgstr ""
38715
38716 #. type: textblock
38717 #: ../test-tool/libguestfs-test-tool.pod:51
38718 msgid ""
38719 "If you have compiled qemu from source, point this option at the source "
38720 "directory to try it."
38721 msgstr ""
38722
38723 #. type: =item
38724 #: ../test-tool/libguestfs-test-tool.pod:54
38725 msgid "B<-t N>"
38726 msgstr ""
38727
38728 #. type: =item
38729 #: ../test-tool/libguestfs-test-tool.pod:56
38730 msgid "B<--timeout N>"
38731 msgstr ""
38732
38733 #. type: textblock
38734 #: ../test-tool/libguestfs-test-tool.pod:58
38735 msgid ""
38736 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38737 "minutes) which does not usually need to be adjusted."
38738 msgstr ""
38739
38740 #. type: =head1
38741 #: ../test-tool/libguestfs-test-tool.pod:63
38742 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../test-tool/libguestfs-test-tool.pod:65
38747 msgid ""
38748 "If you have compiled another version of qemu from source and would like to "
38749 "try that, then you can use the I<--qemudir> option to point to the qemu "
38750 "source directory."
38751 msgstr ""
38752
38753 #. type: textblock
38754 #: ../test-tool/libguestfs-test-tool.pod:69
38755 msgid ""
38756 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38757 "option to point to the binary."
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../test-tool/libguestfs-test-tool.pod:72
38762 msgid ""
38763 "Note when using these options, you can ignore the business of qemu wrapper "
38764 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38765 "wrapper script for you if one is needed."
38766 msgstr ""
38767
38768 #. type: =head1
38769 #: ../test-tool/libguestfs-test-tool.pod:76
38770 msgid "TRYING OUT A DIFFERENT KERNEL"
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../test-tool/libguestfs-test-tool.pod:78
38775 msgid ""
38776 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38777 "libguestfs tries.  You do this by setting the environment variables "
38778 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38779 msgstr ""
38780
38781 #. type: textblock
38782 #: ../test-tool/libguestfs-test-tool.pod:82
38783 msgid ""
38784 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38785 "information."
38786 msgstr ""
38787
38788 #. type: =head1
38789 #: ../test-tool/libguestfs-test-tool.pod:85
38790 msgid "SELF-DIAGNOSIS"
38791 msgstr ""
38792
38793 #. type: textblock
38794 #: ../test-tool/libguestfs-test-tool.pod:87
38795 msgid ""
38796 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38797 "produced by libguestfs-test-tool and/or possible errors."
38798 msgstr ""
38799
38800 #. type: textblock
38801 #: ../test-tool/libguestfs-test-tool.pod:92
38802 msgid ""
38803 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38804 "I<1> if there was an error."
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../test-tool/libguestfs-test-tool.pod:97
38809 msgid ""
38810 "For the full list of environment variables which may affect libguestfs, "
38811 "please see the L<guestfs(3)> manual page."
38812 msgstr ""
38813
38814 #. type: textblock
38815 #: ../test-tool/libguestfs-test-tool.pod:102
38816 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../tools/virt-list-filesystems.pl:32
38821 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38822 msgstr ""
38823
38824 #. type: verbatim
38825 #: ../tools/virt-list-filesystems.pl:36
38826 #, no-wrap
38827 msgid ""
38828 " virt-list-filesystems [--options] domname\n"
38829 "\n"
38830 msgstr ""
38831
38832 #. type: verbatim
38833 #: ../tools/virt-list-filesystems.pl:38
38834 #, no-wrap
38835 msgid ""
38836 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38837 "\n"
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38842 msgid ""
38843 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38844 "replacement."
38845 msgstr ""
38846
38847 #. type: textblock
38848 #: ../tools/virt-list-filesystems.pl:45
38849 msgid ""
38850 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38851 "are contained in a virtual machine or disk image."
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../tools/virt-list-filesystems.pl:49
38856 msgid ""
38857 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38858 "functionality.  For more complex cases you should look at the "
38859 "L<guestfish(1)> tool."
38860 msgstr ""
38861
38862 #. type: textblock
38863 #: ../tools/virt-list-filesystems.pl:112
38864 msgid ""
38865 "With this option, C<virt-list-filesystems> displays the type of each "
38866 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38867 msgstr ""
38868
38869 #. type: =item
38870 #: ../tools/virt-list-filesystems.pl:119
38871 msgid "B<-a>"
38872 msgstr ""
38873
38874 #. type: textblock
38875 #: ../tools/virt-list-filesystems.pl:123
38876 msgid ""
38877 "Normally we only show mountable filesystems.  If this option is given then "
38878 "swap devices are shown too."
38879 msgstr ""
38880
38881 #. type: textblock
38882 #: ../tools/virt-list-filesystems.pl:197
38883 msgid ""
38884 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
38885 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
38886 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38891 msgid "Copyright (C) 2009 Red Hat Inc."
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../tools/virt-list-partitions.pl:32
38896 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
38897 msgstr ""
38898
38899 #. type: verbatim
38900 #: ../tools/virt-list-partitions.pl:36
38901 #, no-wrap
38902 msgid ""
38903 " virt-list-partitions [--options] domname\n"
38904 "\n"
38905 msgstr ""
38906
38907 #. type: verbatim
38908 #: ../tools/virt-list-partitions.pl:38
38909 #, no-wrap
38910 msgid ""
38911 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38912 "\n"
38913 msgstr ""
38914
38915 #. type: textblock
38916 #: ../tools/virt-list-partitions.pl:45
38917 msgid ""
38918 "C<virt-list-partitions> is a command line tool to list the partitions that "
38919 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38920 "first step to using L<virt-resize(1)>."
38921 msgstr ""
38922
38923 #. type: textblock
38924 #: ../tools/virt-list-partitions.pl:50
38925 msgid ""
38926 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38927 "functionality.  For more complex cases you should look at the "
38928 "L<guestfish(1)> tool."
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../tools/virt-list-partitions.pl:113
38933 msgid "Show sizes in human-readable form (eg. \"1G\")."
38934 msgstr ""
38935
38936 #. type: textblock
38937 #: ../tools/virt-list-partitions.pl:123
38938 msgid ""
38939 "With this option, C<virt-list-partitions> displays the type and size of each "
38940 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38941 msgstr ""
38942
38943 #. type: =item
38944 #: ../tools/virt-list-partitions.pl:130
38945 msgid "B<-t>"
38946 msgstr ""
38947
38948 #. type: =item
38949 #: ../tools/virt-list-partitions.pl:132
38950 msgid "B<--total>"
38951 msgstr ""
38952
38953 #. type: textblock
38954 #: ../tools/virt-list-partitions.pl:134
38955 msgid "Display the total size of each block device (as a separate row or rows)."
38956 msgstr ""
38957
38958 #. type: textblock
38959 #: ../tools/virt-list-partitions.pl:267
38960 msgid ""
38961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
38962 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
38963 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38964 msgstr ""
38965
38966 #. type: textblock
38967 #: ../tools/virt-list-partitions.pl:283
38968 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../tools/virt-make-fs.pl:37
38973 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38974 msgstr ""
38975
38976 #. type: verbatim
38977 #: ../tools/virt-make-fs.pl:41
38978 #, no-wrap
38979 msgid ""
38980 " virt-make-fs [--options] input.tar output.img\n"
38981 "\n"
38982 msgstr ""
38983
38984 #. type: verbatim
38985 #: ../tools/virt-make-fs.pl:43
38986 #, no-wrap
38987 msgid ""
38988 " virt-make-fs [--options] input.tar.gz output.img\n"
38989 "\n"
38990 msgstr ""
38991
38992 #. type: verbatim
38993 #: ../tools/virt-make-fs.pl:45
38994 #, no-wrap
38995 msgid ""
38996 " virt-make-fs [--options] directory output.img\n"
38997 "\n"
38998 msgstr ""
38999
39000 #. type: textblock
39001 #: ../tools/virt-make-fs.pl:49
39002 msgid ""
39003 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39004 "archive or some files in a directory.  It is similar to tools like "
39005 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
39006 "it can create common filesystem types like ext2/3 or NTFS, which can be "
39007 "useful if you want to attach these filesystems to existing virtual machines "
39008 "(eg. to import large amounts of read-only data to a VM)."
39009 msgstr ""
39010
39011 #. type: textblock
39012 #: ../tools/virt-make-fs.pl:57
39013 msgid "Basic usage is:"
39014 msgstr ""
39015
39016 #. type: verbatim
39017 #: ../tools/virt-make-fs.pl:59
39018 #, no-wrap
39019 msgid ""
39020 " virt-make-fs input output\n"
39021 "\n"
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../tools/virt-make-fs.pl:61
39026 msgid ""
39027 "where C<input> is either a directory containing files that you want to add, "
39028 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39029 "C<output> is a disk image.  The input type is detected automatically.  The "
39030 "output disk image defaults to a raw ext2 image unless you specify extra "
39031 "flags (see L</OPTIONS> below)."
39032 msgstr ""
39033
39034 #. type: =head2
39035 #: ../tools/virt-make-fs.pl:67
39036 msgid "EXTRA SPACE"
39037 msgstr ""
39038
39039 #. type: textblock
39040 #: ../tools/virt-make-fs.pl:69
39041 msgid ""
39042 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39043 "the files that it contains, but might have extra space.  Depending on how "
39044 "you are going to use the output, you might think this extra space is wasted "
39045 "and want to minimize it, or you might want to leave space so that more files "
39046 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39047 "but you can use the I<--size> flag to leave space in the filesystem if you "
39048 "want it."
39049 msgstr ""
39050
39051 #. type: textblock
39052 #: ../tools/virt-make-fs.pl:77
39053 msgid ""
39054 "An alternative way to leave extra space but not make the output image any "
39055 "bigger is to use an alternative disk image format (instead of the default "
39056 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39057 "image format (check your hypervisor supports this before using it).  This "
39058 "allows you to choose a large I<--size> but the extra space won't actually be "
39059 "allocated in the image until you try to store something in it."
39060 msgstr ""
39061
39062 #. type: textblock
39063 #: ../tools/virt-make-fs.pl:85
39064 msgid ""
39065 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39066 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39067 "to build another image from scratch."
39068 msgstr ""
39069
39070 #. type: =head3
39071 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
39072 msgid "EXAMPLE"
39073 msgstr ""
39074
39075 #. type: verbatim
39076 #: ../tools/virt-make-fs.pl:91
39077 #, no-wrap
39078 msgid ""
39079 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39080 "\n"
39081 msgstr ""
39082
39083 #. type: =head2
39084 #: ../tools/virt-make-fs.pl:93
39085 msgid "FILESYSTEM TYPE"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../tools/virt-make-fs.pl:95
39090 msgid ""
39091 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39092 "libguestfs supports can be used (but I<not> read-only formats like "
39093 "ISO9660).  Here are some of the more common choices:"
39094 msgstr ""
39095
39096 #. type: =item
39097 #: ../tools/virt-make-fs.pl:101
39098 msgid "I<ext3>"
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../tools/virt-make-fs.pl:103
39103 msgid ""
39104 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39105 "you are not going to use the filesystem in a way that requires the journal, "
39106 "then this is just wasted overhead."
39107 msgstr ""
39108
39109 #. type: =item
39110 #: ../tools/virt-make-fs.pl:107
39111 msgid "I<ntfs> or I<vfat>"
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../tools/virt-make-fs.pl:109
39116 msgid "Useful if exporting data to a Windows guest."
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../tools/virt-make-fs.pl:111
39121 msgid ""
39122 "I<Note for vfat>: The tar archive or local directory must only contain files "
39123 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39124 "program running within libguestfs is unable to change the ownership of "
39125 "non-root files, since vfat itself does not support this."
39126 msgstr ""
39127
39128 #. type: =item
39129 #: ../tools/virt-make-fs.pl:116
39130 msgid "I<minix>"
39131 msgstr ""
39132
39133 #. type: textblock
39134 #: ../tools/virt-make-fs.pl:118
39135 msgid ""
39136 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39137 "total filesystem size."
39138 msgstr ""
39139
39140 #. type: verbatim
39141 #: ../tools/virt-make-fs.pl:125
39142 #, no-wrap
39143 msgid ""
39144 " virt-make-fs --type=minix input minixfs.img\n"
39145 "\n"
39146 msgstr ""
39147
39148 #. type: =head2
39149 #: ../tools/virt-make-fs.pl:127
39150 msgid "TO PARTITION OR NOT TO PARTITION"
39151 msgstr ""
39152
39153 #. type: textblock
39154 #: ../tools/virt-make-fs.pl:129
39155 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39156 msgstr ""
39157
39158 #. type: textblock
39159 #: ../tools/virt-make-fs.pl:131
39160 msgid ""
39161 "Adding a partition can make the disk image more compatible with certain "
39162 "virtualized operating systems which don't expect to see a filesystem "
39163 "directly located on a block device (Linux doesn't care and will happily "
39164 "handle both types)."
39165 msgstr ""
39166
39167 #. type: textblock
39168 #: ../tools/virt-make-fs.pl:136
39169 msgid ""
39170 "On the other hand, if you have a partition table then the output image is no "
39171 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39172 "directly on a partitioned disk image.  (However libguestfs tools such as "
39173 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39174 msgstr ""
39175
39176 #. type: textblock
39177 #: ../tools/virt-make-fs.pl:144
39178 msgid "Add an MBR partition:"
39179 msgstr ""
39180
39181 #. type: verbatim
39182 #: ../tools/virt-make-fs.pl:146
39183 #, no-wrap
39184 msgid ""
39185 " virt-make-fs --partition -- input disk.img\n"
39186 "\n"
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../tools/virt-make-fs.pl:148
39191 msgid ""
39192 "If the output disk image could be terabyte-sized or larger, it's better to "
39193 "use an EFI/GPT-compatible partition table:"
39194 msgstr ""
39195
39196 #. type: verbatim
39197 #: ../tools/virt-make-fs.pl:151
39198 #, no-wrap
39199 msgid ""
39200 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39201 "\n"
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../tools/virt-make-fs.pl:179
39206 msgid "Enable debugging information."
39207 msgstr ""
39208
39209 #. type: =item
39210 #: ../tools/virt-make-fs.pl:185
39211 msgid "B<--size=E<lt>NE<gt>>"
39212 msgstr ""
39213
39214 #. type: =item
39215 #: ../tools/virt-make-fs.pl:187
39216 msgid "B<--size=+E<lt>NE<gt>>"
39217 msgstr ""
39218
39219 #. type: =item
39220 #: ../tools/virt-make-fs.pl:189
39221 msgid "B<-s E<lt>NE<gt>>"
39222 msgstr ""
39223
39224 #. type: =item
39225 #: ../tools/virt-make-fs.pl:191
39226 msgid "B<-s +E<lt>NE<gt>>"
39227 msgstr ""
39228
39229 #. type: textblock
39230 #: ../tools/virt-make-fs.pl:193
39231 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../tools/virt-make-fs.pl:196
39236 msgid ""
39237 "If this option is I<not> given, then the output image will be just large "
39238 "enough to contain all the files, with not much wasted space."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../tools/virt-make-fs.pl:199
39243 msgid ""
39244 "To choose a fixed size output disk, specify an absolute number followed by "
39245 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39246 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39247 "files, else you will get an error."
39248 msgstr ""
39249
39250 #. type: textblock
39251 #: ../tools/virt-make-fs.pl:204
39252 msgid ""
39253 "To leave extra space, specify C<+> (plus sign) and a number followed by "
39254 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39255 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39256 "the input files, and (approximately) an extra 200 MB free space."
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../tools/virt-make-fs.pl:210
39261 msgid ""
39262 "Note that virt-make-fs estimates free space, and therefore will not produce "
39263 "filesystems containing precisely the free space requested.  (It is much more "
39264 "expensive and time-consuming to produce a filesystem which has precisely the "
39265 "desired free space)."
39266 msgstr ""
39267
39268 #. type: =item
39269 #: ../tools/virt-make-fs.pl:219
39270 msgid "B<--format=E<lt>fmtE<gt>>"
39271 msgstr ""
39272
39273 #. type: =item
39274 #: ../tools/virt-make-fs.pl:221
39275 msgid "B<-F E<lt>fmtE<gt>>"
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../tools/virt-make-fs.pl:223
39280 msgid "Choose the output disk image format."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../tools/virt-make-fs.pl:225
39285 msgid "The default is C<raw> (raw disk image)."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../tools/virt-make-fs.pl:227
39290 msgid ""
39291 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39292 "that would really make sense here is C<qcow2>."
39293 msgstr ""
39294
39295 #. type: =item
39296 #: ../tools/virt-make-fs.pl:234
39297 msgid "B<--type=E<lt>fsE<gt>>"
39298 msgstr ""
39299
39300 #. type: =item
39301 #: ../tools/virt-make-fs.pl:236
39302 msgid "B<-t E<lt>fsE<gt>>"
39303 msgstr ""
39304
39305 #. type: textblock
39306 #: ../tools/virt-make-fs.pl:238
39307 msgid "Choose the output filesystem type."
39308 msgstr ""
39309
39310 #. type: textblock
39311 #: ../tools/virt-make-fs.pl:240
39312 msgid "The default is C<ext2>."
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../tools/virt-make-fs.pl:242
39317 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
39318 msgstr ""
39319
39320 #. type: =item
39321 #: ../tools/virt-make-fs.pl:249
39322 msgid "B<--partition>"
39323 msgstr ""
39324
39325 #. type: =item
39326 #: ../tools/virt-make-fs.pl:251
39327 msgid "B<--partition=E<lt>parttypeE<gt>>"
39328 msgstr ""
39329
39330 #. type: textblock
39331 #: ../tools/virt-make-fs.pl:253
39332 msgid ""
39333 "If specified, this flag adds an MBR partition table to the output disk "
39334 "image."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../tools/virt-make-fs.pl:256
39339 msgid ""
39340 "You can change the partition table type, eg. I<--partition=gpt> for large "
39341 "disks."
39342 msgstr ""
39343
39344 #. type: textblock
39345 #: ../tools/virt-make-fs.pl:259
39346 msgid ""
39347 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39348 "might consider the next parameter to be the partition type.  For example:"
39349 msgstr ""
39350
39351 #. type: verbatim
39352 #: ../tools/virt-make-fs.pl:263
39353 #, no-wrap
39354 msgid ""
39355 " virt-make-fs --partition input.tar ...\n"
39356 "\n"
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../tools/virt-make-fs.pl:265
39361 msgid ""
39362 "would cause virt-make-fs to think you wanted to use a partition type of "
39363 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39364 "dash) between options and the input file argument:"
39365 msgstr ""
39366
39367 #. type: verbatim
39368 #: ../tools/virt-make-fs.pl:269
39369 #, no-wrap
39370 msgid ""
39371 " virt-make-fs --partition -- input.tar ...\n"
39372 "\n"
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../tools/virt-make-fs.pl:541
39377 msgid ""
39378 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39379 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
39380 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39381 msgstr ""
39382
39383 #. type: textblock
39384 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39385 msgid ""
39386 "When reporting bugs, please enable debugging and capture the I<complete> "
39387 "output:"
39388 msgstr ""
39389
39390 #. type: verbatim
39391 #: ../tools/virt-make-fs.pl:558
39392 #, no-wrap
39393 msgid ""
39394 " export LIBGUESTFS_DEBUG=1\n"
39395 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39396 "\n"
39397 msgstr ""
39398
39399 #. type: textblock
39400 #: ../tools/virt-make-fs.pl:561
39401 msgid ""
39402 "Attach /tmp/virt-make-fs.log to a new bug report at "
39403 "L<https://bugzilla.redhat.com/>"
39404 msgstr ""
39405
39406 #. type: textblock
39407 #: ../tools/virt-tar.pl:33
39408 msgid "virt-tar - Extract or upload files to a virtual machine"
39409 msgstr ""
39410
39411 #. type: verbatim
39412 #: ../tools/virt-tar.pl:37
39413 #, no-wrap
39414 msgid ""
39415 " virt-tar [--options] -x domname directory tarball\n"
39416 "\n"
39417 msgstr ""
39418
39419 #. type: verbatim
39420 #: ../tools/virt-tar.pl:39
39421 #, no-wrap
39422 msgid ""
39423 " virt-tar [--options] -u domname tarball directory\n"
39424 "\n"
39425 msgstr ""
39426
39427 #. type: verbatim
39428 #: ../tools/virt-tar.pl:41
39429 #, no-wrap
39430 msgid ""
39431 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39432 "\n"
39433 msgstr ""
39434
39435 #. type: verbatim
39436 #: ../tools/virt-tar.pl:43
39437 #, no-wrap
39438 msgid ""
39439 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39440 "\n"
39441 msgstr ""
39442
39443 #. type: =head2
39444 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39445 msgid "NOTE"
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../tools/virt-tar.pl:47
39450 msgid ""
39451 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
39452 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
39453 msgstr ""
39454
39455 #. type: textblock
39456 #: ../tools/virt-tar.pl:52
39457 msgid "Download C</home> from the VM into a local tarball:"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../tools/virt-tar.pl:54
39462 #, no-wrap
39463 msgid ""
39464 " virt-tar -x domname /home home.tar\n"
39465 "\n"
39466 msgstr ""
39467
39468 #. type: verbatim
39469 #: ../tools/virt-tar.pl:56
39470 #, no-wrap
39471 msgid ""
39472 " virt-tar -zx domname /home home.tar.gz\n"
39473 "\n"
39474 msgstr ""
39475
39476 #. type: textblock
39477 #: ../tools/virt-tar.pl:58
39478 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39479 msgstr ""
39480
39481 #. type: verbatim
39482 #: ../tools/virt-tar.pl:60
39483 #, no-wrap
39484 msgid ""
39485 " virt-tar -u domname uploadstuff.tar /tmp\n"
39486 "\n"
39487 msgstr ""
39488
39489 #. type: verbatim
39490 #: ../tools/virt-tar.pl:62
39491 #, no-wrap
39492 msgid ""
39493 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39494 "\n"
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../tools/virt-tar.pl:66
39499 msgid ""
39500 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39501 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39502 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../tools/virt-tar.pl:71
39507 msgid ""
39508 "You can use I<-x> (extract) on live virtual machines, but you might get "
39509 "inconsistent results or errors if there is filesystem activity inside the "
39510 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39511 "work, but the only way to guarantee consistent results is if the virtual "
39512 "machine is shut down."
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../tools/virt-tar.pl:79
39517 msgid ""
39518 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39519 "parts of a guest filesystem.  There are many possibilities: making backups, "
39520 "uploading data files, snooping on guest activity, fixing or customizing "
39521 "guests, etc."
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../tools/virt-tar.pl:84
39526 msgid ""
39527 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39528 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39529 "should look at the L<guestfish(1)> tool."
39530 msgstr ""
39531
39532 #. type: textblock
39533 #: ../tools/virt-tar.pl:88
39534 msgid ""
39535 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39536 "its contents (recursively) from the virtual machine into a local tarball.  "
39537 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39538 "virtual machine.  You cannot use these two options together."
39539 msgstr ""
39540
39541 #. type: textblock
39542 #: ../tools/virt-tar.pl:94
39543 msgid ""
39544 "In addition, you may need to use the I<-z> (gZip) option to enable "
39545 "compression.  When uploading, you have to specify I<-z> if the upload file "
39546 "is compressed because virt-tar won't detect this on its own."
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../tools/virt-tar.pl:98
39551 msgid ""
39552 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39553 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39554 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39555 "the L<libguestfs(3)> API)."
39556 msgstr ""
39557
39558 #. type: =item
39559 #: ../tools/virt-tar.pl:160
39560 msgid "B<--extract>"
39561 msgstr ""
39562
39563 #. type: =item
39564 #: ../tools/virt-tar.pl:162
39565 msgid "B<--download>"
39566 msgstr ""
39567
39568 #. type: =item
39569 #: ../tools/virt-tar.pl:164
39570 msgid "B<-u>"
39571 msgstr ""
39572
39573 #. type: =item
39574 #: ../tools/virt-tar.pl:166
39575 msgid "B<--upload>"
39576 msgstr ""
39577
39578 #. type: textblock
39579 #: ../tools/virt-tar.pl:168
39580 msgid ""
39581 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39582 "local tarball."
39583 msgstr ""
39584
39585 #. type: textblock
39586 #: ../tools/virt-tar.pl:171
39587 msgid ""
39588 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39589 "Please read the L</WARNING> section above before using this option."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../tools/virt-tar.pl:175
39594 msgid "You must specify exactly one of these options."
39595 msgstr ""
39596
39597 #. type: =item
39598 #: ../tools/virt-tar.pl:181
39599 msgid "B<-z>"
39600 msgstr ""
39601
39602 #. type: =item
39603 #: ../tools/virt-tar.pl:183
39604 msgid "B<--gzip>"
39605 msgstr ""
39606
39607 #. type: textblock
39608 #: ../tools/virt-tar.pl:185
39609 msgid "Specify that the input or output tarball is gzip-compressed."
39610 msgstr ""
39611
39612 #. type: textblock
39613 #: ../tools/virt-tar.pl:298
39614 msgid ""
39615 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
39616 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39617 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
39618 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39619 msgstr ""
39620
39621 #. type: textblock
39622 #: ../tools/virt-win-reg.pl:37
39623 msgid ""
39624 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
39625 "guest"
39626 msgstr ""
39627
39628 #. type: verbatim
39629 #: ../tools/virt-win-reg.pl:41
39630 #, no-wrap
39631 msgid ""
39632 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39633 "\n"
39634 msgstr ""
39635
39636 #. type: verbatim
39637 #: ../tools/virt-win-reg.pl:43
39638 #, no-wrap
39639 msgid ""
39640 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39641 "\n"
39642 msgstr ""
39643
39644 #. type: verbatim
39645 #: ../tools/virt-win-reg.pl:45
39646 #, no-wrap
39647 msgid ""
39648 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39649 "\n"
39650 msgstr ""
39651
39652 #. type: verbatim
39653 #: ../tools/virt-win-reg.pl:47
39654 #, no-wrap
39655 msgid ""
39656 " virt-win-reg --merge domname [input.reg ...]\n"
39657 "\n"
39658 msgstr ""
39659
39660 #. type: verbatim
39661 #: ../tools/virt-win-reg.pl:49
39662 #, no-wrap
39663 msgid ""
39664 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39665 "\n"
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../tools/virt-win-reg.pl:53
39670 msgid ""
39671 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39672 "virtual machines.  If you do this, you I<will> get irreversible disk "
39673 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39674 "but doesn't catch all cases."
39675 msgstr ""
39676
39677 #. type: textblock
39678 #: ../tools/virt-win-reg.pl:58
39679 msgid ""
39680 "Modifying the Windows Registry is an inherently risky operation.  The format "
39681 "is deliberately obscure and undocumented, and Registry changes can leave the "
39682 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39683 "you have a reliable backup first."
39684 msgstr ""
39685
39686 #. type: textblock
39687 #: ../tools/virt-win-reg.pl:65
39688 msgid ""
39689 "This program can export and merge Windows Registry entries from a Windows "
39690 "guest."
39691 msgstr ""
39692
39693 #. type: textblock
39694 #: ../tools/virt-win-reg.pl:68
39695 msgid ""
39696 "The first parameter is the libvirt guest name or the raw disk image of a "
39697 "Windows guest."
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../tools/virt-win-reg.pl:71
39702 msgid ""
39703 "If I<--merge> is I<not> specified, then the chosen registry key is "
39704 "displayed/exported (recursively).  For example:"
39705 msgstr ""
39706
39707 #. type: verbatim
39708 #: ../tools/virt-win-reg.pl:74
39709 #, no-wrap
39710 msgid ""
39711 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39712 "\n"
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../tools/virt-win-reg.pl:76
39717 msgid "You can also display single values from within registry keys, for example:"
39718 msgstr ""
39719
39720 #. type: verbatim
39721 #: ../tools/virt-win-reg.pl:79
39722 #, no-wrap
39723 msgid ""
39724 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39725 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39726 " Windows 7 Enterprise\n"
39727 "\n"
39728 msgstr ""
39729
39730 #. type: textblock
39731 #: ../tools/virt-win-reg.pl:83
39732 msgid ""
39733 "With I<--merge>, you can merge a textual regedit file into the Windows "
39734 "Registry:"
39735 msgstr ""
39736
39737 #. type: verbatim
39738 #: ../tools/virt-win-reg.pl:86
39739 #, no-wrap
39740 msgid ""
39741 " $ virt-win-reg --merge Windows7 changes.reg\n"
39742 "\n"
39743 msgstr ""
39744
39745 #. type: textblock
39746 #: ../tools/virt-win-reg.pl:90
39747 msgid ""
39748 "This program is only meant for simple access to the registry.  If you want "
39749 "to do complicated things with the registry, we suggest you download the "
39750 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39751 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39752 "L<hivexregedit(1)>."
39753 msgstr ""
39754
39755 #. type: =item
39756 #: ../tools/virt-win-reg.pl:159
39757 msgid "B<--merge>"
39758 msgstr ""
39759
39760 #. type: textblock
39761 #: ../tools/virt-win-reg.pl:161
39762 msgid ""
39763 "In merge mode, this merges a textual regedit file into the Windows Registry "
39764 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39765 "displays or exports Registry entries instead."
39766 msgstr ""
39767
39768 #. type: textblock
39769 #: ../tools/virt-win-reg.pl:165
39770 msgid ""
39771 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39772 "result in disk corruption.  However exporting (without this flag)  is always "
39773 "safe."
39774 msgstr ""
39775
39776 #. type: =item
39777 #: ../tools/virt-win-reg.pl:173
39778 msgid "B<--encoding> UTF-16LE|ASCII"
39779 msgstr ""
39780
39781 #. type: textblock
39782 #: ../tools/virt-win-reg.pl:175
39783 msgid ""
39784 "When merging (only), you may need to specify the encoding for strings to be "
39785 "used in the hive file.  This is explained in detail in "
39786 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
39787 msgstr ""
39788
39789 #. type: textblock
39790 #: ../tools/virt-win-reg.pl:179
39791 msgid ""
39792 "The default is to use UTF-16LE, which should work with recent versions of "
39793 "Windows."
39794 msgstr ""
39795
39796 #. type: =item
39797 #: ../tools/virt-win-reg.pl:186
39798 msgid "B<--unsafe-printable-strings>"
39799 msgstr ""
39800
39801 #. type: textblock
39802 #: ../tools/virt-win-reg.pl:188
39803 msgid ""
39804 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39805 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39806 "present."
39807 msgstr ""
39808
39809 #. type: textblock
39810 #: ../tools/virt-win-reg.pl:192
39811 msgid ""
39812 "This is unsafe and does not preserve the fidelity of strings in the original "
39813 "Registry for various reasons:"
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../tools/virt-win-reg.pl:199
39818 msgid ""
39819 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39820 "other encodings will be corrupted by this transformation."
39821 msgstr ""
39822
39823 #. type: textblock
39824 #: ../tools/virt-win-reg.pl:204
39825 msgid ""
39826 "Assumes that everything which has type 1 or 2 is really a string and that "
39827 "everything else is not a string, but the type field in real Registries is "
39828 "not reliable."
39829 msgstr ""
39830
39831 #. type: textblock
39832 #: ../tools/virt-win-reg.pl:210
39833 msgid ""
39834 "Loses information about whether a zero codepoint followed the string in the "
39835 "Registry or not."
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../tools/virt-win-reg.pl:215
39840 msgid ""
39841 "This all happens because the Registry itself contains no information about "
39842 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../tools/virt-win-reg.pl:219
39847 msgid ""
39848 "You should only use this option for quick hacking and debugging of the "
39849 "Registry contents, and I<never> use it if the output is going to be passed "
39850 "into another program or stored in another Registry."
39851 msgstr ""
39852
39853 #. type: =head1
39854 #: ../tools/virt-win-reg.pl:556
39855 msgid "SUPPORTED SYSTEMS"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../tools/virt-win-reg.pl:558
39860 msgid ""
39861 "The program currently supports Windows NT-derived guests starting with "
39862 "Windows XP through to at least Windows 7."
39863 msgstr ""
39864
39865 #. type: textblock
39866 #: ../tools/virt-win-reg.pl:561
39867 msgid "The following Registry keys are supported:"
39868 msgstr ""
39869
39870 #. type: =item
39871 #: ../tools/virt-win-reg.pl:565
39872 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39873 msgstr ""
39874
39875 #. type: =item
39876 #: ../tools/virt-win-reg.pl:567
39877 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39878 msgstr ""
39879
39880 #. type: =item
39881 #: ../tools/virt-win-reg.pl:569
39882 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39883 msgstr ""
39884
39885 #. type: =item
39886 #: ../tools/virt-win-reg.pl:571
39887 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39888 msgstr ""
39889
39890 #. type: =item
39891 #: ../tools/virt-win-reg.pl:573
39892 msgid "C<HKEY_USERS\\.DEFAULT>"
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../tools/virt-win-reg.pl:575
39897 msgid "C<HKEY_USERS\\I<SID>>"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../tools/virt-win-reg.pl:577
39902 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39903 msgstr ""
39904
39905 #. type: =item
39906 #: ../tools/virt-win-reg.pl:579
39907 msgid "C<HKEY_USERS\\I<username>>"
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../tools/virt-win-reg.pl:581
39912 msgid "where I<username> is a local user name (this is a libguestfs extension)."
39913 msgstr ""
39914
39915 #. type: textblock
39916 #: ../tools/virt-win-reg.pl:585
39917 msgid ""
39918 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39919 "C<HKEY_USERS>."
39920 msgstr ""
39921
39922 #. type: textblock
39923 #: ../tools/virt-win-reg.pl:588
39924 msgid ""
39925 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39926 "supported (there is no \"current user\")."
39927 msgstr ""
39928
39929 #. type: =head1
39930 #: ../tools/virt-win-reg.pl:591
39931 msgid "ENCODING"
39932 msgstr ""
39933
39934 #. type: textblock
39935 #: ../tools/virt-win-reg.pl:593
39936 msgid ""
39937 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39938 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
39939 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
39940 "with Windows-style line endings, you may need to reencode the whole file "
39941 "before or after processing."
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../tools/virt-win-reg.pl:599
39946 msgid ""
39947 "To reencode a file from Windows format to Linux (before processing it with "
39948 "the I<--merge> option), you would do something like this:"
39949 msgstr ""
39950
39951 #. type: verbatim
39952 #: ../tools/virt-win-reg.pl:602
39953 #, no-wrap
39954 msgid ""
39955 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39956 "\n"
39957 msgstr ""
39958
39959 #. type: textblock
39960 #: ../tools/virt-win-reg.pl:604
39961 msgid ""
39962 "To go in the opposite direction, after exporting and before sending the file "
39963 "to a Windows user, do something like this:"
39964 msgstr ""
39965
39966 #. type: verbatim
39967 #: ../tools/virt-win-reg.pl:607
39968 #, no-wrap
39969 msgid ""
39970 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39971 "\n"
39972 msgstr ""
39973
39974 #. type: textblock
39975 #: ../tools/virt-win-reg.pl:609
39976 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39977 msgstr ""
39978
39979 #. type: textblock
39980 #: ../tools/virt-win-reg.pl:611
39981 msgid ""
39982 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39983 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
39984 "Windows-style (CRLF) line endings, like this:"
39985 msgstr ""
39986
39987 #. type: verbatim
39988 #: ../tools/virt-win-reg.pl:615
39989 #, no-wrap
39990 msgid ""
39991 " $ file software.reg\n"
39992 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39993 " with CRLF line terminators\n"
39994 "\n"
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../tools/virt-win-reg.pl:619
39999 msgid "This file would need conversion before you could I<--merge> it."
40000 msgstr ""
40001
40002 #. type: =head1
40003 #: ../tools/virt-win-reg.pl:621
40004 msgid "CurrentControlSet etc."
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../tools/virt-win-reg.pl:623
40009 msgid ""
40010 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40011 "Registry at the level of the hive file, and therefore you cannot modify "
40012 "these."
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../tools/virt-win-reg.pl:627
40017 msgid ""
40018 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40019 "circumstances it might refer to another control set.  The way to find out is "
40020 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40021 msgstr ""
40022
40023 #. type: verbatim
40024 #: ../tools/virt-win-reg.pl:631
40025 #, no-wrap
40026 msgid ""
40027 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40028 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40029 " \"Current\"=dword:00000001\n"
40030 " \"Default\"=dword:00000001\n"
40031 " \"Failed\"=dword:00000000\n"
40032 " \"LastKnownGood\"=dword:00000002\n"
40033 "\n"
40034 msgstr ""
40035
40036 #. type: textblock
40037 #: ../tools/virt-win-reg.pl:638
40038 msgid "\"Current\" is the one which Windows will choose when it boots."
40039 msgstr ""
40040
40041 #. type: textblock
40042 #: ../tools/virt-win-reg.pl:640
40043 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
40044 msgstr ""
40045
40046 #. type: =head1
40047 #: ../tools/virt-win-reg.pl:643
40048 msgid "WINDOWS TIPS"
40049 msgstr ""
40050
40051 #. type: textblock
40052 #: ../tools/virt-win-reg.pl:645
40053 msgid ""
40054 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40055 "be shut off, else you will get disk corruption."
40056 msgstr ""
40057
40058 #. type: =head2
40059 #: ../tools/virt-win-reg.pl:648
40060 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40061 msgstr ""
40062
40063 #. type: textblock
40064 #: ../tools/virt-win-reg.pl:650
40065 msgid ""
40066 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40067 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40068 "is uploaded into C<C:\\>:"
40069 msgstr ""
40070
40071 #. type: verbatim
40072 #: ../tools/virt-win-reg.pl:654
40073 #, no-wrap
40074 msgid ""
40075 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40076 "\n"
40077 msgstr ""
40078
40079 #. type: textblock
40080 #: ../tools/virt-win-reg.pl:656
40081 msgid "Prepare a regedit file containing the registry change:"
40082 msgstr ""
40083
40084 #. type: verbatim
40085 #: ../tools/virt-win-reg.pl:658
40086 #, no-wrap
40087 msgid ""
40088 " cat > test.reg <<'EOF'\n"
40089 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40090 " \"Test\"=\"c:\\\\test.bat\"\n"
40091 " EOF\n"
40092 "\n"
40093 msgstr ""
40094
40095 #. type: textblock
40096 #: ../tools/virt-win-reg.pl:663
40097 msgid ""
40098 "In this example we use the key C<RunOnce> which means that the script will "
40099 "run precisely once when the first user logs in.  If you want it to run every "
40100 "time a user logs in, replace C<RunOnce> with C<Run>."
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../tools/virt-win-reg.pl:667
40105 msgid "Now update the registry:"
40106 msgstr ""
40107
40108 #. type: verbatim
40109 #: ../tools/virt-win-reg.pl:669
40110 #, no-wrap
40111 msgid ""
40112 " virt-win-reg --merge WindowsGuest test.reg\n"
40113 "\n"
40114 msgstr ""
40115
40116 #. type: =head2
40117 #: ../tools/virt-win-reg.pl:671
40118 msgid "INSTALLING A SERVICE"
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../tools/virt-win-reg.pl:673
40123 msgid ""
40124 "This section assumes you are familiar with Windows services, and you either "
40125 "have a program which handles the Windows Service Control Protocol directly "
40126 "or you want to run any program using a service wrapper like SrvAny or the "
40127 "free RHSrvAny."
40128 msgstr ""
40129
40130 #. type: textblock
40131 #: ../tools/virt-win-reg.pl:678
40132 msgid ""
40133 "First upload the program and optionally the service wrapper.  In this case "
40134 "the test program is called C<test.exe> and we are using the RHSrvAny "
40135 "wrapper:"
40136 msgstr ""
40137
40138 #. type: verbatim
40139 #: ../tools/virt-win-reg.pl:682
40140 #, no-wrap
40141 msgid ""
40142 " guestfish -i -d WindowsGuest <<EOF\n"
40143 "   upload rhsrvany.exe /rhsrvany.exe\n"
40144 "   upload test.exe /test.exe\n"
40145 " EOF\n"
40146 "\n"
40147 msgstr ""
40148
40149 #. type: textblock
40150 #: ../tools/virt-win-reg.pl:687
40151 msgid ""
40152 "Prepare a regedit file containing the registry changes.  In this example, "
40153 "the first registry change is needed for the service itself or the service "
40154 "wrapper (if used).  The second registry change is only needed because I am "
40155 "using the RHSrvAny service wrapper."
40156 msgstr ""
40157
40158 #. type: verbatim
40159 #: ../tools/virt-win-reg.pl:692
40160 #, no-wrap
40161 msgid ""
40162 " cat > service.reg <<'EOF'\n"
40163 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40164 " \"Type\"=dword:00000010\n"
40165 " \"Start\"=dword:00000002\n"
40166 " \"ErrorControl\"=dword:00000001\n"
40167 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40168 " \"DisplayName\"=\"RHSrvAny\"\n"
40169 " \"ObjectName\"=\"NetworkService\"\n"
40170 " \n"
40171 msgstr ""
40172
40173 #. type: verbatim
40174 #: ../tools/virt-win-reg.pl:701
40175 #, no-wrap
40176 msgid ""
40177 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40178 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40179 " \"PWD\"=\"c:\\\\Temp\"\n"
40180 " EOF\n"
40181 "\n"
40182 msgstr ""
40183
40184 #. type: textblock
40185 #: ../tools/virt-win-reg.pl:712
40186 msgid ""
40187 "For use of C<ControlSet001> see the section above in this manual page.  You "
40188 "may need to adjust this according to the control set that is in use by the "
40189 "guest."
40190 msgstr ""
40191
40192 #. type: textblock
40193 #: ../tools/virt-win-reg.pl:718
40194 msgid ""
40195 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40196 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40197 "privileged account."
40198 msgstr ""
40199
40200 #. type: textblock
40201 #: ../tools/virt-win-reg.pl:724
40202 msgid ""
40203 "For the meaning of the magic numbers, see this Microsoft KB article: "
40204 "L<http://support.microsoft.com/kb/103000>."
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../tools/virt-win-reg.pl:729
40209 msgid "Update the registry:"
40210 msgstr ""
40211
40212 #. type: verbatim
40213 #: ../tools/virt-win-reg.pl:731
40214 #, no-wrap
40215 msgid ""
40216 " virt-win-reg --merge WindowsGuest service.reg\n"
40217 "\n"
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../tools/virt-win-reg.pl:735
40222 msgid ""
40223 "Be careful when passing parameters containing C<\\> (backslash) in the "
40224 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40225 "(but not both) to protect them from the shell."
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../tools/virt-win-reg.pl:739
40230 msgid "Paths and value names are case-insensitive."
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../tools/virt-win-reg.pl:748
40235 msgid ""
40236 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
40237 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
40238 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
40239 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40240 msgstr ""
40241
40242 #. type: verbatim
40243 #: ../tools/virt-win-reg.pl:766
40244 #, no-wrap
40245 msgid ""
40246 " export LIBGUESTFS_DEBUG=1\n"
40247 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40248 "\n"
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../tools/virt-win-reg.pl:769
40253 msgid ""
40254 "Attach /tmp/virt-win-reg.log to a new bug report at "
40255 "L<https://bugzilla.redhat.com/>"
40256 msgstr ""